model-writtenrun 9018 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Eugen Konkov reported that modifying OLD in an INSTEAD OF DELETE trigger did not affect DELETE RETURNING, preventing his temporal-data application from returning the precise period deleted, and requested clearer documentation and an explanation #1.
- Bruce Momjian proposed adding “only” to clarify that INSERT and UPDATE triggers can modify the returned NEW row, matching the CREATE TRIGGER documentation, while initially considering DELETE support a possible TODO item #2.
- Eugen objected that the wording could imply a permanent restriction and proposed describing DELETE RETURNING modification as currently unimplemented, while asking for the feature to enter the TODO list #3 #4.
- Bruce committed the attached documentation patch unchanged as c10fae2142 and announced backpatching and a TODO entry, explaining that RETURNING sees modifications to NEW as a side effect of changing stored data #5.
- Bruce then removed the TODO entry because he considered triggers mechanisms for modifying input data and DELETE to have no such input; he supplied an SQL example and suggested changing the RETURNING expression instead #6.
- Eugen argued that his case concerned views and INSTEAD OF triggers, where deleting part of a represented range should return that portion rather than the entire original range #7 #8.
- Liudmila Mantrova noticed that the documentation fix was missing from REL_12_STABLE, and Bruce confirmed correcting the omitted backport #9 #10.
- Eugen renewed the feature request with a production example and later challenged the claim that DELETE has no input, citing OLD and a decompression example; the documentation fix remained committed, but support for modifying DELETE RETURNING output remained unresolved at the thread's end #11 #12 #13.