git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: dc3f9bc) | patch
Fix nbtree backward scan race condition comments.
Fri, 8 Dec 2023 23:37:53 +0000 (15:37 -0800)
Fri, 8 Dec 2023 23:37:53 +0000 (15:37 -0800)
commit aa210e0c121eb8f58c86d4fcc833a5a6fbb6f5a9
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.
src/backend/access/nbtree/nbtsearch.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /