# 统计信息

> Statistics 分类下的 14 个 PostgreSQL 核心配置参数档案。
---

条目 URL 保持扁平；本分类仅用于侧栏与浏览组织。

---

本节页面：

- [compute_query_id](/zh/parameters/compute-query-id/): compute_query_id：启用 PostgreSQL 内核计算查询标识符。实测在档范围为 PG14–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 auto，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [log_executor_stats](/zh/parameters/log-executor-stats/): log_executor_stats：把执行器性能统计写入服务器日志。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [log_parser_stats](/zh/parameters/log-parser-stats/): log_parser_stats：把解析器性能统计写入服务器日志。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [log_planner_stats](/zh/parameters/log-planner-stats/): log_planner_stats：把规划器性能统计写入服务器日志。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [log_statement_stats](/zh/parameters/log-statement-stats/): log_statement_stats：把语句累计性能统计写入服务器日志。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [stats_fetch_consistency](/zh/parameters/stats-fetch-consistency/): stats_fetch_consistency：设置读取累计统计信息时的一致性方式。实测在档范围为 PG15–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 cache，context 为 user。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [stats_temp_directory](/zh/parameters/stats-temp-directory/): stats_temp_directory：设置旧统计收集器写临时统计文件的目录。实测在档范围为 PG9.0–14；最后在档的 PG14 启动默认值为 pg_stat_tmp，context 为 sighup。它在 PG15 被移除。
- [track_activities](/zh/parameters/track-activities/): track_activities：收集会话当前执行命令的信息。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 on，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [track_activity_query_size](/zh/parameters/track-activity-query-size/): track_activity_query_size：设置 pg_stat_activity.query 预留的字节数。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 1 KiB，context 为 postmaster。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [track_cost_delay_timing](/zh/parameters/track-cost-delay-timing/): track_cost_delay_timing：收集基于成本的 vacuum 延迟计时。实测在档范围为 PG18–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [track_counts](/zh/parameters/track-counts/): track_counts：收集数据库活动累计统计。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 on，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [track_functions](/zh/parameters/track-functions/): track_functions：收集函数调用次数与耗时统计。实测在档范围为 PG9.0–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 none，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [track_io_timing](/zh/parameters/track-io-timing/): track_io_timing：收集数据库 I/O 等待计时。实测在档范围为 PG9.2–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
- [track_wal_io_timing](/zh/parameters/track-wal-io-timing/): track_wal_io_timing：收集 WAL I/O 等待计时。实测在档范围为 PG14–19 Beta 3；最后在档的 PG19 Beta 3 启动默认值为 off，context 为 superuser。这是测试版快照事实，PostgreSQL 19 正式发布前仍可能变化。
