Skip to content

Instantly share code, notes, and snippets.

@raghothams
Created July 31, 2016 04:08
Show Gist options
  • Save raghothams/34b6ffc5a609661adb0c93027ee33483 to your computer and use it in GitHub Desktop.
Save raghothams/34b6ffc5a609661adb0c93027ee33483 to your computer and use it in GitHub Desktop.
postgres check number of open connections
select *
from pg_stat_activity
where datname = 'db_name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment