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: Make sequential scans parallel-aware.
Date: Wed, 11 Nov 2015 14:02:49 +0000
Message-ID: <E1ZwVz7-0000XD-N7@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Make sequential scans parallel-aware.

In addition, this path fills in a number of missing bits and pieces in
the parallel infrastructure.  Paths and plans now have a parallel_aware
flag indicating whether whatever parallel-aware logic they have should
be engaged.  It is believed that we will need this flag for a number of
path/plan types, not just sequential scans, which is why the flag is
generic rather than part of the SeqScan structures specifically.
Also, execParallel.c now gives parallel nodes a chance to initialize
their PlanState nodes from the DSM during parallel worker startup.

Amit Kapila, with a fair amount of adjustment by me.  Review of previous
patch versions by Haribabu Kommi and others.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f0661c4e8c44c0ec7acd4ea7c82e85b265447398

Modified Files
--------------
src/backend/commands/explain.c          |    4 +
src/backend/executor/execAmi.c          |    9 ++
src/backend/executor/execParallel.c     |   54 ++++++++++--
src/backend/executor/nodeSeqscan.c      |  136 +++++++++++++++++++++++--------
src/backend/nodes/copyfuncs.c           |    1 +
src/backend/nodes/outfuncs.c            |    2 +
src/backend/nodes/readfuncs.c           |    1 +
src/backend/optimizer/path/allpaths.c   |    2 +-
src/backend/optimizer/path/costsize.c   |   15 +++-
src/backend/optimizer/plan/createplan.c |   44 +++++-----
src/backend/optimizer/plan/planner.c    |    2 +-
src/backend/optimizer/util/pathnode.c   |   29 ++++++-
src/include/executor/nodeSeqscan.h      |    6 ++
src/include/nodes/execnodes.h           |   12 ++-
src/include/nodes/plannodes.h           |    5 ++
src/include/nodes/relation.h            |    1 +
src/include/optimizer/cost.h            |    2 +-
src/include/optimizer/pathnode.h        |    2 +-
18 files changed, 254 insertions(+), 73 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: <E1ZwVz7-0000XD-N7@gemulon.postgresql.org>
Permalink:  ../E1ZwVz7-0000XD-N7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZwVz7-0000XD-N7@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: Make sequential scans parallel-aware.
  In-Reply-To: <E1ZwVz7-0000XD-N7@gemulon.postgresql.org>
  References: <E1ZwVz7-0000XD-N7@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