model-writtenrun 211 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported a serinus parallel dump/restore failure involving a missing usable primary key despite apparently correct restore dependencies #1.
- Tom Lane connected the failure to another dump/restore concern, while the ensuing discussion questioned whether existing pg_upgrade tests could expose the same problem; no fix was established at that stage #2 #3 #4.
- After roughly eighteen months, Kirill Reshke reproduced the failure and supplied an injection-point isolation test showing that concurrent attachments in a multilevel partitioned-index tree could each miss the other's uncommitted validity change, leaving the parent index permanently invalid #5.
- Kirill then forwarded Andrey Borodin's inline fix to retain the parent index and table locks until transaction commit in validatePartitionedIndex() #6.
- Alvaro Herrera supported the locking fix, increased the reproducer's failure frequency with an artificial delay, and reported that retaining the locks eliminated those failures without causing other test failures #7.
- Kirill recommended excluding the narrowly targeted generated isolation test because he doubted its useful coverage #8.
- Alvaro committed the inline locking fix with revised explanatory wording as 31fa779823, backpatched it through PostgreSQL 14, and confirmed that the fix had reached all branches while agreeing to omit the test #9.