Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fcneE-0001op-Ho for pgsql-general@arkaria.postgresql.org; Tue, 10 Jul 2018 08:05:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fcneC-0007F2-Ep for pgsql-general@arkaria.postgresql.org; Tue, 10 Jul 2018 08:05:20 +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.89) (envelope-from ) id 1fcneC-0007E4-3O for pgsql-general@lists.postgresql.org; Tue, 10 Jul 2018 08:05:20 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fcne9-0005hy-Rd for pgsql-general@lists.postgresql.org; Tue, 10 Jul 2018 08:05:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 52D7E21E3E; Tue, 10 Jul 2018 04:05:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 10 Jul 2018 04:05:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=MRn+DC6s9A3tGNJYikdajCo5vnoxqErgiXXJkfR8hHQ=; b=Lhd9Ucdj xk9UVPaVxTzbSrKiXt9ovFtJFJRSJlB6qYyO4pFOp0wQl84UarjB3DqRKwtMP3m0 H5ZuS9AcRcsGS1nO0Ym3qyJ9UGqIfnwq16xDXINJkc36Hx5WewfKx1h/lpA3ZuOJ 3ptoCegpDGr9074/DjRcFAxhC1MZpoP1Tr1/ArkJ02tcYCixa18um3RrPlasULqr dkgnEO4h/GgP89y8moskF0UTET434Ne2Fzd1OpfwTT5Ng9VNdPY7lzCXFeEuTTL4 lemX2dvh4QtRAoyTNmkQiqCUmhV8d7G76J3PysqrSX78q6f8qM3Wd1QPRL/V0pak jvBVvc+reGikoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=MRn+DC6s9A3tGNJYikdajCo5vnoxq ErgiXXJkfR8hHQ=; b=bvt9DKMY9JiE7xYV4BY5l19KeNEhWymShQyY3jMqOF/Pb MCkbyKtGoDlvdmUCmS1OXm6lW7CyZJ/UMMGh9gsFqQuRIa2NCwwSQngWdDwPPTYL N8DESb4OklPZKedBAAowbU6dvS8XMSde2KsXBKwaES84oeVQB4Z7oxfR9hkxVDsJ z3DGljBdvlsSHubJ0tqeHA0UOTxesMfUXPC1NXIC/Aqkj8vY7MLBtWceo9S54W5E ii19NWRBkBMGl2Y7LtUvb45B/iQXaX00tWjCiVV/Gg2QeK94lThKnwGMa5dcapId C0UFbjaNes9HvwdWok8lBo5IGG7cEESwdxGkI2tMQ== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 6B4BF10370; Tue, 10 Jul 2018 04:05:15 -0400 (EDT) Date: Tue, 10 Jul 2018 17:05:12 +0900 From: Michael Paquier To: Shawn Mulloney Cc: pgsql-general@lists.postgresql.org Subject: Re: Reconnecting a slave to a newly-promoted master Message-ID: <20180710080512.GL1661@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rPgHZmYkQ+bUEpVC" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --rPgHZmYkQ+bUEpVC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 09, 2018 at 05:58:53PM -0700, Shawn Mulloney wrote: > There are three PostgreSQL machines: A, B, and C. B and C are slaves off of > the master, A. A fails, and B is promoted to being the new master. Can C > just be pointed at A and have it "just work"? In your question I am pretty sure that you mean "B" instead of "A" as "A" has died and is off the grid. The answer to that question would be perhaps no, as if C could have replayed WAL ahead of B in which case you could finish with a corrupted C instance if trying to reconnect it directly to the promoted B. -- Michael --rPgHZmYkQ+bUEpVC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAltEaLgACgkQnvQgOdby QH0hWg//blFM3BRDwmg3KDjkMqhyxsDBFm4JZGtI2x12Tko5BRd+E7X6bN/LrxCh Yf2x4aiSBvbhzopU3BH34sDkihV9x9i9um8K9+aVWQOpfzLy4atoba9oWs3pAusH FiUr18w6xK4rkhH9X+q41iRN4UIbBqsk3h/fpDr2w7udD9KOExme3eeIIf9Ae6W3 xA61aHgqnXuJ+91n1kTG30kwlPncY7L+8N2+QLi1CjqRVb8gDaFCDgALza2pph8c F2ZD3ppHknYNHn0yfgl9frUPklWbRvvCkIoT336EoOmG4P9VYn5VQ1ZeVhYdfr72 RT5O2E2ZAg28ur3ckJ3RosVBGkqrtnX6dTQ55djD1V0d1iywqxN+HRKjeCEm/Jts IES12hvDmF+DF0/ISfcHk7Wh82lHq4pvRpjq9192AFlmvEBHt4PvLPIzOOQNLryY xA0mAcsJsJckrmP0qvHDZcleVgkDxB4WP41ZKTYZl0nvUF2TG2+PSRMirZ+xov/d UJ3kkluv2hMmSXLKag+85uLNOFgQn79FhwuOSJWDHvHuXZIrMsg8wVYT1qH4UglQ 1S/j2Pe9vSYstJOblgypiSEE9bHnipVoaNKtUQtVKLwNHC5YHeAehkbUI0+WSbTB wogcFBpELnOeJy6f0FBM+BDVY2E9aedjuqtzsDmRuK58x/S4W6M= =xKqQ -----END PGP SIGNATURE----- --rPgHZmYkQ+bUEpVC--