Re: SSI atomic commit - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: SSI atomic commit
Date
Msg-id 4E130E61020000250003EFD8@gw.wicourts.gov
Whole thread Raw
In response to Re: SSI atomic commit  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: SSI atomic commit
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote:
> Hmm, I think it would be simpler to decide that instead of 
> SerializableXactHashLock, you must hold ProcArrayLock to access 
> LastSxactCommitSeqNo, and move the assignment of commitSeqNo to 
> ProcArrayTransaction(). It's probably easiest to move 
> LastSxactCommitSeqno to ShmemVariableCache too. There's a few
> places that would then need to acquire ProcArrayLock to read 
> LastSxactCommitSeqno, but I feel it might still be much simpler
> that way.
We considered that.  I think the biggest problem was that when there
is no XID it wouldn't be covered by the lock on assignment.  We
couldn't see a good way to increment and assign the value without LW
lock coverage, and we didn't want to add LW locking to that code
path.  If you can see a way around that issue, I agree it would be
simpler.
-Kevin


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: SSI 2PC coverage
Next
From: Brar Piening
Date:
Subject: Re: Review of VS 2010 support patches