我使用pgbouncer作为pg连接池,如果我在pgbouncer.ini中设置pool_mode = Transaction,我的应用程序在查询db时发生错误(app写了go):
(pq: bind message supplies 19 parameters, but prepared statement "" requires 20)
(pq: bind message supplies 22 parameters, but prepared statement "" requires 20
(pq: bind message supplies 22 parameters, but prepared statement "" requires 19)
(pq: bind message supplies 6 parameters, but prepared statement "" requires 22)
但是我修改了pool_mode = Session,它运行正常。 如果我设置pool_mode = Transaction。
可能会出错