Index findings
analyze_indexesIdentify unused and duplicate indexes, plus sequential scans that would benefit from an index, to optimize PostgreSQL performance.
Instructions
Indexes nobody uses, genuine duplicates, and tables scanned sequentially often enough that an index would likely pay off. Counters come from pg_stat_*, which reset with the server — read them after real traffic, not after a restart. Primary-key and unique indexes are excluded from the unused list on purpose: they earn their keep by enforcing a constraint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | public | |
| database | No | which configured database to use; omit when only one is configured |