model-writtenrun 657 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Aleksander Alekseev reported a null-pointer crash when FOR PORTION OF attempted to insert temporal leftovers through a view with INSTEAD OF triggers, and proposed rejecting that combination during parse analysis in #1.
- Tom Lane objected that triggers can change after parsing and identified related premature foreign-table and volatility checks in #2; he subsequently accepted the operator-class lookup but emphasized that stored parsed queries require special care in #4.
- Paul A Jungwirth imported an alternative developed with jian he that skipped temporal leftovers while allowing INSTEAD OF triggers in #5, then documented that behavior in #6.
- Jian he supplied independent patches moving volatility validation to executor initialization in #7 and foreign-table rejection to CheckValidResultRel in #8; Paul moved those concerns to a separate thread and added partition-pruning test coverage there, as reported in #9.
- After Peter Eisentraut questioned the thread's scope in #10, Aleksander resent his original prohibition in #11, while Paul argued for retaining trigger support and skipping leftovers in #12.
- Aleksander demonstrated that the alternative still crashed with an UPDATE-only trigger and urged a conservative PostgreSQL 19 fix in #13; Paul corrected the mistaken DELETE-trigger check and added a second fix for missing row qualification and range narrowing in #14.
- Peter recommended prohibiting the combination until its SQL-standard semantics had been investigated in #15, and Paul accepted that direction in #16, leaving the permissive implementation aside.
- Following Peter's renewed concern about parser-time checks in #17, Paul returned to Aleksander's patch and supplied incremental rewrite-time and executor-time alternatives in #18, preferring rewriting because it also rejects statements matching no rows.
- Tom explained that stored parsed queries can execute without reparsing in #19, leading Paul to add rewrite-rule and BEGIN ATOMIC crash tests in #20.
- Peter questioned how the incremental alternatives should be applied in #21, and Paul clarified in #22 that each stage replaces the previous check, with executor-time enforcement allowing zero-row operations.
- Peter committed the first three patches from #20 unchanged apart from squashing and commit-message editing as 5b5e99047a, selecting rewrite-time rejection and retaining the stored-query regression tests.
- In the final message #23, Peter confirmed the landing and withdrew his preference for the executor check, leaving that optional addition for a demonstrated future need; the original crash fix was complete.