标签:
查询相关表当前的活动进程:
SELECT * FROM pg_stat_activity where query ~ ‘table_name‘;
SELECT pg_terminate_backend(pid) FROM pg_stat_activity where query ~ ‘table_name‘ and pid <> pg_backend_pid();
postgresql 发生锁表时的解锁操作
原文地址:http://www.cnblogs.com/ztgentle/p/4283344.html