Re: triggers on commit

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Erik Thiele <erik(at)thiele-hydraulik(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: triggers on commit
Date: 2004-03-19 15:13:56
Message-ID: 24236.1079709236@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Erik Thiele <erik(at)thiele-hydraulik(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Robert Creager 2004-03-19 15:26:25 CREATE TABLE LIKE question
Previous Message Tom Lane 2004-03-19 15:12:11 Re: psql: FATAL 1: IDENT authentication failed for user error - Urgent pls