model-writtenrun 5091 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart proposed making pg_hba.conf's samerole, samegroup, and '+' matching require inherited role privileges for consistency with other privilege checks, while acknowledging that this could prevent NOINHERIT members from logging in to use SET ROLE; Joshua Brindle reviewed and supported the proposal #1 #2.
- After a six-month gap, Michael Paquier requested tests because authentication was sensitive and poorly covered, prompting Nathan to add inheritance tests in #6 following #4.
- Michael explained the changed behavior for NOINHERIT superusers and requested reuse of the existing authentication test node; Nathan moved the tests into 001_password.pl, then improved object names and satisfied regression naming restrictions identified by Michael and Tom Lane #7 #8 #9 #11 #12 #13.
- Robert Haas questioned whether HBA matching should count as a privilege check at all, since matching a reject rule can deny access; Michael still favored consistency with privilege inheritance, and Joe Conway indicated readiness to commit #10 #14 #15.
- Tom Lane disputed consensus and raised interactions with possible database-local privileges; Robert argued that authentication groups can be independent of object privileges, while David G. Johnston emphasized that inheritance does not govern LOGIN or authentication #16 #17 #18.
- Nathan acknowledged that he had no concrete use case justifying the behavior change and marked the proposal rejected after the objections #19 #20.
- Michael proposed salvaging the tests to cover existing role membership behavior, and Nathan submitted a standalone test patch that discarded the backend changes and checked members versus nonmembers #21 #22.
- Michael committed #22 as 8432a815fe, adding exact-role matching tests, clarifying comments, and applying perltidy formatting, then announced the application in #23.
- The thread ended with the membership tests landed and the inheritance behavior change rejected; Stephen Frost confirmed that membership-based authentication had been intentional and suggested documenting that rationale more clearly #25.