From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: katsumata.tomonari@po.ntts.co.jp
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7803: Replication Problem(no master is there)
Date: Fri, 11 Jan 2013 10:40:21 +0200
Message-ID: <50EFCFF5.4040109@vmware.com> (raw)
In-Reply-To: <E1TtVvj-0004B3-2Z@wrigleys.postgresql.org>
References: <E1TtVvj-0004B3-2Z@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, katsumata.tomonari@po.ntts.co.jp
Subject: Re: BUG #7803: Replication Problem(no master is there)
In-Reply-To: <50EFCFF5.4040109@vmware.com>
References: <E1TtVvj-0004B3-2Z@wrigleys.postgresql.org> <50EFCFF5.4040109@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox