X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D7512D1C4D6 for ; Wed, 30 Jul 2003 17:16:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 74576-01 for ; Wed, 30 Jul 2003 14:15:46 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id D2DF0D1C4E6 for ; Wed, 30 Jul 2003 14:16:46 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19huZC-0007Mu-00 for ; Wed, 30 Jul 2003 13:16:46 -0400 Received: by dba2 (Postfix, from userid 1019) id 21DFFCEC9; Wed, 30 Jul 2003 13:18:08 -0400 (EDT) Date: Wed, 30 Jul 2003 13:18:08 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: recovery from a bad transaction log Message-ID: <20030730171807.GD12794@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <20030730143603.007BA13E23@guthrie.charm.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030730143603.007BA13E23@guthrie.charm.net> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/344 X-Sequence-Number: 9684 On Wed, Jul 30, 2003 at 10:36:03AM -0400, pgboy@guthrie.charm.net wrote: > > given that someone (else) deleted the pg_xlog directory, or that it got > otherwise corrupted, is there a way to regenerate the database, given > that all the data is still safely tucked away in $PGDATA/base ??? Well, I'm not too sure how correct that is (how do you know _all_ the data is there), but you could try pg_resetxlog. I'd go looking for data in an inconsistent state afterwards, though. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110