model-writtenrun 3962 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot proposed BGWORKER_BYPASS_ROLELOGINCHECK so background workers could use privileged NOLOGIN roles without enabling ordinary user logins, supplying implementation, documentation, and tests in #1.
- Michael Paquier questioned coupling InitPostgres() directly to background-worker flags and recommended dynamic-worker testing in #2; Bertrand initially added a separate boolean parameter and simplified logfile checks in #3.
- Bharath Rupireddy proposed moving the option into bgw_flags to avoid API changes in #6 and #8, but Bertrand and Michael defended separating postmaster launch capabilities from worker connection behavior in #7 and #9.
- Michael redesigned worker_spi to pass database and role OIDs through bgw_extra and accept connection flags, splitting this support from the login-bypass feature in #10; Bertrand reproduced a test race and supplied logfile polling in #11.
- The worker_spi support from #10 and #11 landed as 4f2994647f, combining prerequisite and flag plumbing with SQL defaults, role-fallback cleanup, and broader database tests.
- Michael then added coverage for the existing BGWORKER_BYPASS_ALLOWCONN option and simplified login-bypass tests with wait_for_log in #12; Bertrand restored the existing uint32 connection API types in #13.
- Bharath requested testing without superuser privileges in #14, leading Bertrand to grant only database CREATE privileges in #15; Bharath's wording suggestions in #16 were incorporated into #20.
- The ALLOWCONN test component last carried in #15 landed as 991bb0f965, including restoration of database connections, while the login-bypass feature remained under review.
- Michael reported that the new ALLOWCONN tests exposed parallel-worker failures and that an initial fix suppressed those workers, but intermittent buildfarm failures remained unexplained in #19.
- Tom Lane reproduced the remaining failure and showed that worker_spi_launch() could report an already-exited worker as a SQL error, causing safe_psql() to abort the test, in #22.
- Michael supplied a repair using psql() and a dedicated restricted database in #23; Tom tested it repeatedly and suggested dropping a redundant activity assertion in #24, which Michael accepted in #25.
- The repaired ALLOWCONN test landed as f483b20905 from #23, with the activity assertion removed, and Bertrand rebased the pending feature over it in #28.
- Michael revisited the growing InitPostgres() boolean argument list in #29, introducing a separate flag namespace and adapting the login-bypass feature to it while fixing the analogous failed-worker test race.
- Bertrand reviewed the refactoring in #30, and its first component landed unchanged as 4800a5dfb4, leaving only the login-bypass patch in #35.
- Michael requested consistent naming for the internal role-login flag in #35, Bertrand supplied INIT_PG_OVERRIDE_ROLE_LOGIN in #36, and the feature landed with comment and test cleanup as e7689190b3, announced in #37.
- A later buildfarm failure suggested exhaustion of worker slots, so Michael proposed increasing max_worker_processes to 32 in #39; Tom endorsed that fix in #40, and it landed unchanged as 4817da51f6.
- By #41, the feature and supplied fixes had landed and Michael was awaiting buildfarm confirmation; Tom's separate concern in #40 about worker_spi_launch() returning NULL instead of raising an error remained a follow-up discussion.