Re: Problem using pg_restore with -a option

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem using pg_restore with -a option
Дата
Msg-id 5509.1157126524@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem using pg_restore with -a option  (Luís Sousa <llsousa@ualg.pt>)
Список pgsql-admin
=?ISO-8859-1?Q?Lu=EDs_Sousa?= <llsousa@ualg.pt> writes:
> Using the schema below, doing a pg_dump -Fc, delete all data, and a
> pg_restore -a, the sequence of inserting data isn't correct issuing an
> error.

Data-only restores make no attempt to avoid foreign-key constraint
problems --- in general there is no solution, since you could have
circular constraints.

You could drop and re-add the FK constraints, or if you trust that the
data is valid there's the --disable-triggers option to suppress FK
constraint checking.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Problem using pg_restore with -a option
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: problem with initlocation