Re: When is a record NULL?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: When is a record NULL?
Date: 2009-07-23 23:22:37
Message-ID: 15091.1248391357@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> And yet they're DISTINCT FROM each other if either or both contain
> NULLs and some other values?

Well, that would depend on what the values were and in what columns...

> It seems to me that, to be consistent, it
> should be:

> select ROW(1, NULL) IS DISTINCT FROM ROW(2, NULL);
> ?column?
> ----------
> f

Dunno how you can possibly come to that conclusion. Those row
values are certainly distinct (according to both PG and the spec).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2009-07-24 00:05:56 Re: WIP: to_char, support for EEEE format
Previous Message David E. Wheeler 2009-07-23 23:17:00 Re: When is a record NULL?