model-writtenrun 6891 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan opened the thread with a Claude-written isolation test showing that a date primary key referenced by a timestamp foreign key incorrectly fails after a concurrent update, while the equivalent same-type case succeeds #1.
- Amit Langote diagnosed the recheck as comparing the locked primary-key value against itself through an operator expecting an FK-typed right operand, and proposed removing it because the subsequent loop already compares against buffered FK values #3.
- Mihail Nikalayeu introduced a separate REINDEX CONCURRENTLY race, supplying reproducers for opening a dropped index and accepting an orphan through a stale dead index, plus a fix that reloads the constraint after locking the referenced table #4.
- Mihail consolidated that fix and replaced the TAP reproducers with isolation coverage for dropped indexes, dead indexes missing new rows, and the per-row call site; Amit then requested a separate thread for these issues #6 #7.
- Amit supplied the cross-type fix, retaining Peter's test and adding a genuinely missing-key case; he explained that rebuilding the scan key was unsuitable because the index access method does not identify the matching buffered array element #8.
- Peter reported an independent nested-trigger resource-management failure with a regression test that produced leaked relation and TupleDesc warnings followed by a reference-count assertion #10.
- Amit traced that failure to global callback-registration state suppressing nested callbacks, connected it to work in a separate subtransaction series, and identified nested firing of the same constraint as another case needing verification #11.
- The thread's final message announced the cross-type fix as committed and its open item closed; cc449a504b matches #8 apart from rebasing #12.
- Later that day, d02a9084d9 landed the REINDEX fix from #6, with explanatory edits and removal of the subtransaction test permutation; the supplied thread does not explain that removal.
- Two days after the final thread message, 6fc2a48641 resolved the nested-firing issue through per-depth cache entries, callback registration, and teardown, retaining Peter's test from #10 and adding same-constraint nesting and deferred-firing coverage; its latest matching submission is #1151230 in thread #139885, so attribution moves to that thread while this thread remains the source of the portal-lifetime reproducer.