mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 02:36:29 +00:00
comment
This commit is contained in:
@@ -99,6 +99,10 @@ impl Client {
|
|||||||
Ok(message) => message,
|
Ok(message) => message,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
if server.in_transaction() {
|
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();
|
server.mark_bad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user