reindex
Rebuild PostgreSQL indexes, tables, or schemas to reduce bloat and improve performance. Use dry-run to preview before applying.
Instructions
[WRITE][risk=medium] REINDEX an index/table/schema (rebuild in place, no undo).
Rebuilds physical index storage; there is no inverse. Pass dry_run=True to
preview.
Args:
target_name: The index/table/schema name to reindex.
kind: INDEX, TABLE, or SCHEMA (default INDEX).
concurrently: Rebuild with CONCURRENTLY.
dry_run: If True, preview without rebuilding.
target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | INDEX | |
| target | No | ||
| dry_run | No | ||
| target_name | Yes | ||
| concurrently | No |