X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B4E564758E6 for ; Tue, 8 Apr 2003 17:53:52 -0400 (EDT) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id DE213474E42 for ; Tue, 8 Apr 2003 17:53:51 -0400 (EDT) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.8/8.12.5) with ESMTP id h38MW9kj008794; Tue, 8 Apr 2003 18:32:09 -0400 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h38Lrqx20475; Tue, 8 Apr 2003 17:53:52 -0400 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2RXFAZ57; Tue, 8 Apr 2003 17:53:52 -0400 Subject: Re: urgent, Table not shown but files are there. From: Robert Treat To: Bill Hilburn Cc: pgsql-admin@postgresql.org In-Reply-To: <1049835566.3e93382eefdac@webmail.frontier.net> References: <1049835566.3e93382eefdac@webmail.frontier.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 08 Apr 2003 17:53:52 -0400 Message-Id: <1049838832.8125.9685.camel@camel> Mime-Version: 1.0 X-Spam-Status: No, hits=-34.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/123 X-Sequence-Number: 8278 On Tue, 2003-04-08 at 16:59, Bill Hilburn wrote: > > Hi All, > > I have inherited a Postgresql DB server, this morning one of the tables is no > longer available to scripts and does not show up in psql. > > The main directory for the database is still there and all of the files in it > including the file(s) for the table that is not showing up. > How do you know the file is for that table? When you do a select * from pg_class where relname = 'yourtable' what do you get? > >From what someone here said this has happened before and the old db admin > would just fix it in a couple of minutes, I'm new to Postgresql and have not a > clue. > > Anyone seen this behaviour before? Any ideas? > This seems pretty bizarre to me, like your either telling us mis-information or you've got serious hardware issues. I would guess you could try to do a create table then look up the relfilenode and copy your other table file over that one, but that might cause more problems if I'm mis-diagnosing your description of the problem, so try it on a backup server first if you can. I'd recommend posting platform/version info as well before you go to much further. Robert Treat