Can I make PgBouncer preserve the PGOPTIONS environment variable in transaction pooling to configure GUC parameters? Or is there another way to configure these parameters in PgBouncer so that it applies to all connections?
I specifically need to set some pg_trgm parameters
You can use the
connect_query
option in database definitions, likeconnect_query
can be any SQL statement.