Re: Speeding up DELETEs on table with FKs ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Speeding up DELETEs on table with FKs ...
Date: 2004-10-11 13:48:30
Message-ID: 4011.1097502510@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> On Mon, 11 Oct 2004, Tom Lane wrote:
>> "numeric", hm? Is the referenced column also of type numeric?

> Correct, and a join of the two tables appears to use both indices, altho
> one is of numeric(9,0) and the other numeric(12,0) ... could that
> difference post a problem from a FK perspective that a SELECT/JOIN
> wouldn't show?

No. I wonder though how big a speed boost you'd get from converting
these columns (and all the ones linked to them) to BIGINT ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-10-11 13:57:25 Re: Unit testing
Previous Message Neil Conway 2004-10-11 13:16:41 Re: Unit testing