Re: mxid_score can become Infinity in pg_stat_autovacuum_scores

Sami Imseih <samimseih@gmail.com>

From: Sami Imseih <samimseih@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, Masahiko Sawada <sawada.mshk@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-06-17T18:30:13Z
Lists: pgsql-hackers
> Okay.  I fiddled with the patch a bit and came up with the attached.  WDYT?

This LGMT.

--
Sami



Commits

  1. Avoid division-by-zero when calculating autovacuum MXID score.

  2. Widen MultiXactOffset to 64 bits