From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Barry Lind <blind@xythos.com>
Cc: Alvaro Herrera <alvherre@dcc.uchile.cl>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Patches <pgsql-patches@postgresql.org>
Subject: Re: Nested transactions
Date: Fri, 18 Jun 2004 12:32:52 -0400
Message-ID: <21670.1087576372@sss.pgh.pa.us> (raw)
In-Reply-To: <200406172201.i5HM1ns22285@candle.pha.pa.us>
References: <200406172201.i5HM1ns22285@candle.pha.pa.us>
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Did I make a mistake by promoting subtransactions rather than
> savepoints?
No. We can implement savepoints on top of subtransactions, but not
vice versa. AFAICS the savepoint syntax is just a shorthand for
a constrained form of subtransaction --- essentially one where you
can't explicitly commit a subtransaction, it's implicitly committed
when you commit the parent. I don't see anything but syntactic
sugar here ...
regards, tom lane
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-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, blind@xythos.com, alvherre@dcc.uchile.cl, simon@2ndquadrant.com, pgsql-patches@postgresql.org
Subject: Re: Nested transactions
In-Reply-To: <21670.1087576372@sss.pgh.pa.us>
References: <200406172201.i5HM1ns22285@candle.pha.pa.us> <21670.1087576372@sss.pgh.pa.us>
* 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