Re: Order of triggers and sequences... - Mailing list pgsql-general

From Terry Lee Tucker
Subject Re: Order of triggers and sequences...
Date
Msg-id 200604290842.55618.terry@esc1.com
Whole thread Raw
In response to Order of triggers and sequences...  (Alex Mayrhofer <axelm@nona.net>)
List pgsql-general
On Saturday 29 April 2006 08:34 am, Alex Mayrhofer <axelm@nona.net> thus
communicated:
--> Hi,
-->
--> i'm about to implement a trigger on a table with an id field populated by
 a --> sequence (the usual 'id SERIAL NOT NULL PRIMARY KEY').
-->
--> Just a short (probably lame) question: Would a "BEFORE INSERT" row level
--> trigger already see a populated 'id' column, or would that happen after
 all --> triggers on the actual insert?
-->
--> thanks,
-->
--> Alex
-->

In my experience, all the triggers see all the data all the time in varying
combinations of the OLD and NEW buffers.

pgsql-general by date:

Previous
From: Alex Mayrhofer
Date:
Subject: Order of triggers and sequences...
Next
From: "Florian G. Pflug"
Date:
Subject: Re: Alternative for vacuuming queue-like tables