postgres-github.git / summary / log / commit / refs

commit    6aa26be288fa811270dfc1e39c015c23a97688b4
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Tue May 26 04:49:04 2026 +0000

    Fix calculation of members_size in pg_get_multixact_stats()
    
    pg_get_multixact_stats() uses members_size to report the amount of
    storage used by the currently retained multixact members.  However,
    MultiXactOffsetStorageSize() divided the member count by the number of
    members per storage group before multiplying by the group size, so it
    was rounding down its result and incorrectly reported zero when there
    were few retained members.  The calculation is changed to calculate the
    same based on the member count.
    
    While on it, this fixes a different issue in the isolation test
    multixact-stats.  Three fields were defined for checks related to the
    oldest offset values, but were not used.  The offsets existed in an
    older version of the patch than what has been committed.  These are
    replaced by checks for members_size, checking the new calculation
    formula.
    
    Thinkos introduced in 97b101776ce2.
    
    Author: Chao Li <li.evan.chao@gmail.com>
    Discussion: https://postgr.es/m/819AC1B2-1A71-4244-B081-3ADD85D1725D@gmail.com