model-writtenrun 1351 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot proposed twenty per-file patches to replace direct InvalidXLogRecPtr comparisons with XLogRecPtrIsInvalid(), motivated by inconsistent existing practice, and Quan Zongliang endorsed the cleanup #1 #2.
- Heikki Linnakangas questioned the macro's continuing necessity and highlighted its double negatives, leading Bertrand to choose a new affirmative XLogRecPtrIsValid() API instead #3 #4.
- Michael Paquier warned about breaking external backup tools, while Alvaro Herrera proposed retaining the old API, eventually deprecating it, and using Coccinelle for conversions; Peter Eisentraut separately questioned macros whose use was not enforced by the type system #5 #6 #8.
- Bertrand's revised series introduced XLogRecPtrIsValid(), converted old macro calls and comparisons against InvalidXLogRecPtr or zero, and initially added immediate compiler deprecation warnings #9.
- Peter requested reusable deprecation machinery and warned that extensions could not readily adopt an API absent from older releases; Bertrand consequently replaced immediate warnings with a comment and added a missed vacuumlazy.c comparison #11 #13 #14.
- Alvaro proposed gating warnings on a future PostgreSQL version, and Bertrand restored a separate deprecation patch with PG_DEPRECATED() and a PostgreSQL 24 threshold before rebasing the series #15 #16 #17.
- At Alvaro's request, Bertrand separated macro introduction from caller conversion to permit independent backpatching and renamed the attribute helper to pg_attribute_deprecated() #18 #19.
- Alvaro committed the macro-introduction portion of #19 as 20bafb0972, omitting the discouraging comment about the old API and backpatching the additive definition through PostgreSQL 13 #20.
- Alvaro combined the three conversion patches from #19 into a2b02293bc, simplifying ternary expressions and an assertion to avoid negated validity tests while leaving deprecation uncommitted #20.
- Bertrand resubmitted the remaining deprecation patch with a PostgreSQL 21 threshold, incorporated Peter's compiler-condition cleanup, and retained compiler detection after Dagfinn Ilmari Mannsåker suggested __has_attribute(), explaining the older-GCC compatibility reason #23 #24 #25 #26 #28.
- Alvaro identified literal-zero assignments missed by the comparison cleanup, prompting Bertrand to start a separate nine-file InvalidXLogRecPtr assignment patch #22 #27.
- Alvaro's independent Coccinelle run reproduced only part of that assignment patch, so he posted the generated changes and remainder separately; Bertrand explained the recursive-header requirements and supplied a per-file wrapper for reproducible runs #29 #30.
- Further Coccinelle improvements detected a direct-member assignment and the GistNSN typedef, adding two GiST cases to the assignment cleanup #31 #32.
- Bertrand then proposed a separate eight-patch RegProcedure/Oid cleanup, but Peter and Alvaro objected that the broad changes added noise without clear benefit; Bertrand suggested narrowing the work, without posting a replacement in this thread #33 #34 #36 #37.
- Robert Haas subsequently challenged the compatibility cost of the already-landed API change for extensions built against older minor releases, and Andres Freund agreed with the concern; Alvaro defended delayed warnings, but Robert explicitly declined to request a revert and the disagreement remained unresolved #38 #39 #40 #42 #43 #44.
- Bertrand separately found six pointer comparisons or assignments using literal zero and proposed NULL replacements; Peter committed #45 as ec782f56b0 with only pgindent formatting adjustments #46.
- After a gap until January, Alvaro committed the completed assignment cleanup from #32 as ec31744071, preserving its changes apart from rebasing and whitespace #48.
- Bertrand's final message reported that a simpler Coccinelle script found four additional XactLastRecEnd assignments in xact.c and supplied a follow-up patch; that patch remains pending in the supplied record, alongside the deprecation proposal, while the broader Oid cleanup has no revised submission or landing here #49 #28 #37.