Skip to content

Instantly share code, notes, and snippets.

@davebshow
Created February 28, 2018 05:55
Show Gist options
  • Select an option

  • Save davebshow/3270bd6a83a30c58618be0d9f2852b16 to your computer and use it in GitHub Desktop.

Select an option

Save davebshow/3270bd6a83a30c58618be0d9f2852b16 to your computer and use it in GitHub Desktop.

Revisions

  1. davebshow created this gist Feb 28, 2018.
    1 change: 1 addition & 0 deletions psql_stat_activity.sql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Select * from pg_stat_activity where state not ilike 'idle%' and query ilike 'update%';