model-writtenrun 8866 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pengzhou Tang reported an unexpected planner error when updating a view with a conditional INSTEAD rule and proposed enabling automatic rewriting of the remaining update in #1.
- Dean Rasheed explained that conditional INSTEAD rules intentionally disable automatic view updates, traced the misleading error to planner target-list handling, and proposed rejecting the query earlier in the rewriter in #2.
- Tom Lane questioned why error detection had been left to the executor in #3; Dean showed that the rewriter already had the necessary information and could provide better error detail despite duplicating some checks in #4.
- Dean supplied the replacement patch in #5, adding early errors and regression tests for INSERT, UPDATE and DELETE while retaining the executor checks defensively.
- Dean committed #5 as d751ba5235 with unchanged file diffs and an expanded commit message, then confirmed the push and backpatches in #6.
- After the commit, Pengzhou renewed the case for allowing conditional rules on simple views in #7; Dean explained in #8 that this would require a separate feature enhancement, discouraged expanding the rule system, and clarified the documentation wording, leaving the error-reporting fix landed and the proposed behavior change unadopted.