un-'vacuum analyse'

Поиск
Список
Период
Сортировка
Искать

un-'vacuum analyse'

От:
Frederic Back <fredericback@gmail.com>
Дата:
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

Re: un-'vacuum analyse'

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Frederic Back  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
FAQ