Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5BE541337B6E for ; Thu, 30 Dec 2010 16:36:43 -0400 (AST) 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 95061-03 for ; Thu, 30 Dec 2010 20:36:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148106.authsmtp.co.uk (outmail148106.authsmtp.co.uk [62.13.148.106]) by mail.postgresql.org (Postfix) with ESMTP id 0EC531337B68 for ; Thu, 30 Dec 2010 16:36:35 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id oBUKaY1G096105; Thu, 30 Dec 2010 20:36:34 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 oBUKaVPw023996; Thu, 30 Dec 2010 20:36:31 GMT Subject: Re: Sync Rep Design From: Simon Riggs To: Robert Treat Cc: pgsql-hackers@postgresql.org In-Reply-To: References: <1293729972.1892.23804.camel@ebony> <4D1CC47E.7050207@kaltenbrunner.cc> <1293735853.1892.24886.camel@ebony> Content-Type: text/plain; charset="UTF-8" Date: Thu, 30 Dec 2010 20:36:30 +0000 Message-ID: <1293741390.1892.25918.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Server-Quench: 7ca093bb-1454-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFawVbaVxS HGQLWlREUl17WmV/ aAgfZQRDZ1RPWwN0 U09WR1pVCwUmXm5k fU94Ml5ydQZPcXg+ ZkZlVj5cDxV6fEUv EFNVEWgCeGZhPWAC WEAKfh5UcAFIeBtF OFh3VyZDAzANdhEY NiQQEgoKCH1kOSJe CjsANRo+TF0KEThU 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: 201012/2494 X-Sequence-Number: 177756 On Thu, 2010-12-30 at 15:07 -0500, Robert Treat wrote: > > If more than one standby server specifies synchronous_replication, > then > > whichever standby replies first will release waiting commits. > I don't want you to think I am setting an expectation, but I'm curious > about the possibility of requiring more than 1 server to reply? I was initially interested in this myself, but after a long discussion on "quorum commit" it was decided to go with "first past post". That is easier to manage, requires one less parameter, performs better and doesn't really add that much additional confidence. It was also discussed that we would have a plugin API, but I'm less sure about that now. Perhaps we can add that option in the future, but its not high on my list of things for this release. -- Simon Riggs http://www.2ndQuadrant.com/books/ PostgreSQL Development, 24x7 Support, Training and Services