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.92) (envelope-from ) id 1jHxOz-0000OL-MG for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 22:24:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHxOy-0003k1-Dp for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 22:24:32 +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 1jHxOy-0003ju-4i for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2020 22:24:32 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jHxOv-0000by-C8 for pgsql-hackers@postgresql.org; Fri, 27 Mar 2020 22:24:31 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2B3205F798; Fri, 27 Mar 2020 18:24:31 -0400 (EDT) Date: Fri, 27 Mar 2020 18:24:31 -0400 From: Stephen Frost To: Andres Freund Cc: Robert Haas , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , David Steele , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C Subject: Re: backup manifests Message-ID: <20200327222430.GO13712@tamriel.snowman.net> References: <20200325133106.GS13712@tamriel.snowman.net> <20200325205433.GV13712@tamriel.snowman.net> <20200327043009.lulu32phijz3e37y@alap3.anarazel.de> <20200327152655.GC13712@tamriel.snowman.net> <20200327205745.GI13712@tamriel.snowman.net> <20200327220723.zq4eakpkjsilli3j@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GntRFHHYckrB+kfD" Content-Disposition: inline In-Reply-To: <20200327220723.zq4eakpkjsilli3j@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --GntRFHHYckrB+kfD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andres Freund (andres@anarazel.de) wrote: > On 2020-03-27 16:57:46 -0400, Stephen Frost wrote: > > I really don't know what to say to this. WAL is absolutely critical to > > a backup being valid. pgBackRest doesn't have a way to *just* validate > > a backup today, unfortunately, but we're planning to support it in the > > future and we will absolutely include in that validation checking all of > > the WAL that's part of the backup. >=20 > Could you please address the fact that just about everybody uses base > backups + later WAL to have a short data loss window? Integrating the > WAL files necessary to make the base backup consistent doesn't achieve > much if we can't verify the WAL files afterwards. And fairly obviously > pg_basebackup can't do much about WAL created after its invocation. I feel like we have very different ideas about what "just about everybody" does here. In my view, folks use pg_basebackup because it's easy and they can create self-contained backups that include all the WAL needed to get the backup up and running again and they don't typically care about PITR all that much. Folks who care about PITR use something that manages WAL for them, which pg_basebackup and pg_receivewal really don't do and it's not easy to add scripting around them to figure out what WAL is needed for what backup, etc. If we didn't think that the ability to create a self-contained backup was useful, it sure seems odd that we've done a lot to make that work (having both fetch and stream modes for it) and that it's the default. > Given that we need something separate to address that "verification > hole", I don't see why it's useful to have a special case solution (or > rather multiple ones, for stream and fetch) inside pg_basebackup. Well, the proposal up-thread would end up with almost zero changes to pg_basebackup itself, but, yes, there'd be changes to BASE_BACKUP and different ones for STREAMING_REPLICATION to support getting the WAL checksums into the manifest. Thanks, Stephen --GntRFHHYckrB+kfD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJefn0eAAoJEO1sijiDR2RVTAwP/2CjeSE6k8NbgN2MCyNMSbne AmF/UXBBNG5vXEfaarEzqC1X//hEKzVC5Y1cRdumthgZjEDKuf93wefXvjbgTDDl 3AHDKa5iCE/V3Hs0lvo6vA5ai8Ef3tAoPJhmpJCmY9P+xhgHQc9XQUahRk9gtpJr pWyElxM8U30Q8G7J8LpqmG2l0Q8IdbRfgahXkZzzWLxLNuB20fllMtvylIF6oRHF WcFfgd/fgKnaFrtJOxMyP/jDLXf0u5FGSIxy0qqCVfnBpQENfvkTb24JgDeHZGlc PzDDZyoFmkqfhsU0jiZ7rkkyFNRPOsEc7rWSKjhvN/1i5pdIkBeVB3xXX3ubRXyP pftPQJ8pxoa40tLEXVOSXr2OF3PQeiBuTAhf/Uverw3ycLWVvy3zpB8WH54yPZD8 ABGfKkqUWsRSZ/wKSLtBx75q5Vqq6W3zMODquC+1bqDpzzsd3bilMwwETQngUmUF NiOho7041JZ6Wm00hNU9V0EaGEDy5aLyizVODo16HiDcaekcB1qUYeDGXJGjYClN 5HAe/1ho3MvW1TpceSllrNgo3Rm0Gvtu52FSezTobbjRkC8xRejzn2ABTq1fUuiy vNlp8HpRNzZz2LTL7rVQllmqr5WdvLpAgOeck1qpHzaLqOquI9zfE1JL2qnWSsjr mGut5kK7UBfK0znrQD0V =Ei9M -----END PGP SIGNATURE----- --GntRFHHYckrB+kfD--