Re: undeleteable records - Mailing list pgsql-general

From Jan Wieck
Subject Re: undeleteable records
Date
Msg-id 200107181122.f6IBM8d21056@jupiter.us.greatbridge.com
Whole thread Raw
In response to Re: undeleteable records  (Ryan Mahoney <ryan@paymentalliance.net>)
List pgsql-general
Ryan Mahoney wrote:
> Hey Justin - Tara and I figured out that a trigger on this table - which is
> supposed to archive deleted information - blocks deletes altogether.  We
> lifted this trigger from open ACS... we are having some difficulties with
> all such triggers.  When we re-create the table w/o the trigger all is
> well.  Hope to get some time to figure out what is wrong with these damn
> triggers! ;)

    All  BEFORE  triggers  suppress  the  original operation when
    returning NULL instead of NEW/OLD (NEW on INSERT/UPDATE,  OLD
    on DELETE). The return value of AFTER triggers is ignored.

    Could  it  be  that  the  triggers where designed to be AFTER
    triggers and you accidentially declared them as BEFORE?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


pgsql-general by date:

Previous
From: "Dr. Evil"
Date:
Subject: Re: PG rules! (RULES being the word ;->)
Next
From: Nils Zonneveld
Date:
Subject: Re: PG rules! (RULES being the word ;->)