pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Roy Souther <roy@silicontao.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Corrupted database, how do I fix?
Date: Tue, 05 Jun 2001 15:48:32 -0400
Message-ID: <20339.991770512@sss.pgh.pa.us> (raw)
In-Reply-To: <0106050937170D.14258@OlympusMons>
References: <0106050937170D.14258@OlympusMons>

Roy Souther <roy@silicontao.com> writes:
> But I can do "SELECT * FROM a_bad_table" and I see all the data, it is there.
> But also when I do "SELECT * FROM pg_tables WHERE tablename = 'a_bad_table'"
> I get nothing, it is not in the tables table.

pg_tables is just a view, and it filters out stuff that it thinks is a
view or otherwise not a plain table.  What do you see if you look in
pg_class?

			regards, tom lane



view thread (2+ messages)

Message-ID: <20339.991770512@sss.pgh.pa.us>
Permalink:  ../20339.991770512@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20339.991770512@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, roy@silicontao.com
  Subject: Re: Corrupted database, how do I fix?
  In-Reply-To: <20339.991770512@sss.pgh.pa.us>
  References: <0106050937170D.14258@OlympusMons> <20339.991770512@sss.pgh.pa.us>

* 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