How do you diagnose index bloat?
A PostgreSQL orders table is updated constantly: some rows change, while others are deleted. Over time, an index keeps growing, and queries start running more slowly. What is index bloat, and how would you determine whether the index is actually bloated? When would VACUUM and ANALYZE help, and when would you need REINDEX? What should you check before performing maintenance on a database that's still handling production traffic?
ExplainIndexesSeniorBackendData Engineer