pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Update Append's idea of first_partial_plan
Date: Tue, 17 Apr 2018 19:26:13 +0000
Message-ID: <E1f8WF3-0005WR-9L@gemulon.postgresql.org> (raw)

Update Append's idea of first_partial_plan

It turns out that after runtime partition pruning, Append's
first_partial_plan does not accurately represent partial plans to run,
if any of those got pruned.  This could limit participation of workers
in some partial subplans, if other subplans got pruned.  Fix it by
keeping an index of the first valid partial subplan in the state node,
determined at execnode Init time.

Author: David Rowley, with cosmetic changes by me.
Discussion: https://postgr.es/m/CAKJS1f8o2Yd=rOP=Et3A0FWgF+gSAOkFSU6eNhnGzTPV7nN8sQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/executor/nodeAppend.c | 24 +++++++++++++++++-------
src/include/nodes/execnodes.h     |  2 ++
2 files changed, 19 insertions(+), 7 deletions(-)



Message-ID: <E1f8WF3-0005WR-9L@gemulon.postgresql.org>
Permalink:  ../E1f8WF3-0005WR-9L@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f8WF3-0005WR-9L@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Update Append's idea of first_partial_plan
  In-Reply-To: <E1f8WF3-0005WR-9L@gemulon.postgresql.org>
  References: <E1f8WF3-0005WR-9L@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