Re: Triggers on columns
От | Peter Eisentraut |
---|---|
Тема | Re: Triggers on columns |
Дата | |
Msg-id | 1251985890.4154.13.camel@fsopti579.F-Secure.com обсуждение исходный текст |
Ответ на | Re: Triggers on columns (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: Triggers on columns
|
Список | pgsql-hackers |
On Thu, 2009-09-03 at 07:57 -0400, Robert Haas wrote: > On Sep 3, 2009, at 7:44 AM, Peter Eisentraut <peter_e@gmx.net> wrote: > > 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. Well, if you find that bizarre, consider the existing behavior: Why should an ON UPDATE row trigger fire when none of the values of the row's columns actually change? I think if you read TRIGGER ON UPDATE as TRIGER ON UPDATE OF <all columns> then it makes some sense.
В списке pgsql-hackers по дате отправления: