Add a "subtransaction" command to PL/Tcl.
Tom 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: https://postgr.es/m/20170108205750.2dab04a1@wagner.wagner.home
Files
| Path | Change | +/− |
|---|---|---|
| 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
- Explicit subtransactions for PL/Tcl 14 messages · 2017-01-08 → 2017-03-11