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 2D304D1B198 for ; Tue, 13 Jul 2004 20:02:00 -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 14353-08 for ; Tue, 13 Jul 2004 23:01:45 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 07C77D1B181 for ; Tue, 13 Jul 2004 20:01:41 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i6DN1fb16205; Tue, 13 Jul 2004 19:01:41 -0400 (EDT) From: Bruce Momjian Message-Id: <200407132301.i6DN1fb16205@candle.pha.pa.us> Subject: Re: Point in Time Recovery In-Reply-To: <19894.1089759391@sss.pgh.pa.us> To: Tom Lane Date: Tue, 13 Jul 2004 19:01:41 -0400 (EDT) Cc: Simon Riggs , 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/733 X-Sequence-Number: 56294 Tom Lane wrote: > Simon Riggs writes: > > So the situation is: > > - You must only stop recovery at a point in time (in the logs) after the > > backup had completed. > > Right. > > > No way to enforce that currently, apart from procedurally. Not exactly > > frequent, so I think I just document that and move on, eh? > > The procedure that generates a backup has got to be responsible for > recording both the start and stop times. If it does not do so then > it's fatally flawed. (Note also that you had better be careful to get > the time as seen on the server machine's clock ... this could be a nasty > gotcha if the backup is run on a different machine, such as an NFS > server.) OK, but procedurally, how do you correlate the start/stop time of the tar backup with the WAL numeric file names? -- 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