- 结束掉闲置的链接
select * from pg_stat_activity where state = 'idle';
--select pg_terminate_backend(pid);
原文链接:https://www.f2er.com/postgresql/193206.htmlselect * from pg_stat_activity where state = 'idle';
--select pg_terminate_backend(pid);
原文链接:https://www.f2er.com/postgresql/193206.html