Index Maintenance Best Practices
Indexes are write-bearing contracts. Maintain them with evidence from plans, usage stats, and bloat metrics on PostgreSQL 18.4.
Search across all documentation pages
Indexes are write-bearing contracts. Maintain them with evidence from plans, usage stats, and bloat metrics on PostgreSQL 18.4.
idx_scan quarterly on write-heavy tables.CREATE INDEX CONCURRENTLY in production migrations. Avoid long write blocks.ANALYZE after index creation on large tables. Planner adoption check.pg_stat_user_indexes.idx_scan before drops. Evidence-based cleanup.Stack versions: This page was written for PostgreSQL 18.4 (stable 18, maintenance 17), pgvector 0.8+, PgBouncer 1.x, Patroni 3.x, and PostGIS 3.5+.
Reviewed by Chris St. John·Last updated Jul 18, 2026