X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EA029D1B181 for ; Tue, 13 Jul 2004 19:42:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04584-08 for ; Tue, 13 Jul 2004 22:42:47 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id CDB4DD1B1A5 for ; Tue, 13 Jul 2004 19:42:43 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i6DMgg612564; Tue, 13 Jul 2004 18:42:42 -0400 (EDT) From: Bruce Momjian Message-Id: <200407132242.i6DMgg612564@candle.pha.pa.us> Subject: Re: Point in Time Recovery In-Reply-To: <1089757534.17493.3217.camel@stromboli> To: Simon Riggs Date: Tue, 13 Jul 2004 18:42:42 -0400 (EDT) Cc: Tom Lane , pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/722 X-Sequence-Number: 56283 Simon Riggs wrote: > On Tue, 2004-07-13 at 22:19, Tom Lane wrote: > > > To have a consistent recovery at all, you must replay the log starting > > from a checkpoint before the backup began and extending to the time that > > the backup finished. You only get to decide where to stop after that > > point. > > > > So the situation is: > - You must only stop recovery at a point in time (in the logs) after the > backup had completed. > > No way to enforce that currently, apart from procedurally. Not exactly > frequent, so I think I just document that and move on, eh? If it happens, could you use your previous full backup and the PITR logs from before stop stopped logging, and then after? Is there a period where they could not restore reliably? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073