pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Pflug <Andreas.Pflug@web.de>
To: pgsql-performance@postgresql.org
Subject: Re: How to notice column changes in trigger
Date: Thu, 06 Mar 2003 17:09:40 +0100
Message-ID: <3E6772C4.5010005@web.de> (raw)
In-Reply-To: <1046966484.20270.94.camel@linda.lfix.co.uk>
References: <3E6762AA.8070206@web.de>
	<1046966484.20270.94.camel@linda.lfix.co.uk>

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





view thread (4+ messages)  latest in thread

Message-ID: <3E6772C4.5010005@web.de>
Permalink:  ../3E6772C4.5010005@web.de/
Also on:    postgresql.org/message-id/3E6772C4.5010005@web.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: Andreas.Pflug@web.de
  Subject: Re: How to notice column changes in trigger
  In-Reply-To: <3E6772C4.5010005@web.de>
  References: <3E6762AA.8070206@web.de> <1046966484.20270.94.camel@linda.lfix.co.uk> <3E6772C4.5010005@web.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox