Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNAMS-00056z-SS for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Jul 2016 02:57:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNAMS-0000uq-2B for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Jul 2016 02:57:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNALn-0000Ck-CX for pgsql-bugs@postgresql.org; Wed, 13 Jul 2016 02:56:39 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bNALj-00015M-OE for pgsql-bugs@postgresql.org; Wed, 13 Jul 2016 02:56:37 +0000 Received: from localhost ([127.0.0.1]:50395 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bNALg-000GF3-Iw for pgsql-bugs@postgresql.org; Wed, 13 Jul 2016 02:56:32 +0000 From: Andrew Gierth To: pgsql-bugs@postgresql.org Subject: Re: BUG #14235: inconsistencies with IS NULL / IS NOT NULL In-Reply-To: <8760sg96u2.fsf@news-spur.riddles.org.uk> (Andrew Gierth's message of "Fri, 08 Jul 2016 04:10:10 +0100") Message-ID: <87k2gqz27p.fsf@news-spur.riddles.org.uk> References: <20160708024746.1410.57282@wrigleys.postgresql.org> <8760sg96u2.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Wed, 13 Jul 2016 03:56:32 +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 >>>>> "Andrew" == Andrew Gierth writes: Andrew> It seems possible that this could be fixed by simply setting Andrew> argisrow=false for all the null tests generated in such cases. This turns out to be more somplicated than I thought. A lot of places look at argisrow to distinguish "simple" null tests from the standard-required logic for composite values. In some of the cases I've looked at, fixing the bug actually looks like it improves things (for example, in (row(1,a) IS NOT NULL), a can be deduced to be not null in the "not the null value" sense); but some places like match_clause_to_indexcol I'm less sure of. -- 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