pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add optimizer and executor support for parallel index scans.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add optimizer and executor support for parallel index scans.
@ 2017-02-15 18:56  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2017-02-15 18:56 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add optimizer and executor support for parallel index-only scans
@ 2017-02-19 10:29  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2017-02-19 10:29 UTC (permalink / raw)
  To: pgsql-committers

Add optimizer and executor support for parallel index-only scans.

Commit 5262f7a4fc44f651241d2ff1fa688dd664a34874 added similar support
for parallel index scans; this extends that work to index-only scans.
As with parallel index scans, this requires support from the index AM,
so currently parallel index-only scans will only be possible for btree
indexes.

Rafia Sabih, reviewed and tested by Rahila Syed, Tushar Ahuja,
and Amit Kapila

Discussion: http://postgr.es/m/CAOGQiiPEAs4C=TBp0XShxBvnWXuzGL2u++Hm1=qnCpd6_Mf8Fw@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0414b26bac09379a4cbf1fbd847d1cee2293c5e4

Modified Files
--------------
src/backend/executor/execParallel.c           |  12 ++
src/backend/executor/nodeIndexonlyscan.c      | 154 ++++++++++++++++++++++----
src/backend/optimizer/path/indxpath.c         |   6 +-
src/include/executor/nodeIndexonlyscan.h      |   9 ++
src/include/nodes/execnodes.h                 |   2 +
src/test/regress/expected/select_parallel.out |  29 ++++-
src/test/regress/sql/select_parallel.sql      |   5 +
7 files changed, 191 insertions(+), 26 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-02-19 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 18:56 pgsql: Add optimizer and executor support for parallel index scans. Robert Haas <rhaas@postgresql.org>
2017-02-19 10:29 pgsql: Add optimizer and executor support for parallel index-only scans Robert Haas <rhaas@postgresql.org>

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