chore: pgbouncer config - #2397
Conversation
|
Hey @staaldraad this commit/PR is pretty hard to understand. Can you go into a little more detail in the commit message please, what happens now (random db is chosen?) |
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.
206fbb1 to
8a279b7
Compare
|
Looking at the pgbouncer source code [0] it looks like if auth_dbname is not specified then whichever database the client is connecting to is used as the auth database. Pgbouncer will execute the auth query Have not tested this myself, just the read of the code. Also will say this default behavior is not described in the pgbouncer docs [1]. [0]https://github.com/pgbouncer/pgbouncer/blob/c0d4162c15706e711e8e49a031dad84ed1b1dda2/src/client.c#L43 |
Ensure login always happens against the primary database.