Make autovacuum launcher more responsive to pg_log_backend_memory_contexts().
authorFujii Masao <fujii@postgresql.org>
Tue, 12 Oct 2021 00:50:17 +0000 (09:50 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 12 Oct 2021 00:50:17 +0000 (09:50 +0900)
commite3e29cec10d15bbcedc6b41887d8f4e138d719bd
treef716b40d5296a37182e3f94cfcdd06df026b445c
parent292698f158ddb3f9a88f536e6eecb9e55d9619c9
Make autovacuum launcher more responsive to pg_log_backend_memory_contexts().

Previously when pg_log_backend_memory_contexts() sent the request to
the autovacuum launcher, it could take more than several seconds to
log its memory contexts. Because the function (HandleAutoVacLauncherInterrupts)
to process any new interrupts that autovacuum launcher received
didn't handle the request for logging of memory contexts. This commit changes
the function so that it handles the request, to make autovacuum launcher
more responsitve to pg_log_backend_memory_contexts().

Back-patch to v14 where pg_log_backend_memory_contexts() was added.

Author: Koyu Tanigawa
Reviewed-by: Bharath Rupireddy, Atsushi Torikoshi
Discussion: https://postgr.es/m/0aae3e074face409b35153451be5cc11@oss.nttdata.com
src/backend/postmaster/autovacuum.c