Re: Parallel CREATE INDEX vs DSM starvation

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Parallel CREATE INDEX vs DSM starvation
Date: 2020-01-30 22:35:53
Message-ID: CA+hUKGL14fCW5K1LPCTmCtNSHfgMwdZACqqSYFLmzS9ckt-J7Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 30, 2020 at 8:47 PM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
> On Wed, Jan 29, 2020 at 11:38 PM Thomas Munro <thomas(dot)munro(at)gmail(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2020-01-31 02:17:29 MSVC installs too much stuff?
Previous Message Peter Geoghegan 2020-01-30 22:18:14 Re: Enabling B-Tree deduplication by default