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: Support parallel bitmap heap scans.
Date: Wed, 08 Mar 2017 17:08:11 +0000
Message-ID: <E1clf4N-000287-9s@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Support parallel bitmap heap scans.

The index is scanned by a single process, but then all cooperating
processes can iterate jointly over the resulting set of heap blocks.
In the future, we might also want to support using a parallel bitmap
index scan to set up for a parallel bitmap heap scan, but that's a
job for another day.

Dilip Kumar, with some corrections and cosmetic changes by me.  The
larger patch set of which this is a part has been reviewed and tested
by (at least) Andres Freund, Amit Khandekar, Tushar Ahuja, Rafia
Sabih, Haribabu Kommi, Thomas Munro, and me.

Discussion: http://postgr.es/m/CAFiTN-uc4=0WxRGfCzs-xfkMYcSEWUC-Fon6thkJGjkh9i=13A@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/monitoring.sgml                  |   6 +-
src/backend/access/heap/heapam.c              |  16 +
src/backend/executor/execParallel.c           |  14 +
src/backend/executor/nodeBitmapHeapscan.c     | 422 +++++++++++++++++++++++---
src/backend/executor/nodeBitmapIndexscan.c    |   4 +-
src/backend/executor/nodeBitmapOr.c           |   4 +-
src/backend/nodes/copyfuncs.c                 |   2 +
src/backend/nodes/outfuncs.c                  |   2 +
src/backend/nodes/readfuncs.c                 |   2 +
src/backend/optimizer/path/allpaths.c         |  24 ++
src/backend/optimizer/path/costsize.c         |  16 +-
src/backend/optimizer/path/indxpath.c         |  19 +-
src/backend/optimizer/plan/createplan.c       |  22 ++
src/backend/optimizer/util/pathnode.c         |   9 +-
src/backend/postmaster/pgstat.c               |   3 +
src/include/access/heapam.h                   |   1 +
src/include/executor/nodeBitmapHeapscan.h     |   7 +
src/include/nodes/execnodes.h                 |  57 ++++
src/include/nodes/plannodes.h                 |   2 +
src/include/optimizer/pathnode.h              |   3 +-
src/include/optimizer/paths.h                 |   2 +
src/include/pgstat.h                          |   1 +
src/test/regress/expected/select_parallel.out |  19 ++
src/test/regress/sql/select_parallel.sql      |  10 +
24 files changed, 612 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


Message-ID: <E1clf4N-000287-9s@gemulon.postgresql.org>
Permalink:  ../E1clf4N-000287-9s@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1clf4N-000287-9s@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: Support parallel bitmap heap scans.
  In-Reply-To: <E1clf4N-000287-9s@gemulon.postgresql.org>
  References: <E1clf4N-000287-9s@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