pgsql: Add a "subtransaction" command to PL/Tcl.

Started by Tom Laneover 9 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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: /messages/by-id/20170108205750.2dab04a1@wagner.wagner.home

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/pltcl.sgml | 112 ++++++++++++++++++++++++--
src/pl/tcl/Makefile | 2 +-
src/pl/tcl/expected/pltcl_subxact.out | 143 ++++++++++++++++++++++++++++++++++
src/pl/tcl/pltcl.c | 53 +++++++++++++
src/pl/tcl/sql/pltcl_subxact.sql | 95 ++++++++++++++++++++++
5 files changed, 398 insertions(+), 7 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers