Re: TRIGGERed INSERTS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql(at)ac6rm(dot)net
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: TRIGGERed INSERTS
Date: 2002-10-18 14:22:53
Message-ID: 17482.1034950973@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Martin Crundall" <pgsql(at)ac6rm(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ludwig Lim 2002-10-18 15:02:34 Re: Locking that will delayed a SELECT
Previous Message Martin Crundall 2002-10-18 13:59:58 TRIGGERed INSERTS