Parallel bt build crashes when DSM_NONE

From: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Parallel bt build crashes when DSM_NONE
Date: 2018-02-09 08:06:35
Message-ID: 20180209.170635.256350357.horiguchi.kyotaro@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

I happend to find that server crashes during regtest when
DSM_NONE is enforced. The attached patch fixes that.

The cause is the fact that _bt_spools_heapscan runs
_bt_begin_parallel() even if dynamic_shared_memory_type is
DSM_NONE. It is because plan_create_index_workers() is ignoring
dynamic_shared_memory_type.

We can reproduce this by letting initdb set
dynamic_shared_memory_type=none regardless of actual
availability. (Second attached) and just "make check".

regards,

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
let-plan_create_index_workers-honor_dsm_none.patch text/x-patch 556 bytes
enfoce-dsm_none_in_regtest.patch text/x-patch 311 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2018-02-09 08:08:23 Server won't start with fallback setting by initdb.
Previous Message Konstantin Knizhnik 2018-02-09 08:02:43 Re: Using scalar function as set-returning: bug or feature?