From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Jean-David Beyer <jeandavid8(at)verizon(dot)net> |
Cc: | pgsql performance <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Curious about dead rows. |
Date: | 2007-11-14 12:58:08 |
Message-ID: | 20071114125808.GO19014@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Jean-David Beyer wrote:
> How do I reset the counters in pg_stat_database and pg_stat_all_tables?
> I tried just restarting postgres, but it seems to be saved in the database,
> not just in the RAM of the server.
There is a function called pg_stat_reset() or some such.
> I suppose that blks_read and blks_hit are zero because there are 8 GBytes
> RAM on this machine and I give 2GBytes to shared_buffers = 253000 so that
> all sits in RAM.
Perhaps you have stats_block_level set to off?
> I know there have been rollbacks but I do a REINDEX, CLUSTER, and VACUUM
> ANALYZE before starting the inserts in question.
You do all three on the same tables? That seems pretty pointless. A
sole CLUSTER has the same effect.
> Do I need to do a VACUUM FULL ANALYZE instead?
No.
--
Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4"
"There was no reply" (Kernel Traffic)
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-David Beyer | 2007-11-14 14:58:33 | Re: Curious about dead rows. |
Previous Message | Jean-David Beyer | 2007-11-14 12:12:45 | Re: Curious about dead rows. |