pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Thiele <erik@thiele-hydraulik.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: triggers on commit
Date: Fri, 19 Mar 2004 10:13:56 -0500
Message-ID: <24236.1079709236@sss.pgh.pa.us> (raw)
In-Reply-To: <20040319140445.2c342b28.erik@thiele-hydraulik.de>
References: <20040319140445.2c342b28.erik@thiele-hydraulik.de>

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



view thread (3+ messages)  latest in thread

Message-ID: <24236.1079709236@sss.pgh.pa.us>
Permalink:  ../24236.1079709236@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24236.1079709236@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, erik@thiele-hydraulik.de
  Subject: Re: triggers on commit
  In-Reply-To: <24236.1079709236@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox