pg_missing_indexes
Identifies PostgreSQL tables with high sequential scan counts compared to index scans, indicating potential missing indexes for performance improvement.
Instructions
Find tables that have high sequential scan counts relative to index scans, suggesting they might benefit from new 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. | |
| min_seq_scans | No | Minimum number of sequential scans to include a table (default: 100). |