Skip site navigation (1) Skip section navigation (2)

pg_class / missing tables

From: Wim Kerkhoff <wim(at)nyetwork(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: pg_class / missing tables
Date: 2004-09-14 02:30:34
Message-ID: 414657CA.5040809@nyetwork.org (view raw or flat)
Thread:
Lists: pgsql-admin
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


Responses

pgsql-admin by date

Next:From: Chester KustarzDate: 2004-09-14 04:40:28
Subject: Re: pg_class / missing tables
Previous:From: Lee WuDate: 2004-09-13 15:48:34
Subject: Re: dropping a table constraint

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group