pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix setting next multixid's offset at offset wraparound
Date: Fri, 05 Dec 2025 09:48:49 +0000
Message-ID: <E1vRSQi-002uqF-2x@gemulon.postgresql.org> (raw)

Fix setting next multixid's offset at offset wraparound

In commit 789d65364c, we started updating the next multixid's offset
too when recording a multixid, so that it can always be used to
calculate the number of members. I got it wrong at offset wraparound:
we need to skip over offset 0. Fix that.

Discussion: https://www.postgresql.org/message-id/d9996478-389a-4340-8735-bfad456b313c@iki.fi
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cad40cec24f338a4ac8004b58301c0809df48c03

Modified Files
--------------
src/backend/access/transam/multixact.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1vRSQi-002uqF-2x@gemulon.postgresql.org>
Permalink:  ../E1vRSQi-002uqF-2x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vRSQi-002uqF-2x@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix setting next multixid's offset at offset wraparound
  In-Reply-To: <E1vRSQi-002uqF-2x@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox