Re: SSI atomic commit - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: SSI atomic commit
Date
Msg-id 4E15D48A.7080203@enterprisedb.com
Whole thread Raw
In response to SSI atomic commit  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: SSI atomic commit
List pgsql-hackers
On 05.07.2011 20:03, Kevin Grittner wrote:
> In reviewing the 2PC changes mentioned in a separate post, both Dan
> and I realized that these were dependent on the assumption that
> SSI's commitSeqNo is assigned in the order in which the transactions
> became visible.

This comment in the patch actually suggests a stronger requirement:

> + * For correct SERIALIZABLE semantics, the commitSeqNo must appear to be set
> + * atomically with the work of the transaction becoming visible to other
> + * transactions.

So, is it enough for the commitSeqNos to be set in the order the 
transactions become visible to others? I'm assuming 'yes' for now, as 
the approach being discussed to assign commitSeqNo in 
ProcArrayEndTransaction() without also holding SerializableXactHashLock 
is not going to work otherwise, and if I understood correctly you didn't 
see any correctness issue with that. Please shout if I'm missing something.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: SSI 2PC coverage
Next
From: Robert Haas
Date:
Subject: Re: spinlock contention