Re: How do FKs work? - Mailing list pgsql-sql

From Marc G. Fournier
Subject Re: How do FKs work?
Date
Msg-id 20041009214824.A54093@ganymede.hub.org
Whole thread Raw
In response to Re: How do FKs work?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On thing I failed to note here, that is probably critical ... its a 7.3 
database ...

On Sat, 9 Oct 2004, Tom Lane wrote:

> "Marc G. Fournier" <scrappy@hub.org> writes:
>> Have a table with two FKs on it ... 2 different fields in the table point
>> to the same field in another table ...
>
>> When I do an 'EXPLAIN ANALYZE DELETE FROM table WHERE field = #;', it
>> never comes back ... or, at lesat, takes a *very* long time ...
>
> Do you have indexes on the referencing columns?  Are they exactly the
> same datatype as the referenced column?  You can get really awful plans
> for the FK-checking queries if not.
>
>             regards, tom lane
>

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


pgsql-sql by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: How do FKs work?
Next
From: Janning Vygen
Date:
Subject: Re: How do FKs work?