Re: COPY performance - Mailing list pgsql-general

From Stephan Szabo
Subject Re: COPY performance
Date
Msg-id 20020413121415.J86939-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: COPY performance  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Responses Re: COPY performance
List 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 by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: COPY performance
Next
From: Joe Conway
Date:
Subject: Re: COPY performance