X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 856ECD1B55F for ; Fri, 31 Oct 2003 16:20:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27489-01 for ; Fri, 31 Oct 2003 12:19:53 -0400 (AST) Received: from pasta.sw.starentnetworks.com (pasta.sw.starentnetworks.com [12.33.234.10]) by svr1.postgresql.org (Postfix) with ESMTP id 2E0F9D1B502 for ; Fri, 31 Oct 2003 12:19:50 -0400 (AST) Received: by pasta.sw.starentnetworks.com (Postfix, from userid 1008) id 922D514A1A7; Fri, 31 Oct 2003 11:19:43 -0500 (EST) Date: Fri, 31 Oct 2003 11:19:43 -0500 From: Brian Ristuccia To: pgsql-admin@postgresql.org Subject: dumping tables from badly damaged db Message-ID: <20031031161943.GB24232@sw.starentnetworks.com> Reply-To: bristucc@sw.starentnetworks.com Mail-Followup-To: bristucc@sw.starentnetworks.com, pgsql-admin@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/411 X-Sequence-Number: 10972 Recently I had a problem where a system crash scribbed on some directories, which landed a bunch of files, including a few of the system table files for one of my databases, in lost+found along with a zillion other files. I might be able to find the file for this table/index in lost+found, but how do I know what name to give it in /var/lib/postgres/...? These files are named after OID's which I can't find because I can't connect to the database. If I can't get the file back, is there any way I can dump the data out of the remaining tables? Currently, I can't connect to the database with the following error: psql: FATAL 1: cannot open pg_class_relname_index: No such file or directory I suspect that's very bad, considering the centrality of the pg_class table... -- Brian Ristuccia bristucc@sw.starentnetworks.com