From e90b8271fc05818f276b3fabcb3da11c8c30a103 Mon Sep 17 00:00:00 2001 From: Dov Alperin Date: Mon, 13 Feb 2023 13:00:19 -0500 Subject: [PATCH] Switch pgbouncer pool_mode to session --- internal/flypg/pgbouncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/flypg/pgbouncer.go b/internal/flypg/pgbouncer.go index 9383c04b..0e2fcb09 100644 --- a/internal/flypg/pgbouncer.go +++ b/internal/flypg/pgbouncer.go @@ -147,7 +147,7 @@ func (p *PGBouncer) setDefaults() { "auth_file": fmt.Sprintf("%s/pgbouncer.auth", p.ConfigPath), "admin_users": "postgres", "user": "postgres", - "pool_mode": "transaction", + "pool_mode": sessionPooler, "min_pool_size": "5", "reserve_pool_size": "5", "reserve_pool_timeout": "3",