| От | Tom Lane |
|---|---|
| Тема | Re: SQL-Dump and refertial Integrity |
| Дата | |
| Msg-id | 24644.1018892663@sss.pgh.pa.us обсуждение |
| Ответ на | SQL-Dump and refertial Integrity (Thomas Woehlke <Thomas.Woehlke@ESC-Electronics.de>) |
| Список | pgsql-novice |
Thomas Woehlke <Thomas.Woehlke@ESC-Electronics.de> writes:
> If I export the Structure via pg_dump
> the table are dumped in alphabetical order, but the order violates
> the refenrential integrity of my db.
> At inserting it via psql db < db_structure.sql it throws errors and the
> database is not not correctly build on the other server. Tables are
> missing.
How old is your PG version? This problem was fixed ages ago.
If you cannot find any other way out, you'll have to edit the dump file
by hand to put the table declarations in a valid order. (It might be
best to dump schema and data separately, if the combined dump file is
too large to edit conveniently.)
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера