From: Jan Wieck <JanWieck@Yahoo.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: Neil Saunders <n.j.saunders@gmail.com>
Cc: Leif B. Kristensen <leif@solumslekt.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Triggers
Date: Tue, 29 Nov 2005 18:25:02 -0500
Message-ID: <438CE34E.1040507@Yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0511231043320.27214-100000@matrix.gatewaynet.com>
References: <Pine.LNX.4.44.0511231043320.27214-100000@matrix.gatewaynet.com>
On 11/23/2005 3:44 AM, Achilleus Mantzios wrote:
> O Neil Saunders έγραψε στις Nov 22, 2005 :
>
>> And change AFER INSERT to BEFORE INSERT
>
> 1) it doesnt make any difference since we are updating
> a different table than the trigger's one
In this particular case it doesn't. In general, another BEFORE trigger
can still modify the new row, so your trigger might not see the final
values in NEW.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: JanWieck@Yahoo.com, achill@matrix.gatewaynet.com, n.j.saunders@gmail.com, leif@solumslekt.org
Subject: Re: Triggers
In-Reply-To: <438CE34E.1040507@Yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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