Re: Problems with my server... - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Problems with my server...
Date
Msg-id 16004.1011893039@sss.pgh.pa.us
Whole thread Raw
In response to Problems with my server...  ("Paulo Jorge Gomes Ferreira" <paulojf@srsleiria.min-saude.pt>)
List pgsql-bugs
"Paulo Jorge Gomes Ferreira" <paulojf@srsleiria.min-saude.pt> writes:
> I've got a problem in my PostgreSQL server. Anytime I issue some commands
> (like vacuum...) I got the following message:

> prescricoes=> vacuum;
> ERROR:  cannot find attribute 3 of relation pg_views

What Postgres version are you running?  (I suspect it must be pre-7.1.)

It would seem that something bad has happened to some rows in
pg_attribute.  You might possibly be able to recover by reindexing
pg_attribute, but I'm not sure that REINDEX exists or is trustworthy
in whatever version you have.  Probably the best advice is to try
to pg_dump your database, and if that's successful re-initdb and
reload.  (You'd be well advised to update to 7.1.3 while you're at it.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Paulo Jorge Gomes Ferreira"
Date:
Subject: Problems with my server...
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #568: RULE ON SELECT with old values.