model-writtenrun 5350 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Gurjeet Singh reported that an unprivileged user's PGOPTIONS setting for an extension-defined privileged parameter could crash session startup because permission checking accessed catalogs outside a transaction; he moved the report from security to hackers because the affected functionality was unreleased, and Michael Paquier registered an open item #1 #2.
- Tom Lane preferred moving library loading into InitPostgres() over rejecting parameter assignments outside transactions, while Nathan Bossart supplied an inline alternative wrapping the existing call in a new transaction; Tom rejected the extra transaction cost in favor of reusing the startup transaction #3 #4 #5.
- Gurjeet supported loading late in InitPostgres(), also noted that extension-defined reporting parameters should exist before initial GUC reporting, and attached a patch moving the call and adding a transaction assertion; his reproduction then produced a permission warning instead of a crash #6 #7 #9.
- Michael Paquier and Kyotaro Horiguchi identified bootstrap and background-process loading problems and questioned the assertion; Tom's revision removed the assertion and restricted loading to interactive sessions, also excluding WAL senders, after testing that the contrib modules could be session-preloaded #10 #11 #12.
- Nathan worried that a list of excluded process types would become incomplete, so Tom proposed and implemented an explicit load_session_libraries argument to InitPostgres(), with updated callers and parameter documentation #13 #14 #15 #16.
- Nathan reviewed the argument-based patch, noted changed logging behavior on startup failures, and suggested checking the output destination instead; Tom pointed out that this would omit standalone backends, and Nathan agreed to retain the explicit argument and existing single-user loading behavior #17 #18 #19.
- Tom committed the final backend patch with only comment refinements as b35617de37, backpatched it to PostgreSQL 15, and explained that regression coverage still needed work because PL/Perl was optional and lacked suitable TAP tests #20.
- Tom proposed using auto_explain for coverage, and Dagfinn Ilmari Mannsåker supplied a separate patch replacing repeated configuration-file rewrites with PGOPTIONS and loading auto_explain through session_preload_libraries #20 #21.
- Tom added non-superuser parameter-permission success and failure cases to Ilmari's test patch and committed the expanded tests as 7c34555f8c #22.
- Ilmari then observed that assigning undef to PGUSER leaves an empty environment variable and recommended deletion or a scoped local assignment; Tom initially considered the distinction harmless because libpq treated both cases alike #23 #24.
- After buildfarm failures exposed missing Windows authentication setup for the test role, Tom added that setup and adopted Ilmari's scoped PGUSER suggestion in 5253519b27; his final message confirms the repair, leaving the backend fix, regression coverage, and follow-up test corrections committed #25.