model-writtenrun 8931 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed removing an obsolete comment claiming SET STATISTICS could modify system catalogs without allow_system_table_mods, explaining that restoring the long-broken exception was less urgent after improvements to that setting #1.
- Tom Lane supported leaving the exception disabled and suggested eliminating the special permission-checking function entirely, using ATSimplePermissions() and moving column-number validation to execution #2.
- Peter implemented that refactoring in #3, noting that any future restoration of the exception could use an ATT_SYSTEM_TABLE flag rather than a separate preparation function.
- Tom reviewed the revised patch and requested moving the column-number validation so it would not interrupt the assignment and range checking of newtarget #4.
- Peter incorporated that cosmetic adjustment and committed 105eb360f2 from #3, then confirmed completion in #5; restoring the system-catalog exception remained outside this change.