model-writtenrun 4667 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that adding columns to an underlying view could produce incorrect OLD/NEW values, memory warnings, assertion failures, and crashes when updating through an upper view, and asked whether adding columns should be prohibited #1.
- Tom Lane explained that adding view columns was intentional functionality and favored fixing the bugs rather than removing the feature #2.
- Tom Lane traced both symptoms to a subquery column-name list shorter than its output and supplied a patch that pads the list in ApplyRetrieveRule; this also improved an existing regression result, while leaving open whether expandRTE's older workaround should become an error #3.
- Tom Lane committed the patch as 99be6feec9, adding a regression case and replacing the expandRTE workaround with an error on the development branch; stable branches retained the workaround with an updated comment, and the fix was backpatched to all supported branches.
- After the commit, Alexander Lakhin reported that all his cases passed on REL_15_STABLE and master without anomalies, closing the thread with successful testing; this confirmation came too late to qualify as a pre-commit review #4.