log_min_error_statement
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- boot val
- error
- category
- Reporting and Logging / When to Log
- context
- superuser
- documented
- true
- enumvals
- debug5, debug4, debug3, debug2, debug1, info, notice, warning, error, log, fatal, panic
- extra desc
- Each level includes all the levels that follow it. The later the level, the fewer messages are sent.
- lang
- en
- max val
- 未知
- metadata version
- 18
- min val
- 未知
- name
- log_min_error_statement
- short desc
- Causes all statements generating error at or above this level to be logged.
- source
- pg-settings-source-snapshot
- unit
- 未知
- vartype
- enum
版本定义 PG 18
控制在服务器日志中记录哪些导致错误条件的SQL语句。对于达到指定严重级别或更高级别的消息,其日志条目中会包含当前 SQL 语句。有效值为DEBUG5、DEBUG4、DEBUG3、DEBUG2、DEBUG1、INFO、NOTICE、WARNING、ERROR、LOG、FATAL和PANIC。默认值为ERROR,这意味着导致错误、日志消息、致命错误或紧急情况的语句将被记录。要有效地关闭记录失败的语句,将此参数设置为PANIC。只有超级用户和具有适当SET权限的用户才能更改此设置。
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:38ea761feb12c151ae63195d93061e8aceb1ab4b4f329c0ec7021638e2fcc069
正文语言: zh-Hans · 2026-09-11@29c86d9