Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F138964FDA2 for ; Fri, 19 Dec 2008 13:11:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 09374-08 for ; Fri, 19 Dec 2008 13:11:33 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137069.authsmtp.net (outmail137069.authsmtp.net [62.13.137.69]) by mail.postgresql.org (Postfix) with ESMTP id AEB6B64FD07 for ; Fri, 19 Dec 2008 13:11:31 -0400 (AST) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt5.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id mBJHBKir029315; Fri, 19 Dec 2008 17:11:20 GMT Received: from [192.168.0.3] (85-211-226-82.dyn.gotadsl.co.uk [85.211.226.82]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id mBJHBHne084903; Fri, 19 Dec 2008 17:11:18 GMT Subject: Re: Warm Standby - log shipping From: Simon Riggs To: Mark Steben Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 19 Dec 2008 17:11:26 +0000 Message-Id: <1229706686.4793.554.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 0cff37ff-cdf0-11dd-8155-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaQxbaVxS HGQLW1xEUVp7WGJ/ agIfZQBDYEtPQQdo VlZBQE1QEQdtHhxP W2xkKmsKKVBGcHp5 ZUUsX3FbWgp6JhAr QUkCQ3BVMTFgdWEe BBRFfwJRdR5Kfh5E YlUrV3QKMjRJBC9q VzwaExUQGwAXFy1P R0k2MVsUTUwaVnt0 QxcNVS4vHFUdRiM8 RyAn X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:1378/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-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/162 X-Sequence-Number: 30995 On Thu, 2008-12-18 at 16:43 -0500, Mark Steben wrote: > 3. I am currently in a state where a log got partially copied and > postgres > cannot find a valid checkpoint to restart. What is the best way to > remedy > this situation? Pg_resetxlog perhaps? Now, pg_resetxlogs, but in future don't delete WAL files that may be needed for recovery. You can use pg_controldata test | grep REDO | cut -d: -f 2 to find out the LSN of the last restartpoint, which can then be converted into an xlogfilename using pg_xlogfile_name(). -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support