postgres_index_suggestions
Generate CREATE INDEX CONCURRENTLY SQL for a PostgreSQL table column, including a partial index variant and an ANALYZE reminder, when a missing index is detected or when querying a column without an index.
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 |