model-writtenrun 1813 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li proposed const-qualifying read-only Datum pointer arguments to clarify interfaces and catch accidental modifications, submitting an initial patch across 50 files in #1.
- Chao Li's revision in #2 removed index insertion and index-build callback signature changes while adding const-qualified sampling parameters in the two contrib sampling modules.
- Michael Paquier supported the initiative but called for careful case-by-case review in #4, Nathan Bossart questioned the narrow type scope and potential backpatch churn in #5, and Tom Lane specifically requested equivalent protection for paired null flags in #6.
- Chao Li incorporated that feedback in #7, extending const qualification to paired boolean flags and other read-only pointer arguments, including array, statistics, and catalog-cache inputs.
- Chao Li explained in #8 that SPI's inconsistent qualification of values and null flags had misleadingly suggested an output parameter, motivating the cleanup despite possible backpatch conflicts.
- Peter Eisentraut landed most of #7 as 8a27d418f8, adding SPI documentation and excluding externally usable table-sampling callback signature changes to preserve compatibility, as reported in #9.
- The retained cleanup was committed, and the thread ended with Bertrand Drouvot announcing a separate proposal extending the approach to all pointer types in #10, without resubmitting the excluded callback changes here.