百科 / 统计与指标 / pg_stat_recovery_prefetch
pg_stat_recovery_prefetch.io_depth
已启动但尚未确认完成的预取数量
当前查看 PostgreSQL 18.6。
说明
已启动但尚未确认完成的预取数量
- 视图
- pg_stat_recovery_prefetch
- 字段
- io_depth
- SQL 类型
- int
- 字段定义记载的单位
- 未指定
- 重置条件
- 这些统计上次重置的时间
用法
SELECT io_depth FROM pg_catalog.pg_stat_recovery_prefetch;视图语义
pg_stat_recovery_prefetch 视图仅包含一行。wal_distance、block_distance 和 io_depth 列显示当前值,其他列为累计计数器,可通过 pg_stat_reset_shared 函数重置。
采集与重置语义
pg_stat_recovery_prefetch 视图将只包含一行。 wal_distance 、 block_distance 和 io_depth 列显示当前值,其他列显示可以使用 pg_stat_reset_shared 函数重置的累积计数器。
查看此字段
示例查询;不表示已执行,也不提供实测值。
SELECT io_depth FROM pg_catalog.pg_stat_recovery_prefetch;相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
版本比较
PostgreSQL 14 → 15: 新增收录。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 14
+++ PostgreSQL 15
@@ -1 +1,6 @@
-该版未收录
+{
+ "field": "io_depth",
+ "sql_type": "int",
+ "units_mentioned": [],
+ "view": "pg_stat_recovery_prefetch"
+}
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
pg_stat_recovery_prefetch.block_distancepg_stat_recovery_prefetch.hitpg_stat_recovery_prefetch.prefetchpg_stat_recovery_prefetch.skip_fpwpg_stat_recovery_prefetch.skip_initpg_stat_recovery_prefetch.skip_newpg_stat_recovery_prefetch.skip_reppg_stat_recovery_prefetch.stats_resetpg_stat_recovery_prefetch.wal_distance
导出 JSON · 返回统计与指标 · 收录范围为 PostgreSQL 15 至 20;最早采样版本不一定是实际引入版本。