Re: COPY performance

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: COPY performance
Дата
Msg-id 20020413121415.J86939-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: COPY performance  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Ответы Re: COPY performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Sat, 13 Apr 2002, Nigel J. Andrews wrote:

> > Also, you should probably leave the foreign key reference off the table
> > and add it after you load the data.
>
> I should have mentioned that I'm doing the copy in to the table in a
> transaction block with all constraints deferred. That should mean it's only at
> the commit stage that foreign key will be checked right?

With the definition shown, I believe your constraint is not deferrable so
setting the constraint mode to deferred won't help. In any case it'd still
need to be saving the information on the triggers to run.



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

Предыдущее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: COPY performance
Следующее
От: Joe Conway
Дата:
Сообщение: Re: COPY performance