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 1hlL2x-0000Qr-3f for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2019 22:26: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 1hlL2v-0007Pb-MY for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2019 22:26: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 1hlL2v-0007PT-Eg for pgsql-bugs@lists.postgresql.org; Wed, 10 Jul 2019 22:26:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlL2t-0001LK-9o for pgsql-bugs@lists.postgresql.org; Wed, 10 Jul 2019 22:26:41 +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 x6AMQTQk018789; Wed, 10 Jul 2019 18:26:29 -0400 From: Tom Lane To: Peter Geoghegan cc: Andres Freund , Manuel Rigger , PostgreSQL mailing lists Subject: Re: ERROR: found unexpected null value in index In-reply-to: References: <9288.1562720919@sss.pgh.pa.us> <20825.1562723034@sss.pgh.pa.us> <8251.1562726821@sss.pgh.pa.us> <12489.1562788970@sss.pgh.pa.us> <20190710201547.l6vs6y3cf2tuac73@alap3.anarazel.de> <13550.1562790349@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Wed, 10 Jul 2019 15:14:08 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18787.1562797589.1@sss.pgh.pa.us> Date: Wed, 10 Jul 2019 18:26:29 -0400 Message-ID: <18788.1562797589@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Wed, Jul 10, 2019 at 1:25 PM Tom Lane wrote: >> I wonder if we'd be better off to switch over to using data directly >> from the index entry, rather than trying to recover it from the heap. > Maybe that problem has nothing to do with what you said, but I was > reminded of the fact that it's far from clear how effective > kill_prior_tuple actually is in the real world (i.e. with > concurrency). I guess that your suggestion would make it even less > likely that LP_DEAD hint bits would be set by > get_actual_variable_range() scans, because there would be no > opportunity to check the heap. I was imagining it would still check the heap, if necessary, to verify that it'd found a tuple passing the given snapshot. > Wasn't one of the goals of commit > 3ca930fc39c to make it more likely that extrema values would be killed > by get_actual_variable_range() scans, for the benefit of future > get_actual_variable_range() scans? Yes, and my point was that we still need that effect in some form. But once we've found that there's a tuple that's "live enough" (for some definition of that) we could pull the actual data from the index not heap. regards, tom lane