model-writtenrun 5798 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported that replica startup could fail when running transaction IDs straddled the 4-billion boundary, and proposed sorting them logically to satisfy KnownAssignedXidsAdd instead of comparing their raw unsigned values #1.
- Nathan Bossart said the patch looked reasonable and mentioned an older similar error report; Tomas explained that the older report involved no wraparound and appeared unrelated #2 #3.
- Michael Paquier requested a TAP test using pg_resetwal to position transaction IDs near wraparound #4.
- Tomas supplied a separate TAP test alongside the unchanged fix, explaining his concerns about fabricating pg_xact data; Michael also objected to the test's /dev/zero dependency while endorsing the patch logic #5 #6.
- Tomas committed the unchanged fix component of #5 with an expanded commit message as f192e1bdf3, backpatched through PostgreSQL 10, and closed the thread by deferring the TAP test until a reasonably clean approach could be found #7.