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 this index.

indexrelid

oid

OID of this index.

schemaname

name

Name of the schema that this index is in.

relname

name

Name of the table for this index.

indexrelname

name

Index name.

idx_blks_read

bigint

Number of disk blocks read from this index.

idx_blks_hit

bigint

Number of cache hits in this index.