Created
November 4, 2013 20:06
-
-
Save lbalceda/7308441 to your computer and use it in GitHub Desktop.
psql connection count on heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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