Re: Function that returns Boolean

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: sharmi_jo(at)yahoo(dot)com
Cc: General postgres mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Function that returns Boolean
Date: 2009-02-23 18:15:18
Message-ID: 396486430902231015l195dd4f1j68db462410e3f86c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 23, 2009 at 9:39 AM, SHARMILA JOTHIRAJAH
<sharmi_jo(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dot Yet 2009-02-23 18:20:25 Re: Product Roadmap question and request for recommendation
Previous Message Keaton Adams 2009-02-23 18:09:29 Product Roadmap question and request for recommendation