X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 32B8511F68CA for ; Fri, 31 Mar 2006 12:27:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50316-05 for ; Fri, 31 Mar 2006 12:27:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 2D63211F68B1 for ; Fri, 31 Mar 2006 12:27:11 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k2VGRASt008961; Fri, 31 Mar 2006 11:27:10 -0500 (EST) To: Frederic Back cc: pgsql-performance@postgresql.org Subject: Re: un-'vacuum analyse' In-reply-to: <20060331180216.f25c3e91.fredericback@gmail.com> References: <20060331180216.f25c3e91.fredericback@gmail.com> Comments: In-reply-to Frederic Back message dated "Fri, 31 Mar 2006 18:02:16 +0200" Date: Fri, 31 Mar 2006 11:27:10 -0500 Message-ID: <8960.1143822430@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200603/642 X-Sequence-Number: 18079 Frederic Back writes: > Is there a way to de-'vacuum analyse' a database for > testing purposes? "DELETE FROM pg_statistic" will get you most of the way there. It doesn't get rid of the accurate relpages/reltuples entries in pg_class, but since CREATE INDEX also updates those counts, I think it's reasonable to consider that a freshly loaded database would normally have correct counts. regards, tom lane