mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
It will help us understand what applications are exhausting the number of direct database connections. Signed-off-by: Tristan Partin <tristan@neon.tech>
2 lines
124 B
SQL
2 lines
124 B
SQL
SELECT datname, application_name, state, count(*) AS count FROM pg_stat_activity WHERE state <> '' GROUP BY datname, state;
|