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

From Tom Lane
Subject Re: When is a record NULL?
Date
Msg-id 1764.1248459031@sss.pgh.pa.us
Whole thread Raw
In response to Re: When is a record NULL?  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: When is a record NULL?  ("David E. Wheeler" <david@kineticode.com>)
Re: When is a record NULL?  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> There's no single test, but you can see if it's an empty row with:
>   x IS NULL AND x IS DISTINCT FROM NULL
> And you can see if it's a "real" NULL by:
>   x IS NULL AND x IS NOT DISTINCT FROM NULL

Hmmm ... that suggests that we may not be handling IS DISTINCT FROM
correctly for rowtypes.  I haven't read that part of the spec, but
I would've guessed that the spec wants it to be consistent with
IS NULL.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: When is a record NULL?
Next
From: "David E. Wheeler"
Date:
Subject: Re: When is a record NULL?