Re: Order of trigger execution: AFTER DELETE ON EACH ROW doesn't appear to be working properly - Mailing list pgsql-sql

From Tom Lane
Subject Re: Order of trigger execution: AFTER DELETE ON EACH ROW doesn't appear to be working properly
Date
Msg-id 19331.1223922611@sss.pgh.pa.us
Whole thread Raw
In response to Order of trigger execution: AFTER DELETE ON EACH ROW doesn't appear to be working properly  ("Christopher Maier" <maier@med.unc.edu>)
List pgsql-sql
"Christopher Maier" <maier@med.unc.edu> writes:
> ... Based on debugging messages I added  
> to the triggers, it looks like the before row triggers fire for ALL  
> the rows first, THEN all the after row triggers fire.

That's correct.  After triggers are queued up and fired at end of
statement.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Christopher Maier"
Date:
Subject: Re: Problem with delete trigger: how to allow only triggers to delete a row?
Next
From: aklaver@comcast.net (Adrian Klaver)
Date:
Subject: Re: Order of trigger execution: AFTER DELETE ON EACH ROW doesn't appear to be working properly