Created
September 28, 2018 19:46
-
-
Save tchellomello/35b95488d696e0d8f901b2a1c05b644e to your computer and use it in GitHub Desktop.
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 pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment