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 1fVTwp-00075e-Sh for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 03:38:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVTwm-0003G8-Bu for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 03:38:16 +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 1fVTwm-0003Fz-4G for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 03:38:16 +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 1fVTwi-0005Ri-0H for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 03:38:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9DD7A21CBB; Tue, 19 Jun 2018 23:38:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 19 Jun 2018 23:38:10 -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=6z9FTK11/9+c8GaH1hyzg1AbPP5QJUbujrVbdv1BQyY=; b=iz1iFunw M7UCrUxFn+b+YPpvGH0gOrjZ5W8R4MEIMZhjM4dZ5b7LsyQ4wuOmiRoR9T+97Qj6 D286Rn2b5vdMo84X1RkKZ0PkswJiIbFA0KRL9WJW/5nwPh/a6cuteaDmf9rIBAAc ztzPjuT0nMMvdxGDeA7a2h7dpuk8dRDqoVo6qU2h1xIiKBxqSpQ3MOf9MoP1Uuxr rcdxG4c8B3pSIift/kVpHIOvdfTIrEx1m91WqRY35E3SQ/M9Bn5gpEXEh1JPns/M QYtLQUJy5SskXKrX587NXymMAgmWVnVQ+B14e/Nc6ElzXPdOydaRLbFnSfyhHIR7 7TQdVoL4Cd8WMw== 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=6z9FTK11/9+c8GaH1hyzg1AbPP5QJ UbujrVbdv1BQyY=; b=IU4MuAqlnuRfXU7eYeBpCHDn+Ml/dx2pgzH+7v2cZTzfo caYG41TIkpK1cV/DLXuUKwFxatoVRapqFPAc15+LfUArZGuttJo1cYhDMTndbWsd U5h1rv5qlkMfCJ9tG4+HEnqplbNtxMfOZ9SZcgFXnlzkcewwYHxGgvVklF/CwMf9 aV03PWOODEHvHQdbMaHWpyd5JP5K36dv6ZJ5rhhFTZj47D9EZQGyhicRwnvF8FHq lEEO84UFFo5iFn5PsuhHOMTgrt4zndawJFRJMYH0mSdenm92Qez6RTM27B4ksCeH mH5VPAibtreLExoLX/LWAFpvaXFRDGLltu28Y8r4w== 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 3FA4EE4270; Tue, 19 Jun 2018 23:38:08 -0400 (EDT) Date: Wed, 20 Jun 2018 12:38:00 +0900 From: Michael Paquier To: Pierre Timmermans Cc: pgsql-general@lists.postgresql.org Subject: Re: using pg_basebackup for point in time recovery Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <202988089.1841507.1529409838414@mail.yahoo.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. 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. 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 --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlspzBgACgkQnvQgOdby QH3flRAAn1rDWpXERSVv1eSofSVp0fO8vS4fcCliMyM9ULoARLwQq2CdQYM8UwsJ DvEVxxVHZDHMIXoXq/hTFpC0O0UfTr+9ja6KS6v2UprDgBPcBlkxYVNF1GfJ8ycb dEmHUt2TXx+dmAUhBXVGLolWrKt3q3EoHpfRWhdIs0pRgy2/Y7azlqKChL+o9dD5 /hCkYUBmZtFjEehbNBgfNjzOFs6hRP4WCoS0PjxGQFWM2VMTB5KJp8/uocq0XqBZ f2UF4twgPeAJP4/14DuCQckQE02qT70LOcbOdjDAxirbeG6+F8CzR4izulegX4vI SMKDKSRIMlA6096xH1quo/2EQrIhNKBcty08EMuTSFeuyTnPB+gfuHdzWYS5bZr6 O934uCEfhfDlEXEnWmodRIxqvH03tGsdrBTg8kb6JLEyMpk8N1k4c2GJIy7/fdWz qOoIsidprbQ3SrzzKpYYTQFxhs9eftS/TjQBPoLzMQF+5BwY8Bqi8QkXLzY6bqhu SbWmjrwNSMQI3Y5D0XLqwg3CRrNlumYqEr/Rk16i1lwzEIJUOTN3BbKlpDPOsmxw i7dLVVYbKSqTkJP8U+1tthfAqh4qQQdgnHuXOTJNGlih2GdavshZM8maiavbjx6O IBM6MieexNKRYBH191PU3twmYPC5XBUGo2Pj9Cd2QWr733PZD8g= =Rpbi -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--