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 53C2FD1B34D for ; Tue, 13 Jul 2004 19:56:33 -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 10356-10 for ; Tue, 13 Jul 2004 22:56:33 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id DB524D1B349 for ; Tue, 13 Jul 2004 19:56:29 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6DMuVi5019895; Tue, 13 Jul 2004 18:56:31 -0400 (EDT) To: Simon Riggs Cc: pgsql-hackers@postgresql.org Subject: Re: Point in Time Recovery In-reply-to: <1089757534.17493.3217.camel@stromboli> References: <1089060299.17493.58.camel@stromboli> <4263.1089064016@sss.pgh.pa.us> <1089150005.17493.270.camel@stromboli> <1089718702.17493.2527.camel@stromboli> <15780.1089728984@sss.pgh.pa.us> <1089750349.17493.3092.camel@stromboli> <18739.1089753596@sss.pgh.pa.us> <1089757534.17493.3217.camel@stromboli> Comments: In-reply-to Simon Riggs message dated "Tue, 13 Jul 2004 23:25:34 +0100" Date: Tue, 13 Jul 2004 18:56:31 -0400 Message-ID: <19894.1089759391@sss.pgh.pa.us> From: Tom Lane 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/730 X-Sequence-Number: 56291 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.) regards, tom lane