drop_index
Safely drop a PostgreSQL index by capturing its definition for reversible undo, supporting dry-run preview and concurrent dropping to avoid table locks.
Instructions
[WRITE][risk=high] Drop an index. Reversible: captures pg_get_indexdef first.
Before dropping, the exact index definition is captured so the harness records
an undo that recreates it. Pass dry_run=True to preview.
Args:
name: Index name (optionally schema-qualified).
concurrently: Drop with CONCURRENTLY (no table lock).
dry_run: If True, preview without dropping.
target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No | ||
| concurrently | No |