pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14227: Former master not shot down
2+ messages / 2 participants
[nested] [flat]

* BUG #14227: Former master not shot down
@ 2016-07-04 13:44 rob.nieuwenhuizen@mobpro.com
  2016-07-04 14:33 ` Re: BUG #14227: Former master not shot down hubert depesz lubaczewski <depesz@depesz.com>
  0 siblings, 1 reply; 2+ messages in thread

From: rob.nieuwenhuizen@mobpro.com @ 2016-07-04 13:44 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14227
Logged by:          Rob Nieuwenhuizen
Email address:      rob.nieuwenhuizen@mobpro.com
PostgreSQL version: 9.5.3
Operating system:   Debian Wheezy
Description:        

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.





-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14227: Former master not shot down
  2016-07-04 13:44 BUG #14227: Former master not shot down rob.nieuwenhuizen@mobpro.com
@ 2016-07-04 14:33 ` hubert depesz lubaczewski <depesz@depesz.com>
  0 siblings, 0 replies; 2+ messages in thread

From: hubert depesz lubaczewski @ 2016-07-04 14:33 UTC (permalink / raw)
  To: rob.nieuwenhuizen@mobpro.com; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-07-04 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-04 13:44 BUG #14227: Former master not shot down rob.nieuwenhuizen@mobpro.com
2016-07-04 14:33 ` hubert depesz lubaczewski <depesz@depesz.com>

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