pgsql: Allow custom and foreign scans to have shutdown callbacks.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow custom and foreign scans to have shutdown callbacks.
Date: 2017-02-26 08:17:03
Message-ID: E1chu0t-0001LP-9n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2017-02-26 14:48:37 Re: pgsql: pg_upgrade docs: clarify instructions on standby extensions
Previous Message Tom Lane 2017-02-25 23:34:13 pgsql: Put back #include <windows.h> in dirmod.c.