Skip site navigation (1) Skip section navigation (2)

Re: un-'vacuum analyse'

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Frederic Back <fredericback(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: un-'vacuum analyse'
Date: 2006-03-31 16:27:10
Message-ID: 8960.1143822430@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
Frederic Back <fredericback(at)gmail(dot)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

In response to

pgsql-performance by date

Next:From: AntoineDate: 2006-03-31 20:49:10
Subject: Re: [Solved] Slow performance on Windows .NET and OleDb
Previous:From: Frederic BackDate: 2006-03-31 16:02:16
Subject: un-'vacuum analyse'

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group