Created
June 6, 2014 16:25
-
-
Save mcorsen/0947b83f9ff7ae63fdeb to your computer and use it in GitHub Desktop.
Postgresql 9.1 query to list current queries
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 usename, client_addr, waiting, backend_start, query_start, procpid, current_query | |
FROM pg_stat_activity | |
ORDER BY usename, client_addr, backend_start; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment