postgresql_16:4.13.2.20 pg_statio_all_tables
PostgreSQL 16 > Server Administration > Monitoring Database Activity > The Cumulative Statistics System > pg_statio_all_tables
The pg_statio_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about I/O on that specific table. The pg_statio_user_tables and pg_statio_sys_tables views contain the same information, but filtered to only show user and system tables respectively.
| Column Type Description | | --- | | relid oid OID of a table | | schemaname name Name of the schema that this table is in | | relname name Name of this table | | heap_blks_read bigint Number of disk blocks 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 all indexes on 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 this table's TOAST table (if any) | | toast_blks_hit bigint Number of buffer hits in this table's TOAST table (if any) | | tidx_blks_read bigint Number of disk blocks read from this table's TOAST table indexes (if any) | | tidx_blks_hit bigint Number of buffer hits in this table's TOAST table indexes (if any) |