Re: Function that returns Boolean - Mailing list pgsql-general

From Richard Broersma
Subject Re: Function that returns Boolean
Date
Msg-id 396486430902231015l195dd4f1j68db462410e3f86c@mail.gmail.com
Whole thread Raw
In response to Function that returns Boolean  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
List pgsql-general
On Mon, Feb 23, 2009 at 9:39 AM, SHARMILA JOTHIRAJAH
<sharmi_jo@yahoo.com> wrote:

>    IF ( newValue != oldValue)

One good piece of advice that Tom Lane pointed out to me was:

IF ( newValue IS DISTINCT FROM oldValue )

is better due to (what may be) the unexpected results of equality
testing when NULL values are thrown into the mix.


--
Regards,
Richard Broersma Jr.

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

pgsql-general by date:

Previous
From: Keaton Adams
Date:
Subject: Product Roadmap question and request for recommendation
Next
From: Dot Yet
Date:
Subject: Re: Product Roadmap question and request for recommendation