Add tap test for pg_signal_autovacuum role
authorMichael Paquier <michael@paquier.xyz>
Tue, 16 Jul 2024 01:05:46 +0000 (10:05 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 16 Jul 2024 01:05:46 +0000 (10:05 +0900)
commitd2b74882cab84b9f4fdce0f2f32e892ba9164f5c
tree3e9e323e751cfde3c112a00052d90f7d6aeeacfe
parent47ecbfdfcc71e41d7dcc35f0be04f8adbe88397f
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
src/backend/postmaster/autovacuum.c
src/test/modules/test_misc/meson.build
src/test/modules/test_misc/t/006_signal_autovacuum.pl [new file with mode: 0644]