Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-24 Thread Huang, Suya
-Original Message- From: Tomas Vondra [mailto:t...@fuzzy.cz] Sent: Friday, June 20, 2014 8:14 PM To: Pavel Stehule Cc: Huang, Suya; pgsql-performance@postgresql.org Subject: Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24 On 20 Červen 2014, 5:33, Pavel Stehule wrote: > 2014

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-20 Thread Tomas Vondra
On 20 Červen 2014, 5:33, Pavel Stehule wrote: > 2014-06-20 1:44 GMT+02:00 Huang, Suya : >> >> Thanks Pavel, to be more clear, what does " pg_stat_reset "really reset? >> In the document it says " Reset all statistics counters for the current >> database to zero(requires superuser privileges) ". I

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-19 Thread Pavel Stehule
2014-06-20 1:44 GMT+02:00 Huang, Suya : > > > From: Pavel Stehule [mailto:pavel.steh...@gmail.com] > Sent: Thursday, June 19, 2014 3:41 PM > To: Huang, Suya > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24 > > &g

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-19 Thread Huang, Suya
From: Pavel Stehule [mailto:pavel.steh...@gmail.com] Sent: Thursday, June 19, 2014 3:41 PM To: Huang, Suya Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24 2014-06-19 7:35 GMT+02:00 Huang, Suya : From: Pavel Stehule [mailto:pavel.steh

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-19 Thread Tomas Vondra
On 19 Červen 2014, 7:35, Huang, Suya wrote: > From: Pavel Stehule [mailto:pavel.steh...@gmail.com] > Sent: Thursday, June 19, 2014 3:28 PM > To: Huang, Suya > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24 > > Hello >

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-18 Thread Pavel Stehule
2014-06-19 7:35 GMT+02:00 Huang, Suya : > From: Pavel Stehule [mailto:pavel.steh...@gmail.com] > Sent: Thursday, June 19, 2014 3:28 PM > To: Huang, Suya > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24 > > Hello > &

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-18 Thread Huang, Suya
From: Pavel Stehule [mailto:pavel.steh...@gmail.com] Sent: Thursday, June 19, 2014 3:28 PM To: Huang, Suya Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24 Hello The size of statfile is related to size of database objects in database

Re: [PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-18 Thread Pavel Stehule
Hello The size of statfile is related to size of database objects in database. Depends on PostgreSQL version this file can be one per database cluster or one per database (from 9.3), These statistics should by reset by call pg_stat_reset() http://www.postgresql.org/docs/9.2/static/monitoring-sta

[PERFORM] huge pgstat.stat file on PostgreSQL 8.3.24

2014-06-18 Thread Huang, Suya
Hi group, We've found huge pgstat.stat file on our production DB boxes, the size is over 100MB. autovacuum is enabled. So my question would be: 1. What's a reasonable size of pgstat.stat file, can it be estimated? 2. What's the safest way to reduce the file size to alleviate the IO