Re: pg_class / missing tables

From: "Lee Wu" <Lwu(at)mxlogic(dot)com>
To: "Wim Kerkhoff" <wim(at)nyetwork(dot)org>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_class / missing tables
Date: 2004-09-14 15:46:44
Message-ID: ECAB83AA52BCC043A0E24BBC00001024111391@mxhq-exch.corp.mxlogic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I had similar problem before. I was able to select from
the_missig_table.
What I did to fix my problem was to vacuum the whole database by login
psql:
vacuum;

Hope it helps!

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Wim Kerkhoff
Sent: Monday, September 13, 2004 8:31 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] pg_class / missing tables

I'm trying to recover a database where some tables 'went missing'...

Short story: server was rebooted without being shut down properly, upon
bootup PostgreSQL (7.4.3) starts fine, but a couple of data tables
(along with their associated indexes and sequences) are gone. Other
tables are still there.

The missing tables aren't listed in \d or in the pg_class table, but
according to the sizes of the numbered files in
/var/lib/postgres/data/base/142772, the raw files must still be there.
What's interested is that if I try:

CREATE TABLE missing_table_name (foo int);

It does complain that the table already exists...

What's happening here?

Many thanks,

Wim

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Wim Kerkhoff 2004-09-14 18:30:34 Re: pg_class / missing tables
Previous Message Yiqun Lin 2004-09-14 15:38:48 adduser postgres