model-writtenrun 9846 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera proposed keeping indexes created with ONLY valid when a partitioned table has no partitions, after encountering a restore failure while developing foreign keys referencing partitioned tables #1.
- The patch also moved partition creation before index creation in insert_conflict so the test would retain an invalid parent index under the new behavior #1.
- Amit Langote reviewed the patch, pointed out a similar earlier fix, and questioned Alvaro's claim that the existing regression test was broken #2.
- Alvaro accepted Amit's correction: creating a partition did not make the existing parent index valid, but the test still needed reordering because the proposed fix would make an index created on a partitionless table valid immediately #3.
- The patch landed unchanged as 71a05b2232, whose commit message clarified that the dump concern depended on the forthcoming foreign-key support; Alvaro confirmed the push and thanked Amit, leaving no outstanding work in this thread #4.