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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pg_duplicate_indexes"
}
}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. |