Re: pgsql: Handle lack of DSM slots in parallel btree build. - Mailing list pgsql-committers

From Peter Geoghegan
Subject Re: pgsql: Handle lack of DSM slots in parallel btree build.
Date
Msg-id CAH2-Wz=Hf1cgb=PvMfvGYC_HnMASPxArSuOMos2rJ4i6GReqrQ@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Handle lack of DSM slots in parallel btree build.  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: pgsql: Handle lack of DSM slots in parallel btree build.  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-committers
On Tue, Feb 4, 2020 at 9:42 AM Peter Geoghegan <pg@bowt.ie> wrote:
> Can we reuse _bt_end_parallel() this time around? It would be easy to
> add a "bool wait" argument to _bt_end_parallel(). All existing callers
> would pass true, but when not using parallelism due to the new DSM
> segment check we'd pass false.

Hmm. I see why you didn't do it that way -- we don't quite have the
variables set up in the way that _bt_end_parallel() expects them.

This looks good, then.

-- 
Peter Geoghegan



pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pgsql: Handle lack of DSM slots in parallel btree build.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix handling of "Subplans Removed" field in EXPLAIN output.