model-writtenrun 4816 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Robert Haas's announcement of createrole_self_grant, a user-configurable default allowing non-superuser role creators to grant themselves SET or INHERIT privileges on newly created roles #1.
- Tom Lane warned that an unprivileged caller could alter a SECURITY DEFINER function's behavior through the setting; discussion considered superuser-only configuration, a CREATEROLE-specific configuration privilege, role properties, and predefined roles #2 #4 #6.
- Robert argued that this behavior was a user preference and should remain a GUC, proposing documentation about fixing its value with a function SET clause and a cross-reference to the safety section; Tom accepted that approach #7 #8.
- Robert submitted the sole patchset, adding the warning and cross-reference while removing obsolete discussion of functions written before PostgreSQL 8.3 #11.
- David G. Johnston questioned the warning's rationale, while Andres Freund clarified that the section protects function owners from untrusted callers; Robert explained the caller-controlled configuration risk and kept broader SECURITY INVOKER guidance outside this patch #12 #13 #14 #15.
- David proposed rewriting the safety section and raised how login-time settings interact with role switching, but Robert rejected the expanded wording as less clear and partly inaccurate, retaining the original patch #16 #17 #18.
- David accepted proceeding, and Robert agreed that a broader treatment of trust and execution privileges deserved separate work; that documentation remained deferred when the thread ended #19 #20.
- Robert committed the complete patchset from #11 unchanged as 6fa66ec88f, completing the narrow documentation follow-up.