pg_unused_indexes
Identify unused indexes with zero scans to drop them, saving disk space and reducing write overhead.
Instructions
Find indexes that have never been used (zero scans since last stats reset). Great for identifying candidates to DROP to save space and reduce write overhead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema to filter by. Defaults to the connection's defaultSchema (or 'public'). | |
| connectionId | No | Id of the postgres connection to use, from databases.config.yml. Optional when only one postgres connection is configured. |