model-writtenrun 1678 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Maxim Orlov proposed fixes for two reported pg_upgrade failures at exact multixact wraparound boundaries, converting zero next multixid to one in pg_upgrade and permitting the maximum offset in pg_resetwal; he also supplied a demonstration test that he did not expect to commit #1.
- Heikki Linnakangas argued that pg_resetwal should accept zero next multixid because existing control files can contain it, identified an unintended unconditional offset reset, and posted a revision using separate flags to track whether the multixact options were supplied #2.
- Heikki suggested separately changing nextMXact handling in v19 to avoid storing an invalid multixid, and questioned whether oldestMultiXactId could ever be zero; the supplied thread contains no answer to that question #2.
- Heikki committed the revised fix as 94939c5f3a, dropping the pg_upgrade workaround, adding signed parsing and range checks for offsets, and updating existing pg_resetwal tests; the commit was backpatched through v15, with v14 omitted because adaptation was judged disproportionate to the rare failure.
- In his final report, Heikki confirmed that the demonstration test was useful but omitted, explained that signed parsing prevents negative offsets from being accepted, and left similar validation improvements for other options as future work that he offered to review #3.