X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F2233D6FDB for ; Thu, 29 Sep 2005 21:42:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26540-02 for ; Fri, 30 Sep 2005 00:42:12 +0000 (GMT) Received: from baracus.dreamhost.com (baracus.dreamhost.com [66.33.205.11]) by svr1.postgresql.org (Postfix) with ESMTP id 68946D6F5D for ; Thu, 29 Sep 2005 21:42:13 -0300 (ADT) Received: from talia.localdomain (unknown [66.81.225.18]) by baracus.dreamhost.com (Postfix) with ESMTP id 3C0E217510E for ; Thu, 29 Sep 2005 17:42:17 -0700 (PDT) Subject: Need help with corrupt pg_statistic From: Kevin Seghetti To: pgsql-admin@postgresql.org Content-Type: text/plain Date: Thu, 29 Sep 2005 17:42:16 -0700 Message-Id: <1128040936.31315.378.camel@talia.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/15 X-Sequence-Number: 19087 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@tenetti.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