Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 33F1DB5DC07 for ; Thu, 7 Jul 2011 12:45:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 39799-03 for ; Thu, 7 Jul 2011 15:45:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og114.obsmtp.com (exprod7og114.obsmtp.com [64.18.2.215]) by mail.postgresql.org (Postfix) with ESMTP id 2CAA1B5DC04 for ; Thu, 7 Jul 2011 12:45:19 -0300 (ADT) Received: from mail-fx0-f51.google.com ([209.85.161.51]) (using TLSv1) by exprod7ob114.postini.com ([64.18.6.12]) with SMTP ID DSNKThXUjeFw1Q8Pb2Vs097KjdpCPXONkaKW@postini.com; Thu, 07 Jul 2011 08:45:19 PDT Received: by mail-fx0-f51.google.com with SMTP id 10so1382535fxh.24 for ; Thu, 07 Jul 2011 08:45:17 -0700 (PDT) Received: by 10.223.5.212 with SMTP id 20mr1451098faw.40.1310053517680; Thu, 07 Jul 2011 08:45:17 -0700 (PDT) Received: from [90.190.247.247] (247.247.190.90.dyn.estpak.ee [90.190.247.247]) by mx.google.com with ESMTPS id g12sm6779132fai.8.2011.07.07.08.45.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jul 2011 08:45:16 -0700 (PDT) Message-ID: <4E15D48A.7080203@enterprisedb.com> Date: Thu, 07 Jul 2011 18:45:14 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-hackers@postgresql.org Subject: Re: SSI atomic commit References: <4E12FDA8020000250003EFC1@gw.wicourts.gov> In-Reply-To: <4E12FDA8020000250003EFC1@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/316 X-Sequence-Number: 191415 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