]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix setting next multixid's offset at offset wraparound
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 5 Dec 2025 09:32:38 +0000 (11:32 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 5 Dec 2025 09:36:36 +0000 (11:36 +0200)
commit4d689a17693ed65461b2f3a02c24c98f30d930d0
tree08dffc900bcc7cb21e32fe1c749507113b5ef0ab
parentb38feca1ce007adbd0db534e02f6d6b46b968051
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