]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add a "subtransaction" command to PL/Tcl.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Mar 2017 19:37:05 +0000 (14:37 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Mar 2017 19:37:05 +0000 (14:37 -0500)
commitb58fd4a9cab21e9d937a4e369bab31b3a5d24710
tree0824f3a7b17dd7d950e1267e8d7b63c0e4efc4a6
parentf9dfa5c9776649f769d537dd0923003b35f128de
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
doc/src/sgml/pltcl.sgml
src/pl/tcl/Makefile
src/pl/tcl/expected/pltcl_subxact.out [new file with mode: 0644]
src/pl/tcl/pltcl.c
src/pl/tcl/sql/pltcl_subxact.sql [new file with mode: 0644]