Re: autonomous transactions - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: autonomous transactions
Date
Msg-id 1201076035.4257.7.camel@ebony.site
Whole thread Raw
In response to Re: autonomous transactions  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: autonomous transactions  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Re: autonomous transactions  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Tue, 2008-01-22 at 20:53 +0100, Pavel Stehule wrote:
> >
> > Agreed.  I think Pavel Stehule was doing some experiments with them, I
> > don't know if he got anywhere.
> >
> 
> I did only first research. Any hack is possible - you can stack
> current transaction, but real implementation needs similar work like
> nested transaction :( and it is too low level for me. And some code
> cleaning is necessary. There are global variables.
> 
> And there is most important question about data visibility - is
> autonomous transaction independent on main transaction (isolation)?
> You have to thing about deadlock, about reference integrity, etc. This
> task isn't simple.

Yes, I think autonomous transactions should be on the TODO. They're
useful for
- error logging
- auditing
- creating new partitions automatically

Plus I think we'd be able to improve the code for CREATE INDEX under
HOT, and probably a few other wrinkly bits of code.

--  Simon Riggs 2ndQuadrant  http://www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: "Guillaume Smet"
Date:
Subject: Re: Suboptimal plan choice problem with 8.3RC2
Next
From: Neil Conway
Date:
Subject: Re: autonomous transactions