Introduce pg_signal_autovacuum_worker.
Nathan Bossart <nathan@postgresql.org>
Introduce pg_signal_autovacuum_worker. Since commit 3a9b18b309, roles with privileges of pg_signal_backend cannot signal autovacuum workers. Many users treated the ability to signal autovacuum workers as a feature instead of a bug, so we are reintroducing it via a new predefined role. Having privileges of this new role, named pg_signal_autovacuum_worker, only permits signaling autovacuum workers. It does not permit signaling other types of superuser backends. Bumps catversion. Author: Kirill Reshke Reviewed-by: Anthony Leung, Michael Paquier, Andrey Borodin Discussion: https://postgr.es/m/CALdSSPhC4GGmbnugHfB9G0%3DfAxjCSug_-rmL9oUh0LTxsyBfsg%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +8 −0 |
| doc/src/sgml/user-manag.sgml | modified | +5 −0 |
| src/backend/storage/ipc/signalfuncs.c | modified | +37 −9 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_authid.dat | modified | +5 −0 |
Documentation touched
Discussion
- Allow non-superuser to cancel superuser tasks. 68 messages · 2024-02-26 → 2024-11-27