U can install pgstattuple module which is available in the contrib directory and run it on production as
psql> \x
psql> select * from pgstattuple('public'.'tablename');
it displays the table_len, tuple_count, tuple_len, tuple_percent, dead_tuple_count, dead_tuple_len,dead_tuple_percent,free_space,free_percent for the table .
On 5/16/06, Chris Hoover <revoohc@xxxxxxxxx> wrote:
Thanks to those who answered my first question. I am looking at implementing autovacuuming on our new production 8.1.3 systems. I am reading the documentation on the various configuration parameters. The autovacuum_analyze_threshold and autovacuum_vacuum_threshold talk about the number of updated and deleted tuples. Is there anyway to calculate these numbers in a running database?
The reason I'm asking is that we are having some sporadic slowness issues with our databases, and I'm wanting to see how the database looks during these times. I know that vacuuming some specific tables tends to fix the problem. So, if I can see what autovacuum might see, I could set the parameters correctly to try and fix the issue.
Anyway, are these number available to me?
Thanks,
Chris
--
Best,
Gourish Singbal