]> granicus.if.org Git - postgresql/commit
Allow custom and foreign scans to have shutdown callbacks.
authorRobert Haas <rhaas@postgresql.org>
Sun, 26 Feb 2017 08:06:49 +0000 (13:36 +0530)
committerRobert Haas <rhaas@postgresql.org>
Sun, 26 Feb 2017 08:11:12 +0000 (13:41 +0530)
commita315b967cc1bd43ecf3c10ea48b44a4fb0ff8d45
tree47e76aff9009a58b6742b0b38fbd31dd64b26986
parent285ca26132abdd0a1adc11a21789f103c4e3f6d8
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
doc/src/sgml/custom-scan.sgml
doc/src/sgml/fdwhandler.sgml
src/backend/executor/execProcnode.c
src/backend/executor/nodeCustom.c
src/backend/executor/nodeForeignscan.c
src/include/executor/nodeCustom.h
src/include/executor/nodeForeignscan.h
src/include/foreign/fdwapi.h
src/include/nodes/extensible.h