Re: undeleteable records

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: undeleteable records
Дата
Msg-id 200107181122.f6IBM8d21056@jupiter.us.greatbridge.com
обсуждение исходный текст
Ответ на Re: undeleteable records  (Ryan Mahoney <ryan@paymentalliance.net>)
Список 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 по дате отправления:

Предыдущее
От: "Dr. Evil"
Дата:
Сообщение: Re: PG rules! (RULES being the word ;->)
Следующее
От: Nils Zonneveld
Дата:
Сообщение: Re: PG rules! (RULES being the word ;->)