When true, after BEGIN of each transaction a query of DEALLOCATE ALL is executed to clean existing prepared statements from the session to prevent collisions.
To be able to use Quaint with pgbouncer's transaction mode, every query needs to be inside a transaction and the connection string should have pgbouncer=true set.
Introducing a new flag for PostgreSQL:
pgbouncer
.When
true
, afterBEGIN
of each transaction a query ofDEALLOCATE ALL
is executed to clean existing prepared statements from the session to prevent collisions.To be able to use Quaint with pgbouncer's transaction mode, every query needs to be inside a transaction and the connection string should have
pgbouncer=true
set.