From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Introduce a new GUC force_parallel_mode for testing purposes.
Date: Sun, 07 Feb 2016 16:42:03 +0000
Message-ID: <E1aSSPT-000809-Ui@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Introduce a new GUC force_parallel_mode for testing purposes.
When force_parallel_mode = true, we enable the parallel mode restrictions
for all queries for which this is believed to be safe. For the subset of
those queries believed to be safe to run entirely within a worker, we spin
up a worker and run the query there instead of running it in the
original process. When force_parallel_mode = regress, make additional
changes to allow the regression tests to run cleanly even though parallel
workers have been injected under the hood.
Taken together, this facilitates both better user testing and better
regression testing of the parallelism code.
Robert Haas, with help from Amit Kapila and Rushabh Lathia.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/7c944bd903392829608a9fba5b0e68c4fe89abf8
Modified Files
--------------
doc/src/sgml/config.sgml | 45 +++++++++++++++++
src/backend/access/transam/parallel.c | 4 +-
src/backend/commands/explain.c | 14 ++++-
src/backend/nodes/copyfuncs.c | 1 +
src/backend/nodes/outfuncs.c | 2 +
src/backend/nodes/readfuncs.c | 1 +
src/backend/optimizer/plan/createplan.c | 5 ++
src/backend/optimizer/plan/planner.c | 73 ++++++++++++++++++++-------
src/backend/utils/misc/guc.c | 24 +++++++++
src/backend/utils/misc/postgresql.conf.sample | 1 +
src/include/nodes/plannodes.h | 1 +
src/include/nodes/relation.h | 3 ++
src/include/optimizer/planmain.h | 9 ++++
13 files changed, 163 insertions(+), 20 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: Introduce a new GUC force_parallel_mode for testing purposes.
In-Reply-To: <E1aSSPT-000809-Ui@gemulon.postgresql.org>
References: <E1aSSPT-000809-Ui@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