Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ttas1-0000Am-8V for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2013 09:25:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ttas0-0004xh-FI for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2013 09:25:48 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ttarz-0004xb-HR for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 09:25:47 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ttary-0000Ct-1I for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 09:25:46 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id EA4CE29486; Fri, 11 Jan 2013 01:25:44 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id E6965B051F; Fri, 11 Jan 2013 01:25:44 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 8EE011219D6; Fri, 11 Jan 2013 01:27:47 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-1.vmware.com Received: from zcs-prod-ext-mta-1.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-1.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OsJ07WGO3pis; Fri, 11 Jan 2013 01:27:47 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 6313A1219C9; Fri, 11 Jan 2013 01:27:47 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-1.vmware.com Received: from zcs-prod-ext-mta-1.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-1.vmware.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sju7tIUxY3BG; Fri, 11 Jan 2013 01:27:47 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA id 6D73F1219C6; Fri, 11 Jan 2013 01:27:46 -0800 (PST) Message-ID: <50EFDAA2.3000404@vmware.com> Date: Fri, 11 Jan 2013 11:25:54 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 MIME-Version: 1.0 To: Simon Riggs CC: katsumata.tomonari@po.ntts.co.jp, pgsql-bugs@postgresql.org Subject: Re: BUG #7803: Replication Problem(no master is there) References: <50EFCFF5.4040109@vmware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 11.01.2013 11:19, Simon Riggs wrote: > On 11 January 2013 08:40, Heikki Linnakangas wrote: > >> This makes me wonder if there should be a GUC to forbid cascading >> replication, though. If you don't want to do cascading replication (which is >> quite rare, I'd say), you could just disable it to avoid a situation like >> this. > > Connection from a standby is disabled by default. Don't enable it... It's controlled by hot_standby=on/off. You might well want to enable hot standby, to run queries on a standby, but disable cascading replication. You can also forbid replication connections using pg_hba.conf, but then you need to modify it to allow connections again after failover, when the standby becomes master. That's doable, but inconvenient. (just thinking out loud here..) If we were to have such a switch, it'd be nice to still allow base backups from the standby. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs