pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wim Kerkhoff <wim@nyetwork.org>
To: pgsql-admin@postgresql.org
Subject: pg_class / missing tables
Date: Mon, 13 Sep 2004 19:30:34 -0700
Message-ID: <414657CA.5040809@nyetwork.org> (raw)

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




view thread (8+ messages)  latest in thread

Message-ID: <414657CA.5040809@nyetwork.org>
Permalink:  ../414657CA.5040809@nyetwork.org/
Also on:    postgresql.org/message-id/414657CA.5040809@nyetwork.org

 · 

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: wim@nyetwork.org
  Subject: Re: pg_class / missing tables
  In-Reply-To: <414657CA.5040809@nyetwork.org>
  References: <414657CA.5040809@nyetwork.org>

* 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