Re: un-'vacuum analyse' - Mailing list pgsql-performance

From Tom Lane
Subject Re: un-'vacuum analyse'
Date
Msg-id 8960.1143822430@sss.pgh.pa.us
Whole thread Raw
In response to un-'vacuum analyse'  (Frederic Back <fredericback@gmail.com>)
List pgsql-performance
Frederic Back <fredericback@gmail.com> 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

pgsql-performance by date:

Previous
From: Frederic Back
Date:
Subject: un-'vacuum analyse'
Next
From: Antoine
Date:
Subject: Re: [Solved] Slow performance on Windows .NET and OleDb