Skip to content

Instantly share code, notes, and snippets.

@kjlape
Created August 7, 2017 21:27
Show Gist options
  • Select an option

  • Save kjlape/af79a9c5beb6cdaf8c9fdf8e96d86bda to your computer and use it in GitHub Desktop.

Select an option

Save kjlape/af79a9c5beb6cdaf8c9fdf8e96d86bda to your computer and use it in GitHub Desktop.
select pid, application_name from pg_stat_activity;
select pg_terminate_backend(<PID int>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment