From: Erik Thiele <erik@thiele-hydraulik.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: triggers on commit
Date: Fri, 19 Mar 2004 16:27:58 +0100
Message-ID: <20040319162758.0eae6612.erik@thiele-hydraulik.de> (raw)
In-Reply-To: <24236.1079709236@sss.pgh.pa.us>
References: <20040319140445.2c342b28.erik@thiele-hydraulik.de>
<24236.1079709236@sss.pgh.pa.us>
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
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: erik@thiele-hydraulik.de, tgl@sss.pgh.pa.us
Subject: Re: triggers on commit
In-Reply-To: <20040319162758.0eae6612.erik@thiele-hydraulik.de>
* 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