postgresql.conf配置中加入如下行
shared_preload_libraries = 'auto_explain'
custom_variable_classes = 'auto_explain'
auto_explain.log_min_duration = '0s'
auto_explain.log_analyz=on
auto_explain.log_nested_statements=on
auto_explain.log_verbose=on
本文介绍如何通过修改postgresql.conf文件启用auto_explain模块,详细展示了用于记录查询执行情况的配置选项,包括设置最小记录时长、开启分析模式等。
postgresql.conf配置中加入如下行
shared_preload_libraries = 'auto_explain'
custom_variable_classes = 'auto_explain'
auto_explain.log_min_duration = '0s'
auto_explain.log_analyz=on
auto_explain.log_nested_statements=on
auto_explain.log_verbose=on
1683
4188

被折叠的 条评论
为什么被折叠?