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

Re: When is a record NULL?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Brendan Jurd <direvus(at)gmail(dot)com>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: When is a record NULL?
Date: 2009-07-25 16:24:11
Message-ID: 1248539051.2759.627.camel@jdavis (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Fri, 2009-07-24 at 15:47 -0700, David E. Wheeler wrote:
>      WHILE (NOT rec_have IS NULL AND rec_have IS DISTINCT FROM NULL)
>         OR (NOT rec_want IS NULL AND rec_want IS DISTINCT FROM NULL)

I don't think you want the "NOT x IS NULL" part at all -- that will
evaluate to false when x = rec(NULL,NULL). I think you just want the "x
IS DISTINCT FROM NULL" part, right? Will that work?

	Jeff Davis

In response to


pgsql-hackers by date

Next:From: Kevin GrittnerDate: 2009-07-25 16:42:04
Subject: Re: When is a record NULL?
Previous:From: Kevin GrittnerDate: 2009-07-25 16:15:39
Subject: Re: When is a record NULL?

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