Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adjLq-0008EQ-Pu for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 19:00:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adjLq-0007ge-C2 for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 19:00:54 +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) (envelope-from ) id 1adjLp-0007g2-J0 for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 19:00:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adjLm-0006BV-DT for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 19:00:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u29J0kBA009409; Wed, 9 Mar 2016 14:00:46 -0500 From: Tom Lane To: gtakahashi@palantir.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14010: Multi-valued Index-only scans do not properly handle nulls in search In-reply-to: <20160309165136.8903.83559@wrigleys.postgresql.org> References: <20160309165136.8903.83559@wrigleys.postgresql.org> Comments: In-reply-to gtakahashi@palantir.com message dated "Wed, 09 Mar 2016 16:51:36 +0000" Date: Wed, 09 Mar 2016 14:00:46 -0500 Message-ID: <9408.1457550046@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 gtakahashi@palantir.com writes: > select a,b from test_table where (a,b) > ('a','a') order by a,b; > returns: > a | b > ---+--- > a | b > b | a > (2 rows) > create index on test_table (a,b); > The same query now returns: > a | b > ---+--- > a | b > (1 row) Ugh. This bug just passed its tenth birthday ... kind of astonishing that nobody found it before. Will fix, thanks for the report! regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs