There can be many times when knowing what queries are currently running on a Postgres server can be helpful to know. It is pretty well known that the system pg_stat_activity table can get you this information. Just run the following query: SELECT * FROM pg_stat_activity; The resulting record set contains a bunch of information but …
Continue reading “Viewing Running Postgres Queries (and what if they are too long??)”