Home > Archive > PostgreSQL Performance > March 2006 > un-'vacuum analyse'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author un-'vacuum analyse'
Frederic Back

2006-03-31, 11:30 am

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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly

Tom Lane

2006-03-31, 11:30 am

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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com