summaryrefslogtreecommitdiff
path: root/src/backend/tcop/utility.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2025-11-12 10:20:16 +0000
committerHeikki Linnakangas2025-11-12 10:20:16 +0000
commit94939c5f3ab0a390e52c0802c7141c42673a48b4 (patch)
treefd60466a4df96ff1b973b3643b2928edaf468fca /src/backend/tcop/utility.c
parent55cefadde874e52b57f7b3c2232744e331f9d6bb (diff)
Fix pg_upgrade around multixid and mxoff wraparoundHEADmaster
pg_resetwal didn't accept multixid 0 or multixact offset UINT32_MAX, but they are both valid values that can appear in the control file. That caused pg_upgrade to fail if you tried to upgrade a cluster exactly at multixid or offset wraparound, because pg_upgrade calls pg_resetwal to restore multixid/offset on the new cluster to the values from the old cluster. To fix, allow those values in pg_resetwal. Fixes bugs #18863 and #18865 reported by Dmitry Kovalenko. Backpatch down to v15. Version 14 has the same bug, but the patch doesn't apply cleanly there. It could be made to work but it doesn't seem worth the effort given how rare it is to hit this problem with pg_upgrade, and how few people are upgrading to v14 anymore. Author: Maxim Orlov <[email protected]> Discussion: https://www.postgresql.org/message-id/CACG%3DezaApSMTjd%3DM2Sfn5Ucuggd3FG8Z8Qte8Xq9k5-%[email protected] Discussion: https://www.postgresql.org/message-id/[email protected] Discussion: https://www.postgresql.org/message-id/[email protected] Backpatch-through: 15
Diffstat (limited to 'src/backend/tcop/utility.c')
0 files changed, 0 insertions, 0 deletions