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 1fVY8b-0008My-F5 for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 08:06:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVY8Z-0001ZI-So for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 08:06:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVY8Z-0001Z8-HB for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 08:06:43 +0000 Received: from sonic306-19.consmr.mail.gq1.yahoo.com ([98.137.68.82]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVY8S-0001yd-8e for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 08:06:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1529481994; bh=4jUBjEXEaOOm1o+JJDL6ELT/g5kgNpGZKNUEESiZW14=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=rOfxC/KKSyAUc8XXf2/Pm4qF3CiQaSj3S2F14h04Qe4ZwCi8x6teXYjSRn1MMsZgLsXxCDfQBKsij3Sip0R3rUPwuU1sajSLNa+3gy+p+wQCPjsysHKNoQUVHNHlA9a+10BLvu0AjkCpjdOeRShz3rMs+cDEHCMkP1NYGc9Exfu8bLXbk7pZ9fsD+OIu8L7+EGNNUwLJO5/EkdqxLHv08g3ZfNPH0t3KYf0TaxIIh34DNrIPnDSarJK3tvc0bY0h0VjZ6SbFEmTQOlT0Nehoavy49obwZmxtLyYEm0k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ed, 20 Jun 2018 08:06:34 +0000 Date: Wed, 20 Jun 2018 08:06:31 +0000 (UTC) From: Pierre Timmermans To: Michael Paquier Cc: pgsql-general@lists.postgresql.org Message-ID: <1402042632.2394593.1529481991918@mail.yahoo.com> In-Reply-To: <20180620033800.GA19346@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> Subject: Re: using pg_basebackup for point in time recovery MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2394592_613086167.1529481991916" X-Mailer: WebService/1.1.11988 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 Content-Length: 7746 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2394592_613086167.1529481991916 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Michael Thanks for the confirmation. Your rewording removes the confusion. I would = maybe take the opportunity to re-instate that pg_dump cannot be used for PI= TR, so in the line of "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.=C2=A0 These backups are typically much faster to backup and restore than pg_dump for large deployments but can result as well in larger backup sizes, so the speed of one method or the other is to evaluate carefully first. Consider also that pg_dump backups cannot be used for poin= t-in-time recovery." =C2=A0Maybe the confusion stems from the fact that if you restore a standal= one (self-contained) pg_basebackup then - by default - recovery is done wit= h the recovery_target immediate option, so if one needs point-in-time recov= ery he has to edit the recovery.conf and brings the archives.. Thanks and regards,=C2=A0 Pierre=20 On Wednesday, June 20, 2018, 5:38:56 AM GMT+2, Michael Paquier wrote: =20 =20 Hi Pierre, On Tue, Jun 19, 2018 at 12:03:58PM +0000, Pierre Timmermans wrote: > Here is the doc, the sentence that I find misleading is "There are > backups that cannot be used for point-in-time recovery", also > mentioning that they are faster than pg_dumps add to confusion (since > pg_dumps cannot be used for PITR): > https://www.postgresql.org/docs/current/static/continuous-archiving.html Yes, it is indeed perfectly possible to use such backups to do a PITR as long as you have a WAL archive able to replay up to the point where you want the replay to happen, so I agree that this is a bit confusing. This part of the documentation is here since the beginning of times, well 6559c4a2 to be exact.=C2=A0 Perhaps we would want to reword this sentence as follows: "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.=C2=A0 These backups are typically much faster to backup and restore than pg_dump for large deployments but can result as well in larger backup sizes, so the speed of one method or the other is to evaluate carefully first." I am open to better suggestions of course. -- Michael =20 ------=_Part_2394592_613086167.1529481991916 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Michael

Thanks for the confirmation. Your rewording removes t= he confusion. I would maybe take the opportunity to re-instate that pg_dump= cannot be used for PITR, so in the line of

= "These are backups that could be used for point-in-time recover= y if
combined with a WAL archive= able to recover up to the wanted recovery
point.  These backups are typically much faster to backup= and restore
than pg_dump for la= rge deployments but can result as well in larger
backup sizes, so the speed of one method or the other is t= o evaluate
carefully first. Cons= ider also that pg_dump backups cannot be used for point-in-time recovery."<= /span>

 
Maybe= the confusion stems from the fact that if you restore a standalone (self-c= ontained) pg_basebackup then - by default - recovery is done with the recov= ery_target immediate option, so if one needs point-in-time recovery he has = to edit the recovery.conf and brings the archives..

Thanks and regards, 

Pierre


=20
=20
On Wednesday, June 20, 2018, 5:38:56 AM GMT+2, Michael = Paquier <michael@paquier.xyz> wrote:


Hi Pierre,

On Tue, Jun = 19, 2018 at 12:03:58PM +0000, Pierre Timmermans wrote:
&g= t; Here is the doc, the sentence that I find misleading is "There are
> backups that cannot be used for point-in-time recovery", = also
> mentioning that they are faster than pg_dumps a= dd to confusion (since
> pg_dumps cannot be used for P= ITR):
> https://www.postgresql.org/docs/current/static/continuous-arc= hiving.html


Yes, it is indee= d perfectly possible to use such backups to do a PITR
as = long as you have a WAL archive able to replay up to the point where
you want the replay to happen, so I agree that this is a bit con= fusing.
This part of the documentation is here since the = beginning of times,
well 6559c4a2 to be exact.  Perh= aps we would want to reword this
sentence as follows:
"These are backups that could be used for point-in-time reco= very if
combined with a WAL archive able to recover up to= the wanted recovery
point.  These backups are typic= ally much faster to backup and restore
than pg_dump for l= arge deployments but can result as well in larger
backup = sizes, so the speed of one method or the other is to evaluate
carefully first."

I am open to be= tter suggestions of course.
--
Michael<= div class=3D"ydp57913112yqt8327864621" id=3D"ydp57913112yqtfd37067">
------=_Part_2394592_613086167.1529481991916--