| От | Tom Lane |
|---|---|
| Тема | Re: fine tuned database dump/reload? |
| Дата | |
| Msg-id | 9502.1129566974@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: fine tuned database dump/reload? (Douglas McNaught <doug@mcnaught.org>) |
| Список | pgsql-general |
Douglas McNaught <doug@mcnaught.org> writes:
> Dan Armbrust <daniel.armbrust.list@gmail.com> writes:
>> Maybe I missed something then, because it didn't last time I tried to
>> move some data. I had to drop my foreign keys before I could reload
>> it.
> What version was this? Older versions definitely had some problems
> with table ordering. In 8.0.X, the tables in the dump all get loaded
> before the FK constraints are created, and I have never seen a
> problem.
Even in current versions, you have to do a full (schema+data) dump for
it to work "right". Data-only dumps are prone to FK problems. This
is insoluble in the general case, though you can work around it to some
extent with the --disable-triggers option.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера