Re: [GENERAL] Restoring tables with circular references dumped to separate files
В списке pgsql-general по дате отправления:
| От | Uwe |
|---|---|
| Тема | Re: [GENERAL] Restoring tables with circular references dumped to separate files |
| Дата | |
| Msg-id | 3430419.aDL8jPP3m8@tiburon обсуждение исходный текст |
| Ответ на | [GENERAL] Restoring tables with circular references dumped to separate files (doganmeh <mehmet@edgle.com>) |
| Ответы |
[GENERAL] Re: Restoring tables with circular references dumped to separatefiles
|
| Список | pgsql-general |
I would alter the tables and remove the foreign key constraint, restore the data and add the constraint back. If the data is consistent, adding the foreign key should work without error.
On Friday, October 20, 2017 8:15:27 PM PDT doganmeh wrote:
I was dumping each table to a separate file so I could pick and choose when restoring. However, seems this was not a great idea, since two of my tables happened to reference each other via FOREIGN KEYs, and I am not able to restore them. Is there a way to do this without manually merging the dump files? Thanks for guidance in advance.
— Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера