model-writtenrun 5080 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The reporter, jiye_sw, demonstrated that inserting multiple VALUES rows containing DEFAULT into an updatable view with a DO ALSO INSERT rule caused a cache lookup failure, while inserting directly into the table worked #1.
- Richard Guo reproduced the failure and traced it to product-query attribute numbers being used against the view's smaller tuple descriptor, causing invalid memory access; Japin Li then proposed opening each product query's actual target relation #2 #3 #4.
- Richard supported the patch but questioned whether product queries could be SELECTs, and Japin confirmed that possibility and withdrew confidence in his initial approach #5 #6.
- Tom Lane concluded that ordinary default expansion and replacement of remaining DEFAULT markers required separate functions, then posted rewriteValuesRTEToNulls to construct typed NULLs without consulting a target relation; he reported that it fixed the reproducer and passed check-world #7 #8.
- Japin approved Tom's patch and supplied a regression test in rules.sql, leaving the implementation reviewed and test coverage proposed at the thread's last message #9.
- Tom subsequently committed the implementation from #8 with an additional INSERT assertion and different regression coverage in updatable_views.sql, crediting Richard and Japin's investigation and backpatching the fix to all supported branches b8f2687fdc.