Answers for "kill session postgres"

0

kill session postgres

SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'TARGET_DB' -- ← change this to your DB
  AND pid <> pg_backend_pid();
Posted by: Guest on June-15-2021

Browse Popular Code Answers by Language