Skip site navigation (1) Skip section navigation (2)

Re: nested xacts and phantom Xids

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: nested xacts and phantom Xids
Date: 2004-06-24 01:05:26
Message-ID: 20040624010526.GB27876@dcc.uchile.cl (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
On Wed, Jun 23, 2004 at 08:57:11AM -0400, Bruce Momjian wrote:

> I am sorry to have given Alvaro another idea that didn't work.

It allowed me to learn a lot of cool tricks, so it wasn't wasted work.
The only think I'm sorry about is that I should have used the time for
something more useful, like tackling the remaining problems in the
nested xacts implementation proper.

> However, thinking of options, I wonder if instead of phantom xids, we
> should do phantom cids.  Because only the local backend looks at the
> command counter (cid).  I think it might be alot cleaner.  The phantom
> cid would have a tuple bit set indicating that instead of being a cid,
> it is an index into an array of cmin/cmax pairs.

Yeah, maybe this can work.  I'm not going to try however, at least not
now.  If somebody else wants to try, be my guest.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El conflicto es el camino real hacia la uniĆ³n"


In response to

pgsql-hackers by date

Next:From: Christopher Kings-LynneDate: 2004-06-24 01:35:06
Subject: Re: PREPARE and transactions
Previous:From: Alvaro HerreraDate: 2004-06-24 01:02:29
Subject: Re: nested xacts and phantom Xids

pgsql-patches by date

Next:From: Tom LaneDate: 2004-06-24 03:28:27
Subject: Re: nested xacts and phantom Xids
Previous:From: Alvaro HerreraDate: 2004-06-24 01:02:29
Subject: Re: nested xacts and phantom Xids

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group