Skip to content

Instantly share code, notes, and snippets.

@heluvaguy
Created October 17, 2013 05:26
Show Gist options
  • Save heluvaguy/7019518 to your computer and use it in GitHub Desktop.
Save heluvaguy/7019518 to your computer and use it in GitHub Desktop.
SHOW CURRENT QUERIES
SELECT datname,procpid,current_query FROM pg_stat_activity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment