Re: Nested transactions: low level stuff - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Nested transactions: low level stuff
Date
Msg-id 200303200314.h2K3ELf02423@candle.pha.pa.us
Whole thread Raw
In response to Re: Nested transactions: low level stuff  (Hiroshi Inoue <Inoue@tpf.co.jp>)
List pgsql-hackers
Hiroshi Inoue wrote:
> Tom Lane wrote:
> > 
> > Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> > > Sorry I have a basic question.
> > > Was there any consensus we would introduce nested transactions
> > > (or savepoints) in the way currently discussed ?
> > 
> > I think we are a long way from saying we can or will actually do it.
> > Error handling and resource management (eg locks) are a couple of other
> > huge cans of worms that have yet to be opened.  But certainly a solid
> > design for the transaction logging and tuple validity checking is a
> > necessary step.
> 
> Is the way to undo data rejected already ?

You mean abort subtransactions?  Each subtransaction gets its own
transaction id, so we just mark that as aborted --- there is no undo of
tuples, though I had originally suggested that approach years ago.

--  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,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: cursors outside transactions
Next
From: Hiroshi Inoue
Date:
Subject: Re: Nested transactions: low level stuff