From: Brian Ristuccia <bristucc@sw.starentnetworks.com>
To: pgsql-admin@postgresql.org
Subject: dumping tables from badly damaged db
Date: Fri, 31 Oct 2003 11:19:43 -0500
Message-ID: <20031031161943.GB24232@sw.starentnetworks.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bristucc@sw.starentnetworks.com
Subject: Re: dumping tables from badly damaged db
In-Reply-To: <20031031161943.GB24232@sw.starentnetworks.com>
References: <20031031161943.GB24232@sw.starentnetworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox