model-writtenrun 9049 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby reported that interrupting REINDEX CONCURRENTLY on a partition index left an invalid _ccold index that could not be dropped, and supplied a reproducer in #1.
- Michael Paquier reproduced the failure and established that cancellation occurred after the index swap but before cleanup, initially suspecting missing partition dependency cleanup in #2.
- Michael identified the stale pg_class.relispartition flag on the old index and posted a fix that swaps both flags, preferring that symmetry over explicitly clearing the old flag; he also noted that a catalog update could repair affected clusters in #3.
- The patch from #3 landed unchanged as d80be6f2f6, with a backpatch to PostgreSQL 12.
- Michael closed the thread by announcing completion and relaying Justin's offline confirmation that the fix resolved his problems in #4.