Re: pgsql: Handle lack of DSM slots in parallel btree build.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: pgsql: Handle lack of DSM slots in parallel btree build.
Дата
Msg-id CA+hUKGLxupzmv35_Yz_0PKgKJY_S5aqff7xOrkvh_CCzKM8mnA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Handle lack of DSM slots in parallel btree build.  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: pgsql: Handle lack of DSM slots in parallel btree build.
Список pgsql-committers
Hi Peter,

On Tue, Feb 4, 2020 at 9:13 AM Peter Geoghegan <pg@bowt.ie> wrote:
> On Thu, Jan 30, 2020 at 2:34 PM Thomas Munro <tmunro@postgresql.org> wrote:
> > Handle lack of DSM slots in parallel btree build.
> >
> > If no DSM slots are available, a ParallelContext can still be
> > created, but its seg pointer is NULL.  Teach parallel btree build
> > to cope with that by falling back to a regular non-parallel build,
> > to avoid crashing with a segmentation fault.
>
> Uh, this seems to have completely disabled parallel index builds on
> the master branch.

Oops.  The check needs to move down below InitializeParallelDSM(), and
release any extra resources that might have been acquired (snapshot?).
I will do some testing in a few hours and post a fix.



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: pgsql: Handle lack of DSM slots in parallel btree build.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Add missing break out seqscan loop in logical replication