Parallel CREATE INDEX vs DSM starvation

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>
Subject: Parallel CREATE INDEX vs DSM starvation
Date: 2020-01-30 07:37:55
Message-ID: CA+hUKGJgJEBnkuODBVomyK3MWFvDBbMVj=gdt6DnRPU-5sQ6UQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

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.

This probably explains a segfault reported over on pgsql-general[1].

[1] https://www.postgresql.org/message-id/CA%2BhUKG%2BcfjHy63hXEOc-CRZEPcUhu9%3DP3gKk_W9OiXzj-dfV_g%40mail.gmail.com

Attachment Content-Type Size
0001-Handle-lack-of-DSM-segment-slots-in-parallel-btree-b.patch application/octet-stream 1.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2020-01-30 07:47:25 Re: Parallel CREATE INDEX vs DSM starvation
Previous Message Michael Paquier 2020-01-30 07:00:40 Re: Prevent pg_basebackup running as root