Skip to content

Instantly share code, notes, and snippets.

@antono
Created November 11, 2010 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antono/672215 to your computer and use it in GitHub Desktop.
Save antono/672215 to your computer and use it in GitHub Desktop.
snippet for monitoring running queries in postgresql
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