Re: Autonomous subtransactions - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Autonomous subtransactions
Date
Msg-id 5B513EFD-7819-4600-BC09-39130CBBFBD0@nasby.net
Whole thread Raw
In response to Autonomous subtransactions  (Gianni Ciolli <gianni.ciolli@2ndquadrant.it>)
Responses Re: Autonomous subtransactions  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Dec 18, 2011, at 2:28 AM, Gianni Ciolli wrote:
> I have written some notes about autonomous subtransactions, which have
> already been touched (at least) in two separate threads; please find
> them at
>
>  http://wiki.postgresql.org/wiki/Autonomous_subtransactions

The document seems to mix the terms subtransaction and autonomous transaction. That's going to generate a ton of
confusion,because both terms already have meaning associated with them: 

- Autonomous transaction means you can execute something outside of your current transaction and it is in no way
effectedby the current transaction (doesn't matter if T0 commits or not). 
- Subtransactions are an alternative to savepoints. They allow you to break a large transaction into smaller chunks,
butif T0 doesn't commit then none of the subtransactions do either. 
--
Jim C. Nasby, Database Architect                   jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net




pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Finer Extension dependencies
Next
From: amit sehas
Date:
Subject: Cursor behavior