Skip to content

Commit b00326d

Browse files
Correct obsolete amcheck comments.
Oversight in commit dd299df.
1 parent f31111b commit b00326d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

contrib/amcheck/verify_nbtree.c

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -798,23 +798,25 @@ bt_check_level_from_leftmost(BtreeCheckState *state, BtreeLevel level)
798798
* target page:
799799
*
800800
* - That every "real" data item is less than or equal to the high key, which
801-
* is an upper bound on the items on the pages (where there is a high key at
802-
* all -- pages that are rightmost lack one).
801+
* is an upper bound on the items on the page. Data items should be
802+
* strictly less than the high key when the page is an internal page.
803803
*
804-
* - That within the page, every "real" item is less than or equal to the item
805-
* immediately to its right, if any (i.e., that the items are in order within
806-
* the page, so that the binary searches performed by index scans are sane).
804+
* - That within the page, every data item is strictly less than the item
805+
* immediately to its right, if any (i.e., that the items are in order
806+
* within the page, so that the binary searches performed by index scans are
807+
* sane).
807808
*
808-
* - That the last item stored on the page is less than or equal to the first
809-
* "real" data item on the page to the right (if such a first item is
809+
* - That the last data item stored on the page is strictly less than the
810+
* first data item on the page to the right (when such a first item is
810811
* available).
811812
*
812-
* - That tuples report that they have the expected number of attributes.
813-
* INCLUDE index pivot tuples should not contain non-key attributes.
813+
* - Various checks on the structure of tuples themselves. For example, check
814+
* that non-pivot tuples have no truncated attributes.
814815
*
815816
* Furthermore, when state passed shows ShareLock held, function also checks:
816817
*
817-
* - That all child pages respect downlinks lower bound.
818+
* - That all child pages respect strict lower bound from parent's pivot
819+
* tuple.
818820
*
819821
* - That downlink to block was encountered in parent where that's expected.
820822
* (Limited to heapallindexed readonly callers.)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy