pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Nigel J. Andrews <nandrews@investsystems.co.uk>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: COPY performance
Date: Sat, 13 Apr 2002 12:18:59 -0700 (PDT)
Message-ID: <20020413121415.J86939-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0204131959070.3278-100000@ponder.fairway2k.co.uk>


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.





view thread (10+ messages)  latest in thread

Message-ID: <20020413121415.J86939-100000@megazone23.bigpanda.com>
Permalink:  ../20020413121415.J86939-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020413121415.J86939-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, nandrews@investsystems.co.uk, pgsql-general@postgresql.org
  Subject: Re: COPY performance
  In-Reply-To: <20020413121415.J86939-100000@megazone23.bigpanda.com>
  References: <Pine.LNX.4.21.0204131959070.3278-100000@ponder.fairway2k.co.uk> <20020413121415.J86939-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox