agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix scaling of autovacuum freeze scores.
Date: Tue, 01 Sep 2026 20:21:03 +0000
Message-ID: <E1x1Uyc-000000035Ck-1YJB@gemulon.postgresql.org> (raw)
Fix scaling of autovacuum freeze scores.
Sufficiently large settings of the *_freeze_score_weight parameters
can lower the scaling thresholds below the *_freeze_max_age
settings. This can lead the scoring code to raise a value < 1.0 to
a power > 1.0, thus lowering the score, which is the opposite of
what is intended. To fix, only exponentiate the scores when doing
so won't lower their values.
Oversight in commit d7965d65fc.
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Greg Burd <greg@burd.me>
Discussion: https://postgr.es/m/apWcbq91BAfhmsKU%40nathan
Backpatch-through: 19
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/49e098b41420aebda60804410b33fcbb5279503f
Modified Files
--------------
src/backend/postmaster/autovacuum.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
view thread (2+ messages) latest in thread
Message-ID: <E1x1Uyc-000000035Ck-1YJB@gemulon.postgresql.org>
Permalink: ../E1x1Uyc-000000035Ck-1YJB@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1x1Uyc-000000035Ck-1YJB@gemulon.postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix scaling of autovacuum freeze scores.
In-Reply-To: <E1x1Uyc-000000035Ck-1YJB@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox