Re: Question on REINDEX - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Question on REINDEX
Date
Msg-id 200504190857.16634.josh@agliodbs.com
Whole thread Raw
In response to Re: Question on REINDEX  ("Tambet Matiisen" <t.matiisen@aprote.ee>)
Responses Re: Question on REINDEX
List pgsql-performance
Tambet,

> Hmm, thanks for a tip. BTW, is output of
>
> select count(1), sum(relpages) from pg_class where relkind in
> ('r','i','t')

Well, if you do that for all databases in the cluster, it's the number you
start with.  However, setting FSM_pages to that would be assuming that you
excpected 100% of the rows to be replaced by UPDATES or DELETEs before you
ran VACUUM.   I generally run VACUUM a little sooner than that.

See the end portion of:
http://www.powerpostgresql.com/PerfList

--
Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-performance by date:

Previous
From: Brad Nicholson
Date:
Subject: Re: Postgresql works too slow
Next
From: Bruce Momjian
Date:
Subject: Re: How to improve db performance with $7K?