1.查询所有的进程: select * from pg_stat_activity where DATNAME = 'template1';
2.杀掉占用资源的进程:SELECT pg_terminate_backend(126706062);
1.查询所有的进程: select * from pg_stat_activity where DATNAME = 'template1';
2.杀掉占用资源的进程:SELECT pg_terminate_backend(126706062);
转载于:https://www.cnblogs.com/zp900704/p/7111121.html