@@ -340,7 +340,7 @@ bt_check_every_level(Relation rel, Relation heaprel, bool readonly,
340340 /*
341341 * Initialize state for entire verification operation
342342 */
343- state = palloc (sizeof (BtreeCheckState ));
343+ state = palloc0 (sizeof (BtreeCheckState ));
344344 state -> rel = rel ;
345345 state -> heaprel = heaprel ;
346346 state -> readonly = readonly ;
@@ -772,13 +772,15 @@ bt_check_level_from_leftmost(BtreeCheckState *state, BtreeLevel level)
772772 * - That tuples report that they have the expected number of attributes.
773773 * INCLUDE index pivot tuples should not contain non-key attributes.
774774 *
775- * Furthermore, when state passed shows ShareLock held, and target page is
776- * internal page, function also checks:
775+ * Furthermore, when state passed shows ShareLock held, function also checks:
777776 *
778777 * - That all child pages respect downlinks lower bound.
779778 *
779+ * - That downlink to block was encountered in parent where that's expected.
780+ * (Limited to heapallindexed readonly callers.)
781+ *
780782 * This is also where heapallindexed callers use their Bloom filter to
781- * fingerprint IndexTuples.
783+ * fingerprint IndexTuples for later IndexBuildHeapScan() verification .
782784 *
783785 * Note: Memory allocated in this routine is expected to be released by caller
784786 * resetting state->targetcontext.
@@ -1074,7 +1076,7 @@ bt_target_page_check(BtreeCheckState *state)
10741076 /*
10751077 * * Check if page has a downlink in parent *
10761078 *
1077- * This can only be checked in readonly + heapallindexed case.
1079+ * This can only be checked in heapallindexed + readonly case.
10781080 */
10791081 if (state -> heapallindexed && state -> readonly )
10801082 bt_downlink_missing_check (state );
@@ -1561,7 +1563,7 @@ bt_downlink_missing_check(BtreeCheckState *state)
15611563 * infinity items. Besides, bt_downlink_check() is unwilling to descend
15621564 * multiple levels. (The similar bt_downlink_check() P_ISDELETED() check
15631565 * within bt_check_level_from_leftmost() won't reach the page either, since
1564- * the leaf's live siblings should have their sibling links updating to
1566+ * the leaf's live siblings should have their sibling links updated to
15651567 * bypass the deletion target page when it is marked fully dead.)
15661568 *
15671569 * If this error is raised, it might be due to a previous multi-level page
0 commit comments