pg_stat_database
PostgreSQL in Production notes about pg_stat_database
Measure database health and capacity
How to Measure Live PostgreSQL Transactions per Second
Take two timestamped counter samples, divide their changes by elapsed seconds, and label the result as commits only or commits plus rollbacks.

