From: hubert depesz lubaczewski <depesz@depesz.com>
To: rob.nieuwenhuizen@mobpro.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14227: Former master not shot down
Date: Mon, 4 Jul 2016 16:33:53 +0200
Message-ID: <20160704143353.GA30344@depesz.com> (raw)
In-Reply-To: <20160704134438.1398.95192@wrigleys.postgresql.org>
References: <20160704134438.1398.95192@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Mon, Jul 04, 2016 at 01:44:38PM +0000, rob.nieuwenhuizen@mobpro.com wrote:
> I have a master / slave setup with a hot-standby slaves.
> When I do a failover to the hot-standby slave the slave becomes master, but
> the former master is not shot down.
> This results in 2 master servers.
> Maybe this is by design, maybe there is a configuration flag I'm missing.
this is not a bug, so it shouldn't be posted to -bugs. -general mailing
list seems to be better suited.
PostgreSQL doesn't kill old master, there is no such flag, because - how
could it?
By "do a failover" I assume you created trigger file on slave, or used
pg_ctl promote.
In both cases, it happens on slave, which can't connect and kill pg on
master.
Not to mention that it wouldn't always be what user really needs.
If you want to stop Pg on old master, ssh there, and kill pg yourself.
Best regards,
depesz
--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/
--
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: depesz@depesz.com, rob.nieuwenhuizen@mobpro.com
Subject: Re: BUG #14227: Former master not shot down
In-Reply-To: <20160704143353.GA30344@depesz.com>
References: <20160704134438.1398.95192@wrigleys.postgresql.org> <20160704143353.GA30344@depesz.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