Re: FATAL: root page 3 of "pg_class_oid_index" has level 0, expected 1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Radamis <rust710(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: FATAL: root page 3 of "pg_class_oid_index" has level 0, expected 1
Date: 2009-07-24 18:33:08
Message-ID: 2150.1248460388@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Radamis <rust710(at)gmail(dot)com> writes:
> I'm getting this error when I try to log into my database.
> *FATAL: root page 3 of "pg_class_oid_index" has level 0, expected 1

You've got a corrupted index. You can probably fix it like this:

export PGOPTIONS="-P"
psql ..usual options..
reindex index pg_class_oid_index;

After that, a dump/initdb/reload might be in order, since it's hard to
tell whether there are other problems lurking. Some testing of your
hardware might be advisable too; and I'd suggest updating your Postgres
if it's not a recent release.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-07-24 18:35:21 Re: Replication from Postgres to EDB
Previous Message Andrew Radamis 2009-07-24 18:12:25 FATAL: root page 3 of "pg_class_oid_index" has level 0, expected 1