pg_duplicate_indexes
Identifies redundant indexes where one index's leading columns are a subset of another, enabling removal of unnecessary indexes.
Instructions
Find redundant indexes where one index's leading columns are a subset of another, making the smaller one unnecessary.
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. |