pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
un-'vacuum analyse'
2+ messages / 2 participants
[nested] [flat]

* un-'vacuum analyse'
@ 2006-03-31 16:02  Frederic Back <fredericback@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Frederic Back @ 2006-03-31 16:02 UTC (permalink / raw)
  To: pgsql-performance

Hello,

I would like to know how my application works before
and after data from VACUUM ANALYSE is available.

Is there a way to de-'vacuum analyse' a database for
testing purposes?

Thank you,
Fred



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: un-'vacuum analyse'
@ 2006-03-31 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Frederic Back <fredericback@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2006-03-31 16:27 UTC (permalink / raw)
  To: Frederic Back <fredericback@gmail.com>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-03-31 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-31 16:02 un-'vacuum analyse' Frederic Back <fredericback@gmail.com>
2006-03-31 16:27 ` Tom Lane <tgl@sss.pgh.pa.us>

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