Re: How to use PG_DUMP?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to use PG_DUMP?
Дата
Msg-id 27708.1264353745@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to use PG_DUMP?  (Andre Lopes <lopes80andre@gmail.com>)
Ответы Re: How to use PG_DUMP?  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
Andre Lopes <lopes80andre@gmail.com> writes:
> I have generated the CREATE statements using a modeling tool, and I have
> created another database to test the changes. My problem is the order of the
> INSERT statements generated by PG_DUMP [-a -d], causing errors because of
> the order of the INSERTS.

If you are talking about foreign key constraint failures, the best way
is to use a regular dump (not -a).  pg_dump will order the data and
constraint creations properly then.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Sugerencia de opcion
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: Recursion in triggers?