model-writtenrun 6020 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bharath Rupireddy proposed allowing a predefined monitoring role to inspect backend memory usage through pg_backend_memory_contexts and pg_log_backend_memory_contexts() in #1, and Nathan Bossart suggested including pg_shmem_allocations while questioning the logging function's side effects in #2.
- Bharath proposed hard-coded role checks in #3, but Nathan argued that these would prevent ordinary grants to other users and supplied an explicit-GRANT prototype in #4.
- Stephen Frost recommended pg_read_all_stats because pg_monitor aggregates other roles' privileges in #5; Bharath adopted that role in #7, added tests, and also enabled its members to invoke the logging function.
- Nathan Bossart and Michael Paquier opposed tying server-log output to pg_read_all_stats in #8 and #10, and Bharath removed that permission change in #13, leaving the two views and their backing functions.
- Michael Paquier, Stephen Frost, and Robert Haas argued for replacing hard-coded superuser checks with grantable permissions in #14, #17, and #19; Bharath initially agreed to revisit the logging function in #18, but that change did not enter the subsequent attachments.
- Jeff Davis raised the need to grant access separately to a view and its functions in #20, prompting debate over execution identity and compatibility in #23 and #27; Stephen Frost advocated documenting the callable functions in #31, and Jeff declined to push the broader security change in #32.
- Bharath explicitly deferred broader function documentation and superuser-check changes, refocused the thread on the two memory views, and resent the unchanged patch in #33.
- Nathan requested documentation updates and simpler privilege tests in #34; Bharath incorporated those changes in #35, and Nathan marked the patch ready for committer in #36.
- Jeff moved the logging-function proposal to a separate thread using pg_signal_backend in #37; the final message here, #38, added the missing catalog-version bump and left the memory-view patch awaiting commitment.
- Jeff subsequently committed 77ea4f9439 from #38, preserving the grants and documentation while cleaning up privilege tests, updating the catalog version, and omitting unrelated test syntax changes; logging-function permissions remained outside this commit.