| От | 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?
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера