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 3F4D5D9E85 for ; Mon, 3 Oct 2005 15:57: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 41560-03 for ; Mon, 3 Oct 2005 18:57:09 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 92B52D9EAB for ; Mon, 3 Oct 2005 15:57:09 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id C53CC1529F; Mon, 3 Oct 2005 13:57:10 -0500 (CDT) Date: Mon, 3 Oct 2005 13:57:10 -0500 From: "Jim C. Nasby" To: Kevin Seghetti Cc: pgsql-admin@postgresql.org Subject: Re: Need help with corrupt pg_statistic Message-ID: <20051003185710.GX40138@pervasive.com> References: <1128040936.31315.378.camel@talia.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1128040936.31315.378.camel@talia.localdomain> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 required=5 tests=[AWL=0.004] X-Spam-Level: X-Archive-Number: 200510/33 X-Sequence-Number: 19105 You should probably be asking yourself why you have corruption in your database. I suspect whatever hardware that database is on is having problems that need to be addressed. On Thu, Sep 29, 2005 at 05:42:16PM -0700, Kevin Seghetti wrote: > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461