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

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Thomas Munro <tmunro(at)postgresql(dot)org>
Cc: pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Handle lack of DSM slots in parallel btree build.
Date: 2020-02-03 20:12:54
Message-ID: CAH2-WzmDABkJzrNnvf+OULK-_A_j9gkYg_Dz-H62jzNv4eKQTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Thu, Jan 30, 2020 at 2:34 PM Thomas Munro <tmunro(at)postgresql(dot)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.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2020-02-03 21:03:39 Re: pgsql: Handle lack of DSM slots in parallel btree build.
Previous Message Michael Paquier 2020-02-03 05:49:37 pgsql: Add declaration-level assertions for compile-time checks