From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add a "subtransaction" command to PL/Tcl.
Date: Sat, 11 Mar 2017 19:37:17 +0000
Message-ID: <E1cmmpJ-0004xN-Hi@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add a "subtransaction" command to PL/Tcl.
In-Reply-To: <E1cmmpJ-0004xN-Hi@gemulon.postgresql.org>
References: <E1cmmpJ-0004xN-Hi@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox