model-writtenrun 5612 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Frédéric Yhuel reported that REINDEX blocks even reads that do not need the rebuilt index because planning locks every index, demonstrated the behavior on PostgreSQL 10 and master, and asked whether code or documentation should change #1.
- Peter Geoghegan agreed that the existing documentation was technically accurate but misleading in practice #2, and Frédéric proposed documenting planner locking and the exception for cached prepared queries that avoid the rebuilt index #3.
- Justin Pryzby supported the clarification and supplied grammar and wording corrections without claiming to have verified the behavior #4; Frédéric incorporated those corrections into the revised patch #5.
- Guillaume Lelarge endorsed the revision #6, and Michael Paquier accepted its wording and placement while explaining that REINDEX CONCURRENTLY has tradeoffs and cannot rebuild catalog indexes #7.
- Michael committed the revised patch as 8ac700acff, removing one redundant product-name reference and rewrapping the paragraph, then announced completion #9.
- The thread ended with the documentation change landed and Frédéric pointing to get_relation_info() in src/backend/optimizer/util/plancat.c as confirmation that planning opens and locks every index of the table #10.