Re: FATAL: catalog is missing attributes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Bruno Cortes <bcc(at)mail(dot)pt>, pgsql-admin(at)postgresql(dot)org
Subject: Re: FATAL: catalog is missing attributes
Date: 2006-04-24 22:18:20
Message-ID: 7087.1145917100@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Bruno Cortes wrote:
>> This was even worse than the previous error. Right now I cannot enter
>> the database neither make a dump. When I execute a command such as "psql
>> -U postgres center-01" I get the error:
>> psql: FATAL: catalog is missing 10 attribute(s) for relid 1262

> Sounds very much like you haven't been doing the required vacuum on all
> system catalogs.

I don't think so --- that error is coming out of the relcache/syscache
layer, and that code uses SnapshotNow; so it's only going to care
whether the tuples are marked committed, not whether they've wrapped
around.

I'm afraid that Bruno has lost some pages of pg_attribute (eg, they went
to zeroes). That's not too surprising given his previous reports
suggesting hardware problems.

If the pages in question held only rows for system catalogs then it
might be possible to copy correct values from elsewhere, but if they
held rows for user tables then he's got serious problems :-(. My advice
would be to start thinking about restoring from backup.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message dhanesh.prabha 2006-04-25 04:13:09 Re: Problem with /usr/local/pgsql/bin/psql
Previous Message Alvaro Herrera 2006-04-24 22:04:55 Re: Autovacuuming