Re: Upgrade time, dump+restore trouble.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Upgrade time, dump+restore trouble.
Дата
Msg-id 12597.1192662093@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Upgrade time, dump+restore trouble.  (Jesper Krogh <jesper@krogh.cc>)
Ответы Re: Upgrade time, dump+restore trouble.
Список pgsql-admin
Jesper Krogh <jesper@krogh.cc> writes:
> Tom Lane wrote:
>> Drop the constraints in the source database.

> That would be my workaround for the problem. But isn't it somehow
> desirable that pg_dumpall | psql "allways" would work?

Well, sure.  The reason why this sort of thing is deprecated is exactly
that the database can't promise it will work all the time.  The DB has
no way to know that your constraints do something they're not supposed
to, and in particular no way to infer that there's a specific data
loading order needed to keep the constraint from failing.

We do allow you to do it, but if it breaks you get to keep both pieces.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: postgresql para windows para 64 bits
Следующее
От: Jesper Krogh
Дата:
Сообщение: Re: Upgrade time, dump+restore trouble.