pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix EvalPlanQualStart to handle partitioned result rels correctl
Date: Mon, 08 Apr 2019 16:20:30 +0000
Message-ID: <E1hDX0Y-0002dX-I3@gemulon.postgresql.org> (raw)

Fix EvalPlanQualStart to handle partitioned result rels correctly.

The es_root_result_relations array needs to be shallow-copied in the
same way as the main es_result_relations array, else EPQ rechecks on
partitioned result relations fail, as seen in bug #15677 from
Norbert Benkocs.

Amit Langote, isolation test case added by me

Discussion: https://postgr.es/m/15677-0bf089579b4cd02d@postgresql.org
Discussion: https://postgr.es/m/19321.1554567786@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b291488da5132e0355717b365dcc30c740cdcd03

Modified Files
--------------
src/backend/executor/execMain.c                | 14 +++++++++++++-
src/test/isolation/expected/eval-plan-qual.out | 12 ++++++++++++
src/test/isolation/specs/eval-plan-qual.spec   | 17 +++++++++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)



view thread (3+ messages)

Message-ID: <E1hDX0Y-0002dX-I3@gemulon.postgresql.org>
Permalink:  ../E1hDX0Y-0002dX-I3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hDX0Y-0002dX-I3@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix EvalPlanQualStart to handle partitioned result rels correctl
  In-Reply-To: <E1hDX0Y-0002dX-I3@gemulon.postgresql.org>
  References: <E1hDX0Y-0002dX-I3@gemulon.postgresql.org>

* 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