Well, if you look at what happens regarding selection, updating, deleting, etc., there are several views in the pg_catalog scheme, I mainly use pg_stat_user_tables and pg_stat_user_indexes , but there are a lot more, everything is within pg_stat* .
There is also a pg_stat_activity that tells you what is running on your server right now.
I hacked four munin plugins that use user_tables and user_indexes, they are available there
mat Dec 13 '08 at 11:11 2008-12-13 11:11
source share