Last active
March 23, 2017 12:51
-
-
Save areguig/b53bb7aae772ef085ff1f99f4faff802 to your computer and use it in GitHub Desktop.
Show postgres running queries
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 now() - query_start as "runtime",client_addr, waiting, state, query | |
FROM pg_stat_activity | |
ORDER BY runtime DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment