model-writtenrun 8719 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Korotkov proposed replacing lossy Bloom-filter checks for missing parent downlinks with rightlink traversal between child pages, reporting that the patch detected customer corruption missed by existing amcheck verification #1.
- Peter Geoghegan questioned Bloom-filter sizing and duplicate child-page visits, and clarified that existing parent checks did not compare child high keys with parent separators #2; Alexander then demonstrated a missing-downlink arrangement that rootdescend could miss, which Peter acknowledged #5 #6.
- Alexander proposed combining existing child checks, missing-downlink detection, and high-key verification in one pass #7, while Peter advocated a separate small sizing fix suitable for backpatching #8 #9; Alexander agreed that eliminating lossiness was a feature rather than a bug fix #10.
- Peter posted an independent patch sizing the downlink Bloom filter from the actual block count and imposing a minimum size on the heapallindexed filter #14; it landed as 894af78f18 with the proposed fixed minimum replaced by MaxIndexTuplesPerPage / 5, and Alexander later acknowledged the backpatch #15.
- Alexander resumed the main feature with child-page reuse to avoid redundant accesses #15; Peter's review requested high-key matching, documentation of the separation from heapallindexed, removal of obsolete state, and clearer terminology #16, which Alexander addressed in #17.
- After several months and requests to repair application failures, Alexander rebased the main patch onto current code without changing its design #18 #19 #20.
- Peter tested deliberately corrupted keys and found that rightmost children within a subtree escaped the new check; he proposed comparing against parent high keys, using binary tuple comparison, and obtaining a left sibling's high key when necessary #21 #22, then reconsidered the negative-infinity reasoning in a follow-up #23.
- Alexander implemented binary pivot-tuple comparison and matching against either the target's high key or its left sibling's saved high key #24, immediately supplying omitted explanatory comments in #25.
- Peter confirmed that the cousin-page blind spot was fixed but used injected incomplete splits to expose false corruption reports, while also requesting clearer function names and readonly-only low-key storage #26.
- Alexander traced the false positives to using the loop's first-iteration flag instead of testing whether the current block actually had the downlink, fixed that condition, and incorporated the naming and low-key changes #27.
- Peter requested a rebase after deduplication changes and clearer explanations of the rare low-key cases #28; Alexander supplied those revisions and removed the temporary split-failure injection from the patch #29 #30.
- Peter's next review questioned the leftmost-page example and suggested checking its leftmost status #31; Alexander discovered that the first child's high key was being skipped and revised the loop to check it, adding corruption reporting for an incorrectly positioned first child #32.
- Peter reviewed the final logic and requested only an update to the bt_target_page_check() header comment #33; Alexander made that change and committed #32 as d114cc5387, announcing the push in #34.
- The thread ended with Peter's acknowledgment after both the backpatchable sizing fix and the main non-lossy child-checking feature had landed, with no outstanding patch revision identified #35.