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 297EAD9D91 for ; Sun, 2 Oct 2005 23:01:26 -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 06936-04 for ; Mon, 3 Oct 2005 02:01:15 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F1550D9D7F for ; Sun, 2 Oct 2005 23:01:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9321MoS010289; Sun, 2 Oct 2005 22:01:22 -0400 (EDT) To: Kevin Seghetti Cc: pgsql-admin@postgresql.org Subject: Re: Need help with corrupt pg_statistic In-reply-to: <1128040936.31315.378.camel@talia.localdomain> References: <1128040936.31315.378.camel@talia.localdomain> Comments: In-reply-to Kevin Seghetti message dated "Thu, 29 Sep 2005 17:42:16 -0700" Date: Sun, 02 Oct 2005 22:01:22 -0400 Message-ID: <10288.1128304882@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/23 X-Sequence-Number: 19095 Kevin Seghetti writes: > Is there any way to nuke pg_statistic (since its contents can be > recalculated anyway?) You want to do "TRUNCATE pg_statistic"; to avoid the permission check, you'll need to do that in a standalone backend with -O option. Do *not* try to drop and recreate it --- its OID is hardwired into various places. regards, tom lane