Re: [HACKERS] A GUC to prevent leader processes from running subplans?

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: [HACKERS] A GUC to prevent leader processes from running subplans?
Дата
Msg-id
CA+TgmoZ9aamZq25MngYFEReADDWFJu2mGiASrg4+-8k65vY3DA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[HACKERS] A GUC to prevent leader processes from running subplans? Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] A GUC to prevent leader processes from runningsubplans? Jesper Pedersen <jesper.pedersen@redhat.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] A GUC to prevent leader processes from running subplans? Thomas Munro <thomas.munro@enterprisedb.com>
On Tue, Oct 17, 2017 at 7:27 AM, Thomas Munro
 wrote:
> While testing parallelism work I've wanted to be able to prevent
> gather nodes from running the plan in the leader process, and I've
> heard others say the same.  One way would be to add a GUC
> "multiplex_gather", like in the attached patch.  If you set it to off,
> Gather and Gather Merge won't run the subplan unless they have to
> because no workers could be launched.  I thought about adding a new
> value for force_parallel_mode instead, but someone mentioned they
> might want to do this on a production system too and
> force_parallel_mode is not really for end users.  Better ideas?

I don't think overloading force_parallel_mode is a good idea, but
having some other GUC for this seems OK to me.  Not sure I like
multiplex_gather, though.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Peter Geoghegan
Дата:
FAQ