解决 PostgreSQL 报错 deadlock detected (40P01) 的排查指南排查与解决 PostgreSQL 并发事务相互等待锁资源导致死锁并提示 deadlock detected 的完整方案。PostgreSQL · Deadlock · dba2026.11.2