Kill Sql Task In Postgresql

已发布 2017-11-01 18:13:43

SELECT * FROM pg_stat_activity WHERE datname='死锁的数据库ID ';
SELECT pg_cancel_backend(PID);
SELECT pg_terminate_backend(PID);
comments powered by Disqus