pg_log_backend_memory_contexts() and log level

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_log_backend_memory_contexts() and log level
Date: 2022-01-26 04:17:43
Message-ID: 82c12f36-86f7-5e72-79af-7f5c37f6cad7@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
log_level_pg_log_backend_memory_contexts_v1.patch text/plain 694 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2022-01-26 04:43:37 Re: Skipping logical replication transactions on subscriber side
Previous Message Amit Kapila 2022-01-26 04:15:51 Re: Skipping logical replication transactions on subscriber side