pg_log_backend_memory_contexts() and log level
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: pgsql-hackers@postgresql.org
Date: 2022-01-26T04:17:43Z
Lists: pgsql-hackers
Attachments
- log_level_pg_log_backend_memory_contexts_v1.patch (text/plain) patch v1
Hi, pg_log_backend_memory_contexts() should be designed not to send the messages about the memory contexts to the client regardless of client_min_messages. But I found that the message "logging memory contexts of PID %d" can be sent to the client because it's ereport()'d with LOG level instead of LOG_SERVER_ONLY. Is this a bug, and shouldn't we use LOG_SERVER_ONLY level to log that message? Patch attached. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
Commits
-
Prevent memory context logging from sending log message to connected client.
- 6e7ee55e7277 14.2 landed
- 108505d763d1 15.0 landed