pgsql: Make autovacuum launcher more responsive to pg_log_backend_memor

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make autovacuum launcher more responsive to pg_log_backend_memor
Date: 2021-10-12 00:51:38
Message-ID: E1ma614-00069C-Hb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/62e821ad28e1f08ea9734d7338bdebd783228a1c

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2021-10-12 00:51:49 pgsql: Make autovacuum launcher more responsive to pg_log_backend_memor
Previous Message Peter Geoghegan 2021-10-12 00:23:23 pgsql: amcheck: Skip unlogged relations in Hot Standby.