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 14:26:47 +0200
Message-ID: <4BB33F87.3070901@lelarge.info> (raw)
In-Reply-To: <00da01cad0c0$169f3030$43dd9090$@com>
References: <007501cad09d$326fefc0$974fcf40$@com>
	<4BB2FA68.6060708@lelarge.info>
	<00b601cad0b0$5e713760$1b53a620$@com>
	<4BB31032.6060809@lelarge.info>
	<00c001cad0b2$a4a89c30$edf9d490$@com>
	<4BB3153F.6010901@lelarge.info>
	<00da01cad0c0$169f3030$43dd9090$@com>

Le 31/03/2010 12:51, Gnanakumar a écrit :
> 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.
> 

Nope. But you didn't show stats_row_level. If it's on too, try "select *
from pg_stat_user_tables".


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



view thread (18+ messages)  latest in thread

Message-ID: <4BB33F87.3070901@lelarge.info>
Permalink:  ../4BB33F87.3070901@lelarge.info/
Also on:    postgresql.org/message-id/4BB33F87.3070901@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: <4BB33F87.3070901@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