PostgreSQL CREATE INDEX CONCURRENTLY hangs indefinitely behind idle-in-transaction sessions on unrelated tables
A production zero-downtime migration running CREATE INDEX CONCURRENTLY idxorderscreated ON orders (createdat); stalls for hours without blocking writes, even though zero queries are touching the orders table. Inspecting pgstatprogresscreateindex shows phase waiting for old…
CREATE INDEX CONCURRENTLY waiting on VirtualXID+2 more