Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 8311F2E002F for ; Fri, 16 May 2008 13:30:04 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 35328-03 for ; Fri, 16 May 2008 13:29:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136189.authsmtp.net (outmail136189.authsmtp.net [62.13.136.189]) by developer.postgresql.org (Postfix) with ESMTP id 111A82E002D for ; Fri, 16 May 2008 13:28:55 -0300 (ADT) Received: from mail.authsmtp.com (mail.authsmtp.com [62.13.128.187]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m4GGSfYf075535; Fri, 16 May 2008 17:28:41 +0100 (BST) Received: from [192.168.0.6] (85-211-226-243.dyn.gotadsl.co.uk [85.211.226.243]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m4GGSeih029860; Fri, 16 May 2008 17:28:40 +0100 (BST) Subject: Re: error message in PITR restore: From: Simon Riggs To: Mark Steben Cc: pgsql-admin@postgresql.org In-Reply-To: <006b01c8b76a$690c0170$14010a0a@dei26g028575> References: <006b01c8b76a$690c0170$14010a0a@dei26g028575> Content-Type: text/plain; charset=utf-8 Date: Fri, 16 May 2008 17:30:21 +0100 Message-Id: <1210955421.18922.63.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 8bit X-Server-Quench: 24cb9b61-2365-11dd-8782-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaQNbYFhI HGQLW1xEUVp7W2t/ bwofZQBDYEtPQQdo VlZLRlFNFgB3AVJc AmlpMUwrLwVEcXZ2 ZQhjX3lTEkZ+JhR0 EEhVCG8FY2J9aWFL BF1QcAtWbQNKfx5N bwR8U3ReMCtlM3Bw LCYfGhEXCH1SMj5S WEkIIEkJSEkGVj86 DygjIQ9nB0AeWyIp Ik5O X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:953/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/146 X-Sequence-Number: 29230 On Fri, 2008-05-16 at 11:35 -0400, Mark Steben wrote: > I’m in the process of implementing PITR backups and restores and > learning as I practice. I restored > > Using tar –xzf (backup-name) followed by restarting postgres and > having the server replay the logs. > > I used a recovery_target_time of 1 day prior to current_date > Postgres seems to come up OK but > Did you use pg_start_backup()? That sequence of events can occur if the backup_label file is missing, since that won't constrain the stop point from being earlier than it should be. Is there a backup_label file as part of the tar? -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support