检查库的时候发现有8个超过17个小时的会话,执行状态为 idle in transaction。 从文档上可以看到解释: idle in transaction (waiting for client inside a BEGIN block) 通知开发提交或者回滚,抑或杀之。 -EOF-