摘要:
-1. 如何知道有哪些表、哪些进程被锁住了? select * from pg_locks a join pg_class b on a.relation = b.oid join pg_stat_activity c on a.pid = c.pid where a.mode like '%Exc 阅读全文
摘要:
1 查找锁表的pid select pid from pg_locks l join pg_class t on l.relation = t.oid where t.relkind = 'r' and t.relname = 'lockedtable'; 2 查找锁表的语句 select pid, 阅读全文