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 13:22:53
Message-ID: 00fd01cad0d5$46eed870$d4cc8950$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

show stats_row_level is also showing ON.
mydb=# show stats_row_level;
stats_row_level
-----------------
on
(1 row)

I also ran "select * from pg_stat_user_tables", all columns are showing
either 0 or NULL value for all the tables in my database. I don't find any
values other than this for the entire tables in the database.

-----Original Message-----
From: Guillaume Lelarge [mailto:guillaume(at)lelarge(dot)info]
Sent: Wednesday, March 31, 2010 5:57 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 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Mario Splivalo 2010-03-31 14:19:46 Live sort-of-'warehousing' database how-to?
Previous Message lst_hoe02 2010-03-31 13:19:24 Re: Any good olap benchmarks?