Re: Basic subtransaction facility - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Basic subtransaction facility
Date
Msg-id 200404291706.i3TH6Y107047@candle.pha.pa.us
Whole thread Raw
In response to Re: Basic subtransaction facility  (Manfred Koizar <mkoi-pg@aon.at>)
Responses Re: Basic subtransaction facility
Re: Basic subtransaction facility
List pgsql-patches
Manfred Koizar wrote:
> On Wed, 28 Apr 2004 12:02:44 -0400, Alvaro Herrera
> <alvherre@dcc.uchile.cl> wrote:
> >In fact, I think we should mark ERROR as aborting the whole transaction
> >tree, and create a new level which would abort the innermost
> >subtransaction.  We would then change whatever is appropiate to the new
> >elevel.  Doing otherwise would leave us open to unexpected conditions
> >causing only subtrans abort, which could lead to unreliable behavior.
>
> Why?  Subtransaction commit propagates an error state to the parent
> transaction.  And if a subtransaction is rolled back the parent can
> continue cleanly no matter what was the reason for the subtrans abort.

I think his point was that there are some errors that should abort the
outer transaction too.  I think Alvaro mentioned out of memory, but that
is a FATAL error.  Alvaro, what error were you thinking of that should
abort the outer transaction?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Manfred Koizar
Date:
Subject: Re: Basic subtransaction facility
Next
From: Peter Eisentraut
Date:
Subject: Re: Basic subtransaction facility