From 8a279b7ea17cc27c7d7b2aa07ec82192caacbd50 Mon Sep 17 00:00:00 2001 From: Etienne Stalmans Date: Thu, 20 Aug 2026 16:05:45 +0200 Subject: [PATCH] chore: pgbouncer config Ensure pgbouncer uses the default database when calling the auth_query function, preventing failure when trying to lookup the function during a non-default database login. --- ansible/files/pgbouncer_config/pgbouncer.ini.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/files/pgbouncer_config/pgbouncer.ini.j2 b/ansible/files/pgbouncer_config/pgbouncer.ini.j2 index e4518c0076..2085d44c6c 100644 --- a/ansible/files/pgbouncer_config/pgbouncer.ini.j2 +++ b/ansible/files/pgbouncer_config/pgbouncer.ini.j2 @@ -122,6 +122,7 @@ auth_file = /etc/pgbouncer/userlist.txt ;; Query to use to fetch password from database. Result ;; must have 2 columns - username and password hash. auth_query = SELECT * FROM pgbouncer.get_auth($1) +auth_dbname = postgres ;;; ;;; Users allowed into database 'pgbouncer'