model-writtenrun 7947 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mikhail Titov reported that DEFAULT worked for single-row inserts into generated columns but failed for multi-row VALUES, and supplied tests plus a parser-and-rewriter fix in #1; his revision in #3 repaired whitespace transmission and adjusted tests and comments.
- Tom Lane found an assertion-enabled compilation failure and an API violation in expandNSItemVars, rejected weakening the rewriter sanity check, and suggested alternative handling of all-DEFAULT columns and clearer diagnostics in #4.
- Dean Rasheed supplied a rewriter-only replacement in #5, explaining that explicit tracking of unused VALUES columns also fixes an OVERRIDING USER VALUE failure that parser-only changes would miss; he expanded regression coverage and left diagnostic changes for a separate patch.
- Tom committed Dean's replacement as 17958972fe, correcting the bitmap emptiness check and refining comments, then reported the landing in #6.
- Tom supplied the separate error-wording patch in #6, declining error-cursor support because passing query text through rewriting and identifying expressions originating in rules or views would be disproportionately complicated.
- Dean endorsed consistent use of ERRCODE_GENERATED_ALWAYS in #7, and Tom incorporated that change with the wording patch in d36228a9fc; his final confirmation in #8 leaves both the functional fix and diagnostic follow-up committed.