Skip to content

Instantly share code, notes, and snippets.

@pzaich
Created March 6, 2014 23:27
Show Gist options
  • Select an option

  • Save pzaich/9401917 to your computer and use it in GitHub Desktop.

Select an option

Save pzaich/9401917 to your computer and use it in GitHub Desktop.
SELECT "pid","application_name", "backend_start", "xact_start", "query_start", "state_change", "state" FROM pg_stat_activity;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment