model-writtenrun 3367 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kirill Reshke reported that TerminateOtherDBBackends incorrectly claimed to use the same permission checks as pg_terminate_backend and asked whether terminating processes without an advertised role remained safe #1.
- Amit Kapila considered adding a permission check #2, while vignesh C explained that database filtering excludes launcher processes and that terminating the target database’s autovacuum workers is appropriate #3.
- Noah Misch identified the same mismatch in the DROP DATABASE documentation and favored preserving existing behavior: ordinary DROP DATABASE already terminates autovacuum workers, and FORCE is useful for clearing unexpected background-worker connections #4.
- Amit supplied a comment-only correction and agreed that executable code needed no change #5; Noah expanded it to explain the exceptions, clarify failure before any termination, and update the user documentation #6.
- Amit approved Noah’s patch and questioned the possible extension to workers that advertise a role #7; Noah explained why the convenience argument also applies to those workers #8, and Amit agreed #9, but the patch left that behavior unchanged.
- Noah committed #6 with a small wording clarification and comment formatting changes as 372700cf30, back-patched the documentation correction through PostgreSQL 13, and closed the thread by announcing the push #10.