Content-Length: 265480 | pFad | http://github.com/postgrespro/postgres_cluster/commit/29d7ebf51ee33e1711fc9681f273f3de2da76ebf

E6 Fix comment on B-tree insertion fastpath condition. · postgrespro/postgres_cluster@29d7ebf · GitHub
Skip to content

Commit 29d7ebf

Browse files
committed
Fix comment on B-tree insertion fastpath condition.
The comment earlier in the function correctly states "and the insertion key is strictly greater than the first key in this page". That is what we check here, not "greater than or equal".
1 parent 3b8f6e7 commit 29d7ebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/access/nbtree/nbtinsert.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ _bt_doinsert(Relation rel, IndexTuple itup,
171171

172172
/*
173173
* Check if the page is still the rightmost leaf page, has enough
174-
* free space to accommodate the new tuple, no split is in progress
175-
* and the scankey is greater than or equal to the first key on the
176-
* page.
174+
* free space to accommodate the new tuple, no split is in
175+
* progress, and the insertion scan key is strictly greater than
176+
* the first key on the page.
177177
*/
178178
if (P_ISLEAF(lpageop) && P_RIGHTMOST(lpageop) &&
179179
!P_INCOMPLETE_SPLIT(lpageop) &&

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_cluster/commit/29d7ebf51ee33e1711fc9681f273f3de2da76ebf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy