Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iphto-0003Hg-FS for pgsql-general@arkaria.postgresql.org; Fri, 10 Jan 2020 00:11:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iphtn-0000eT-7J for pgsql-general@arkaria.postgresql.org; Fri, 10 Jan 2020 00:11:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iphtm-0000e2-TK for pgsql-general@lists.postgresql.org; Fri, 10 Jan 2020 00:11:34 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iphtk-0007jj-CR for pgsql-general@postgresql.org; Fri, 10 Jan 2020 00:11:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 427A56BB; Thu, 9 Jan 2020 19:11:29 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 09 Jan 2020 19:11:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=l8LtvRC0yEUNXwUAsoTTrI/lK0v SDlPZtETb59ndDtg=; b=CYylgy9sWtmwJg8/Jh50wrzaxoHCmLSQAF8a3xpOy4T FBCeDuSDY2GyjTEyxWwVaR1hAziqwqs3WwQftXmLtvnR4c3gXtKWKBZVIuSjUtRA DQADhufCE/5YW2BxkCEjuqDaP7Kv5FZFOP0jJQTeGwwmCmCLjYaOpxbDYYgyB+jt lE8ynm9aVhk44v5XgAFtNVegFgIhNQ3y55gAmRX/ING2XrHKQbz3zd2EcPguH9P3 PUAO9xpWPjqfhL14ymW1PHH6FGQVvh9kpru4ip8lWWq/oxeJ9rmign3iUyEqR718 cfRj689NJ3pHEov0JZXSdTO4EJyJtF2iV73yM9aCO+w== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=l8LtvR C0yEUNXwUAsoTTrI/lK0vSDlPZtETb59ndDtg=; b=BL3u9mZKCvwDHjt0f8tQTq GSx4+s/Agl4wiq1dhXGPwoqDXUvxVqLWoixwM/U4TAGy5PjsRX8+Gfte9xh53Mat SJQf5OtKW+5ppmaTxQpEPOvTu06Uj257m7fR1nie9OMblGVg883Fo4d11MubDe4J +ps5AlhoXHUi4rxOPaV1nqAdNf+V0dswxi6gv/RHajR/4bNJQt8drIVjYrRjHTLj 2LBaxFzqmhIWbw+sMktaVt0XfDsbpE+ERrYQkKsVoR/w9qE1oncyM73R45FRR6DD c072diPs4sVK8xG92R+fMDbeuba3jFMnDIMBNDs8Cjmho1PB6BGCEMTlWtwZy6WA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeivddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E98030602DB; Thu, 9 Jan 2020 19:11:27 -0500 (EST) Date: Fri, 10 Jan 2020 09:11:24 +0900 From: Michael Paquier To: Jehan-Guillaume de Rorthais Cc: Rita , pgsql-general@postgresql.org Subject: Re: what to do after a failover Message-ID: <20200110001124.GC1702@paquier.xyz> References: <20200109043139.GI2251@paquier.xyz> <20200109151459.03111216@firost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aT9PWwzfKXlsBJM1" Content-Disposition: inline In-Reply-To: <20200109151459.03111216@firost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --aT9PWwzfKXlsBJM1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 09, 2020 at 03:14:59PM +0100, Jehan-Guillaume de Rorthais wrote: > If you can afford that, this is the cleanest and easiest procedure you could > find. > > Note that pg_basebackup need an empty PGDATA, so it will have to transfert the > whole instance from new promoted primary to the original one. Simple is easier to understand. Now the larger your instance, the longer it takes to copy a base backup and the longer your reduce the availability of your cluster. So be careful with what you choose. -- Michael --aT9PWwzfKXlsBJM1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4XwSwACgkQnvQgOdby QH3jyw/+N5EmkjsPNqCkjBoC0flPnlRpRPLmPNrrwbVXS5t9P2iUuFctS9mkFsOL u/nxKkODq+101n1sdmADvn+ICHdfHll7vsfmA4ZkCeOEUwuLJzvKMSLXHSjhXHzW HW1SuQr3Z4k04tv9KLSY+5T1vktQR9Q/lrrSLyQb6qywySH0XwCtQrKXBn3zUC9q aZ+IJgcuuhxxCDaOvem+4IWTinymEcFN5udF2BHYrKVytfyEbhxYVH5gmqfX11ob 9SUXAmckFGzOBN/E37lR57MuXDwqcGLnFHZO52Rhg2m3RjBmuQLpqy4t73EtgxQt S27bfCtK9dGt4vNnwB/qo5an098gHA2JUqjhfqJcJo/Ls2nZ7gn3lxdERJrDPKII rtA8Qz8bionyiEhyVNGkLW5r+5NppEqtKejANdsgSVq0CwQZPvQpEof+8OEzqmZD siPI22bugD1RSCyZHWXJwO46exRF5uHuONFPglzG8Wg4aKZmShbchPcEnTjGLK4p dl+M1a9je4fBxFYwXTZVYAhAxwyurhnSnvMPLsu3jMj4ejM+J6c3YKWb8yrilSvA 3/CdwDKxQi1FGuRQ8N4JEQt0aZ7ei8paLCsZHmFypZCUWiki/oLR/YawWKynKP7N AkV23qg3keQzlbph9LU+F4lQ07tHfJq5HLB25jP3uvez7LuPtRE= =8bNw -----END PGP SIGNATURE----- --aT9PWwzfKXlsBJM1--