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: Add optimizer and executor support for parallel index scans.
Date: Wed, 15 Feb 2017 18:56:43 +0000
Message-ID: <E1ce4kt-0004Yr-4X@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add optimizer and executor support for parallel index scans.

In combination with 569174f1be92be93f5366212cc46960d28a5c5cd, which
taught the btree AM how to perform parallel index scans, this allows
parallel index scan plans on btree indexes.  This infrastructure
should be general enough to support parallel index scans for other
index AMs as well, if someone updates them to support parallel
scans.

Amit Kapila, reviewed and tested by Anastasia Lubennikova, Tushar
Ahuja, and Haribabu Kommi, and me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5262f7a4fc44f651241d2ff1fa688dd664a34874

Modified Files
--------------
contrib/bloom/blcost.c                        |   4 +-
contrib/bloom/bloom.h                         |   2 +-
contrib/bloom/blutils.c                       |   1 +
doc/src/sgml/indexam.sgml                     |   2 +
src/backend/access/brin/brin.c                |   1 +
src/backend/access/gin/ginutil.c              |   1 +
src/backend/access/gist/gist.c                |   1 +
src/backend/access/hash/hash.c                |   1 +
src/backend/access/nbtree/nbtree.c            |   1 +
src/backend/access/spgist/spgutils.c          |   1 +
src/backend/executor/execParallel.c           |  12 ++
src/backend/executor/nodeIndexscan.c          | 153 +++++++++++++++++++++++---
src/backend/optimizer/path/allpaths.c         |   4 +-
src/backend/optimizer/path/costsize.c         |  53 ++++++++-
src/backend/optimizer/path/indxpath.c         |  67 ++++++++++-
src/backend/optimizer/plan/planner.c          |   2 +-
src/backend/optimizer/util/pathnode.c         |  19 ++--
src/backend/optimizer/util/plancat.c          |   1 +
src/backend/utils/adt/selfuncs.c              |  24 +++-
src/include/access/amapi.h                    |   5 +-
src/include/executor/nodeIndexscan.h          |   4 +
src/include/nodes/execnodes.h                 |   2 +
src/include/nodes/relation.h                  |   1 +
src/include/optimizer/cost.h                  |   2 +-
src/include/optimizer/pathnode.h              |   3 +-
src/include/optimizer/paths.h                 |   2 +
src/include/utils/index_selfuncs.h            |  18 ++-
src/test/regress/expected/select_parallel.out |  23 ++++
src/test/regress/sql/select_parallel.sql      |  11 ++
29 files changed, 366 insertions(+), 55 deletions(-)


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


view thread (2+ messages)  latest in thread

Message-ID: <E1ce4kt-0004Yr-4X@gemulon.postgresql.org>
Permalink:  ../E1ce4kt-0004Yr-4X@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ce4kt-0004Yr-4X@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: Add optimizer and executor support for parallel index scans.
  In-Reply-To: <E1ce4kt-0004Yr-4X@gemulon.postgresql.org>
  References: <E1ce4kt-0004Yr-4X@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