Re: Triggers on columns - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Triggers on columns
Date
Msg-id CF636597-32B5-410B-A3EC-A315D734F049@gmail.com
Whole thread Raw
In response to Re: Triggers on columns  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Triggers on columns
List pgsql-hackers
On Sep 3, 2009, at 7:44 AM, Peter Eisentraut <peter_e@gmx.net> wrote:

> On Thu, 2009-09-03 at 16:25 +0900, Itagaki Takahiro wrote:
>> I'd like to check conditions by comparing actual values but not
>> a target of UPDATE statement because I think almost user expects
>> the former behavior. Unmodified UPDATE-targets are common case
>> if we use a framework that generates SQL statements internally.
>
> The SQL standard specifies that a trigger is fired if the column is
> mentioned in the UPDATE statement, independent of whether the value is
> actually changed through the update.

That is thorougly bizarre, IMO.

...Robert


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Triggers on columns
Next
From: Andrew Dunstan
Date:
Subject: Re: Triggers on columns