model-writtenrun 2779 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Feb - Apr 2024 · 8 entries
- Kirill Reshke opened the thread with a cloud-specific patch allowing mdb_admin to interrupt autovacuum and MDB application processes for pg_repack maintenance, proposing either an extension hook or a predefined role as an upstream solution #1.
- Nathan Bossart supported a dedicated autovacuum role, and Kirill supplied pg_signal_autovacuum with TAP tests; Nathan argued that granting this role should not implicitly confer pg_signal_backend privileges, leaving the application-name exception outside the submitted core feature #2 #3 #5.
- Anthony Leung reviewed the code structure, test setup, and missing documentation, then took over revision work and supplied a backend-status helper and documentation updates #7 #8 #9.
- Nathan requested specific autovacuum permission errors and a general backend-type helper, while Andrey Borodin and Michael Paquier recommended injection points to replace unreliable fixed sleeps; Anthony separated feature and test patches and implemented that testing approach #10 #11 #14 #16 #17.
- Michael identified invalid backend-type handling, unsuitable OID allocation, and possible disclosure of worker identities through errors, prompting discussion of permission-check ordering and pg_read_all_stats #19 #21 #23.
- The role was renamed pg_signal_autovacuum_worker to distinguish workers from the launcher, and Michael withdrew the information-disclosure objection after Nathan pointed out that vacuum progress views already exposed the relevant PIDs #25 #26 #28 #29.
- Kirill incorporated the review changes, reduced test setup, and added log checks and injection-point cleanup, which exposed a worker shutdown crash; Michael reproduced it, and Kyotaro Horiguchi connected it to condition-variable cleanup after shared-memory detachment #30 #34 #35.
- After a two-month gap, Nathan supplied a feature-only revision that consolidated permission checks, removed the backend-type wrapper, and clarified cancellation semantics, and Andrey approved that feature while continuing to investigate the test crash #32 #38 #39.
Jun - Jul 2024 · 5 entries
- Michael stabilized the test by moving its injection point inside a transaction and relocated it to test_misc, resubmitting it alongside Nathan's feature patch; Andrey endorsed the changes while asking about shutdown of additional waiting workers #41 #43 #45.
- Nathan committed the feature portion of #43 as ccd38024bc, with documentation and error-text edits and a catalog-version bump, while leaving the tests pending because CI had failed #46.
- Kirill updated the remaining test's expected error text, and Michael diagnosed a separate race where the test read logs before the worker emitted its termination message, adding a wait for worker exit before the log check #47 #48 #49.
- Nathan questioned unnecessary table setup and suggested cancellation coverage; Michael removed that setup, accelerated worker startup with a configuration reload, and standardized role names, while both agreed that a separate cancellation test was unnecessary for exercising the shared signaling path #54 #55 #56.
- Michael added missing Meson registration and constrained PID selection to one worker waiting at the injection point, then committed the refined tests from #55 as d2b74882ca after CI passed #58.
Nov 2024 · 4 entries
- In November, Andres Freund reported that the committed feature unnecessarily copied backend activity snapshots and could use stale cached worker types, widening the existing signaling race; he proposed fetching live backend-type information, and Kirill supported avoiding a larger PGPROC structure #59 #60.
- Nathan first proposed scanning live backend status by PID, but Andres observed that ProcNumber already identified the array entry and that reading a single backend-type value did not require the changecount protocol, leading to a direct-index implementation #61 #62 #63.
- Kirill approved the direct lookup, Andres requested comments explaining live-data races and caller responsibilities, and Nathan incorporated those comments before Andres approved the final patch #64 #65 #66 #67.
- Nathan committed #66 with minor wording edits as 61171a632d and confirmed completion in the last message, leaving the role, tests, and lookup follow-up all landed #68.