Re: triggers on commit - Mailing list pgsql-sql

From Tom Lane
Subject Re: triggers on commit
Date
Msg-id 24236.1079709236@sss.pgh.pa.us
Whole thread Raw
In response to triggers on commit  (Erik Thiele <erik@thiele-hydraulik.de>)
Responses Re: triggers on commit  (Erik Thiele <erik@thiele-hydraulik.de>)
List pgsql-sql
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.
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql: FATAL 1: IDENT authentication failed for user error - Urgent pls
Next
From: Erik Thiele
Date:
Subject: Re: triggers on commit