Skip to content

Commit 5b14ec0

Browse files
Fix obsolete nbtree README left link remarks.
Oversight in commit 1bd4bc8, which made nbtree backwards scans operate off of a copy of each page's left link as of the time of its call to _bt_readpage.
1 parent 3d0b4b1 commit 5b14ec0

File tree

1 file changed

+3
-3
lines changed
  • src/backend/access/nbtree

1 file changed

+3
-3
lines changed

src/backend/access/nbtree/README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ cannot miss any items it should have seen, nor accidentally return the same
9999
item twice. The scan must remember the page's right-link at the time it
100100
was scanned, since that is the page to move right to; if we move right to
101101
the current right-link then we'd re-scan any items moved by a page split.
102-
We don't similarly remember the left-link, since it's best to use the most
103-
up-to-date left-link when trying to move left (see detailed move-left
104-
algorithm below).
102+
We also remember the left-link, and follow it when the scan moves backwards
103+
(though this requires extra handling to account for concurrent splits of
104+
the left sibling; see detailed move-left algorithm below).
105105

106106
In most cases we release our lock and pin on a page before attempting
107107
to acquire pin and lock on the page we are moving to. In a few places

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