{"Entry":{"collection":"guc","key":"client_min_messages","name":"client_min_messages","aliases":[],"metadata":{"baseline":true,"boot_human":"Not specified","boot_val":null,"category":"Client Connection Defaults / Statement Behavior","category_zh":"","changed_in":["9.4"],"changes":[{"documentation_changed":true,"fields":{},"from":"8.0","status":"changed","to":"8.1"},{"documentation_changed":true,"fields":{"category":{"from":"Reporting and Logging / When to Log","to":"Client Connection Defaults / Statement Behavior"}},"from":"9.3","status":"changed","to":"9.4"}],"content_hash":"c3301ba364b379a348de99ccddb0557e3f55adfcd5de948c39093241df24c0e2","context":"","default_changed_in":[],"default_history":[{"from":"9.0","to":"19","value":"notice"}],"editorial":{"advice":{"olap":"Analytical and interactive users may prefer NOTICE output, but batch pipelines should explicitly choose the messages they can parse without treating notices as result rows.","oltp":"Set client_min_messages from the application's diagnostic contract. Keep actionable warnings visible and change the threshold per role or session rather than muting an entire cluster.","small":"Leave the default NOTICE unless client chatter is measured as a problem; suppressing messages does not materially increase server capacity."},"mechanism":["client_min_messages sets the message levels that are sent to the client. Each level includes all the levels that follow it. The later the level, the fewer messages are sent. The threshold governs messages returned to the client, not messages written to the server log, and INFO is delivered regardless of the chosen threshold.","client_min_messages is a USER-context setting. An authorized role can change it for a session, while ALTER ROLE or ALTER DATABASE can establish a default for future sessions.","It affects the client protocol's diagnostic stream, while log_min_messages and log_min_error_statement independently control server-side records; INFO remains a special always-sent level."],"pitfalls":["Changing client_min_messages in one session and assuming role defaults, database defaults, or other pooled sessions changed with it.","Copying severity expectations from log_min_messages even though the client ordering treats LOG differently and always sends INFO.","Suppressing warnings globally and hiding deprecations or operational guidance that applications should surface.","Changing client_min_messages globally without a rollback plan and a client or operational compatibility test."],"references":[{"title":"PostgreSQL 19 Beta 4: client_min_messages","url":"https://www.postgresql.org/docs/19/runtime-config-client.html#GUC-CLIENT-MIN-MESSAGES"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["log_min_messages","log_min_error_statement","log_min_duration_statement","log_min_duration_sample","log_statement_sample_rate","log_transaction_sample_rate"],"summary":"client_min_messages is the PostgreSQL setting that defines the message levels that are sent to the client."},"enumvals":[],"first_version":"7.4","group":"Client Connection Defaults","group_slug":"client","imported_at":"2026-09-27T17:57:30.948744+08:00","intro_commit":{},"key":"client_min_messages","last_version":"20","max_val":"","min_val":"","name":"client_min_messages","position":62,"present_in":["7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"short_desc":"Controls which message levels are sent to the client.","short_desc_zh":"","source_rev":"english-manuals:875cf855fd2b13b181c32cc947b307f6a57afa3a2eca6f9409ceed5173d5adaf","unit":"","vartype":"enum"}},"Definition":{"Collection":"guc","Key":"client_min_messages","SourceDatabase":"center","Version":"18","SourceTable":"guc","SourceKey":"client_min_messages","SourceRevision":"english-manuals:875cf855fd2b13b181c32cc947b307f6a57afa3a2eca6f9409ceed5173d5adaf","Facts":{"boot_val":"notice","category":"Client Connection Defaults / Statement Behavior","context":"user","description":"Controls which message levels are sent to the client. Valid values are DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, LOG, NOTICE, WARNING, and ERROR. Each level includes all the levels that follow it. The later the level, the fewer messages are sent. The default is NOTICE. Note that LOG has a different rank here than in log_min_messages. INFO level messages are always sent to the client.","doc":{"anchor":"GUC-CLIENT-MIN-MESSAGES","file":"runtime-config-client.html","lang":"en","sha256":"6be6cc70f29eca4695dc43b2b2b94c75b7e0eaaa2c00273d7a98488917a7edb7","slug":"18"},"documented":true,"enumvals":["debug5","debug4","debug3","debug2","debug1","log","notice","warning","error"],"extra_desc":"Each level includes all the levels that follow it. The later the level, the fewer messages are sent.","lang":"en","max_val":null,"metadata_version":"18","min_val":null,"name":"client_min_messages","short_desc":"Sets the message levels that are sent to the client.","source":"pg-settings-source-snapshot","unit":null,"vartype":"enum"},"ManualEvidence":{"doc":{"anchor":"GUC-CLIENT-MIN-MESSAGES","file":"runtime-config-client.html","lang":"en","sha256":"6be6cc70f29eca4695dc43b2b2b94c75b7e0eaaa2c00273d7a98488917a7edb7","slug":"18"}},"MeasuredEvidence":{"metadata_version":"18"}},"Text":{"Collection":"guc","Key":"client_min_messages","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"client_min_messages","Summary":"","BodyHTML":"\u003cp\u003e控制被发送给客户端的\u003ca href=\"/docs/18/runtime-config-logging.html#RUNTIME-CONFIG-SEVERITY-LEVELS\" rel=\"nofollow\"\u003e消息级别\u003c/a\u003e。有效值是\u003ccode\u003eDEBUG5\u003c/code\u003e、\u003ccode\u003eDEBUG4\u003c/code\u003e、\u003ccode\u003eDEBUG3\u003c/code\u003e、\u003ccode\u003eDEBUG2\u003c/code\u003e、\u003ccode\u003eDEBUG1\u003c/code\u003e、\u003ccode\u003eLOG\u003c/code\u003e、\u003ccode\u003eNOTICE\u003c/code\u003e、\u003ccode\u003eWARNING\u003c/code\u003e、\u003ccode\u003eERROR\u003c/code\u003e。每个级别都包括其后的所有级别。级别越靠后，被发送的消息越少。默认值是\u003ccode\u003eNOTICE\u003c/code\u003e。注意\u003ccode\u003eLOG\u003c/code\u003e在这里的排序与\u003ca href=\"/docs/18/runtime-config-logging.html#GUC-LOG-MIN-MESSAGES\" rel=\"nofollow\"\u003elog_min_messages\u003c/a\u003e中的不同。\u003c/p\u003e\u003cp\u003e\u003ccode\u003eINFO\u003c/code\u003e 级别的消息总是被发送到客户端。\u003c/p\u003e","SourceRevision":"2026-09-11@29c86d9","ContentHash":"0e2df73738f517d0454dd58ea4aa9e6644505c54e2864ed8585396e23af44aa7","Payload":{"carried_from":"","carry_reason":"","doc_html":"\u003cp\u003e控制被发送给客户端的\u003ca href=\"/docs/18/runtime-config-logging.html#RUNTIME-CONFIG-SEVERITY-LEVELS\" title=\"表 19.2. 消息严重级别\"\u003e消息级别\u003c/a\u003e。有效值是\u003ccode class=\"literal\"\u003eDEBUG5\u003c/code\u003e、\u003ccode class=\"literal\"\u003eDEBUG4\u003c/code\u003e、\u003ccode class=\"literal\"\u003eDEBUG3\u003c/code\u003e、\u003ccode class=\"literal\"\u003eDEBUG2\u003c/code\u003e、\u003ccode class=\"literal\"\u003eDEBUG1\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOG\u003c/code\u003e、\u003ccode class=\"literal\"\u003eNOTICE\u003c/code\u003e、\u003ccode class=\"literal\"\u003eWARNING\u003c/code\u003e、\u003ccode class=\"literal\"\u003eERROR\u003c/code\u003e。每个级别都包括其后的所有级别。级别越靠后，被发送的消息越少。默认值是\u003ccode class=\"literal\"\u003eNOTICE\u003c/code\u003e。注意\u003ccode class=\"literal\"\u003eLOG\u003c/code\u003e在这里的排序与\u003ca href=\"/docs/18/runtime-config-logging.html#GUC-LOG-MIN-MESSAGES\"\u003elog_min_messages\u003c/a\u003e中的不同。\u003c/p\u003e\u003cp\u003e\u003ccode class=\"literal\"\u003eINFO\u003c/code\u003e 级别的消息总是被发送到客户端。\u003c/p\u003e","doc_same_as":""}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
