Created
April 22, 2015 12:08
-
-
Save balazs-endresz/c6fcd91eb705004fbcfa to your computer and use it in GitHub Desktop.
List long running postgres 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
\pset format wrapped; | |
select now() - query_start as duration, query from pg_stat_activity order by duration desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment