Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3A3F41337B39 for ; Sun, 2 Jan 2011 16:53:36 -0400 (AST) 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 88095-01 for ; Sun, 2 Jan 2011 20:53:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148109.authsmtp.co.uk (outmail148109.authsmtp.co.uk [62.13.148.109]) by mail.postgresql.org (Postfix) with ESMTP id B4FCC1337B34 for ; Sun, 2 Jan 2011 16:53:28 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt4.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p02KrQJB020045; Sun, 2 Jan 2011 20:53:26 GMT Received: from [192.168.0.2] ([81.5.146.37]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p02KrPOc037927; Sun, 2 Jan 2011 20:53:25 GMT Subject: Re: Sync Rep Design From: Simon Riggs To: MARK CALLAGHAN Cc: Robert Haas , pgsql-hackers@postgresql.org In-Reply-To: References: <1293729972.1892.23804.camel@ebony> <4D1CC47E.7050207@kaltenbrunner.cc> <1293735853.1892.24886.camel@ebony> <4D1CEEAF.8050209@kaltenbrunner.cc> <1293760654.1892.29635.camel@ebony> Content-Type: text/plain; charset="UTF-8" Date: Sun, 02 Jan 2011 20:53:23 +0000 Message-ID: <1294001603.2090.3146.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Server-Quench: 57e2f6ea-16b2-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaAdbZ1hf HGQLWlVEUl17XGB/ aQ8fZQRDZ1RPWwN0 U09WR1pVCwUmQRwD fVx+LUpydAJPenk+ ZEZiXngVWUMvdxB7 Fx9JFGtUZ3phaTUf TUhYJQpJcANIfBlB agJ3XHBYLwdSbGoL PyYYHB0LBgAXEzVT SUk3IEpabUsQHzE6 L3PO X-Authentic-SMTP: 61633235383639.1015:706 X-AuthFastPath: 255 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: 201101/88 X-Sequence-Number: 177925 On Sun, 2011-01-02 at 12:13 -0800, MARK CALLAGHAN wrote: > On Thu, Dec 30, 2010 at 9:02 PM, Robert Haas wrote: > > > > > > I see now that you've tried to design this feature in a way that is > > similar to MySQL's offering, which does have some value. But it > > appears to me that the documentation you've written here is > > substantially similar to the MySQL 5.5 reference documentation. That > > could get us into a world of legal trouble - that documentation is not > > even open source, let alone BSD. > > > > http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html Sorry, only just read that bit. Are they that similar? My docs are about 3 times longer and cover all sorts of things. I didn't intentionally copy anything, but that doesn't really matter, what matters is that if you think they are similar, legal people might. I've only read the URL above, not the other links from it. Robert, Can you identify which paragraphs need to be re-written? I won't argue, I will just rewrite them or delete them and start afresh. Thanks for being eagle-eyed. > The docs originate from work done by my former team at Google. The > content license on this is CC 3.0 BY-SA, so I don't think that should > be a concern. > http://code.google.com/p/google-mysql-tools/wiki/SemiSyncReplication > http://code.google.com/p/google-mysql-tools/wiki/SemiSyncReplicationDesign I guess that gets us off the hook a little bit, but not far enough for my liking. Thanks for trying to save me! > >From http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html) > the MySQL docs don't mention that other transactions can view the > committed data on the master between steps 1 and 2. Is that possible > in this case? Other transactions on the master cannot read data until after the confirmation it is on the sync standby. > As described in the the MySQL docs, semi-sync has another benefit for > some deployments. It rate limits busy clients to prevent them from > creating replication lag between the primary and standby servers. I > also provided the text for that > (http://bugs.mysql.com/bug.php?id=57911) if you are concerned about > copying. Yeh, I'm aware of the effect, but I'm not really seeing slowing down the master as a benefit, its more an implication of synchronicity. -- Simon Riggs http://www.2ndQuadrant.com/books/ PostgreSQL Development, 24x7 Support, Training and Services