Re: Autonomous Transaction (WIP) - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Autonomous Transaction (WIP)
Date
Msg-id 5344EF1B.1020309@2ndquadrant.com
Whole thread Raw
In response to Re: Autonomous Transaction (WIP)  (Pavan Deolasee <pavan.deolasee@gmail.com>)
List pgsql-hackers
On 04/09/2014 02:44 PM, Pavan Deolasee wrote:
> On Wed, Apr 9, 2014 at 11:03 AM, Rajeev rastogi
> <rajeev.rastogi@huawei.com <mailto:rajeev.rastogi@huawei.com>> wrote:
> 
> 
>     Though autonomous transaction uses mixed approach of sub-transaction
>     as well as main
>     transaction, transaction state of autonomous transaction is handled
>     independently.
> 
> 
> Whenever I was asked to have a look at implementing this feature, I
> always wondered about the great amount of global state that a backend
> maintains which is normally tied to a single top transaction. Since AT
> will have same characteristics as a top level transaction, I wonder how
> do you plan to separate those global state variables ? Sure, we can
> group them in a structure and put them on a stack when an AT starts and
> pop them off when the original top transaction becomes active again,
> finding all such global state variables is going to be tricky.

... not to mention the fact that extensions may rely on having their own
global state.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Autonomous Transaction (WIP)
Next
From: Heikki Linnakangas
Date:
Subject: Re: Autonomous Transaction (WIP)