Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 475291337BE2 for ; Fri, 25 Mar 2011 09:12:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 64433-04 for ; Fri, 25 Mar 2011 12:12:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id BB1951337BE3 for ; Fri, 25 Mar 2011 09:12:31 -0300 (ADT) Received: by wwc33 with SMTP id 33so1227721wwc.19 for ; Fri, 25 Mar 2011 05:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DanjhgvlN9e2RVFCfU70lVcHFSHfZUj8UyTwuR/udCM=; b=I817vWq2nGq76bYV0cLXu+t3vW6mUt+zi9WQPVpbjVk49xQCQzuS+x0JcHINVQx4o7 mToVaNlVhdGou+OG/B/lEmsMhQvqoSLW0aMp7lEq85apDF/sGYJqNyQH56mRF38pCNWd G4ImYgFRi7Q4Scrgu2Zb7OxJDqfbnpyOTdmos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=L69ntRHSriBbEg5AiYWNZvhNqVrv3UVmU/Fg3/yblaNQTLuFMLPDa2pSpETOmoYdhz JiniZl8VmFwLRu9HZFcwzqm40JK6pp8tjMEMxxfnM4CXiT+TrutgHQ9SVZMwBewXG2Mq 9WnhR+p4Sv+J+v89ezEg8ZjYYxIZlWobp2j+U= MIME-Version: 1.0 Received: by 10.216.66.131 with SMTP id h3mr691967wed.111.1301055125512; Fri, 25 Mar 2011 05:12:05 -0700 (PDT) Received: by 10.216.154.18 with HTTP; Fri, 25 Mar 2011 05:12:05 -0700 (PDT) In-Reply-To: <1300476590.18619.18115.camel@ebony> References: <4D741441.2090704@dunslane.net> <1299454125.1696.6138.camel@ebony> <4D74896C.5030402@enterprisedb.com> <4D74DDFA.70800@dunslane.net> <4D74E584.7080409@enterprisedb.com> <4D74E9FA.7070202@dunslane.net> <4D74F3AE.9000802@dunslane.net> <4D74FDEC.5040406@enterprisedb.com> <4D74FF15.1070804@dunslane.net> <1299513979-sup-1987@alvh.no-ip.org> <4D832571.5030808@bluegap.ch> <1300457958.18619.13780.camel@ebony> <4D832B4D020000250003BA98@gw.wicourts.gov> <4D837EA2.2070205@enterprisedb.com> <1300465171.18619.15193.camel@ebony> <4D83B02A.5090105@bluegap.ch> <1300476590.18619.18115.camel@ebony> Date: Fri, 25 Mar 2011 21:12:05 +0900 Message-ID: Subject: Re: Re: [COMMITTERS] pgsql: Efficient transaction-controlled synchronous replication. From: Fujii Masao To: Simon Riggs Cc: Markus Wanner , Heikki Linnakangas , Kevin Grittner , MARK CALLAGHAN , Alvaro Herrera , Andrew Dunstan , Aidan Van Dyk , pgsql-hackers Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.72 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, FS_REPLICA=3.599, RCVD_IN_DNSWL_LOW=-0.7, SARE_SPEC_REPLICA=0.72 X-Spam-Level: * X-Archive-Number: 201103/1445 X-Sequence-Number: 184695 On Sat, Mar 19, 2011 at 4:29 AM, Simon Riggs wrote: > On Fri, 2011-03-18 at 20:19 +0100, Markus Wanner wrote: >> Simon, >> >> On 03/18/2011 05:19 PM, Simon Riggs wrote: >> >>> Simon Riggs =A0wrote: >> >>>> In PostgreSQL other users cannot observe the commit until an >> >>>> acknowledgement has been received. >> >> On other nodes as well? =A0To me that means the standby needs to hold ba= ck >> COMMIT of an ACKed transaction, until receives a re-ACK from the master, >> that it committed the transaction there. =A0How else could the slave kno= w >> when to commit its ACKed transactions? > > We could do that easily enough, actually, if we wished. > > Do we wish? No. I'm not sure what's the problem with seeing from the standby the data which= is not visible on the master yet? And, I'm really not sure whether that proble= m can be solved by making the data visible on the master before the standby. If w= e really want to see the consistent data from each node, we should implement and use a cluster-wide snapshot as well as Postgres-XC does. Regards, --=20 Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center