Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29d7ebf

Browse files
committed
Fix comment on B-tree insertion fastpath condition.
The comment earlier in the function correctly states "and the insertionkey is strictly greater than the first key in this page". That is whatwe check here, not "greater than or equal".
1 parent3b8f6e7 commit29d7ebf

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 thescankey 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 theinsertion scan key is strictly greater than
176+
*the first key on thepage.
177177
*/
178178
if (P_ISLEAF(lpageop)&&P_RIGHTMOST(lpageop)&&
179179
!P_INCOMPLETE_SPLIT(lpageop)&&

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp