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 21048D1B4FE for ; Fri, 31 Oct 2003 19:47:11 +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 63149-07 for ; Fri, 31 Oct 2003 15:46:41 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 5D0E5D1BBA4 for ; Fri, 31 Oct 2003 15:45:56 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9VJjvN8016558; Fri, 31 Oct 2003 14:45:57 -0500 (EST) To: Brian Ristuccia Cc: pgsql-admin@postgresql.org Subject: Re: dumping tables from badly damaged db 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> Comments: In-reply-to Brian Ristuccia message dated "Fri, 31 Oct 2003 14:15:46 -0500" Date: Fri, 31 Oct 2003 14:45:57 -0500 Message-ID: <16557.1067629557@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/421 X-Sequence-Number: 10982 Brian Ristuccia 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