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: Allow custom and foreign scans to have shutdown callbacks.
Date: Sun, 26 Feb 2017 08:17:03 +0000
Message-ID: <E1chu0t-0001LP-9n@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Allow custom and foreign scans to have shutdown callbacks.

This is expected to be useful mostly when performing such scans in
parallel, because in that case it allows (in combination with commit
acf555bc53acb589b5a2827e65d655fa8c9adee0) nodes below a Gather to get
control just before the DSM segment goes away.

KaiGai Kohei, except that I rewrote the documentation.  Reviewed by
Claudio Freire.

Discussion: http://postgr.es/m/CADyhKSXJK0jUJ8rWv4AmKDhsUh124_rEn39eqgfC5D8fu6xVuw@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a315b967cc1bd43ecf3c10ea48b44a4fb0ff8d45

Modified Files
--------------
doc/src/sgml/custom-scan.sgml          | 13 +++++++++++++
doc/src/sgml/fdwhandler.sgml           | 14 ++++++++++++++
src/backend/executor/execProcnode.c    |  6 ++++++
src/backend/executor/nodeCustom.c      |  9 +++++++++
src/backend/executor/nodeForeignscan.c | 16 ++++++++++++++++
src/include/executor/nodeCustom.h      |  1 +
src/include/executor/nodeForeignscan.h |  1 +
src/include/foreign/fdwapi.h           |  2 ++
src/include/nodes/extensible.h         |  1 +
9 files changed, 63 insertions(+)


-- 
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: <E1chu0t-0001LP-9n@gemulon.postgresql.org>
Permalink:  ../E1chu0t-0001LP-9n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1chu0t-0001LP-9n@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: Allow custom and foreign scans to have shutdown callbacks.
  In-Reply-To: <E1chu0t-0001LP-9n@gemulon.postgresql.org>
  References: <E1chu0t-0001LP-9n@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