pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Update parallel executor support to reuse the same DSM.
Date: Fri, 30 Oct 2015 09:49:22 +0000
Message-ID: <E1Zs6JG-0002uz-Cb@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Update parallel executor support to reuse the same DSM.

Commit b0b0d84b3d663a148022e900ebfc164284a95f55 purported to make it
possible to relaunch workers using the same parallel context, but it had
an unpleasant race condition: we might reinitialize after the workers
have sent their last control message but before they have dettached the
DSM, leaving to crashes.  Repair by introducing a new ParallelContext
operation, ReinitializeParallelDSM.

Adjust execParallel.c to use this new support, so that we can rescan a
Gather node by relaunching workers but without needing to recreate the
DSM.

Amit Kapila, with some adjustments by me.  Extracted from latest parallel
sequential scan patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3a1f8611f2582df0a16bcd35caed2e1526387643

Modified Files
--------------
src/backend/access/transam/README.parallel |   10 +-
src/backend/access/transam/parallel.c      |  175 +++++++++++++++-------------
src/backend/executor/execParallel.c        |   33 ++++--
src/backend/executor/nodeGather.c          |   54 ++++++---
src/include/access/parallel.h              |    1 +
src/include/executor/execParallel.h        |    1 +
6 files changed, 166 insertions(+), 108 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1Zs6JG-0002uz-Cb@gemulon.postgresql.org>
Permalink:  ../E1Zs6JG-0002uz-Cb@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Zs6JG-0002uz-Cb@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: rhaas@postgresql.org
  Subject: Re: pgsql: Update parallel executor support to reuse the same DSM.
  In-Reply-To: <E1Zs6JG-0002uz-Cb@gemulon.postgresql.org>
  References: <E1Zs6JG-0002uz-Cb@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