Re: Further thoughts about warning for costly FK checks - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Further thoughts about warning for costly FK checks
Date
Msg-id 87brmvz29a.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Further thoughts about warning for costly FK checks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> BTW, something that just occurred to me now: EXPLAIN is currently really
> designed only for SELECTs.  It would make sense to upgrade it for
> INSERT/UPDATE/DELETE to list the triggers that will get fired.  While
> we'd have to treat user triggers as black boxes, I think it would also
> be possible to "look inside" RI triggers and display the plans of the
> queries that will get invoked.  

It seems EXPLAIN ANALYZE at least ought to be able to show the complete plan
for even user triggers.

-- 
greg



pgsql-hackers by date:

Previous
From: Silvio Mazzaro
Date:
Subject: Problem on cluster initialization
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Doxygen?