Re: Parallel CREATE INDEX vs DSM starvation
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-01-30T22:35:53Z
Lists: pgsql-hackers
On Thu, Jan 30, 2020 at 8:47 PM Peter Geoghegan <pg@bowt.ie> wrote: > On Wed, Jan 29, 2020 at 11:38 PM Thomas Munro <thomas.munro@gmail.com> wrote: > > CreateParallelContext() can return a context with seg == NULL. That > > causes CREATE INDEX to segfault. Instead, it should fall back to > > non-parallel build. See attached. > > I guess we can't call _bt_end_parallel() here. So your patch LGTM. Thanks. Pushed.
Commits
-
Handle lack of DSM slots in parallel btree build.
- 2c56b3ac436d 11.7 landed
- 1fcf62e0b837 12.2 landed
- 74618e77b43c 13.0 landed