Re: crashes due to setting max_parallel_workers=0

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: crashes due to setting max_parallel_workers=0
Дата
Msg-id CA+TgmoYGQ=MG94iuTM+hfK5XyiZLCQDvm1n7gPD3AHLJs3AsyQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: crashes due to setting max_parallel_workers=0  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
On Tue, Mar 28, 2017 at 11:08 PM, Tomas Vondra
<tomas.vondra@2ndquadrant.com> wrote:
> Maybe. It depends on how valuable it's to keep Gather and GatherMerge
> similar - having nreaders in one and not the other seems a bit weird. But
> maybe the refactoring would remove it from both nodes?

Yeah, it appears to be the case that both Gather and GatherMerge
inevitably end up with nworkers_launched == nreaders, which seems
dumb.  If we're going to clean this up, I think we should  make them
both match.

> Also, it does not really solve the issue that we're using 'nreaders' or
> 'nworkers_launched' to access array with one extra element.

I'm not clear that there's any fundamental solution to that problem
other than trying to clarify it through comments.

Meantime, I think it's not good to leave this crashing, so I pushed
Rushabh's v2 patch for the actual crash for now.

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



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: TPC-H Q20 from 1 hour to 19 hours!
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: logical replication launcher crash on buildfarm