Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmCVj-00026a-4A for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2019 06:59:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmCVh-0004i9-Bm for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2019 06:59:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmCVh-0004i2-5o for pgsql-bugs@lists.postgresql.org; Wed, 23 Jan 2019 06:59:41 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmCVg-0004A8-1H for pgsql-bugs@lists.postgresql.org; Wed, 23 Jan 2019 06:59:40 +0000 Received: from [192.168.127.1] (port=52109 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gmCVd-000Hi7-94; Wed, 23 Jan 2019 06:59:37 +0000 Received: from [127.0.0.1] (port=26515 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gmCVc-0004TW-KJ; Wed, 23 Jan 2019 06:59:36 +0000 From: Andrew Gierth To: pgsql-bugs@lists.postgresql.org Cc: sergey@romanovsky.org, Zhijiang Li Subject: Re: BUG #15604: NOT IN condition incorrectly returns False In-Reply-To: <87fttj3m43.fsf@news-spur.riddles.org.uk> (Andrew Gierth's message of "Wed, 23 Jan 2019 06:57:36 +0000") Message-ID: <87bm473ln6.fsf@news-spur.riddles.org.uk> References: <15604-22de62eff9d98199@postgresql.org> <87fttj3m43.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Wed, 23 Jan 2019 06:59:36 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Andrew" == Andrew Gierth writes: Andrew> The condition 1 NOT IN (2,NULL) is equivalent to (1=2) OR Andrew> (1=NULL), I mean NOT ((1=2) OR (1=NULL)) of course, but NOT (NULL) is still NULL. -- Andrew (irc:RhodiumToad)