Re: triggers on commit - Mailing list pgsql-sql

From Erik Thiele
Subject Re: triggers on commit
Date
Msg-id 20040319162758.0eae6612.erik@thiele-hydraulik.de
Whole thread Raw
In response to Re: triggers on commit  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Fri, 19 Mar 2004 10:13:56 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Erik Thiele <erik@thiele-hydraulik.de> writes:
> > now. what i wanted to do is ensure that this is done correctly and
> > otherwise abort the transaction.
> > of course this check needs to be done at the commit time, because if
> > i do it on statement level, it cannot work, since i cannot change
> > two tables at the same time.
> 
> I believe "deferred AFTER" triggers are fired just before commit.

i don't find this in the documentation. i only know triggers which run
before insert/update/delete or directly (!) after, not waiting until
commit.


cya & thx!
erik

-- 
Erik Thiele


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: triggers on commit
Next
From: Robert Creager
Date:
Subject: CREATE TABLE LIKE question