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 1jv0za-0007Ys-2G for pgsql-general@arkaria.postgresql.org; Mon, 13 Jul 2020 16:07:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jv0zZ-00021n-0F for pgsql-general@arkaria.postgresql.org; Mon, 13 Jul 2020 16:07:45 +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 1jv0zY-00021f-Oj for pgsql-general@lists.postgresql.org; Mon, 13 Jul 2020 16:07:44 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jv0zW-0004WH-Rh for pgsql-general@lists.postgresql.org; Mon, 13 Jul 2020 16:07:44 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 4B47F5F79F; Mon, 13 Jul 2020 12:07:42 -0400 (EDT) Date: Mon, 13 Jul 2020 12:07:42 -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: <20200713160742.GW12375@tamriel.snowman.net> References: <7E43945E-4571-4D30-9E8F-B940B9277DEF@gmail.com> <20200710152959.GK12375@tamriel.snowman.net> <01BE6868-6920-4E5D-9A4D-838E3036DCD2@gmail.com> <20200710154556.GL12375@tamriel.snowman.net> <20200713154722.GU12375@tamriel.snowman.net> <20200713160052.GV12375@tamriel.snowman.net> <682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nqu5fpgjE+BQlEdo" Content-Disposition: inline In-Reply-To: <682CD01B-41A6-42F0-9FCB-41F35D431F3E@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 --nqu5fpgjE+BQlEdo 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: > > On 13. Jul, 2020, at 18:00, Stephen Frost wrote: > > Ah, yes, if you rebuild the replica from a backup (or from the primary), > > then sure, that's pretty similar to the pgbackrest delta restore, except > > that when using delta restore we're only rewriting files that have a > > different SHA checksum after being scanned, and we're pulling from the > > backup repo anything that's needed and not putting load on the primary. >=20 > so, from what I understand, pgbackrest bottom line merely reduces copy ov= erhead in such a particular case. *Kind of* like shutdown primary, rsync, a= nd then startup. Yes, though unlike rsync, pgbackrest can also run in parallel.. :) > > There's been a few discussions on -hackers about this, that'd probably > > be the place to discuss it further.. >=20 > I'm not hacker, I'm just a DBA. :-) You're a PG user, so your input is (at least) as valuable regarding things like this, imv. :) Thanks! Stephen --nqu5fpgjE+BQlEdo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfDIbNAAoJEO1sijiDR2RVAI8QAMK8rSrpcnF1dDHRs40WHA+6 WqHNzG0qUbl2M5ASrQACOXjluKP/qSB0uiJgzFGPBJNfS5bfJ6gFUyn7Huv8opkb m40YpGCl9XGbewA8l6FK6xOm7mXKlP6b8aVAiQclvQLsPcwsYnEcAHirUoSy108x iTxqyXwA+Wlh3WYmJZ+RI3WbBrrTITnwqLyk/0PvN+oJubSZzBwRE8TPf+LI94mj Aw5JGMD9qG2IiW/9XqP+wazYVNxfDSBXz+fbeVLemwywtylb7R39Dhn7RtUmtc7t Bn1T1Yg4WR2/PLKa2f/5lQE09x2Jz1Nfq5G+JiER5rbePKRD3X7jy2x0Emz6/yRr Uyoq4CjMFE2ccEMqmpmdb7+nEoO9qxAEoNReVqgcCjC7XilmEb8D0IaNjY1+D4w+ YAHpaVfVW1gYV1/eI8Xh6drgVu6r/LV33o7vYJodQsrREd6zFS7J1Q96WmTrGdbb v0cIzxHMyrn5O8Kfy0gWeIJjHBzOMdvId4UYrTno834ShlOb8wpBPFqYEp/uP/oj cPBfqFOnm06iwquZB0y2sghZl4LFdkf5FciJQgFidlcscCMDlNepQLCOfVcDyAXU MgvuiIzHWC05RJYkRmCjcpC/evxCu8AqAIfvNAJJXdCJ0fUOpzL9jYP5FKpGLYLz Lw08vPm7mvsy7cWjq5p6 =gh3f -----END PGP SIGNATURE----- --nqu5fpgjE+BQlEdo--