Thread: Catching delete

Catching delete

From
Jamie Deppeler
Date:
Hi

have a pretty simple question i know its possible to catch a delete
statement through a trigger is it possible to prevent the delete from
happing through the same trigger function?

Re: Catching delete

From
Michael Fuhr
Date:
On Fri, Feb 11, 2005 at 09:28:04AM +1100, Jamie Deppeler wrote:
>
> have a pretty simple question i know its possible to catch a delete
> statement through a trigger is it possible to prevent the delete from
> happing through the same trigger function?

The trigger documentation describes how a trigger can affect the
attempted operation:

http://www.postgresql.org/docs/8.0/static/triggers.html
http://www.postgresql.org/docs/8.0/static/plpgsql-trigger.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/