Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtaA0-0007rZ-HN for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2013 08:40:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tta9z-0001fw-Ll for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2013 08:40:19 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tta9y-0001fr-Vj for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 08:40:19 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tta9t-0007vt-8b for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 08:40:17 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id CD3522823E; Fri, 11 Jan 2013 00:40:11 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id C9A22401AB; Fri, 11 Jan 2013 00:40:11 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id AD0A6C1526; Fri, 11 Jan 2013 00:40:11 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nhHhRETvJMFk; Fri, 11 Jan 2013 00:40:11 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 8497FC1538; Fri, 11 Jan 2013 00:40:11 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id daDkPjCdUj72; Fri, 11 Jan 2013 00:40:11 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA id C28B2C1526; Fri, 11 Jan 2013 00:40:10 -0800 (PST) Message-ID: <50EFCFF5.4040109@vmware.com> Date: Fri, 11 Jan 2013 10:40:21 +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: katsumata.tomonari@po.ntts.co.jp CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7803: Replication Problem(no master is there) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; 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 06:09, katsumata.tomonari@po.ntts.co.jp wrote: > The following bug has been logged on the website: > > Bug reference: 7803 > Logged by: Tomonari Katsumata > Email address: katsumata.tomonari@po.ntts.co.jp > PostgreSQL version: 9.2.2 > Operating system: RHEL 5.3 x86_64 > Description: > > hi, I'm playing with Synchronous Replication on PostgreSQL 9.2.2. > And I saw a strange behavior. Unless you left out something, the configuration you described actually sets up asynchronous replication. > ================================================================= > [issues] > two standbys are connected on each other, but > no master is there. >... > ================================================================= > > I did not see the situation like above on PostgreSQL 9.1.7. > > Is this intended change? In 9.1, this scenario was impossible because you could not connect a standby to another standby. In 9.2, that's allowed. It's a new feature called "cascading replication", see http://www.postgresql.org/docs/9.2/static/warm-standby.html#CASCADING-REPLICATION. With that feature, it's indeed possible to form a cycle of standby servers connected to each other. There was just a long discussion on pgsql-hackers on whether we should try to detect that scenario [1], but the consensus seems to be that we should not. It would be difficult to implement such detection, and sometimes it's useful to have such a cycle, as a transient state at a failover, for example. So the bottom line is that this is an intended change, and the admin will just have to avoid doing that. 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. [1] http://archives.postgresql.org/pgsql-hackers/2012-12/msg01134.php - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs