zero values in statistic views - Mailing list pgsql-general

From Cornelia Boenigk
Subject zero values in statistic views
Date
Msg-id 4553C8E6.5010807@cornelia-boenigk.de
Whole thread Raw
Responses Re: zero values in statistic views  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi all

I would like to see what is going on in a database using the statistic
views.

I am superuser,
stats_start_collector = on
stats_row_level = on
stats_block_level = on

select * from pg_stat_user_tables;
select * from pg_stat_user_indexes;
select * from pg_statio_user_tables
select * from pg_statio_user_indexes;

are showing zeroes in all columns where UPDATEs, INSERTs, block-reads,
  hits ... should be shown.

select * from pg_stat_database where datname = 'mydb';
shows between 20 and 60 numbackends and from 11 to 50 commits.

What could be the reason for this behaviour? What am I missing?

Thanks in advance
Conni

pgsql-general by date:

Previous
From: "Thomas H."
Date:
Subject: Re: planer picks a bad plan (seq-scan instead of index) when adding an additional join
Next
From: Tom Lane
Date:
Subject: Re: planer picks a bad plan (seq-scan instead of index) when adding an additional join