model-writtenrun 1461 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed a three-patch series introducing PageData, adding const qualifiers to page APIs, and using Page/PageData in WAL insertion code at #1; PageGetSpecialPointer() became a macro to preserve its argument's const qualification in its return value.
- Peter also considered making PageData a structure for stronger type safety at #1, but deferred that idea because existing code depends on character-based pointer arithmetic.
- The series landed on January 20, 2025: 6e4df237fb added PageData and absorbed the typedef-list entry, 4f4a1d853a added the const qualifiers with one cast correction, and 443a8e4ae3 applied the WAL type changes unchanged from #1; Peter confirmed completion at #2.
- Andres Freund reopened the issue at #3 in January 2026, pointing out that PageGetItem() cast away its page argument's const qualifier and returned a pointer used to modify page contents.
- Peter supplied a corrective patch at #4 removing that qualifier because no callers appeared to need it; qualifier-preserving polymorphism remained a future possibility, and Andres approved the fix while noting the broader effort such polymorphism would require at #5.
- The corrective patch from #4 landed unchanged as 0eadf1767a, and Peter confirmed it at #6, leaving all submitted patches committed.