PgBouncer 1.20.0
JelteF
released this
20 Jul 11:46
·
99 commits
to master
since this release
2023-07-20 - PgBouncer 1.20.0 - "A funny name goes here"
-
Deprecations
- Online restart option is now considered deprecated. The feature has received very little love in recent years. There are multiple known issues with it and newly added features often don't support it. The recommended method to do online restarts these days is using the
so_reuseport
andpeers
feature. That way you can have multiple different PgBouncer processes running on the same port. Then by restarting those processes one-by-one, you can make sure there's always a PgBouncer process listening on the desired port. (#894)
- Online restart option is now considered deprecated. The feature has received very little love in recent years. There are multiple known issues with it and newly added features often don't support it. The recommended method to do online restarts these days is using the
-
Features
- Introduce the
track_extra_parameters
which allows tracking of more parameters in transaction pooling mode. Previously, PgBouncer only trackedapplication_name
,DateStyle
,TimeZone
andstandard_conforming_strings
. Now PgBouncer also tracksIntervalStyle
by default. And by changingtrack_extra_parameters
you can track even more settings, but only ones that PostgreSQL reports back to the client. If you're using Citus 12.0+, then Citus will make sure that PostgreSQL also reportssearch_path
back to the client. So if you use Citus you can addsearch_path
to thetrack_extra_parameters
setting. (#867) - Forward SQLSTATE in authentication phase. This allows the detection of database not existing, which is done by Npgsql (a .NET data provider for PostgreSQL). (#814)
- Change default
server_tls_sslmode
toprefer
. (#866) - Add support for the
options
startup parameter. This allows usage of thePGOPTIONS
environment variable thatpsql
andlibpq
know
about. Using this variable you can set any PostgreSQL parameter at startup. This only works for PostgreSQL parameters that PgBouncer tracks throughtrack_extra_parameters
. (#878)
- Introduce the
-
Fixes
- Don't crash when the
pgbouncer
admin database is used as auth_dbname. It's still not supported, but this now gives a clear error instead of crashing. (#817) - Fix name of
peer_cache
inSHOW MEM
. It was incorrectly showing up asdb_cache
before. (#864) - Fix src/dst confusion in log. PgBouncer was logging a source IP when it meant to log the destination IP. (#880)
- Only log admin connections over unix sockets when
log_connections
is set to1
. (#883)
- Don't crash when the
- New Contributors
- @wwoytenko made their first contribution in #817
- @emelsimsek made their first contribution in #867
- @benjaminjb made their first contribution in #880
- @jarojasm95 made their first contribution in #884