pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-hackers@postgresql.org
Subject: Re: SSI atomic commit
Date: Thu, 07 Jul 2011 18:45:14 +0300
Message-ID: <4E15D48A.7080203@enterprisedb.com> (raw)
In-Reply-To: <4E12FDA8020000250003EFC1@gw.wicourts.gov>
References: <4E12FDA8020000250003EFC1@gw.wicourts.gov>

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



view thread (26+ messages)  latest in thread

Message-ID: <4E15D48A.7080203@enterprisedb.com>
Permalink:  ../4E15D48A.7080203@enterprisedb.com/
Also on:    postgresql.org/message-id/4E15D48A.7080203@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, Kevin.Grittner@wicourts.gov
  Subject: Re: SSI atomic commit
  In-Reply-To: <4E15D48A.7080203@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox