Re: cache lookup failed for relation X - Mailing list pgsql-general

From Tom Lane
Subject Re: cache lookup failed for relation X
Date
Msg-id 6150.1205005662@sss.pgh.pa.us
Whole thread Raw
In response to cache lookup failed for relation X  ("Wei Wu" <w.wu@delcan.com>)
List pgsql-general
"Wei Wu" <w.wu@delcan.com> writes:
> Basically, we have a table X, trying to drop
> it would result an error message below:
> cache lookup failed for relation XXXXX

You've got missing catalog rows, apparently.

> I  am using PgAdmin  and I can still view the schema of this table, but
> any operation on it would get the above error.

Hmmm ... how long since the system catalogs in this database were
vacuumed?

> I am also wondering whether this problem has been fixed in newer
> PostgreSQL releases.
> BTW, our postgreSQL version is 7.4.3.

It's hard to say, but you are three and a half years behind on bug fixes,
some of which certainly could have led to corruption of this sort.
You really should be running 7.4.19.  Read the release notes here:
http://www.postgresql.org/docs/7.4/static/release.html

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cumulative (Running) Sum
Next
From: Tom Lane
Date:
Subject: Re: Problems with 8.3