pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: yi huang <yi.codeplayer@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: PostgreSQL12 crash bug report
Date: Sun, 25 Aug 2019 22:36:52 -0700
Message-ID: <20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de> (raw)
In-Reply-To: <20190824225401.gii25wnxwxtx6evg@alap3.anarazel.de>
References: <CAHU7rYZo_C4ULsAx_LAj8az9zqgrD8WDd4hTegDTMM1LMqrBsg@mail.gmail.com>
	<20811.1564344681@sss.pgh.pa.us>
	<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>

Hi,

On 2019-08-24 15:54:01 -0700, Andres Freund wrote:
> Working on that.

Think it's going to look not too invasive. Needs a good bit more
cleanup, but I'm getting there.


One thing I'm struggling with is understanding and testing nested EPQ
states:

	/*
	 * Each EState must have its own es_epqScanDone state, but if we have
	 * nested EPQ checks they should share es_epqTupleSlot arrays.  This
	 * allows sub-rechecks to inherit the values being examined by an outer
	 * recheck.
	 */

At the moment I don't understand what the point here is. When/why do we
want to inherit values from the parent epqstate? I know how to construct
queries with nested EPQ, but I don't see why we'd ever want to inherit
the values from the outer check? Nor how we're doing so -
EvalPlanQualFetchRowMarks() unconditionally clears out the old tuple,
and nodeLockRows.c unconditionally fetches the source tuples too?

Greetings,

Andres Freund





view thread (17+ messages)  latest in thread

Message-ID: <20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de>
Permalink:  ../20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de

 · 

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: andres@anarazel.de, tgl@sss.pgh.pa.us, yi.codeplayer@gmail.com
  Subject: Re: PostgreSQL12 crash bug report
  In-Reply-To: <20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de>
  References: <CAHU7rYZo_C4ULsAx_LAj8az9zqgrD8WDd4hTegDTMM1LMqrBsg@mail.gmail.com> <20811.1564344681@sss.pgh.pa.us> <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>

* 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