postgresql杀进程

前端之家收集整理的这篇文章主要介绍了postgresql杀进程前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
pg_stat_get_backend_activity(s.backendid) AS current_query
FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;

杀掉某个进程为: select pg_cancel_backend('2056')

原文链接:https://www.f2er.com/postgresql/193348.html

猜你在找的Postgre SQL相关文章