.. _sys_statio_all_indexes:


sys_statio_all_indexes
====================

当前数据库中的每个索引都在其中占一行，该行显示指定索引上有关 I/O 的统计信息。 :ref:`sys_statio_user_indexes` 和 :ref:`sys_statio_sys_indexes` 视图包含相同的信息，但是经过过滤后，仅分别显示用户索引和系统索引。

.. table:: sys_statio_all_indexes视图
   :class: longtable

   +---------------+--------+--------------------------------+
   | 列            | 类型   | 描述                           |
   +===============+========+================================+
   | relid         | oid    | 这个索引的基表的 OID           |
   +---------------+--------+--------------------------------+
   | indexrelid    | oid    | 这个索引的 OID                 |
   +---------------+--------+--------------------------------+
   | schemaname    | name   | 这个索引所在的模式的名称       |
   +---------------+--------+--------------------------------+
   | relname       | name   | 这个索引的基表的名称           |
   +---------------+--------+--------------------------------+
   | indexrelname  | name   | 这个索引的名称                 |
   +---------------+--------+--------------------------------+
   | idx_blks_read | bigint | 从这个索引中读取的磁盘块的数量 |
   +---------------+--------+--------------------------------+
   | idx_blks_hit  | bigint | 这个索引中的缓冲区命中数量     |
   +---------------+--------+--------------------------------+
