Updated on 2024-05-07 GMT+08:00

PG_STATIO_ALL_INDEXES

PG_STATIO_ALL_INDEXES is used to query information about one row for each index in the current database, showing statistics about I/O on that specific index.

Table 1 PG_STATIO_ALL_INDEXES columns

Name

Type

Description

relid

oid

OID of the table for an index.

indexrelid

oid

OID of the index.

schemaname

name

Name of the schema that the index is in.

relname

name

Name of the table that the index is created for.

indexrelname

name

Index name.

idx_blks_read

bigint

Number of disk blocks read from the index.

idx_blks_hit

bigint

Number of cache hits in the index.