Re: Deletes and large tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edmund Dengler <edmundd(at)eSentire(dot)com>
Cc: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Deletes and large tables
Date: 2005-06-10 16:07:58
Message-ID: 23013.1118419678@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edmund Dengler <edmundd(at)eSentire(dot)com> writes:
> This table has 3 foreign keys, but that should not matter during deletes.

Richard was inquiring about foreign keys linking *into* this table, not
out of it.

In particular, foreign keys that don't have indexes on the referencing
columns; those will incur seqscans to check for appearances of the value
you are deleting.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Edmund Dengler 2005-06-10 16:29:52 Re: Deletes and large tables
Previous Message David Siebert 2005-06-10 16:06:02 8.0 Install issues