Re: max_parallel_workers question

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: max_parallel_workers question
Дата
Msg-id 4315675a0ea69af857d282f35072254ee73c61d6.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: max_parallel_workers question  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: max_parallel_workers question  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Sat, 2019-09-28 at 00:10 -0400, Robert Haas wrote:
> I intended it to mean "the entire cluster." Basically, how many
> workers out of max_worker_processes are you willing to use for
> parallel query, as opposed to other things. I agree that PGC_USERSET
> doesn't make any sense.

In that case, PGC_SIGHUP seems most appropriate.

It also might make more sense to rename it to reserved_worker_processes
and invert the meaning. To me, that would be more clear that it's
designed to prevent parallel query from interfering with other uses of
worker processes.

Another option would be to make it two pools, one for parallel workers
and one for everything else, and each one would be controlled by a
PGC_POSTMASTER setting. But it seems like some thought went into trying
to share the pool of workers[1], so I assume there was a good reason
you wanted to do that.

Regards,
    Jeff Davis

[1] If I'm reading correctly, it uses both lock-free code and
intentional overflow.





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unstable select_parallel regression output in 12rc1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Standby accepts recovery_target_timeline setting?