pg_statio_all_tables
pg_statio_all_tables视图将为当前数据库中的每个表(包括 TOAST 表)包含一行,该行显示指定表上有关 I/O 的统计信息。pg_statio_user_tables和pg_statio_sys_tables视图包含相同的信息,但经过过滤,分别只显示用户表和系统表。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- kind
- statistics
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- relid, schemaname, relname, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit
- runtime verified
- false
- source
- english-manual
版本定义 PG 18
pg_statio_all_tables视图将为当前数据库中的每个表(包括 TOAST 表)包含一行,该行显示指定表上有关 I/O 的统计信息。pg_statio_user_tables和pg_statio_sys_tables视图包含相同的信息,但经过过滤,分别只显示用户表和系统表。
目录列
| 列 | 类型 | 可空性 | 描述 |
|---|---|---|---|
| relid | oid | 可空 | 表的OID |
| schemaname | name | 可空 | 该表所在的模式的名称 |
| relname | name | 可空 | 这个表的名称 |
| heap_blks_read | bigint | 可空 | 从该表中读取的磁盘块的数量 |
| heap_blks_hit | bigint | 可空 | 该表中的缓冲区命中数 |
| idx_blks_read | bigint | 可空 | 从这个表上所有索引读取的磁盘块数 |
| idx_blks_hit | bigint | 可空 | 这个表上所有索引中的缓冲区命中数 |
| toast_blks_read | bigint | 可空 | 从这个表的TOAST表中读取的磁盘块的数量(如果有的话) |
| toast_blks_hit | bigint | 可空 | 这个表的TOAST表中的缓冲区命中数(如果有的话) |
| tidx_blks_read | bigint | 可空 | 从这个表的TOAST表索引中读取的磁盘块的数量(如果有的话) |
| tidx_blks_hit | bigint | 可空 | 这个表的TOAST表索引中的缓冲区命中数(如果有的话) |
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:f2d1199ce3a3db585d48c47ca1c4b6f901810249f2870bb731a755326a6b3823
正文语言: zh-Hans · 2026-09-27@419045e