Skip to content

Instantly share code, notes, and snippets.

@lbalceda
Created November 4, 2013 20:06
Show Gist options
  • Save lbalceda/7308441 to your computer and use it in GitHub Desktop.
Save lbalceda/7308441 to your computer and use it in GitHub Desktop.
psql connection count on heroku
select count(*) from pg_stat_activity where pid <> pg_backend_pid() and usename = current_user;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment