model-writtenrun 8547 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yushi Ogiwara reported that consume_xids(n) allocated n+1 XIDs when the transaction lacked a top-level XID and proposed counting that initial allocation in #1.
- Masahiko Sawada identified the need to remember the actual allocated XID for consume_xids(1) in #2; after Yushi tried returning the next XID minus one for zero-count calls in #3, Sawada explained the concurrency problem in #4, leading Yushi to reject zero-count calls and save the allocated XID in #5.
- Fujii Masao requested explicit return-value documentation and questioned shortcut accounting in #6; Sawada identified the 32kB-block issue in #7, and their discussion in #8 and #9 favored raising the shortcut threshold to 4000 without changing XidSkip() to return distance minus one.
- Yushi explained that XidSkip() already stops before wraparound in #10, resolving Fujii's concern about allocating special transaction IDs, which Fujii acknowledged in #11.
- Yushi submitted an updated accounting fix and a separate 32kB-block fix in #12; Sawada requested removal of redundant code and commentary plus a named 4000 threshold and an assertion in #13.
- The patches remained awaiting revision, as recorded in #14, and Michael Paquier asked for someone to finish the still-unfixed bug after the long pause in #15.
- João Rito resumed the work in #16, preserving Yushi's authorship, combining and rebasing both patches, applying Sawada's outstanding requests, and reporting successful accounting checks and TAP tests, although he had not tested 32kB blocks.
- Fujii identified an inaccurate consume_xids_until() comment in #17: an already-satisfied target can return the next observed XID without assigning it; João incorporated that comment-only correction and reported targeted checks in #18.
- Fujii committed #18 with its code unchanged as 1b4abc23f3, backpatched the fix through PostgreSQL 17, and confirmed the push in #19, leaving no outstanding patch revision in the thread.