model-writtenrun 7092 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Alexander Korotkov’s commit announcement in #1, describing parallel index-level REINDEX that groups indexes by parent table and assigns each table’s indexes to one job.
- David Rowley reported an uninitialized indices_tables_cell compiler warning breaking -Werror builds in #2; cc0e7ebd30 fixed it by initializing the pointer and correcting list validation and assignment, with the fix originating in the discussion in thread #48975.
- Nearly a year later, Álvaro Herrera demonstrated in #3 that processing multiple indexes per table left jobs mostly idle, then advocated reverting the feature because proper scheduling appeared to require substantial redesign in #4.
- Alexander agreed that a revert should preserve existing scripts through a warning and serial fallback in #5, identified the mistaken assumption that asynchronous execution queues multiple queries in #6, and attached that revert in #7.
- Alexander superseded the revert with #8, preserving parallel operation by accumulating each table’s REINDEX commands into one query and submitting that batch to a job.
- Álvaro reported successful testing and requested explanatory comments in #9; he suggested pipeline mode as a possible future improvement for separate logging and activity reporting, but considered it too invasive for backpatching.
- Alexander added the requested function comments in #10 and announced plans to commit to master and PostgreSQL 17.
- At the thread’s last message, #11, Álvaro endorsed the revision and requested removal of the always-true async argument and its dead synchronous branches; the repair was ready for commitment, while pipeline mode remained future work.
- 682c5be25c subsequently landed the repair from #10 with that dead-code cleanup and was backpatched to PostgreSQL 17; the proposed revert was superseded.