PostgreSQL Index Usage Analysis

前端 未结 9 1649
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 17:43

Is there a tool or method to analyze Postgres, and determine what missing indexes should be created, and which unused indexes should be removed? I have a little experience doing

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 17:55

    Check the statistics. pg_stat_user_tables and pg_stat_user_indexes are the ones to start with.

    See "The Statistics Collector".

提交回复
热议问题