Re: Nested Transactions, Abort All

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@dcc.uchile.cl>
Cc: Thomas Swan <tswan@idigx.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2004-07-02T23:43:47Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> You can't have subtransactions inside an implicit transaction block,

It would be folly to design on that assumption.  We *will* have that
situation just as soon as plpgsql allows creating subtransactions
(which I trust you'll agree will happen soon).  All you have to do
is call such a function from a bare SELECT.  I do not think you'll
be able to legislate that people must say BEGIN first.

			regards, tom lane