model-writtenrun 6219 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhiyong Wu reported a PostgreSQL 14beta2 crash involving a rule action with row-locking clauses in #1, and Bruce Momjian reproduced the failure on master in #2.
- Masahiko Sawada reduced the failure to a rule using FOR UPDATE OF old, traced the crash to LockRows trying to lock a tuple from a Result node, and proposed rejecting the reference during query analysis in #3.
- Tom Lane supplied a patch excluding automatically added OLD/NEW entries from both implicit and explicitly named locking in #4, accepting the existing missing-FROM-clause error and reporting that check-world passed.
- Tom Lane retained the inFromCl approach in #5 because namespace visibility would incorrectly exclude base relations hidden by join aliases, updated the explanatory comments, and called for regression tests.
- Masahiko Sawada approved the revised patch, confirmed that it passed check-world and fixed the failure, and endorsed regression coverage in #6.
- Tom Lane committed #5 with regression tests as 8d2d6ec770 and confirmed the push in #7, closing the thread with the fix landed.