Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bK4xO-0004WL-MP for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2016 14:34:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bK4xO-00027O-9H for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2016 14:34:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bK4wj-0000Wi-OJ for pgsql-bugs@postgresql.org; Mon, 04 Jul 2016 14:34:01 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bK4wg-0008VV-Dx for pgsql-bugs@postgresql.org; Mon, 04 Jul 2016 14:34:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QNY2Y6yXdq76WXGJ3754NgFfcMWaGbCDMmmjiloqDDA=; b=eg4YLaV9CCEadiqq79ZkjQo9jK OU0vI/POmvblZ49dFjOGtayf/C/dNSysz4KvpGDTRFbFM2/XAa7Q+yJiw0QYc2d4zGz3OGXZ0JRfr N6Ae2x3BM38LPRM15w5gKJYZf; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.87) (envelope-from ) id 1bK4wc-00089s-2v; Mon, 04 Jul 2016 16:33:54 +0200 Date: Mon, 4 Jul 2016 16:33:53 +0200 From: hubert depesz lubaczewski To: rob.nieuwenhuizen@mobpro.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14227: Former master not shot down Message-ID: <20160704143353.GA30344@depesz.com> Reply-To: depesz@depesz.com References: <20160704134438.1398.95192@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160704134438.1398.95192@wrigleys.postgresql.org> User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -3.3 (---) 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 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