pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Provide DSM segment to ExecXXXInitializeWorker functions.
Date: Fri, 17 Nov 2017 01:43:34 +0000
Message-ID: <E1eFVgs-0007up-Ku@gemulon.postgresql.org> (raw)

Provide DSM segment to ExecXXXInitializeWorker functions.

Previously, executor nodes running in parallel worker processes didn't
have access to the dsm_segment object used for parallel execution.  In
order to support resource management based on DSM segment lifetime,
they need that.  So create a ParallelWorkerContext object to hold it
and pass it to all InitializeWorker functions.

Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CAEepm=2W=cOkiZxcg6qiFQP-dHUe09aqTrEMM7yJDrHMhDv_RA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7082e614c0dd504cdf49c4d5a692159f22e78f9d

Modified Files
--------------
src/backend/executor/execParallel.c       | 27 +++++++++++++++++----------
src/backend/executor/nodeBitmapHeapscan.c |  5 +++--
src/backend/executor/nodeCustom.c         |  7 ++++---
src/backend/executor/nodeForeignscan.c    |  7 ++++---
src/backend/executor/nodeIndexonlyscan.c  |  5 +++--
src/backend/executor/nodeIndexscan.c      |  5 +++--
src/backend/executor/nodeSeqscan.c        |  5 +++--
src/backend/executor/nodeSort.c           |  4 ++--
src/include/access/parallel.h             |  6 ++++++
src/include/executor/nodeBitmapHeapscan.h |  2 +-
src/include/executor/nodeCustom.h         |  2 +-
src/include/executor/nodeForeignscan.h    |  2 +-
src/include/executor/nodeIndexonlyscan.h  |  2 +-
src/include/executor/nodeIndexscan.h      |  3 ++-
src/include/executor/nodeSeqscan.h        |  3 ++-
src/include/executor/nodeSort.h           |  2 +-
src/tools/pgindent/typedefs.list          |  1 +
17 files changed, 55 insertions(+), 33 deletions(-)



Message-ID: <E1eFVgs-0007up-Ku@gemulon.postgresql.org>
Permalink:  ../E1eFVgs-0007up-Ku@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eFVgs-0007up-Ku@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: andres@anarazel.de
  Subject: Re: pgsql: Provide DSM segment to ExecXXXInitializeWorker functions.
  In-Reply-To: <E1eFVgs-0007up-Ku@gemulon.postgresql.org>
  References: <E1eFVgs-0007up-Ku@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