Re: db schema diff

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: db schema diff
Дата
Msg-id 14252.1081807032@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: db schema diff  (Igor Shevchenko <igor@carcass.ath.cx>)
Ответы Re: db schema diff  (Jeremiah Jahn <jeremiah@cs.earlham.edu>)
Список pgsql-general
Igor Shevchenko <igor@carcass.ath.cx> writes:
> On Monday 12 April 2004 22:38, you wrote:
>> ${PG_DUMP} -s -p 5432 mydb|${GREP} -v '^--'|${CAT} -s >5432.sql
>> ${PG_DUMP} -s -p 5433 mydb|${GREP} -v '^--'|${CAT} -s >5433.sql
>> ${PG_DUMP} -s -p 5434 mydb|${GREP} -v '^--'|${CAT} -s >5434.sql
>>
>> ${DIFF} 5432.sql 5433.sql > 5432-5433.diff
>> ${DIFF} 5433.sql 5434.sql > 5433-5434.diff

> I used to do exactly this but the pg_dump order is different on my two
> servers, and this generates lots of false diffs.

FWIW, CVS tip pg_dump has been modified to produce a consistent (and
safe) dump order, so its output should be a lot more useful for schema
diff'ing purposes than previous releases were.

It should work to build a current snapshot and use its pg_dump against
older servers, if you need a solution now.

            regards, tom lane

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

Предыдущее
От: Igor Shevchenko
Дата:
Сообщение: Re: db schema diff
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Data Encryption in PostgreSQL, and a Tutorial.