Skip site navigation (1) Skip section navigation (2)

Re: Statistics Collector not collecting server activities

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: gnanam(at)zoniac(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Statistics Collector not collecting server activities
Date: 2010-03-31 07:31:52
Message-ID: 4BB2FA68.6060708@lelarge.info (view raw or flat)
Thread:
Lists: pgsql-admin
Le 31/03/2010 08:41, Gnanakumar a écrit :
> 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'));
> 
> 

If the stats collector was disabled before, did you restart PostgreSQL?
if you did restart, you should drop the # in front of
"stats_start_collector = on" and restart once again PostgreSQL.


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

In response to

Responses

pgsql-admin by date

Next:From: Renato OliveiraDate: 2010-03-31 07:35:21
Subject: Re: Migrate postgres to newer hardware
Previous:From: GnanakumarDate: 2010-03-31 07:27:35
Subject: Re: Statistics Collector not collecting server activities

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group