From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add max_parallel_workers GUC.
Date: Fri, 02 Dec 2016 12:45:34 +0000
Message-ID: <E1cCnDa-0003Uh-0b@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add max_parallel_workers GUC.
Increase the default value of the existing max_worker_processes GUC
from 8 to 16, and add a new max_parallel_workers GUC with a maximum
of 8. This way, even if the maximum amount of parallel query is
happening, there is still room for background workers that do other
things, as originally envisioned when max_worker_processes was added.
Julien Rouhaud, reviewed by Amit Kapila and by revised by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b460f5d6693103076dc554aa7cbb96e1e53074f9
Modified Files
--------------
doc/src/sgml/config.sgml | 23 ++++++++++++--
src/backend/access/transam/parallel.c | 3 +-
src/backend/postmaster/bgworker.c | 45 ++++++++++++++++++++++++++-
src/backend/utils/init/globals.c | 3 +-
src/backend/utils/misc/guc.c | 12 ++++++-
src/backend/utils/misc/postgresql.conf.sample | 3 +-
src/bin/pg_resetxlog/pg_resetxlog.c | 4 +--
src/include/miscadmin.h | 1 +
src/include/postmaster/bgworker.h | 9 ++++++
9 files changed, 93 insertions(+), 10 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: Add max_parallel_workers GUC.
In-Reply-To: <E1cCnDa-0003Uh-0b@gemulon.postgresql.org>
References: <E1cCnDa-0003Uh-0b@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