pgsql: Fix setting next multixid's offset at offset wraparound - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix setting next multixid's offset at offset wraparound
Date
Msg-id E1vRSQi-002uqD-2t@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/02ba5e3be4f3520a45f3c9c22f61d62c4eadbb76

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


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Use more palloc_object() and palloc_array() in contrib/
Next
From: Álvaro Herrera
Date:
Subject: pgsql: Stabilize tests some more