Re: IF ROW( NEW ) <> ROW( OLD ) - Mailing list pgsql-general

From Richard Broersma
Subject Re: IF ROW( NEW ) <> ROW( OLD )
Date
Msg-id 396486430806271028q6dfc3614w9840452829ff123d@mail.gmail.com
Whole thread Raw
In response to Re: IF ROW( NEW ) <> ROW( OLD )  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, Jun 25, 2008 at 8:17 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I think IF ROW(NEW.*) <> ROW(OLD.*) will work in recent releases.
>
> Actually you'd better use IF ROW(NEW.*) IS DISTINCT FROM ROW(OLD.*) ...
> you really don't want to rely on <> as it will not give the behavior
> you want in the presence of null columns.

Thanks that worked!


--
Regards,
Richard Broersma Jr.

Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: compiling, performance of PostGreSQL 8.3 on 64-bit processors
Next
From: "Pavel Stehule"
Date:
Subject: Re: Problem with FOUND