Fix nbtree backward scan race condition comments.

Peter Geoghegan <pg@bowt.ie>

Commit: aa210e0c121eb8f58c86d4fcc833a5a6fbb6f5a9
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2023-12-08T23:37:53Z
Releases: 17.0
Fix nbtree backward scan race condition comments.

Remove comments that supposed that holding a pin was a useful interlock
for _bt_walk_left().  There are times when _bt_walk_left() doesn't hold
either a lock or a pin on any page, so clearly this can't be true.
_bt_walk_left() is even prepared to deal with concurrent deletion of
both the original page and any pages to its left.

Oversight in commit 2ed5b87f96.

Files

PathChange+/−
src/backend/access/nbtree/nbtsearch.c modified +8 −19