Re: pg_restore and create FK without verification check

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_restore and create FK without verification check
Дата
Msg-id 15395.1069863713@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_restore and create FK without verification check  (ow <oneway_111@yahoo.com>)
Ответы Re: pg_restore and create FK without verification check
Re: pg_restore and create FK without verification check
Список pgsql-hackers
ow <oneway_111@yahoo.com> writes:
> --- Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Right, any such physical dump would be limited to restoring a whole
>> cluster as-is: no imports into other clusters, no selectivity, no fancy
>> games.

> But that would not help people who would HAVE to use pg_dump/pg_restore (e.g.
> to backup/restore a single schema), would it? Depending on the db size, etc.,
> creation of FK constraint(s) may take many hours. How should this be handled
> then?

Quite honestly, I think they should check their foreign keys.  In a
partial restore situation there is no guarantee that the referenced
table and the referencing table are being restored at the same time from
the same dump.  An override in that situation looks like a great tool
for shooting yourself in the foot.

People might be more interested in debating this topic with you if we
hadn't discussed it at length just a couple months back.  There wasn't
consensus then that we had to offer an escape hatch, and you've not
offered any argument that wasn't made before.
        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: detecting poor query plans
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: 7.4final regression failure on uw713