model-writtenrun 8907 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut reported that DROP RULE omitted the allow_system_table_mods check already used by related rule and trigger commands, proposing consistency despite the likely negligible practical impact #1.
- His patch added a check in RemoveRewriteRuleById to reject dropping rules on system catalogs unless system-table modifications are enabled #1.
- The regression test creates a rule with modifications enabled, verifies that dropping it fails after resetting the setting, and enables modifications again for cleanup #1.
- Robert Haas approved the patch without requesting changes #2.
- Peter Eisentraut committed the patch unchanged as df7fe9e2d7 and confirmed completion in the thread’s final message #3.