This commit is contained in:
Lev Kokotov
2022-02-03 17:07:10 -08:00
parent 6deb7b1162
commit 89043ef12f

View File

@@ -99,6 +99,10 @@ impl Client {
Ok(message) => message,
Err(err) => {
if server.in_transaction() {
// TODO: this is what PgBouncer does
// which leads to connection thrashing.
//
// I think we could issue a ROLLBACK here instead.
server.mark_bad();
}