Re: pg_dump/pg_restore schema and data separately and foreign key constraints
В списке pgsql-general по дате отправления:
| От | Vasiliy Vasin |
|---|---|
| Тема | Re: pg_dump/pg_restore schema and data separately and foreign key constraints |
| Дата | |
| Msg-id | 9071242164110@webmail30.yandex.ru обсуждение исходный текст |
| Ответ на | Re: pg_dump/pg_restore schema and data separately and foreign key constraints (Adrian Klaver <aklaver@comcast.net>) |
| Ответы |
Re: pg_dump/pg_restore schema and data separately and foreign key constraints
|
| Список | pgsql-general |
In the end, decided to make easier: make a complete dump except tables that I don't want to backup, then just dump schemaof these tables. So I have 2 files: schema+data for all except table1 and table2, schema only for table1 and table2. It's a strangely that pg_restore is still no option to check the constraints after you insert all data. Something like http://www.postgresql.org/docs/8.3/static/sql-set-constraints.html 13.05.09, 01:17, "Adrian Klaver" <aklaver@comcast.net>: > Sounds like an ordering problem, you are restoring the child table before the parent. Best bet is to dump the table datato individual files and restore them in the proper order.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера