Re: Proposal: revert behavior of IS NULL on row types - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: Proposal: revert behavior of IS NULL on row types
Date
Msg-id 87r3alql9s.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: Proposal: revert behavior of IS NULL on row types  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Proposal: revert behavior of IS NULL on row types  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Proposal: revert behavior of IS NULL on row types  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
>>>>> "David" == David G Johnston <david.g.johnston@gmail.com> writes:
>> 2. x IS NOT NULL  if and only if  NOT (x IS NULL)
David> ​I would rather prohibit "IS NOT NULL" altogether.​ If one needsDavid> to test "NOT (x IS NULL)" they can write
itthat way. 

Prohibiting IS NOT NULL is not on the cards; it's very widely used.
>> Whole-row vars when constructed never contain the null value.
David> ...but what does this mean in end-user terms?​

It means for example that this query:
 select y from x left join y on (x.id=y.id) where y is null;

would always return 0 rows.

--
Andrew (irc:RhodiumToad)



pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Proposal: revert behavior of IS NULL on row types
Next
From: Andrew Gierth
Date:
Subject: Re: Proposal: revert behavior of IS NULL on row types