]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Change GetMultiXactInfo() to return the next multixact offset
authorMichael Paquier <michael@paquier.xyz>
Tue, 30 Dec 2025 05:03:49 +0000 (14:03 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 30 Dec 2025 05:03:49 +0000 (14:03 +0900)
commit9cf746a453c15ffdf652a6d50683bfd82e654950
treec0c97db23b8c64efca0edffcc8ed3c860d1fbb5e
parent7da9d8f2db655eefba8757a66097bfabd3660a82
Change GetMultiXactInfo() to return the next multixact offset

This routine returned a number of members as a MultiXactOffset,
calculated based on the difference between the next-to-be-assigned
offset and the oldest offset.  However, this number is not actually an
offset but a number.

This type confusion comes from the original implementation of
MultiXactMemberFreezeThreshold(), in 53bb309d2d5a.  The number of
members is now defined as a uint64, large enough for MultiXactOffset.
This change will be used in a follow-up patch.

Reviewed-by: Naga Appani <nagnrik@gmail.com>
Discussion: https://postgr.es/m/aUyTvZMq2CLgNEB4@paquier.xyz
src/backend/access/transam/multixact.c
src/include/access/multixact.h