Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 097AA1337B88 for ; Fri, 31 Dec 2010 09:48:58 -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 60081-01-6; Fri, 31 Dec 2010 13:48:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cronos.madness.at (madness.at [217.196.146.217]) by mail.postgresql.org (Postfix) with ESMTP id 7DB781337BC6; Fri, 31 Dec 2010 09:48:50 -0400 (AST) Received: from gatekeeper.kaltenbrunner.cc ([83.215.243.9] helo=[192.168.8.22]) by cronos.madness.at with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PYfLW-0005ky-Ml; Fri, 31 Dec 2010 14:48:44 +0100 Message-ID: <4D1DDF39.1030307@kaltenbrunner.cc> Date: Fri, 31 Dec 2010 14:48:41 +0100 From: Stefan Kaltenbrunner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Iceowl/1.0b1 Icedove/3.0.10 MIME-Version: 1.0 To: Robert Haas CC: Heikki Linnakangas , Simon Riggs , Greg Smith , Josh Berkus , Hannu Krosing , 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> <4D1DAB14.5000800@enterprisedb.com> <1293796137.1892.37313.camel@ebony> <4D1DD33A.8030404@enterprisedb.com> In-Reply-To: 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=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/2558 X-Sequence-Number: 177820 On 12/31/2010 02:39 PM, Robert Haas wrote: > On Fri, Dec 31, 2010 at 7:57 AM, Heikki Linnakangas > wrote: >> On 31.12.2010 14:40, Robert Haas wrote: >>> >>> Someone may have proposed this before, but one way of getting standby >>> naming "for free" would be to make the standby names the same as the >>> roles used to log in, rather than adding a separate parameter. We >>> could just recommend to people that they use a separate, descriptive >>> role name for each standby. Then the synchronous_standbys parameter - >>> when added - would mean "a standby from one of these roles". >> >> Seems a bit weird. It's not a lot of effort to give each standby a name. But >> if you want something automatic, how about gethostname() ? > > Uh, wow, no way. That would be making a critical aspect of system > reliability depend on something way, way outside of our configuration. +1 > > What's weird about using the role name? That's our standard way of > distinguishing between two or more users. Why invent something new? wel a user is not a host/server for me - given there is no real benefit from using distinct roles for each standby yet I don't see why we should complicate the replication setup procedure by requiring 1 role per standby. So I'm all for giving each standby a name but please make it an explicit one and not something that is only vaguely related to the actual standby host. Stefan