Created
September 11, 2017 00:47
-
-
Save mindscratch/aaa2b1434ef0603f3df999a7d2d51ed6 to your computer and use it in GitHub Desktop.
postgres connections
This file contains hidden or 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 | |
| pid, application_name, query, state, state_change | |
| FROM pg_stat_activity | |
| WHERE usename = CURRENT_USER | |
| ORDER BY state_change desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment