Updated on 2024-04-30 GMT+08:00

PG_STATIO_ALL_TABLES

PG_STATIO_ALL_TABLES displays I/O statistics about all tables (including TOAST tables) in the current database.

Table 1 PG_STATIO_ALL_TABLES columns

Name

Type

Description

relid

oid

Table OID

schemaname

name

Schema name of the table

relname

name

Name of a table

heap_blks_read

bigint

Number of disks read from this table

heap_blks_hit

bigint

Number of buffer hits in this table

idx_blks_read

bigint

Number of disk blocks read from the index in this table

idx_blks_hit

bigint

Number of buffer hits in all indexes on this table

toast_blks_read

bigint

Number of disk blocks read from the TOAST table (if any) in this table

toast_blks_hit

bigint

Number of buffer hits in the TOAST table (if any) in this table

tidx_blks_read

bigint

Number of disk blocks read from the TOAST table index (if any) in this table

tidx_blks_hit

bigint

Number of buffer hits in the TOAST table index (if any) in this table