Re: Need "InBetween" (not just Before and After) Trigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matt Doucleff <matt(at)digitalfountain(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need "InBetween" (not just Before and After) Trigger
Date: 2001-01-15 20:54:27
Message-ID: 28013.979592067@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matt Doucleff <matt(at)digitalfountain(dot)com> writes:
> For example, say I want to create a file when a row is inserted, and
> modify that file when the row is modified. If a transaction fails, I
> need to undo my changes to the filesystem.

Unless you want to implement your own undo log, I'd suggest rethinking
this. What you really want is a trigger fired at commit time, ie a
deferred trigger, so that you don't have to worry about rolling back
your outside actions. I believe we have that facility for foreign key
triggers, not sure if it's available for general use yet ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2001-01-15 21:00:12 Re: Re: PGAccess (or other GUI) RPM?
Previous Message Anthony E . Greene 2001-01-15 20:54:16 Re: PGAccess (or other GUI) RPM?