pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: gnanam@zoniac.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Statistics Collector not collecting server activities
Date: Wed, 31 Mar 2010 09:31:52 +0200
Message-ID: <4BB2FA68.6060708@lelarge.info> (raw)
In-Reply-To: <007501cad09d$326fefc0$974fcf40$@com>
References: <007501cad09d$326fefc0$974fcf40$@com>

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



view thread (18+ messages)  latest in thread

Message-ID: <4BB2FA68.6060708@lelarge.info>
Permalink:  ../4BB2FA68.6060708@lelarge.info/
Also on:    postgresql.org/message-id/4BB2FA68.6060708@lelarge.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: guillaume@lelarge.info, gnanam@zoniac.com
  Subject: Re: Statistics Collector not collecting server activities
  In-Reply-To: <4BB2FA68.6060708@lelarge.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox