model-writtenrun 9057 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that REINDEX CONCURRENTLY duplicated pg_depend entries because its swap phase transferred the old index’s dependencies without removing those already created for the new index #1.
- Michael’s patch clears the new index’s dependency records before transferring the old index’s dependencies and adds before-and-after regression checks, including partitioned indexes #1.
- After additional testing, Michael committed the patch as 68ac9cf249 with only comment and whitespace edits and backpatched it to PostgreSQL 12; his announcement noted a separate unresolved partitioned-index bug involving cancellation after the swap phase #2.
- Bruce Momjian subsequently asked whether the duplicate dependencies had harmful effects on PostgreSQL 12 #3.
- Michael identified accumulating pg_depend bloat as the known consequence, demonstrated repeated reindexing increasing dependency counts, and explained that dropping the index removes its duplicates; the reported duplication fix was landed, while the separate cancellation issue remained unresolved in this thread #4 #2.