Change GetMultiXactInfo() to return the next multixact offset
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/multixact.c | modified | +8 −8 |
| src/include/access/multixact.h | modified | +1 −1 |
Discussion
- [Proposal] Expose internal MultiXact member count function for efficient monitoring 42 messages · 2025-03-10 → 2026-04-13