Content-Length: 263332 | pFad | http://github.com/postgrespro/postgres/commit/5b14ec0a48cca3addfc7262c86e60475b7d84c02

69 Fix obsolete nbtree README left link remarks. · postgrespro/postgres@5b14ec0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5b14ec0a48cca3addfc7262c86e60475b7d84c02

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy