postgres_index_suggestions
Generates CREATE INDEX CONCURRENTLY SQL for a PostgreSQL column, including a partial index variant and ANALYZE reminder, to address missing indexes flagged by the analyzer.
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 |