Skip to content

Instantly share code, notes, and snippets.

@HassankSalim
Created June 10, 2020 14:46
Show Gist options
  • Save HassankSalim/7bec632c813b6699d031dfd7c96a4ec1 to your computer and use it in GitHub Desktop.
Save HassankSalim/7bec632c813b6699d031dfd7c96a4ec1 to your computer and use it in GitHub Desktop.
select * from pg_stat_activity where (state = 'idle in transaction') and xact_start is not null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment