Re: [HACKERS] Parallel Append implementation

Поиск
Список
Период
Сортировка
От Amit Khandekar
Тема Re: [HACKERS] Parallel Append implementation
Дата
Msg-id CAJ3gD9dwMi49pQ2vSAVjvW1zpBJmovDnmg9MZNiKR7X9s15h-A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Parallel Append implementation  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Список pgsql-hackers
On 10 March 2017 at 14:05, Ashutosh Bapat
<ashutosh.bapat@enterprisedb.com> wrote:
>> The need for
>> num_workers=-1 will still be there for partial plans, because we need
>> to set it to -1 once a worker finishes a plan.
>>
>
> IIRC, we do that so that no other workers are assigned to it when
> scanning the array of plans. But with the new scheme we don't need to
> scan the non-parallel plans for when assigning plan to workers so -1
> may not be needed. I may be wrong though.
>

Still, when a worker finishes a partial subplan , it marks it as -1,
so that no new workers pick this, even if there are other workers
already executing it.

-- 
Thanks,
-Amit Khandekar
EnterpriseDB Corporation
The Postgres Database Company



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

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: [HACKERS] Gather Merge
Следующее
От: Rushabh Lathia
Дата:
Сообщение: Re: [HACKERS] Gather Merge