-
Notifications
You must be signed in to change notification settings - Fork 1
Description
--- As of 2026-02-09T14:05:28.000Z ---
The log_min_messages per backend type patch has been committed by Alvaro Herrera after incorporating review feedback from Euler Taveira. The feature allows configuring different logging levels for different PostgreSQL process types using a comma-separated syntax like "default:warning,autovacuum:debug1,backend:info". Alvaro made several improvements including changing terminology from "generic" to "default", simplifying memory management, using goto for error handling, and moving GUC hooks to elog.c. A critical bug was fixed where a break statement prevented setting levels for process types sharing the same category. Chao Li raised usability concerns about the inability to easily modify single process type levels via ALTER SYSTEM, but Alvaro noted this limitation was discussed previously without satisfactory solutions. Minor cleanup patches were contributed to remove unused declarations, fix comment typos, and alphabetize documentation entries.
log_min_messages按后端类型功能的补丁已被Alvaro Herrera提交,之前整合了Euler Taveira的审查反馈。该功能允许使用逗号分隔的语法为不同的PostgreSQL进程类型配置不同的日志级别,如"default:warning,autovacuum:debug1,backend:info"。Alvaro进行了多项改进,包括将术语从"generic"改为"default",简化内存管理,使用goto进行错误处理,以及将GUC钩子移动到elog.c。修复了一个关键bug,其中break语句阻止为共享相同类别的进程类型设置级别。Chao Li提出了关于无法通过ALTER SYSTEM轻松修改单个进程类型级别的可用性担忧,但Alvaro指出这个限制之前已讨论过但没有令人满意的解决方案。贡献了小补丁来删除未使用的声明、修复注释错误和按字母顺序排列文档条目。
participants - 参与者: