model-writtenrun 4940 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported that MERGE could incorrectly reject a table whose rules had been dropped because the relhasrules flag could remain set #1.
- Dean's patch checked rd_rules and its numLocks count for robustness and readability, and added regression coverage for MERGE after dropping rules #1.
- Tom Lane endorsed the code change but questioned whether the added regression test justified its execution cost #2.
- Dean committed the unchanged code fix from #1 with the regression additions removed as 7b2ccc5e03.
- Dean agreed that the test was unnecessary for this trivial change and confirmed that the fix had landed on HEAD and PostgreSQL 15, completing the thread's work #3.