pgsql: Change GetMultiXactInfo() to return the next multixact offset

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change GetMultiXactInfo() to return the next multixact offset
Date: 2025-12-30 05:04:11
Message-ID: E1vaRty-003Qdd-01@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Discussion: https://postgr.es/m/aUyTvZMq2CLgNEB4@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9cf746a453c15ffdf652a6d50683bfd82e654950

Modified Files
--------------
src/backend/access/transam/multixact.c | 16 ++++++++--------
src/include/access/multixact.h | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-12-30 05:20:24 pgsql: Add MultiXactOffsetStorageSize() to multixact_internal.h
Previous Message Thomas Munro 2025-12-30 01:51:17 pgsql: jit: Remove -Wno-deprecated-declarations in 18+.