Skip to content

Change db param to reserve_pool_size - #1232

Merged
JelteF merged 6 commits into
pgbouncer:masterfrom
greg-rychlewski:db_reserve_pool_size
Dec 24, 2024
Merged

Change db param to reserve_pool_size#1232
JelteF merged 6 commits into
pgbouncer:masterfrom
greg-rychlewski:db_reserve_pool_size

Conversation

@greg-rychlewski

Copy link
Copy Markdown
Contributor

Based on discussion here: #1228

Updating the database parameter name from reserve_pool to reserve_pool_size to be consistent with everything else.

Do you prefer to advertise the deprecation through the release notes only or also make a note in the parameter's documentation?

Comment thread src/loader.c
Comment thread doc/config.md Outdated
greg-rychlewski and others added 4 commits December 23, 2024 13:27
Co-authored-by: Jelte Fennema-Nio <github-tech@jeltef.nl>
@JelteF
JelteF merged commit bd7c2bd into pgbouncer:master Dec 24, 2024
@greg-rychlewski
greg-rychlewski deleted the db_reserve_pool_size branch December 24, 2024 04:37
rajaryanece pushed a commit to rajaryanece/pgbouncer that referenced this pull request Jan 16, 2025
Based on discussion here:
pgbouncer#1228

Updating the database parameter name from `reserve_pool` to
`reserve_pool_size` to be consistent with everything else.
greeddj added a commit to greeddj/pgbouncer_exporter that referenced this pull request May 22, 2026
PgBouncer 1.24.0 renamed the `reserve_pool` column in `SHOW DATABASES`
to `reserve_pool_size` (pgbouncer/pgbouncer#1232). The
exporter only mapped the old column name, so the
`pgbouncer_databases_reserve_pool` metric silently stopped being emitted
on PgBouncer 1.24+.

Add a mapping for `reserve_pool_size` next to the existing `reserve_pool`
entry, both pointing at the same metric name. The exporter iterates over
the actual columns returned by pgbouncer, and the two names are mutually
exclusive across versions, so the metric continues to be emitted exactly
once per database row regardless of pgbouncer version. Add tests covering
both column names.

Refs: prometheus-community#220

Signed-off-by: Dmitrij Shishkin <greeddj@gmail.com>
SuperQ pushed a commit to prometheus-community/pgbouncer_exporter that referenced this pull request Jun 26, 2026
PgBouncer 1.24.0 renamed the `reserve_pool` column in `SHOW DATABASES`
to `reserve_pool_size` (pgbouncer/pgbouncer#1232). The
exporter only mapped the old column name, so the
`pgbouncer_databases_reserve_pool` metric silently stopped being emitted
on PgBouncer 1.24+.

Add a mapping for `reserve_pool_size` next to the existing `reserve_pool`
entry, both pointing at the same metric name. The exporter iterates over
the actual columns returned by pgbouncer, and the two names are mutually
exclusive across versions, so the metric continues to be emitted exactly
once per database row regardless of pgbouncer version. Add tests covering
both column names.

Refs: #220

Signed-off-by: Dmitrij Shishkin <greeddj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants