diff --git a/sql/postgres_stale_connections.sql b/sql/postgres_stale_connections.sql index 823776b3..99d6a473 100644 --- a/sql/postgres_stale_connections.sql +++ b/sql/postgres_stale_connections.sql @@ -15,6 +15,10 @@ -- List PostgreSQL stale connections that have been idle > 10 mins -- +-- Can be used to kill connections using the pids returned, eg. +-- +-- SELECT pg_terminate_backend(pid) +-- -- Tested on PostgreSQL 12.3 SELECT