model-writtenrun 6092 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ranier Vilela proposed preserving domainval/domainnull across constraint-loop iterations to avoid repeated allocation and read-only conversion, alongside narrowing two temporary variables' scope #1.
- Andres Freund initially argued that separate allocation was intentional #2, but Tom Lane explained that one read-only conversion could serve multiple CHECK constraints and opposed the unrelated scope changes because they added indentation without improving correctness #3; Andres accepted that explanation #4.
- Ranier submitted a smaller patch retaining only the variable-lifespan fix and dropping the temporary-variable scope changes #5.
- Arthur Zakirov approved the revised patch and identified the earlier scope change that introduced the regression #8, which Ranier acknowledged #9.
- Tom Lane committed the revised patch with only declaration-order adjustments as 01fc652703, explaining that the bug emitted redundant EEOP_MAKE_READONLY steps and warranted backpatching to PostgreSQL 13, then announced the fix #10.
- The thread ended with acknowledgments from Andres and Ranier after the fix landed, with no outstanding work identified #11 #12.