postgresql 断开数据库连接

SELECT pg_terminate_backend(pg_stat_activity.pid)  

FROM pg_stat_activity  

WHERE datname='dbname' AND pid<>pg_backend_pid();
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页