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: Replace min_parallel_relation_size with two new GUCs.
Date: Wed, 15 Feb 2017 18:38:09 +0000
Message-ID: <E1ce4Sv-0004Cm-J6@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Replace min_parallel_relation_size with two new GUCs.

When min_parallel_relation_size was added, the only supported type
of parallel scan was a parallel sequential scan, but there are
pending patches for parallel index scan, parallel index-only scan,
and parallel bitmap heap scan.  Those patches introduce two new
types of complications: first, what's relevant is not really the
total size of the relation but the portion of it that we will scan;
and second, index pages and heap pages shouldn't necessarily be
treated in exactly the same way.  Typically, the number of index
pages will be quite small, but that doesn't necessarily mean that
a parallel index scan can't pay off.

Therefore, we introduce min_parallel_table_scan_size, which works
out a degree of parallelism for scans based on the number of table
pages that will be scanned (and which is therefore equivalent to
min_parallel_relation_size for parallel sequential scans) and also
min_parallel_index_scan_size which can be used to work out a degree
of parallelism based on the number of index pages that will be
scanned.

Amit Kapila and Robert Haas

Discussion: http://postgr.es/m/CAA4eK1KowGSYYVpd2qPpaPPA5R90r++QwDFbrRECTE9H_HvpOg@mail.gmail.com
Discussion: http://postgr.es/m/CAA4eK1+TnM4pXQbvn7OXqam+k_HZqb0ROZUMxOiL6DWJYCyYow@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/51ee6f3160d2e1515ed6197594bda67eb99dc2cc

Modified Files
--------------
doc/src/sgml/config.sgml                      | 31 +++++++++--
doc/src/sgml/release-9.6.sgml                 |  4 +-
src/backend/optimizer/path/allpaths.c         | 79 +++++++++++++++++++--------
src/backend/utils/misc/guc.c                  | 19 +++++--
src/backend/utils/misc/postgresql.conf.sample |  3 +-
src/include/optimizer/paths.h                 |  3 +-
src/test/regress/expected/select_parallel.out |  2 +-
src/test/regress/sql/select_parallel.sql      |  2 +-
8 files changed, 105 insertions(+), 38 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: <E1ce4Sv-0004Cm-J6@gemulon.postgresql.org>
Permalink:  ../E1ce4Sv-0004Cm-J6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ce4Sv-0004Cm-J6@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: Replace min_parallel_relation_size with two new GUCs.
  In-Reply-To: <E1ce4Sv-0004Cm-J6@gemulon.postgresql.org>
  References: <E1ce4Sv-0004Cm-J6@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