model-writtenrun 7674 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart reported that RESET ROLE preserves a role configured through ALTER ROLE rather than necessarily restoring the session user, and proposed an inline documentation correction in #1.
- David G. Johnston requested documentation of role's use as a configuration parameter in #2, while Joe Conway explained its consistency with other session defaults in #3; Nathan also explored changing initialization behavior in #4, but that code change was not pursued.
- Nathan's attached patch #5 added role and session_authorization documentation; David's reviews #6 and #7 led to an Identification section, corrected connection-time terminology, and an explanation that other defaults follow the originally authenticated user in #8.
- Laurenz Albe objected to placing these settings under server configuration and proposed simpler RESET ROLE wording in #9; Nathan incorporated the wording while preserving command-line settings and the current-session-user fallback in #11.
- David's further objection to treating session identity as server configuration in #12 prompted Nathan to move the broader explanations into libpq and individual command reference pages in #13.
- Laurenz argued that the expanded documentation was excessive in #14 and supplied a narrower alternative documenting ALTER ROLE syntax in #15; David argued that supported connection options and ALTER DATABASE deserved equivalent treatment in #16.
- Nathan prioritized fixing RESET ROLE and accepted deferring the broader documentation in #17; Joe recommended that narrower scope after investigating the history in #18, and Nathan reposted the retained correction alone in #21.
- Laurenz checked the SQL standard and implementation, concluded that SET ROLE NONE and RESET ROLE intentionally differ, and marked the correction ready in #22.
- Joe committed the unchanged SET ROLE hunk from #13 as 174edbe9f9, with backpatches to all supported versions, and announced completion in #23; Nathan acknowledged it in #24, leaving the broader documentation additions out.