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 1jmJTk-0005nN-86 for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 16:02:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jmJTi-0002CF-EC for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 16:02:54 +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 1jmJTi-0002C8-5l for pgsql-general@lists.postgresql.org; Fri, 19 Jun 2020 16:02:54 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jmJTf-0005wp-N1 for pgsql-general@postgresql.org; Fri, 19 Jun 2020 16:02:53 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 36C9C5F79E; Fri, 19 Jun 2020 12:02:48 -0400 (EDT) Date: Fri, 19 Jun 2020 12:02:48 -0400 From: Stephen Frost To: Paul =?iso-8859-1?Q?F=F6rster?= Cc: Magnus Hagander , "Wolff, Ken L" , pgsql-general Subject: Re: Netapp SnapCenter Message-ID: <20200619160248.GI6680@tamriel.snowman.net> References: <4D23B288-6A0B-4BDB-A723-FC47F2E832C7@gmail.com> <2C6D03C3-CFF0-4F14-BA83-A2809BA29196@gmail.com> <20200618192642.GH6680@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uAyj+rJ4YBxgwLMg" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --uAyj+rJ4YBxgwLMg 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: > When I wrote our backup mode script I read the deprecation note about the= exclusive mode backup. This is why I decided to go with non-exclusive to b= e ready when exclusive backup mode is finally removed some day. Yet, I don'= t see the reason. Everything has to be consistent. So a non-exclusive backu= p mode makes absolutely no sense to me. Either the whole database cluster i= s in backup mode or it is not. There's nothing in between. Glad that you went with the non-exclusive method. When it comes to 'backup mode', it's actually the case that there can be multiple backups running concurrently because there isn't actually a single 'cluster wide backup mode', really. Regarding the deprecated methodology, there just isn't a way for the database on-disk image to look exactly like a backup while also being able to survive a crash/restart with only the WAL that's in the pg_wal directory. Perhaps there's other things we could do but at some point it has to be accepted that there's gotta be something changed in the data directory to indicate that it's a backup and not just a crash, and that change needs to happen *after* the backup/snapshot/whatever has been taken, otherwise there's a window of risk where a crash/restart would fail. Thanks, Stephen --uAyj+rJ4YBxgwLMg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJe7OGnAAoJEO1sijiDR2RVtCMP/28r2uciV1cS/R7H7V4zJuyG P2suAkPWI+hsO9ZOKpAsoI6mJQWpx+zCAdDZKNCRpy/NCAnitON8eKAn3vHA+/Ve zir9yo9wFqqGN//gebV3eHAYx6VD+l6jBOyEmMFhc+jKDnKAuCWv3EM/fSkYngS4 crQn2NhzjKhcfErcKpNz38Rq61uc9gEUcrG8Gztyu2A3krctYroIcGY3TWhp8DMz 70knPK40PIiEvYqdMsdGrgVvIfOfQgxgdp9J8UwbwrQ41XrqzKXJmdL6qehIXtcd 1htHT0Iwn6eyB/kWeSYrmluszvr1uPTthtTkfCcrx5yaZz5m45cGHIR/ZIdNUGGP Ot2NAEY9Z/GaSngz/FqGFD5NqODIojcr3qJHFYwOa6lgSRIBX+5t0D6SQhUPiJuC 1xRVppFYfvHTJe0uTqJ06/TL98xXdqkGP8ta0LcyBM6NXEz24/EjAr00Hll16cCF G+eMaZFftbBhzc4uTuAhhajFUmAmbYiyJA277P8HsOxnB6Tu9HpxuuZK58pbbc1V CYaGu+bzHmipepPym7yWNvDgcWMPmP4dQKzmfA8jpIHbRuT401b51zqklZsFcS0j 4R0iAUPXyTpTstuUR5H/ai1qNFGzLbdqpzTaMZXnLf9nAnK/FuT//uVfjikkymRj nht7fglwYFCIoJ4DswdN =GuZQ -----END PGP SIGNATURE----- --uAyj+rJ4YBxgwLMg--