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 1hl1eS-00027A-4I for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2019 01:44:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hl1eP-00024b-Ow for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2019 01:44:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hl1eP-00024D-E7 for pgsql-bugs@lists.postgresql.org; Wed, 10 Jul 2019 01:44:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hl1eI-0004et-99 for pgsql-bugs@lists.postgresql.org; Wed, 10 Jul 2019 01:44:03 +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 x6A1hsHF020826; Tue, 9 Jul 2019 21:43:54 -0400 From: Tom Lane To: Peter Geoghegan cc: Manuel Rigger , PostgreSQL mailing lists Subject: Re: ERROR: found unexpected null value in index In-reply-to: References: <9288.1562720919@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Tue, 09 Jul 2019 18:30:56 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20824.1562723034.1@sss.pgh.pa.us> Date: Tue, 09 Jul 2019 21:43:54 -0400 Message-ID: <20825.1562723034@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Tue, Jul 9, 2019 at 6:08 PM Tom Lane wrote: >> The error is coming from the planner's get_actual_variable_range: >> and I think it's entirely within its rights to complain, because it >> set up the scan key to reject nulls. In short, somebody seems to >> have broken btrees' processing of SK_ISNULL | SK_SEARCHNOTNULL scankeys, >> and they broke it in v11, because prior versions don't show this failure. > It's not obvious to me why that might be. I'll run a "git bisect" to > track down the offending commit. I just finished doing that, and indeed it fingers 3ca930fc3 as the first bad commit. Seems like it must have exposed a pre-existing problem though? Too tired to look further tonight. regards, tom lane