Need help with corrupt pg_statistic

From: Kevin Seghetti <kts(at)tenetti(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Need help with corrupt pg_statistic
Date: 2005-09-30 00:42:16
Message-ID: 1128040936.31315.378.camel@talia.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I am using postgres 7.4.5, and have a corrupt pg_statistic.
Many commands cause the following error:
ERROR: invalid page header in block 10 of relation "pg_statistic"

I want to preserve my data if at all possible, I figured I would just
dump the database and reload it. I tried
pg_dump, but it gives me:
pg_dump: query to obtain list of data types failed: ERROR: invalid page header in block 11 of relation "pg_statistic"
even if I just try to dump a single table.

I tried postgres in single-user mode:
delete from pg_statistic
gives me the same error
drop table pg_statistic
gives me
ERROR: permission denied: "pg_statistic" is a system catalog

Is there any way to nuke pg_statistic (since its contents can be
recalculated anyway?)

Thanks,

--
Kevin Seghetti: E-Mail: kts(at)tenetti(dot)org, HTTP: www.tenetti.org
GPG public key: http://tenetti.org/cgi-bin/twiki/view.cgi/KevinSeghetti/GPGKey
Check out www.worldfoundry.org for my GPL'ed 3D video game engine
Copyright is a temporary loan from the public domain, not property

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Todd Rockhold 2005-09-30 03:27:31 Re: Configure foreign host for PostgreSQL 8.0.3 on WindowsXP
Previous Message Ben Sullins 2005-09-29 21:00:49 pg_hba.conf setup