解决 PostgreSQL 报错 cannot execute INSERT in a read-only transaction分析 PostgreSQL 连接从库或事务模式被置为 read-only 引发写入被拒的根因,提供读写分离路由、连接池与事务属性修复方案。PostgreSQL · 主从复制 · 只读事务2026.10.25