pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frederic Back <fredericback@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: un-'vacuum analyse'
Date: Fri, 31 Mar 2006 11:27:10 -0500
Message-ID: <8960.1143822430@sss.pgh.pa.us> (raw)
In-Reply-To: <20060331180216.f25c3e91.fredericback@gmail.com>
References: <20060331180216.f25c3e91.fredericback@gmail.com>

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



view thread (2+ messages)

Message-ID: <8960.1143822430@sss.pgh.pa.us>
Permalink:  ../8960.1143822430@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8960.1143822430@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fredericback@gmail.com
  Subject: Re: un-'vacuum analyse'
  In-Reply-To: <8960.1143822430@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox