Re: [SQL] Postgres schema comparison.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Postgres schema comparison.
Дата
Msg-id 22961.1110205853@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] Postgres schema comparison.  (Stef <svb@ucs.co.za>)
Ответы Re: [SQL] Postgres schema comparison.
Список pgsql-admin
Stef <svb@ucs.co.za> writes:
> Markus Schaber mentioned :
> => But maybe a pg_dump --schema-only on all the databases, and then
> => manually diffing the files may already fulfil your needs.

> I've tested something similar, that seems to work ok for me for now :
> pg_dump -s -t [TABLE] [DBNAME] | grep -v "^--" | md5sum

> The problem I have with this, is that I have to run the command per table,

Why?

If the problem is varying order of table declarations, try 8.0's
pg_dump.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Help on maintaining pgsql/data folder size
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Build from file syntax troublem (part II).