pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: yi huang <yi.codeplayer@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: PostgreSQL12 crash bug report
Date: Mon, 09 Sep 2019 10:20:27 -0400
Message-ID: <28984.1568038827@sss.pgh.pa.us> (raw)
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>

Andres Freund <andres@anarazel.de> 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





view thread (17+ messages)

Message-ID: <28984.1568038827@sss.pgh.pa.us>
Permalink:  ../28984.1568038827@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28984.1568038827@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, yi.codeplayer@gmail.com
  Subject: Re: PostgreSQL12 crash bug report
  In-Reply-To: <28984.1568038827@sss.pgh.pa.us>
  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> <28984.1568038827@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox