Add a "subtransaction" command to PL/Tcl.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b58fd4a9cab21e9d937a4e369bab31b3a5d24710
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-03-11T19:37:05Z
Releases: 10.0
Add a "subtransaction" command to PL/Tcl.

This allows rolling back the effects of some SPI commands without
having to fail the entire PL/Tcl function.

Victor Wagner, reviewed by Pavel Stehule

Discussion: https://postgr.es/m/20170108205750.2dab04a1@wagner.wagner.home

Files

PathChange+/−
doc/src/sgml/pltcl.sgml modified +106 −6
src/pl/tcl/expected/pltcl_subxact.out added +143 −0
src/pl/tcl/Makefile modified +1 −1
src/pl/tcl/pltcl.c modified +53 −0
src/pl/tcl/sql/pltcl_subxact.sql added +95 −0

Documentation touched

Discussion