pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian Ristuccia <bristucc@sw.starentnetworks.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: dumping tables from badly damaged db
Date: Fri, 31 Oct 2003 14:45:57 -0500
Message-ID: <16557.1067629557@sss.pgh.pa.us> (raw)
In-Reply-To: <20031031191546.GC24232@sw.starentnetworks.com>
References: <20031031161943.GB24232@sw.starentnetworks.com>
	<6231.1067627157@sss.pgh.pa.us>
	<20031031191546.GC24232@sw.starentnetworks.com>

Brian Ristuccia <bristucc@sw.starentnetworks.com> writes:
> The standalone backend errors out with:
> FATAL 1:  _mdfd_getrelnfd: cannot open relation pg_trigger: No such file or
> directory

Well, if you can identify which of the lost+found files is pg_trigger,
you can move it back into place and then try again.  (Look for trigger
names in the od -c dump...)  All the system tables have fixed names
(relfilenode values) which you can determine by consulting another
database of the same PG version.  pg_trigger is 16412 in 7.3, for
instance.

Lather, rinse, repeat until it comes up ...

> My week-old backups are starting to look more and more attractive.

I didn't say this was going to be painless.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <16557.1067629557@sss.pgh.pa.us>
Permalink:  ../16557.1067629557@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16557.1067629557@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, bristucc@sw.starentnetworks.com
  Subject: Re: dumping tables from badly damaged db
  In-Reply-To: <16557.1067629557@sss.pgh.pa.us>
  References: <20031031161943.GB24232@sw.starentnetworks.com> <6231.1067627157@sss.pgh.pa.us> <20031031191546.GC24232@sw.starentnetworks.com> <16557.1067629557@sss.pgh.pa.us>

* 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