PostgreSQL(and OS). pg_statsinfo gets some statistics information as
snapshot. We can check the DB activity and bottleneck analysis by
using these snapshot information. This utility provides some function
to get the information acquisition easily.
WWW: http://pgstatsinfo.projects.pgfoundry.org/
(currently some OS resource stats are disabled.)