pgsql: Fix autovacuum's database sorting. - Mailing list pgsql-committers

From Nathan Bossart
Subject pgsql: Fix autovacuum's database sorting.
Date
Msg-id E1wppHD-0000000170s-2WCX@gemulon.postgresql.org
Whole thread
List pgsql-committers
Fix autovacuum's database sorting.

When db_comparator() was updated to use pg_cmp_s32(), the arguments
were listed in the wrong order.  This caused autovacuum to sort the
databases by their scores in ascending order instead of descending
order.  To fix, swap the arguments to pg_cmp_s32().

Oversight in commit 3b42bdb471.

Reported-by: Хамидуллин Рустам <r.khamidullin@postgrespro.ru>
Author: Хамидуллин Рустам <r.khamidullin@postgrespro.ru>
Discussion: https://postgr.es/m/5c5a7984-b149-b505-7ad9-2a7766c65b55%40postgrespro.ru
Backpatch-through: 17

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b3331578b58650be6811e842d79937c4a51b74ef

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Fix Hash Join performance issue when hashing NULL values
Next
From: Jacob Champion
Date:
Subject: pgsql: libpq-oauth: Avoid overflow for very large intervals