| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Add a "subtransaction" command to PL/Tcl. |
| Date: | 2017-03-11 19:37:17 |
| Message-ID: | E1cmmpJ-0004xN-Hi@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joe Conway | 2017-03-11 21:35:14 | pgsql: Fix ancient connection leak in dblink |
| Previous Message | Tom Lane | 2017-03-10 21:32:34 | pgsql: Improve postmaster's logging of listen socket creation. |