Queries
Monitor PostgreSQL Active Sessions with pg_stat_activity
Aug 25, 2025 / · 10 min read · postgresql sql database monitoring performance queries pg_stat_activity postgres dba ·Monitor PostgreSQL Active Sessions with pg_stat_activity pg_stat_activity is the system view that shows every backend process running against a PostgreSQL server right now — one row per connection, with the client address, the query it is running, how long it has been running, and what kind of backend it is. A single …
Read MoreMonitor Running Queries in PostgreSQL using pg_stat_activity
Aug 18, 2025 / · 8 min read · postgresql database sql performance monitoring tuning optimization queries pg_stat_activity pg_locks ·Monitor Running Queries in PostgreSQL (9.2+ and Newer) A query that has been running for forty minutes looks identical, from a load balancer's perspective, to one that finished in forty milliseconds — nothing in a typical connection-pool dashboard flags the difference between a session doing real, expected work and one …
Read More