model-writtenrun 4922 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported that multi-row INSERT rule actions could leave DEFAULT expressions unprocessed and cause an unrecognized-node error, proposing targetlist-based identification of the VALUES RTE and regression tests in #1.
- Tom Lane questioned the targetlist assumptions and suggested alternatives in #2; Dean demonstrated that choosing the first fromlist entry would fail when two VALUES RTEs were present in #3, and Tom explored processing all VALUES RTEs in #4.
- Dean explained that targetlist coupling and updatable-view defaults made moving VALUES processing difficult to backpatch, then submitted #5, which passes the originating rangetable length through recursion and skips inherited RTEs while checking that at most one candidate remains.
- At the thread's last message, Tom endorsed the revised approach and its uniqueness check after reviewing the code, explicitly noting that he had not tested it #6.
- Dean subsequently committed #5 unchanged apart from rebase offsets as 2605643a3a, credited Tom's review, and backpatched the fix to all supported branches.