Skip to content

Fix Geo Log Cursor not reconnecting after pgbouncer dies

Stan Hu requested to merge sh-fix-geo-log-cursor-reconnect into master

If pgbouncer dies, then the connection may get stuck in PQsocket() can't get socket descriptor state. Wrap the query in a transaction to allow the connection to return to the pool and recover. This also potentially prevents idle-in-transaction cancellations.

Closes #5145 (closed)

Edited by Stan Hu

Merge request reports