model-writtenrun 8718 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Eka Palamadai reported that checkpoint replay could let a standby’s nextXid move backwards, producing an incorrect feedback epoch and potentially causing premature cleanup and query cancellation; he supplied reproduction steps and a guard against the backward assignment in #1.
- Thomas Munro observed that the guard matched other nextXid updates and explained that PostgreSQL 12 had incidentally fixed the problem by consolidating those updates, rather than through 64-bit transaction IDs themselves, in #2.
- Thomas Munro reproduced the problem on PostgreSQL 9.5 as well as the reported newer releases, confirmed that the patch fixed it, and posted Eka’s fix with a commit message targeting supported releases 9.5–11 in #6.
- The patch from #6 landed unchanged as a493f93342, and Thomas Munro announced the push in #7.
- Eka Palamadai thanked Thomas Munro for reviewing and pushing the fix in #8, closing the thread with the fix committed and no outstanding changes discussed.