SELECT pid, usename, application_name, state, query, state_change FROM pg_stat_activity WHERE state = 'idle in transaction';
SELECT pg_terminate_backend(<pid_here>);
idle_in_transaction_session_timeout
setting to a suitable value, if necessary, based on the investigation findings to prevent future occurrences:ALTER SYSTEM SET idle_in_transaction_session_timeout = '5min';
SELECT pg_reload_conf();
Let Dr. Droid create custom investigation plans for your infrastructure.
Start Free POC (15-min setup) →