Created
November 11, 2010 08:53
-
-
Save antono/672215 to your computer and use it in GitHub Desktop.
snippet for monitoring running queries in postgresql
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
watch 'echo "select datid, datname, procpid, usename, current_query from pg_stat_activity" | psql' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment