postgres_index_suggestions
Generates CREATE INDEX CONCURRENTLY SQL for PostgreSQL columns, providing partial index variants and ANALYZE reminders. Solves missing index findings when queries filter on unindexed columns.
Instructions
Generates the exact CREATE INDEX CONCURRENTLY SQL for a PostgreSQL table column, including a partial index variant and a post-creation ANALYZE reminder. Call this when the analyzer flags a missing index finding or when writing a query that filters on a column without an existing index. Does not verify whether the index already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | PostgreSQL table name | |
| column | Yes | Column name to index |