Re: How can I compare sql create script with running database?

Поиск
Список
Период
Сортировка
Искать
От
Raymond O'Donnell
Тема
Re: How can I compare sql create script with running database?
Дата
Msg-id
4847BAAC.70603@iol.ie
Ответ на
Список
Дерево обсуждения
How can I compare sql create script with running database? Bjørn T Johansen <btj@havleik.no>
Re: How can I compare sql create script with running database? Raymond O'Donnell <rod@iol.ie>
Re: How can I compare sql create script with running database? Bjørn T Johansen <btj@havleik.no>
Re: How can I compare sql create script with running database? Tino Wildenhain <tino@wildenhain.de>
Re: How can I compare sql create script with running database? Bjørn T Johansen <btj@havleik.no>
On 05/06/2008 10:52, Bjørn T Johansen wrote:
> If I already have a running database, how can I compare the tables in
> the database with the sql script to discover the differences?

You can use pg_dump with the -s option to dump the schema of the 
database, and run it through the diff tool of your choice.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------
В списке pgsql-general по дате отправления
От: Bjørn T Johansen
Дата:
От: Bjørn T Johansen
Дата:
FAQ