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 1hm29a-0006C9-33 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Jul 2019 20:28:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hm29Y-000156-SS for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Jul 2019 20:28:24 +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 1hm29Y-00014x-L8 for pgsql-bugs@lists.postgresql.org; Fri, 12 Jul 2019 20:28:24 +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 1hm29W-0000r5-5t for pgsql-bugs@lists.postgresql.org; Fri, 12 Jul 2019 20:28:24 +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 x6CKSCug005672; Fri, 12 Jul 2019 16:28:13 -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: <23597.1562886074@sss.pgh.pa.us> 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> <18788.1562797589@sss.pgh.pa.us> <21234.1562801346@sss.pgh.pa.us> <19241.1562880007@sss.pgh.pa.us> <23597.1562886074@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 11 Jul 2019 19:01:14 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5670.1562963292.1@sss.pgh.pa.us> Date: Fri, 12 Jul 2019 16:28:12 -0400 Message-ID: <5671.1562963292@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Peter Geoghegan writes: >> Interesting approach. I certainly prefer it to the alternative >> approach of framing the problem as a visibility concern. > Yes, I certainly like this better than my previous attempt. Re-reading the patch, I realized that it wasn't using the ExecutorState infrastructure anymore, except for a short-lived memory context. So we can get an additional small savings by dropping the executor dependency and just making a temp context for ourselves. Pushed with that improvement. regards, tom lane