pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow parallel workers to execute subplans.
Date: Tue, 14 Feb 2017 23:16:19 +0000
Message-ID: <E1cdmKZ-0000Jd-Rv@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Allow parallel workers to execute subplans.

This doesn't do anything to make Param nodes anything other than
parallel-restricted, so this only helps with uncorrelated subplans,
and it's not necessarily very cheap because each worker will run the
subplan separately (just as a Hash Join will build a separate copy of
the hash table in each participating process), but it's a first step
toward supporting cases that are more likely to help in practice, and
is occasionally useful on its own.

Amit Kapila, reviewed and tested by Rafia Sabih, Dilip Kumar, and
me.

Discussion: http://postgr.es/m/CAA4eK1+e8Z45D2n+rnDMDYsVEb5iW7jqaCH_tvPMYau=1Rru9w@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5e6d8d2bbbcace304450b309e79366c0da4063e4

Modified Files
--------------
src/backend/executor/execParallel.c           |  2 +-
src/backend/nodes/copyfuncs.c                 |  1 +
src/backend/nodes/equalfuncs.c                |  1 +
src/backend/nodes/outfuncs.c                  |  1 +
src/backend/nodes/readfuncs.c                 |  1 +
src/backend/optimizer/plan/subselect.c        | 17 +++++++++++++----
src/backend/optimizer/util/clauses.c          | 16 +++++++---------
src/include/nodes/primnodes.h                 |  1 +
src/test/regress/expected/select_parallel.out | 26 ++++++++++++++++++++++++++
src/test/regress/sql/select_parallel.sql      |  9 +++++++++
10 files changed, 61 insertions(+), 14 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cdmKZ-0000Jd-Rv@gemulon.postgresql.org>
Permalink:  ../E1cdmKZ-0000Jd-Rv@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cdmKZ-0000Jd-Rv@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: rhaas@postgresql.org
  Subject: Re: pgsql: Allow parallel workers to execute subplans.
  In-Reply-To: <E1cdmKZ-0000Jd-Rv@gemulon.postgresql.org>
  References: <E1cdmKZ-0000Jd-Rv@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