Re: Reseting statistics, cluster wide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/4/22 Mario Splivalo <mario.splivalo@xxxxxxxxxx>:
> On 04/22/2011 03:20 PM, Cédric Villemain wrote:
>>
>> 2011/4/21 raghu ram<raghuchennuru@xxxxxxxxx>:
>>>>
>>>> Heh, I've neglected to mention that i'm using postgres 8.4.5 on Debian
>>>> Stable. Is there a way to reset statistics on pg8.4? I've tested it on
>>>> 9.0
>>>> and it works there.
>>>>
>>>
>>> AFAIK, I dont think we can achieve this in PG 8.4 at cluster level. Can
>>> anybody has the information ?
>>> -- Raghu
>>
>> With 8.4 you only have the pg_stat_reset(), it resets all stats. The
>> finest one in 9.0 is a new feature/improvement.
>
> Yeps, but that is only for database-related statistics. Stuff returned from
> pg_stat_bgwriter view are not reset.

ah yes.
There exist a very brutal way to do it, which will remove all stats.
(you need the server to be down to do that)
move or rm the "global/pgstat.stat" file.

To come back to your original problem : I am surprised you have too
large value for munin, isn't there something to do on the munin side
instead ?

-- 
Cédric Villemain               2ndQuadrant
http://2ndQuadrant.fr/ ;    PostgreSQL : Expertise, Formation et Support

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux