Fix pg_log_backend_memory_contexts() 's delay

bt21tanigaway <bt21tanigaway@oss.nttdata.com>

From: bt21tanigaway <bt21tanigaway@oss.nttdata.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2021-10-05T09:20:11Z
Lists: pgsql-hackers

Attachments

Hi,

Log output takes time between several seconds to a few tens when using 
‘SELECT pg_log_backend_memory_contexts(1234)’ with PID of ‘autovacuum 
launcher’.
I made a patch for this problem.

regards,
Koyu Tanigawa

Commits

  1. Make autovacuum launcher more responsive to pg_log_backend_memory_contexts().