From: | "Gnanakumar" <gnanam(at)zoniac(dot)com> |
---|---|
To: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Statistics Collector not collecting server activities |
Date: | 2010-03-31 07:27:35 |
Message-ID: | 008b01cad0a3$a50782e0$ef1688a0$@com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I'm also seeing a weird thing. If I do 'show stats_start_collector;' inside
psql, it says 'off'.
I've also restarted my server many times after making all the changes.
As per 8.2 doc,
http://www.postgresql.org/docs/8.2/interactive/runtime-config-statistics.htm
l, stats_start_collector is on by default.
From: Gnanakumar [mailto:gnanam(at)zoniac(dot)com]
Sent: Wednesday, March 31, 2010 12:11 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: Statistics Collector not collecting server activities
Hi,
Even though I've enabled statistics collector in our server, it is not
collecting statistics, and because of this autovacuum is also not running as
expected.
PostgreSQL version 8.2
Parameters enabled related to this are:
# - Query/Index Statistics Collector -
#stats_command_string = on
#update_process_title = on
#stats_start_collector = on
#stats_block_level = off
#stats_row_level = off
stats_block_level = on
stats_row_level = on
#stats_reset_on_server_start = off
# - Statistics Monitoring -
#log_parser_stats = off
#log_planner_stats = off
#log_executor_stats = off
#log_statement_stats = off
I'm always getting zero value for all the tables.
select pg_stat_get_tuples_inserted((select oid from pg_class where relname =
'mytable'));
select pg_stat_get_tuples_updated((select oid from pg_class where relname =
'mytable'));
select pg_stat_get_tuples_deleted((select oid from pg_class where relname =
'mytable'));
Attachment | Content-Type | Size |
---|---|---|
winmail.dat | application/ms-tnef | 5.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Lelarge | 2010-03-31 07:31:52 | Re: Statistics Collector not collecting server activities |
Previous Message | robin | 2010-03-31 07:00:38 | Re: Strange deletion problem |