Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group