mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 09:26:30 +00:00
comment
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user