Add tap test for pg_signal_autovacuum role
Michael Paquier <michael@paquier.xyz>
Add tap test for pg_signal_autovacuum role This commit provides testig coverage for ccd38024bc3c, checking that a role granted pg_signal_autovacuum_worker is able to stop a vacuum worker. An injection point with a wait is placed at the beginning of autovacuum worker startup to make sure that a worker is still alive when sending and processing the signal sent. Author: Anthony Leung, Michael Paquier, Kirill Reshke Reviewed-by: Andrey Borodin, Nathan Bossart Discussion: https://postgr.es/m/CALdSSPiQPuuQpOkF7x0g2QkA5eE-3xXt7hiJFvShV1bHKDvf8w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/autovacuum.c | modified | +7 −0 |
| src/test/modules/test_misc/meson.build | modified | +2 −1 |
| src/test/modules/test_misc/t/006_signal_autovacuum.pl | added | +95 −0 |
Discussion
- Allow non-superuser to cancel superuser tasks. 68 messages · 2024-02-26 → 2024-11-27