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 1nRzyH-0000ge-Np for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2022 17:19:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRzyF-000345-GY for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2022 17:19:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRzyF-00033v-79 for pgsql-hackers@lists.postgresql.org; Wed, 09 Mar 2022 17:19:31 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRzy8-0006AY-8N for pgsql-hackers@lists.postgresql.org; Wed, 09 Mar 2022 17:19:29 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 43E375F79F; Wed, 9 Mar 2022 12:19:23 -0500 (EST) Date: Wed, 9 Mar 2022 12:19:23 -0500 From: Stephen Frost To: Chapman Flack Cc: Magnus Hagander , Nathan Bossart , David Steele , pgsql-hackers@lists.postgresql.org Subject: Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file Message-ID: <20220309171923.GV10577@tamriel.snowman.net> References: <20220301200523.GX10577@tamriel.snowman.net> <20220302010302.GA1182956@nathanxps13> <621FC447.90502@anastigmatix.net> <20220308200107.GA85558@nathanxps13> <20220308221253.GA169440@nathanxps13> <622801BD.9020605@anastigmatix.net> <20220309154209.GU10577@tamriel.snowman.net> <6228DFE7.4080802@anastigmatix.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MyF23oAR2LIUB6+p" Content-Disposition: inline In-Reply-To: <6228DFE7.4080802@anastigmatix.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --MyF23oAR2LIUB6+p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Chapman Flack (chap@anastigmatix.net) wrote: > On 03/09/22 11:22, Magnus Hagander wrote: > >> It's more than just too confusing, it's actively bad because people wi= ll > >> actually use it and then end up with backups that don't work. > >=20 > > +1. > >=20 > > Or even worse, backups that sometimes work, but not reliably and not > > every time. > > ... > > Pretending something is simple when it's not, is not doing anybody a fa= vor. >=20 > Okay, I bow to this reasoning, for the purpose of this patch. Let's > just lose the example. Great. > >> Documenting everything that pg_basebackup does to make sure that the > >> backup is viable might be something to work on if someone is really > >> excited about this, but it's not 'dead-simple' and it's darn close to > >> the bare minimum, something that none of these simple scripts will come > >> anywhere close to being and instead they'll be far less than the > >> minimum. > >=20 > > Yeah, having the full set of steps required documented certainly > > wouldn't be a bad thing. >=20 > I'd say that qualifies as an understatement. While it certainly doesn't > have to be part of this patch, if the claim is that an admin who relies > on pg_basebackup is relying on essential things pg_basebackup does that > have not been enumerated in our documentation yet, I would argue they > should be. It doesn't have to be part of this patch and we should move forward with this patch. Let's avoid hijacking this thread, which is about this patch, for an independent debate about what our documentation should or shouldn't include. > > with a different API or a different set of tools. That is not a > > documentation task. That is a "start from a list of which things > > pg_basebackup cannot do that are still simple, or that tools like > > pgbackrest cannot do if they're complicated". And then design an API > > that's actually safe and easy to use *for that usecase*. >=20 > That might also be a good thing, but I don't see it as a substitute > for documenting the present reality of what the irreducibly essential > behaviors of pg_basebackup (or of third-party tools like pgbackrest) > are, and why they are so. I disagree. If we provided a tool then we'd document that tool and how users can use it, not every single step that it does (see also: pg_basebackup). Thanks, Stephen --MyF23oAR2LIUB6+p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJiKOGaAAoJEO1sijiDR2RVkwIP/2isA0j4yJzVoMohaX43Gh56 QGtzdIJVyPnFDGFYTV7S8RULuX1eJvZvnlIEkTsVuNlovoIB0Kz1X2kcJAFF5fBk Z0exzSrAHQgSxR3b/E2Inb7O0PUCfLMB/oHdt703FU2VnFvZl3Ag8RD7sjivcwQA Qez5RNzyldG9PjZuJhdZWQ4xDXx3ymKPnRqs4V2W6bZzsSC6DHi8YIbUKX/bVl2+ cOjS3cdbuoX/Fu6m+b+v/9mI8RHEPVtsm8mKqbeTfF01O08VYuhfpoGknrm/6DHY yMCB84qNL7APq14ui1lHLZdxKxQsfDlPWenV6jVgKzePUnjfLmxihMVT8lZbuWqA PjKYrzxCaZp9OhQmmOQoxBOCIWIZ0pE7uG6q2vxL5kW4uNSVtTm9d5KKAaNy5pqW 8FMOX439zvr+cYNUeYCAOvkXc8mOtpBqfvGL3qm1KWxAr215WcOosSJ+unwMDvdD XJCqZj71NMMeX1lZjz4fA6PZcJejk4YXAasH6/nREbJH9dTh8WEvp3Z/E4/1m/nn t0C/RTh3Tl6NZWfGoK4oodWv8MFET/g1T6mrMvI88mWByTf9xGjvnP7uW608o2p/ MJIHTSsJ+6JRrd3JHGOxcYY/oYjo9V5kZRsCmIEJjsILo+rOPQw6OXmAyhuRKNf/ 0eW28LzhJCVbRe/YnZfB =VY4+ -----END PGP SIGNATURE----- --MyF23oAR2LIUB6+p--