| 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 |
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 Cross-Region Benchmarks Email Forums Mailing Lists Redshift Price Tracker Redshift Version Tracker Replacement System Tables Reserved Instances Marketplace Slack System Table Tracker The Known Universe White Papers