Re: Speeding up DELETEs on table with FKs ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Speeding up DELETEs on table with FKs ...
Date
Msg-id 4011.1097502510@sss.pgh.pa.us
Whole thread Raw
In response to Re: Speeding up DELETEs on table with FKs ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
List pgsql-hackers
"Marc G. Fournier" <scrappy@postgresql.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


pgsql-hackers by date:

Previous
From: "Neil Conway"
Date:
Subject: Re: Unit testing
Next
From: Andrew Dunstan
Date:
Subject: Re: Unit testing