Redshift Observatory

System Table Tracker

System view pg_catalog.pg_statio_all_indexes version 1.0.41465 / 2022-09-10

schema name column data type
pg_catalog pg_statio_all_indexes idx_blks_hit int8
pg_catalog pg_statio_all_indexes idx_blks_read int8
pg_catalog pg_statio_all_indexes indexrelid oid
pg_catalog pg_statio_all_indexes indexrelname name
pg_catalog pg_statio_all_indexes relid oid
pg_catalog pg_statio_all_indexes relname name
pg_catalog pg_statio_all_indexes schemaname name

View Text

SELECT c.oid AS relid,
       i.oid AS indexrelid,
       n.nspname AS schemaname,
       c.relname,
       i.relname AS indexrelname,
       pg_stat_get_blocks_fetched(i.oid) - pg_stat_get_blocks_hit(i.oid) AS idx_blks_read,
       pg_stat_get_blocks_hit(i.oid) AS idx_blks_hit
FROM pg_class AS c
     INNER JOIN pg_index AS x ON c.oid = x.indrelid
     INNER JOIN pg_class AS i ON i.oid = x.indexrelid
     LEFT JOIN pg_namespace AS n ON n.oid = c.relnamespace
WHERE c.relkind = CAST('r' AS "char")


Home 3D Друк Blog Bring-Up Times Consultancy Cross-Region Benchmarks Email Forums IRC Mailing Lists Reddit Redshift Price Tracker Redshift Version Tracker Redshift Workbench System Table Tracker The Known Universe Twitter White Papers