Re: Parallel CREATE INDEX vs DSM starvation

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

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
--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Konstantin Knizhnik 2020-01-30 08:45:35 Re: [Proposal] Global temporary tables
Previous Message Thomas Munro 2020-01-30 07:37:55 Parallel CREATE INDEX vs DSM starvation