Re: Statistics Collector not collecting server activities

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Statistics Collector not collecting server activities
Дата
Msg-id 4BB33F87.3070901@lelarge.info
обсуждение исходный текст
Ответ на Re: Statistics Collector not collecting server activities  ("Gnanakumar" <gnanam@zoniac.com>)
Ответы Re: Statistics Collector not collecting server activities  ("Gnanakumar" <gnanam@zoniac.com>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Any good olap benchmarks?
Следующее
От: Brad Nicholson
Дата:
Сообщение: Re: Migrate postgres to newer hardware