Re: Statistics Collector not collecting server activities

From: "Gnanakumar" <gnanam(at)zoniac(dot)com>
To: "'Guillaume Lelarge'" <guillaume(at)lelarge(dot)info>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Statistics Collector not collecting server activities
Date: 2010-03-31 10:51:12
Message-ID: 00da01cad0c0$169f3030$43dd9090$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

After restarting PostgreSQL, I can see the following parameters are set to
ON:
mydb=# show stats_start_collector;
stats_start_collector
-----------------------
on
(1 row)

mydb=# show stats_start_collector;
stats_start_collector
-----------------------
on
(1 row)

mydb=# show stats_block_level;
stats_block_level
-------------------
on
(1 row)

mydb=# show stats_reset_on_server_start;
stats_reset_on_server_start
-----------------------------
off
(1 row)

But still, if I query after performing heavy DML operations, I'm always
getting zero, even though there are INSERT/UPDATE/DELETE.
select pg_stat_get_tuples_inserted((select oid from pg_class where relname =
'mytable'));

Is there any other parameter I'm missing to make this work.

-----Original Message-----
From: Guillaume Lelarge [mailto:guillaume(at)lelarge(dot)info]
Sent: Wednesday, March 31, 2010 2:56 PM
To: gnanam(at)zoniac(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Statistics Collector not collecting server activities

Le 31/03/2010 11:14, Gnanakumar a écrit :
> OK. I'll try that way.
>
> But, as per 8.2 doc, by default it is ON. So if I comment with just '#'
> infront of the parameter, and restart PostgreSQL, this change will not be
> reflected, which means it should work with default value ON?

Yes, you're right. Maybe you have stats_start_collector at different
places in your postgresql.conf. The last value is used in this case. So
you should better check this.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Greg Smith 2010-03-31 10:55:11 Re: Virtualization vs. sharing a server
Previous Message John Lister 2010-03-31 10:36:23 Re: Strange deletion problem