From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: TODO: trigger features |
Date: | 2003-08-05 19:21:08 |
Message-ID: | 11824.1060111268@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
> Tom Lane wrote:
>> This can already be done by comparing old and new values, no?
>>
> No, this is not the case.
> UPDATE foo SET x=x, y=y
> is different from
> UPDATE foo SET y=y
> if triggers maintaining x are involved.
Only for what I would call extremely weird semantics of the triggers.
If a trigger preceding yours did the same action (assigned x to itself),
would you consider that something you needed to track? If so, how would
you find out about it? You couldn't.
If you want me to believe that the above is an important requirement,
you'd better convince me that it's sane, because I don't think so.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2003-08-05 19:26:16 | Re: logging stuff |
Previous Message | Andreas Pflug | 2003-08-05 19:15:55 | Re: TODO: trigger features |