when is a DELETE FK trigger planned? - Mailing list pgsql-performance

From Andrew Lazarus
Subject when is a DELETE FK trigger planned?
Date
Msg-id 010161370.20080225125626@pillette.com
Whole thread Raw
Responses Re: when is a DELETE FK trigger planned?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
I have a cascading delete trigger that is obviously using a seqscan.
(Explain analyze shows that trigger as taking over 1000s while all
other triggers are <1s. The value in test delete didn't even appear in
this child table, so an index scan would have been almost instant.)

If I do
DELETE FROM child_table WHERE fkey = value;
I get an index scan. Why doesn't the trigger do that, and how can I
force it to re-plan?


pgsql-performance by date:

Previous
From: Joel Stevenson
Date:
Subject: Re: LISTEN / NOTIFY performance in 8.3
Next
From: "Stephen Denne"
Date:
Subject: Re: Weird issue with planner choosing seq scan