pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Bill Hilburn <bhilburn@frontier.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: urgent, Table not shown but files are there.
Date: 08 Apr 2003 17:53:52 -0400
Message-ID: <1049838832.8125.9685.camel@camel> (raw)
In-Reply-To: <1049835566.3e93382eefdac@webmail.frontier.net>
References: <1049835566.3e93382eefdac@webmail.frontier.net>

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 <yourtable> 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




view thread (2+ messages)

Message-ID: <1049838832.8125.9685.camel@camel>
Permalink:  ../1049838832.8125.9685.camel@camel/
Also on:    postgresql.org/message-id/1049838832.8125.9685.camel@camel

 · 

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: xzilla@users.sourceforge.net, bhilburn@frontier.net
  Subject: Re: urgent, Table not shown but files are there.
  In-Reply-To: <1049838832.8125.9685.camel@camel>
  References: <1049835566.3e93382eefdac@webmail.frontier.net> <1049838832.8125.9685.camel@camel>

* 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