Re: Nested Transactions, Abort All - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Nested Transactions, Abort All
Date
Msg-id 20040701223841.GD13816@dcc.uchile.cl
Whole thread Raw
In response to Nested Transactions, Abort All  (Thomas Swan <tswan@idigx.com>)
Responses Re: Nested Transactions, Abort All
Re: Nested Transactions, Abort All
List pgsql-hackers
On Thu, Jul 01, 2004 at 02:01:37PM -0500, Thomas Swan wrote:
> Is there going to be an option to abort the complete transaction without 
> knowing how deep you are?  Perhaps something like "ABORT ALL".
> 
> The reason I suggest this, is that I can foresee an application or user 
> leaving nested transactions open inadvertently, or not knowing how 
> deeply nested they are when they are called.  It's just a thought, and I 
> didn't recall any mention of something like it on the list.

If we change the syntax, say by using SUBCOMMIT/SUBABORT for
subtransactions, then using a simple ABORT would abort the whole
transaction tree.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Oh, oh, las chicas galacianas, lo harán por las perlas,
¡Y las de Arrakis por el agua! Pero si buscas damas
Que se consuman como llamas, ¡Prueba una hija de Caladan! (Gurney Halleck)



pgsql-hackers by date:

Previous
From: Potemkin Evgen
Date:
Subject: Re: recursive SQL
Next
From: "Najib Abi Fadel"
Date:
Subject: Creating a selective aggregate ??