X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 08D2C3A1ABB for ; Mon, 20 Dec 2004 00:41:46 +0000 (GMT) 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 23226-08 for ; Mon, 20 Dec 2004 00:41:33 +0000 (GMT) Received: from sunsite.dcc.uchile.cl (sunsite.dcc.uchile.cl [192.80.24.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6F6313A1AB3 for ; Mon, 20 Dec 2004 00:41:29 +0000 (GMT) Received: from anakena.dcc.uchile.cl ([192.80.24.3]) by sunsite.dcc.uchile.cl (8.12.11/8.12.11) with ESMTP id iBK0faLq000812; Sun, 19 Dec 2004 21:41:36 -0300 (CLST) Received: by anakena.dcc.uchile.cl (Postfix, from userid 4151) id 02195527A4; Sun, 19 Dec 2004 21:41:32 -0300 (CLST) Date: Sun, 19 Dec 2004 21:41:32 -0300 From: Alvaro Herrera To: harry@uklug.co.uk Cc: pgsql-docs@postgresql.org Subject: Re: Database Recovery Message-ID: <20041220004132.GA8996@dcc.uchile.cl> References: <20041220001118.87459.qmail@web50403.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041220001118.87459.qmail@web50403.mail.yahoo.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.344 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200412/31 X-Sequence-Number: 2727 On Sun, Dec 19, 2004 at 04:11:17PM -0800, Harry wrote: > I have just had a bit of a disaster with a database and found very > little material online about how to recover from a corrupted database. > This is not the first time I have had to recoover data from a postgres > database which was caused either by some hardware failure or my own > error (not sure which is worse). > http://www.hjackson.org/blog/archives/2004/12/postgresql_data.html Huh, this sounds like transaction Id wraparound to me. Do you regularly run vacuums on the whole database? Did you ask for expert help on the lists before running to do whatever you did? -- Alvaro Herrera () "Entristecido, Wutra (canción de Las Barreras) echa a Freyr a rodar y a nosotros al mar"