model-writtenrun 9490 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Langote reported that attaching an existing child index while creating its parent index left relispartition false, causing a subsequent foreign key referencing the partitioned table to fail, and supplied a direct DefineIndex() fix without tests #1.
- Alvaro Herrera proposed making IndexSetParentIndex() maintain the flag #3; Amit agreed this would have prevented the omission #5 and submitted a replacement patch centralizing attachment and detachment updates there #6.
- Amit requested that the fix also be backpatched to PostgreSQL 11 #7.
- Alvaro committed the revised patch with a simplified flag-setting call, a rewritten catalog-update helper and assertion, and a foreign-key regression test as 05b38c7e63, crediting both Amit and himself as authors.
- Alvaro confirmed completion and explained that PostgreSQL 11 received manual verification because the new foreign-key test could not run there; he also suggested that incorrect index flags might affect validity propagation through partition levels #8.
- The thread ended with the fix landed and Amit reporting that his multilevel index example showed no validity-propagation failure, questioning whether that example exercised the repaired code path; no further patch followed #9.