Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtuyU-00028o-6S for pgsql-general@arkaria.postgresql.org; Fri, 10 Jul 2020 15:30:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtuyS-0005p7-6N for pgsql-general@arkaria.postgresql.org; Fri, 10 Jul 2020 15:30:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtuyR-0005oy-UG for pgsql-general@lists.postgresql.org; Fri, 10 Jul 2020 15:30:03 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtuyO-0001rL-Im for pgsql-general@lists.postgresql.org; Fri, 10 Jul 2020 15:30:03 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 41DD15F79F; Fri, 10 Jul 2020 11:29:59 -0400 (EDT) Date: Fri, 10 Jul 2020 11:29:59 -0400 From: Stephen Frost To: Paul =?iso-8859-1?Q?F=F6rster?= Cc: James Sewell , "pgsql-generallists.postgresql.org" Subject: Re: Safe switchover Message-ID: <20200710152959.GK12375@tamriel.snowman.net> References: <7E43945E-4571-4D30-9E8F-B940B9277DEF@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mGCtrYeZ202LI9ZG" Content-Disposition: inline In-Reply-To: <7E43945E-4571-4D30-9E8F-B940B9277DEF@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --mGCtrYeZ202LI9ZG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Paul F=F6rster (paul.foerster@gmail.com) wrote: > I wouldn't work out the procedure myself, especially since there is a fre= e working solution already. It's dangerous if you do it yourself and make a= mistake. >=20 > In our company, we rely on Patroni (https://github.com/zalando/patroni). = Yes, it uses pg_rewind in the background but it does switchover and failove= r fast and reliably (also for high load databases), handles timelines autom= atically and so on. Patroni also has the option to use pgbackrest instead of pg_rewind. Thanks, Stephen --mGCtrYeZ202LI9ZG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfCIl2AAoJEO1sijiDR2RV8oQQALmipjpM0UScK+J1WlMDEtB3 SKA2Nkg8dWGE2n/EU02bSQ+s0iKF13gq+gNMKbJ3a9Gl1S99buQjfQman+fpILBV 8gX4QlzV1TvLAeODtZai59YjL98G0x7h6J9l2J2mkiftMNazNqIPzV6h9Uips0R3 5GC2D4/lT+n/jwgyj/LtDRQ/ZGU4RQQkdHFTBc9W3KJ8BdtMFFF9Y0+/MrGe0FwX mZPkkI+MO92qCyZnIBvVKfeeRSb+fUvcxx8IuKXbHekUF8d4OIf8XkhxmNwnlqB8 kBszfcL4q2iU9jb7/DarDiQdPD0oX33lu9kZJ+hZWQMXbPMUGwrAiCi48CMb2pZH Xg5JEGVHc9X9Od7iI8rSo/AzA0x0tVLoMB3hS4PffKOWQUvp94Tm/RdkEX59dUDI u+fUR/aAKz8qRXav6IA87UrQiIhhQmucCSTM2XQaMwDDoyGLn4p4XFD8lNLyYzJ/ PMruEScAzTItzdMFE0PjgdWSmh8s8zc+bW34m1i0OA8igb0RvstzVzfhVYuSz6n3 lses8h10yyOlw3xAqpfrRmUE0UtFPQxo7wiGQLWrpu7Gp/6tPwm9wXvH5gk5Dygl WRawmo2Slb1JHlfYaLsdDS/423I84uHK94u2Fhm+883f7dox4GVAvtyA2m/Xn2ZW q9qajpyvI/WIknCMtcqF =PMFX -----END PGP SIGNATURE----- --mGCtrYeZ202LI9ZG--