pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Handle lack of DSM slots in parallel btree build, take 2.
Date: Tue, 04 Feb 2020 23:36:10 +0000
Message-ID: <E1iz7jm-0003tJ-Nm@gemulon.postgresql.org> (raw)

Handle lack of DSM slots in parallel btree build, take 2.

Commit 74618e77 added a new check intended to fix a bug, but put
it in the wrong place so that parallel btree build was always
disabled.  Do the check after we've actually tried to create
a DSM segment.  Back-patch to 11, like the earlier commit.

Reviewed-by: Peter Geoghegan
Discussion: https://postgr.es/m/CAH2-WzmDABkJzrNnvf%2BOULK-_A_j9gkYg_Dz-H62jzNv4eKQTw%40mail.gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2e2351bd6c45a77b6462bf73102b5735a4e21379

Modified Files
--------------
src/backend/access/nbtree/nbtsort.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)



view thread (13+ messages)  latest in thread

Message-ID: <E1iz7jm-0003tJ-Nm@gemulon.postgresql.org>
Permalink:  ../E1iz7jm-0003tJ-Nm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iz7jm-0003tJ-Nm@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Handle lack of DSM slots in parallel btree build, take 2.
  In-Reply-To: <E1iz7jm-0003tJ-Nm@gemulon.postgresql.org>
  References: <E1iz7jm-0003tJ-Nm@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox