Re: TRIGGERed INSERTS - Mailing list pgsql-sql

From Tom Lane
Subject Re: TRIGGERed INSERTS
Date
Msg-id 17482.1034950973@sss.pgh.pa.us
Whole thread Raw
In response to TRIGGERed INSERTS  ("Martin Crundall" <pgsql@ac6rm.net>)
Responses Re: TRIGGERed INSERTS
List pgsql-sql
"Martin Crundall" <pgsql@ac6rm.net> writes:
>    Some of the data tables have "AFTER INSERT" TRIGGERs on them that, in
> turn, insert some subordinate items into parallel data tables and the
> central pointer/ordering table.

It looks to me like AFTER triggers are fired upon return to the main
loop in postgres.c, thus only at the end of a querystring sent by the
client.  This is perhaps wrong, but I'm not sure that allowing them to
fire during plpgsql functions would be a good thing either.
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Locking that will delayed a SELECT
Next
From: Ludwig Lim
Date:
Subject: Re: Locking that will delayed a SELECT