pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Kris Kiger <kris@musicrebellion.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Crazy Triggers
Date: Wed, 28 May 2003 15:12:51 -0700 (PDT)
Message-ID: <20030528151115.V41165-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <3ED52490.2050107@musicrebellion.com>

sszabo@bigpanda.com

On Wed, 28 May 2003, Kris Kiger wrote:

> This will probably be a quick question for some of you with more
> experience than I.  When you define a trigger to occur before or after
> an event, does this mean that the trigger is spawned as part of the
> current event transaction, or is it completed as a seperate transaction
> after the event is processed?  In advance, thanks for the help!

It's part of the same transaction.  If I'm remembering the details right,
the before triggers happen right before the event, currently non-deferred
after triggers happen at the end of the statement that caused the event
(although this may change in the future) and deferred after triggers (for
deferred foreign keys) happen at the end of the transaction during the
commit.




view thread (2+ messages)

Message-ID: <20030528151115.V41165-100000@megazone23.bigpanda.com>
Permalink:  ../20030528151115.V41165-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030528151115.V41165-100000@megazone23.bigpanda.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, kris@musicrebellion.com
  Subject: Re: Crazy Triggers
  In-Reply-To: <20030528151115.V41165-100000@megazone23.bigpanda.com>
  References: <3ED52490.2050107@musicrebellion.com> <20030528151115.V41165-100000@megazone23.bigpanda.com>

* 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