From: Michael Paquier <michael@paquier.xyz>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: Pierre Timmermans <ptim007@yahoo.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: using pg_basebackup for point in time recovery
Date: Fri, 22 Jun 2018 15:37:26 +0900
Message-ID: <20180622063726.GG5215@paquier.xyz> (raw)
In-Reply-To: <CAKFQuwZ0i7ZXFvWz6dqyz2-t=CSPhj0eKFWRKQNWnRfF4hfufA@mail.gmail.com>
References: <540f4e66-24c0-507d-9610-8c0f1205798b@aklaver.com>
<CANu8Fiz8WUk6KQvuRVbJ5ORPdLzRo6bZwYVgWPmu4+syG+0+QA@mail.gmail.com>
<CAM3msVYuk=ftRUEg+snjwZn1mn_4UtYWc0_KtjozFt1OwpXxBQ@mail.gmail.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>
<CAKFQuwZ0i7ZXFvWz6dqyz2-t=CSPhj0eKFWRKQNWnRfF4hfufA@mail.gmail.com>
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:
>
> "recover up to the wanted recovery point." - "desired recovery point" reads
> better to me
>
> ====
> "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 larger
> 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
Attachments:pitr-docs-v2.patch (text/x-diff, 1.3K) downloaddiff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgmlindex 982776ca0a..af48aa64c2 100644--- a/doc/src/sgml/backup.sgml+++ b/doc/src/sgml/backup.sgml@@ -1430,12 +1430,15 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
<title>Standalone Hot Backups</title>
<para>
- It is possible to use <productname>PostgreSQL</productname>'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 <application>pg_dump</application> dumps. (They are also much larger- than <application>pg_dump</application> dumps, so in some cases the speed advantage- might be negated.)+ It is possible to use <productname>PostgreSQL</productname>'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 backups+ are typically much faster to create and restore than+ <application>pg_dump</application> for large deployments but can result+ in larger backup sizes. Note also that+ <application>pg_dump</application> backups cannot be used for+ point-in-time recovery.
</para>
<para>
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael@paquier.xyz, david.g.johnston@gmail.com, vik.fearing@2ndquadrant.com, ptim007@yahoo.com
Subject: Re: using pg_basebackup for point in time recovery
In-Reply-To: <20180622063726.GG5215@paquier.xyz>
References: <540f4e66-24c0-507d-9610-8c0f1205798b@aklaver.com> <CANu8Fiz8WUk6KQvuRVbJ5ORPdLzRo6bZwYVgWPmu4+syG+0+QA@mail.gmail.com> <CAM3msVYuk=ftRUEg+snjwZn1mn_4UtYWc0_KtjozFt1OwpXxBQ@mail.gmail.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> <CAKFQuwZ0i7ZXFvWz6dqyz2-t=CSPhj0eKFWRKQNWnRfF4hfufA@mail.gmail.com> <20180622063726.GG5215@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox