Skip to content

Instantly share code, notes, and snippets.

@paulanunda
Last active December 27, 2015 15:28
Show Gist options
  • Save paulanunda/7347548 to your computer and use it in GitHub Desktop.
Save paulanunda/7347548 to your computer and use it in GitHub Desktop.
\dx - list of installed extensions
CREATE EXTENSION pg_stat_statements;
select
pg_terminate_backend(pid)
from
pg_stat_activity
where
pid <> pg_backend_pid()
and
pid in (30593, 30901);
state = 'idle';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment