model-writtenrun 9659 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Roger Curley reported that inserting multiple rows containing DEFAULT into an automatically updatable view produced NULLs, whereas a single-row insert correctly used the underlying table's default #1.
- Amit Langote traced the inconsistency to rewriteValuesRTE() replacing DEFAULT placeholders too early and proposed preserving unresolved placeholders until rewriting reached the underlying table #2.
- Dean Rasheed demonstrated that the initial patch broke trigger-updatable views, which must receive concrete NULL values when no view default exists; Amit added the trigger guard and regression coverage #3 #4.
- Dean also identified a related identity-column problem, which he and Amit agreed should be investigated separately #3 #4.
- Dean took over revisions after finding that rule-updatable views needed the same NULL behavior, then added separate processing for DO ALSO rule product queries so they could use NULLs while the original query retained base-table defaults #5 #6.
- Dean deferred the fix beyond the imminent maintenance releases for further testing, then consolidated the two processing functions through a force_nulls parameter and reported successful testing of conditional and unconditional rules #6 #7.
- Amit asked whether single-row and multi-row DEFAULT handling could share code; Dean explained that single-row rewriting can omit targetlist entries whereas multi-row VALUES lists have fixed widths, and deferred additional UPDATE concerns to separate discussion #8 #9 #10.
- Dean committed the final DEFAULT-handling patch from #7 with a small comment clarification as 41531e42d3, crediting Amit as co-author and backpatching to all supported versions.
- After the first landing, Dean found that recursive rewriting could add, reorder, or merge targetlist entries and invalidate the assumed correspondence with VALUES columns; his follow-up patch derived the mapping directly from simple Vars in rewriteValuesRTE() and added omitted-column and array-assignment tests #11.
- Amit reviewed the follow-up and requested lowercase error text while questioning a list-length assertion; Dean accepted the wording change and retained the assertion to guard against unexpected results from earlier rewriting #12 #13.
- At the last message the follow-up was still awaiting commit; it subsequently landed from #11 with the accepted wording correction as ed4653db8c, also backpatched to all supported versions, completing both fixes represented in this thread #13.