top of page
Волнистый абстрактный фон

PostgreSQL: не используемые индексы

Список индексов кластера PostgreSQL к которым не было обращений или их количество меньше заданного в поле "show indices with hit less"

PostgreSQL not using index

select * from pg_catalog.pg_stat_all_indexes
 where idx_scan < $$NUMBER
   and schemaname not in ('pg_toast','pg_catalog')
order by idx_scan  

bottom of page