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 1n8SRX-0001Xc-Kt for pgsql-general@arkaria.postgresql.org; Fri, 14 Jan 2022 19:40:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n8SRW-0004U0-F3 for pgsql-general@arkaria.postgresql.org; Fri, 14 Jan 2022 19:40:58 +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 1n8SRW-0004Tl-3x for pgsql-general@lists.postgresql.org; Fri, 14 Jan 2022 19:40:58 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n8SRT-0002Nt-J4 for pgsql-general@lists.postgresql.org; Fri, 14 Jan 2022 19:40:57 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 955E65F79F; Fri, 14 Jan 2022 14:40:54 -0500 (EST) Date: Fri, 14 Jan 2022 14:40:54 -0500 From: Stephen Frost To: Ron Cc: pgsql-general@lists.postgresql.org Subject: Re: WAL Archiving and base backup Message-ID: <20220114194054.GC10577@tamriel.snowman.net> References: <164bc278-a4cd-f7cf-613b-e1c94aa63e56@usa.net> <1d73a885-1c78-eec5-fbc6-fe5e0f621e5f@usa.net> <20220114183144.GA10577@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0vzXIDBeUiKkjNJl" 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: Archived-At: Precedence: bulk --0vzXIDBeUiKkjNJl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Ron (ronljohnsonjr@gmail.com) wrote: > On 1/14/22 12:31 PM, Stephen Frost wrote: > >* Issa Gorissen (issa-gorissen@usa.net) wrote: > >>Thx a lot. I thought about it but was not so sure about having a complex > >>script (compared to the very simple version when using the exclusive ba= ckup > >>- but this this is deprecated...). > >> > >>I will test your option with the simpler version and post it back to it= can > >>maybe land in PostgreSQL documentation. > >The PG docs show how the command works and that's it. The commands > >in the docs aren't intended to be actually used in production > >environments. Writing a full solution involves having a good > >understanding of the PG code and how WAL archiving, backups, et al, are > >done. If you're not familiar with this portion of the PG code base, I'd > >strongly suggest you look at using solutions written and maintained by > >folks who are. >=20 > Needing to read the PG source code to write a workable PITR recovery > solution is a serious flaw in PG documentation (and why I use PgBackRest). I disagree that it's a flaw in the documentation- it's an unfortunate reality of the current core code. We shouldn't be trying to provide documentation around how to write a tool like pgbackrest, we should, instead, have a tool like pgbackrest in core with its own documentation, as most other RDBMS's do. > The documentation of two other RDBMSs that I've worked with (Rdb/VMS and = SQL > Server) are perfectly clear on how to do such backups and restores with > relatively small amounts of scripting. =2E.. using tools which are purpose built to the task, no? Thanks, Stephen --0vzXIDBeUiKkjNJl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJh4dHGAAoJEO1sijiDR2RVlI4QAMOAHXnXb5+UCPy0IYTHts3e por34dN9MMv4RiNaYFrXZe9tZit8kjO2BmthUXGCgIaQ2o4e435qdNTlMQbhZjJo 0+wXvgc2QlNAHJhgSovY8ErJQBGcA14Z4i8FW7aeQZ5wbIYklJy5ejv8xFRL3oe2 5pyxaTuAHjh1FqXJjdCaoNIvSCOfPboeybuNW6KLwfQA2ptLVtuk4YBMNv6ZfQHr eSFRJuPB+obN8nvVS1kie39b04HJOuWff8cSamgvTT/kf5JbU6cJSDaKsQZKtapC kBGe6TBKJb4XqT2PtxQjk6mWuuZnzKTwSOAhX9DjrhcPmzL8XuPR0JBjvGgZfc4g BQFdeqPN92RT1ghglJ039oFS9Z0UXclcb1Jx0ajwPOZTwhNGfjTp5jD4fTfZGdTu qE2gnNcqxi5fNnnsd2ABB4405dnwi1aI+Ofd+I5MOPcEkZo6vhfqfm9tFIlMhU2L 0++zTYKRzkQzjMZQu9nISobBX+qU7qiZ/9iUxWTYFKKYRdGAPgrbBY5uEsCH4ZB3 p4EZZG7JymjfxgeXUE0jYQ0s/LE58aCfI4eZFqCXa3feYffqYz7C5DYZ3xihBELU cSnqEt7Rq8PauswUbHKPoP10MUXPzTBK/pPzzNtxa6OsU7cjkhEWo1c7lN/cfNfJ PlKvNpf4LbdXCCjmtptt =fG5J -----END PGP SIGNATURE----- --0vzXIDBeUiKkjNJl--