From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14235: inconsistencies with IS NULL / IS NOT NULL
Date: Sat, 23 Jul 2016 02:37:09 +0100
Message-ID: <87a8h9qh2v.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <19193.1469233348@sss.pgh.pa.us>
References: <20160708024746.1410.57282@wrigleys.postgresql.org>
<8760sg96u2.fsf@news-spur.riddles.org.uk>
<10227.1469218904@sss.pgh.pa.us>
<87zip9qti4.fsf@news-spur.riddles.org.uk>
<17567.1469230815@sss.pgh.pa.us>
<18527.1469232321@sss.pgh.pa.us>
<87mvl9qkog.fsf@news-spur.riddles.org.uk>
<19193.1469233348@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>> Yeah, but the main visible effect of that has been a stream of "you
>> have to use NOT (x IS NULL) rather than (x IS NOT NULL)" responses
>> to people having trouble with this.
Tom> I don't offhand recall any such complaints on pgsql-bugs. Maybe
Tom> there have been some on IRC.
Indeed so.
As an aside, while looking back through logs I found this, which was
reported as bug #7808 in 2013 and is still unfixed:
postgres=# select * from unnest(array[row('a',1)::c1,null::c1]) u;
ERROR: function returning set of rows cannot return null value
(it came up in the context of a "how to strip nulls from an array"
question; array(select u from unnest(a) u where u is not null) obviously
works only for scalars, and you need not (u is null) instead.)
>> Is there a single reported case where anyone has actually needed the
>> spec's version of (x IS NOT NULL) for a composite type?
Tom> By definition, we get no "reports" for a case where something
Tom> works as someone expects. So you're demanding proof that cannot
Tom> exist.
I meant "reported" in a more general sense that bug reports, obviously.
--
Andrew (irc:RhodiumToad)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us
Subject: Re: BUG #14235: inconsistencies with IS NULL / IS NOT NULL
In-Reply-To: <87a8h9qh2v.fsf@news-spur.riddles.org.uk>
References: <20160708024746.1410.57282@wrigleys.postgresql.org> <8760sg96u2.fsf@news-spur.riddles.org.uk> <10227.1469218904@sss.pgh.pa.us> <87zip9qti4.fsf@news-spur.riddles.org.uk> <17567.1469230815@sss.pgh.pa.us> <18527.1469232321@sss.pgh.pa.us> <87mvl9qkog.fsf@news-spur.riddles.org.uk> <19193.1469233348@sss.pgh.pa.us> <87a8h9qh2v.fsf@news-spur.riddles.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox