Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EB5161337B56 for ; Fri, 31 Dec 2010 06:06:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 05036-04 for ; Fri, 31 Dec 2010 10:06:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og105.obsmtp.com (exprod7og105.obsmtp.com [64.18.2.163]) by mail.postgresql.org (Postfix) with SMTP id 7F1DC1337B50 for ; Fri, 31 Dec 2010 06:06:15 -0400 (AST) Received: from source ([209.85.161.45]) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP ID DSNKTR2rFhpKIDMykJoXDPgxnqtjniXLVU48@postini.com; Fri, 31 Dec 2010 02:06:16 PST Received: by fxm12 with SMTP id 12so11430840fxm.4 for ; Fri, 31 Dec 2010 02:06:14 -0800 (PST) Received: by 10.223.110.77 with SMTP id m13mr3101233fap.86.1293789973828; Fri, 31 Dec 2010 02:06:13 -0800 (PST) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id l3sm2644952fan.2.2010.12.31.02.06.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Dec 2010 02:06:13 -0800 (PST) Message-ID: <4D1DAB14.5000800@enterprisedb.com> Date: Fri, 31 Dec 2010 12:06:12 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: Hannu Krosing CC: Robert Haas , Simon Riggs , Stefan Kaltenbrunner , pgsql-hackers@postgresql.org Subject: Re: Sync Rep Design References: <1293729972.1892.23804.camel@ebony> <4D1CC47E.7050207@kaltenbrunner.cc> <1293735853.1892.24886.camel@ebony> <4D1D8B2F.5070001@2ndquadrant.com> In-Reply-To: <4D1D8B2F.5070001@2ndquadrant.com> 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=-4.2 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201012/2539 X-Sequence-Number: 177801 On 31.12.2010 09:50, Hannu Krosing wrote: > On 30.12.2010 22:27, Robert Haas wrote: >> On Thu, Dec 30, 2010 at 2:04 PM, Simon Riggs >> wrote: >>> synchronous_replication (boolean) >>> Specifies whether transaction commit will wait for WAL records >>> to be replicated before the command returns a "success" >>> indication to the client. >> The word "replicated" here could be taken to mean different things, >> most obviously: >> >> - slave has received the WAL >> - slave has fsync'd the WAL >> - slave has applied the WAL > Perhaps the level of "replication guarantee" should be decided on the > slave side, by > having a configuration parameter there > > report_as_replicated = received|written_to_disk|fsynced|applied > > for different types of hosts may have wildly different guarantees and > performance > parameters for these. One could envision a WAL-archive type "standby" > which is > there for data persistence only will and never "apply" WAL. Agreed, it feels natural to specify when a piece of WAL is acknowledged in the standby. Regarding the rest of the proposal, I would still prefer the UI discussed here: http://archives.postgresql.org/message-id/4CAE030A.2060701@enterprisedb.com It ought to be the same amount of work to implement, and provides the same feature set, but makes administration a bit easier by being able to name the standbys. Also, I dislike the idea of having the standby specify that it's a synchronous standby that the master has to wait for. Behavior on the master should be configured on the master. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com