Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQlsV-00060l-3k for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Jul 2016 01:37:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bQlsU-0000S7-J5 for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Jul 2016 01:37:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bQlsT-0000Rq-VR for pgsql-bugs@postgresql.org; Sat, 23 Jul 2016 01:37:18 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bQlsM-0007qI-NF for pgsql-bugs@postgresql.org; Sat, 23 Jul 2016 01:37:17 +0000 Received: from localhost ([127.0.0.1]:55685 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bQlsL-000I3l-9J; Sat, 23 Jul 2016 01:37:09 +0000 From: Andrew Gierth To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14235: inconsistencies with IS NULL / IS NOT NULL In-Reply-To: <19193.1469233348@sss.pgh.pa.us> (Tom Lane's message of "Fri, 22 Jul 2016 20:22:28 -0400") Message-ID: <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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Sat, 23 Jul 2016 02:37:09 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org >>>>> "Tom" == Tom Lane 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