Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 318B41337BA4 for ; Thu, 30 Dec 2010 17:17:40 -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 47842-05 for ; Thu, 30 Dec 2010 21:17:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail149043.authsmtp.co.uk (outmail149043.authsmtp.co.uk [62.13.149.43]) by mail.postgresql.org (Postfix) with ESMTP id A41D31337C99 for ; Thu, 30 Dec 2010 17:10:28 -0400 (AST) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt9.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id oBULAOUm063179; Thu, 30 Dec 2010 21:10:24 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 oBULANw5079585; Thu, 30 Dec 2010 21:10:23 GMT Subject: Re: Sync Rep Design From: Simon Riggs To: Marti Raudsepp Cc: Stefan Kaltenbrunner , 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 21:10:00 +0000 Message-ID: <1293743400.1892.26310.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Server-Quench: 3767c55a-1459-11e0-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFawVbaVxS HGQLWlREUlx7WGN/ aQkfZQRDZ1RPWwN0 U09WR1pVCwUmXm5k em9gFRxycAxDcHs+ YUVlXz5YW0J9JkN4 E1NVEWgPeGZhPWAC ARJccR5UcAJLdhoR aVd4ByJDAzANdhEY NiQQEgoKCH1kOSJe CjsANRo+TF0KEThU X-Authentic-SMTP: 61633235383639.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. 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/2505 X-Sequence-Number: 177767 On Thu, 2010-12-30 at 22:11 +0200, Marti Raudsepp wrote: > I think a comment about the "head-of-line blocking" nature of > streaming repliaction is in order. If you execute massive writes in > async mode and then run a transaction in sync mode, its commit will be > delayed until all the async transactions before it have been applied > on the slave. Not really sure I understand what you want me to add there. The case you mention is identical whether we use the word "async" or "sync" where you mention "in async mode". Replication doesn't wait until a sync commit is requested, it is continuously active. Sync rep's only addition are the reply messages. -- Simon Riggs http://www.2ndQuadrant.com/books/ PostgreSQL Development, 24x7 Support, Training and Services