Re: How to notice column changes in trigger

From: Andreas Pflug <Andreas(dot)Pflug(at)web(dot)de>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to notice column changes in trigger
Date: 2003-03-06 16:09:40
Message-ID: 3E6772C4.5010005@web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Oliver Elphick wrote:

> IF NEW.b = OLD.b OR (NEW.b IS NULL AND OLD.b IS NULL) THEN
> -- b has not changed
> ...
> END IF;
>
>
This doesn't cover case 3, since UPDATE ... SET b=b will lead to NEW.b=OLD.b

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2003-03-06 17:05:37 Re: How to notice column changes in trigger
Previous Message Oliver Elphick 2003-03-06 16:01:24 Re: How to notice column changes in trigger