Skip site navigation (1) Skip section navigation (2)

Re: Delete query takes exorbitant amount of time

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Karim Nassar <karim(dot)nassar(at)NAU(dot)EDU>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Delete query takes exorbitant amount of time
Date: 2005-03-25 06:58:20
Message-ID: 20845.1111733900@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> In that case there's a datatype mismatch between the referencing and
>> referenced columns, which prevents the index from being used for the
>> FK check.

> Is creating such a foreign key a WARNING yet?

I believe so as of 8.0.  It's a bit tricky since 8.0 does allow some
cross-type cases to be indexed, but IIRC we have a test that understands
about that...

			regards, tom lane

In response to

Responses

pgsql-performance by date

Next:From: Simon RiggsDate: 2005-03-25 10:18:37
Subject: Re: BUG #1552: massive performance hit between 7.4 and 8.0.1
Previous:From: Tom LaneDate: 2005-03-25 06:15:17
Subject: Re: Delete query takes exorbitant amount of time

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group