pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Richard van den Berg <richard.vandenberg@trust-factory.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Foreign key slows down copy/insert
Date: Thu, 14 Apr 2005 11:28:23 -0400
Message-ID: <1006.1113492503@sss.pgh.pa.us> (raw)
In-Reply-To: <425E88B7.6000203@familyhealth.com.au>
References: <425E6045.4060201@trust-factory.com>
	<425E792B.4020500@familyhealth.com.au>
	<425E7D96.6020201@trust-factory.com>
	<425E7F94.4080602@familyhealth.com.au>
	<425E8766.8070901@trust-factory.com>
	<425E88B7.6000203@familyhealth.com.au>

Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> No it certainly won't warn you.  You have _avoided_ the check entirely. 
>   That's why I was warning you...

> If you wanted to be really careful, you could:

Probably the better bet is to drop and re-add the FK constraint.

			regards, tom lane



view thread (24+ messages)  latest in thread

Message-ID: <1006.1113492503@sss.pgh.pa.us>
Permalink:  ../1006.1113492503@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1006.1113492503@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, chriskl@familyhealth.com.au, richard.vandenberg@trust-factory.com
  Subject: Re: Foreign key slows down copy/insert
  In-Reply-To: <1006.1113492503@sss.pgh.pa.us>

* 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