Thread: table/view/function access counts

table/view/function access counts

From
Sim Zacks
Date:
Are there any statistics generated as to how many times an object
(table/view/function) is accessed?

I would like to know what in the database system is not being used.


Thank you

Sim


Re: table/view/function access counts

From
Pavel Stehule
Date:
Hello

2009/7/19 Sim Zacks <sim@compulab.co.il>:
> Are there any statistics generated as to how many times an object
> (table/view/function) is accessed?
>

SELECT * FROM pg_stat_all_tables;

regards
Pavel Stehule

> I would like to know what in the database system is not being used.
>
>
> Thank you
>
> Sim
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

Re: table/view/function access counts

From
Sim Zacks
Date:
Thanks Pavel, that rocks.

> SELECT * FROM pg_stat_all_tables;
>
> regards
> Pavel Stehule
>
>