【发布时间】:2018-09-26 06:09:42
【问题描述】:
所以我在 PostgreSQL 中有一个复杂的、近 200 行长的存储过程,我想快速分析它,但不幸的是 PgAdmin 内置的解释分析函数不支持嵌套循环,它不能让我深入了解,所以我用以下内容更新了我的postgresql.conf 文件:
auto_explain.log_analyze = true
auto_explain.log_timing = true
auto_explain.log_verbose = true
auto_explain.log_min_duration = '0ms'
auto_explain.log_nested_statements = true
auto_explain.log_buffers = true
所以我可以在我的 pg_log 文件夹中看到详细的日志,但它会生成近 300 行长的结果日志,并且不容易分析。
有没有更好、更优雅的方法来做到这一点?也许在 Windows 上有一个 UI 工具?
【问题讨论】:
标签: postgresql explain