postgresql: template1 is being accessed by other users
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);