pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedCrazy Triggers
2+ messages / 2 participants
[nested] [flat]
* Crazy Triggers
@ 2003-05-28 21:05 Kris Kiger <kris@musicrebellion.com>
2003-05-28 22:12 ` Re: Crazy Triggers Stephan Szabo <sszabo@megazone23.bigpanda.com>
0 siblings, 1 reply; 2+ messages in thread
From: Kris Kiger @ 2003-05-28 21:05 UTC (permalink / raw)
To: ; +Cc: pgsql-admin
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!
Kris
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Crazy Triggers
2003-05-28 21:05 Crazy Triggers Kris Kiger <kris@musicrebellion.com>
@ 2003-05-28 22:12 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Szabo @ 2003-05-28 22:12 UTC (permalink / raw)
To: Kris Kiger <kris@musicrebellion.com>; +Cc: pgsql-admin
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-28 22:12 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 21:05 Crazy Triggers Kris Kiger <kris@musicrebellion.com>
2003-05-28 22:12 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
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