Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fWFhR-0001Un-H7 for pgsql-general@arkaria.postgresql.org; Fri, 22 Jun 2018 06:37:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fWFhP-00078M-Km for pgsql-general@arkaria.postgresql.org; Fri, 22 Jun 2018 06:37:35 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fWFhP-00078E-DF for pgsql-general@lists.postgresql.org; Fri, 22 Jun 2018 06:37:35 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fWFhM-0007ab-9o for pgsql-general@lists.postgresql.org; Fri, 22 Jun 2018 06:37:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1001E2205B; Fri, 22 Jun 2018 02:37:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 22 Jun 2018 02:37:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=auvnlTsfxszfOkSL4iFAJMUJ/aT6DQA/nFaUEV0lql0=; b=GDyuAx68 2k7uCm+yl3N5pdtg1N2H3AWi4RPognq+zov66cM5w3Up2/lewRO1qGrszl4JF75q WNft/HwIHm7l6CbqFRAwxyZlYqzcLcoCCPrk/KdsX1HMWsZ73YtDtpDul6YmAPzN +yI4bfVYjOgIWE+jobY8PeU+bQ8f9p7JTCVzPT0aXav6AS7HzWeQyK+6NhLEQBIe 4FVm0LJeYBvXft+bWJ/8TmVb0J5rMYR9oSrkD8Pl2YgtrJmFFbsN15yQ+mwa8cCm W69hLO6XFUp6jrDjcFaYsNRf+M2qZ9OcLv9Eq/CdgYU8FPPBN3YNZLutXgysELzV /KNJHgwRkicGCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=auvnlTsfxszfOkSL4iFAJMUJ/aT6D QA/nFaUEV0lql0=; b=cjS5AA3hGvYVw7dfevzOQsgQ27VoxVQdW9Lgh4/iroERX ifnaAK2/A47TBq+HXPFFeb3MuaKwyg4G2puWUHLlhSVfdZKo1/5OW/NRaafnHQB9 rbFOSiHzyYXneSmuM2ScDTHgDsY2KjZoG3YpQKhAHpPZ8HLxyIE4QeTb64wpoZQz 6Y8hMzWJn69s/Vbb0lsB1wSgcERR3Xg2LfLvSpR3XwMB/KWMdMpaDAd2FgTJ5+Dp BuzZYpCkypgda1TVlhy3q7X7GLT1Aop3AsiZIsmmqLrqi5AOvsH6PHRiKwmT0zmg UPwK1SmcqVWVkJ4wvVWbvkeSkvZIkpe/6X+wZttRw== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 75F5E10324; Fri, 22 Jun 2018 02:37:29 -0400 (EDT) Date: Fri, 22 Jun 2018 15:37:26 +0900 From: Michael Paquier To: "David G. Johnston" Cc: Vik Fearing , Pierre Timmermans , "pgsql-generallists.postgresql.org" Subject: Re: using pg_basebackup for point in time recovery Message-ID: <20180622063726.GG5215@paquier.xyz> References: <540f4e66-24c0-507d-9610-8c0f1205798b@aklaver.com> <5d37a105-501f-5718-0e70-9a64978d5547@gmail.com> <202988089.1841507.1529409838414@mail.yahoo.com> <20180620033800.GA19346@paquier.xyz> <1402042632.2394593.1529481991918@mail.yahoo.com> <20180621052725.GC1679@paquier.xyz> <2e454930-6128-4eed-3513-5ef2c965281a@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Re2uCLPLNzqOLVJA" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Re2uCLPLNzqOLVJA Content-Type: multipart/mixed; boundary="WHz+neNWvhIGAO8A" Content-Disposition: inline --WHz+neNWvhIGAO8A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 21, 2018 at 04:50:38PM -0700, David G. Johnston wrote: > Generally only actual bug fixes get back-patched; but I'd have to say > this looks like it could easily be classified as one. Everybody is against me here ;) > Some comments on the patch itself: >=20 > "recover up to the wanted recovery point." - "desired recovery point" rea= ds > better to me >=20 > =3D=3D=3D=3D > "These backups are typically much faster to backup and restore" - "These > backups are typically much faster to create and restore"; avoid repeated > use of the word backup Okay. > "but can result as well in larger backup sizes" - "but can result in larg= er > backup sizes", drop the unnecessary 'as well' Okay. > I like adding "cold backup" here to help contrast and explain why a base > backup is considered a "hot backup". The rest is style to make that flow > better. Indeed. The section uses hot backups a lot. What do all folks here think about the updated attached? -- Michael --WHz+neNWvhIGAO8A Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="pitr-docs-v2.patch" Content-Transfer-Encoding: quoted-printable diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index 982776ca0a..af48aa64c2 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1430,12 +1430,15 @@ restore_command =3D 'cp /mnt/server/archivedir/%f %= p' Standalone Hot Backups =20 - It is possible to use PostgreSQL's backup= facilities to - produce standalone hot backups. These are backups that cannot be used - for point-in-time recovery, yet are typically much faster to backup = and - restore than pg_dump dumps. (They are al= so much larger - than pg_dump dumps, so in some cases the = speed advantage - might be negated.) + It is possible to use PostgreSQL's backup + facilities to produce standalone hot backups. These are backups that + could be used for point-in-time recovery if combined with a WAL + archive able to recover up to the wanted recovery point. These back= ups + are typically much faster to create and restore than + pg_dump for large deployments but can res= ult + in larger backup sizes. Note also that + pg_dump backups cannot be used for + point-in-time recovery. =20 --WHz+neNWvhIGAO8A-- --Re2uCLPLNzqOLVJA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlssmSYACgkQnvQgOdby QH2zQw/+IearbOLcuaE8W+uxyVqMc8KYxnREr4smlf0K8JlDve1BvHfR2mgBCF2Z XwUZNnYWX00w7oUtxrptVmgckrF4Th6X4W1pFAi84BZroQrK+/kEjpJzbA3+7Ks2 9c2Cir56Nk+eRGBE/JEz5kqvEZeASv0VpNFvKCKBPpoh2RBo8GL9Y6kipZNewM0c VfyCTub2h33sMn8V0atLt5QGmm8O33ybPSV7pK0n4esupGwQGqobevPK+i0izOvi gY5NsHOFBK+pLgPvncj3+vtFO6QUMlDkuKifVhcUCKx3l+zN/GTMIKlIR+xDU8NS l/W/J5RDnS6tqBt+9exOKuhX1BAZFTUps6k7TM3iQuUS4xZijJhcQvWd0dLVQ7P5 wQS7MRAISjZ8BKSn4f+gMl6RnSs6r7kmp3o82uJrvcZI4SMz9KIRrQvozCGQK6hk pHtUoYjvw+93sZHhVZK/8Nqg4YUjOiio1UCxzIYrdKAFrwn5e9URLMgUjfMikUAQ fIOgvKK3GpqrqKDNlUvxQneNj4uNTe0FtyivEeZy3bAhB7vVHIjHbjmUbPfCsNnz ZYV3AB4TY8s+5naR5/xabzQzpjozzQ2OEMeLGyyV04sSHTZiM4uuEmHig9t3CKnP xmZl0nzY6Qs7fq825iXmp5uVuBKqqg7vx1rvLbEtsc+dp9zYDxU= =KB6G -----END PGP SIGNATURE----- --Re2uCLPLNzqOLVJA--