Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
От
Ted Yu
Тема
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
Дата
Msg-id
CALte62y8XrE=AZZHxdcuP=C0u5=HFWAEt3tBpO60pfSbqqwvWw@mail.gmail.com
Ответ на
RE: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL (houzj.fnst@fujitsu.com)
Список
Дерево обсуждения
releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
RE: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
RE: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Amit Kapila <amit.kapila16@gmail.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Ted Yu <yuzhihong@gmail.com>
Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL Amit Kapila <amit.kapila16@gmail.com>
On Wednesday, January 11, 2023 10:21 AM Ted Yu <yuzhihong@gmail.com> wrote:
> /* First time through, initialize parallel apply worker state hashtable. */
> if (!ParallelApplyTxnHash)
>
> I think it would be better if `ParallelApplyTxnHash` is created by the first
> successful parallel apply worker.
Thanks for the suggestion. But I am not sure if it's worth to changing the
order here, because It will only optimize the case where user enable parallel
apply but never get an available worker which should be rare. And in such a
case, it'd be better to increase the number of workers or disable the parallel mode.
Best Regards,
Hou zj
I think even though the chance is rare, we shouldn't leak resource.
The `ParallelApplyTxnHash` shouldn't be created if there is no single apply worker.
В списке pgsql-hackers по дате отправления
От: John Naylor
Дата:
От: houzj.fnst@fujitsu.com
Дата: