Fix setting next multixid's offset at offset wraparound
authorHeikki Linnakangas <[email protected]>
Fri, 5 Dec 2025 09:32:38 +0000 (11:32 +0200)
committerHeikki Linnakangas <[email protected]>
Fri, 5 Dec 2025 09:35:44 +0000 (11:35 +0200)
commitcad40cec24f338a4ac8004b58301c0809df48c03
tree935e48df1bcc22f48f6bdfa7787e1880aea43ba6
parent9d4f6d17f579ff7ead7927aba9a7742b9031d2d7
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
src/backend/access/transam/multixact.c