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 1i7KWw-0002Jt-K3 for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Sep 2019 14:20:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i7KWv-0001ND-Ek for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Sep 2019 14:20:33 +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 1i7KWv-0001N6-4j for pgsql-bugs@lists.postgresql.org; Mon, 09 Sep 2019 14:20:33 +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.92) (envelope-from ) id 1i7KWs-0002NI-Nh for pgsql-bugs@lists.postgresql.org; Mon, 09 Sep 2019 14:20:32 +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 x89EKRPS028985; Mon, 9 Sep 2019 10:20:27 -0400 From: Tom Lane To: Andres Freund cc: yi huang , pgsql-bugs@lists.postgresql.org Subject: Re: PostgreSQL12 crash bug report In-reply-to: <20190909140549.od4cjv5adnqxzdzx@alap3.anarazel.de> References: <28807.1564614449@sss.pgh.pa.us> <20190801004000.3xis75ulpun4ha3p@alap3.anarazel.de> <5285.1564627060@sss.pgh.pa.us> <20190801043658.4hqm7k3iarmq3q7i@alap3.anarazel.de> <29185.1566663202@sss.pgh.pa.us> <20190824225401.gii25wnxwxtx6evg@alap3.anarazel.de> <20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de> <20190827010847.zdk6xvu6h3ty5v42@alap3.anarazel.de> <17374.1566925597@sss.pgh.pa.us> <20190905195911.cxqf4r3umf5fgph4@alap3.anarazel.de> <20190909140549.od4cjv5adnqxzdzx@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 09 Sep 2019 07:05:49 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28983.1568038826.1@sss.pgh.pa.us> Date: Mon, 09 Sep 2019 10:20:27 -0400 Message-ID: <28984.1568038827@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-09-05 12:59:11 -0700, Andres Freund wrote: >> I tried for a while to develop one for mark/restore of IndexOnlyScans, >> but I concluded that that code is basically dead right now. Every scan >> node of a normal that gets modified or needs a rowmark implies having >> ctid as part of the targetlist. And we neither allow ctid to be part of >> index definitions, nor understand that we actually kinda know the ctid >> from within the index scan (HOT would make using the tid hard). So the >> relevant code in nodeIndexOnly.c seems dead? > I wonder if, on master, we should make ExecIndexOnlyMarkPos(), > ExecIndexOnlyRestrPos() ERROR out in case they're hit for an EPQ > relation, given that they ought to be unreachable. I'd vote against. The chain of reasoning that says they're unreachable is long and involves mostly code that's nowhere near there, so when/if somebody made a change that broke that reasoning, they'd not necessarily notice that the ERROR has to be undone. regards, tom lane