Re: When is a record NULL? - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: When is a record NULL?
Date
Msg-id C2F66615-CC76-4BD5-A956-6BE7A5E4A5F6@kineticode.com
Whole thread Raw
In response to Re: When is a record NULL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: When is a record NULL?
List pgsql-hackers
On Jul 23, 2009, at 4:08 PM, Tom Lane wrote:

> This is per SQL standard.  IS NULL is true if *all* the record's
> fields are null; IS NOT NULL is true if *none* of them are.
>
> Yeah, it's a bit dubious, but that's what they said.

And yet they're DISTINCT FROM each other if either or both contain  
NULLs and some other values? It seems to me that, to be consistent, it  
should be:
    select ROW(1, NULL) IS DISTINCT FROM ROW(2, NULL);    ?column?    ----------    f

No?

Best,

David


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: When is a record NULL?
Next
From: Tom Lane
Date:
Subject: Re: When is a record NULL?