Skip to content

Commit ac37bd5

Browse files
Correct nbtsplitloc.c comment.
The logic just added by commit e3899ff falls back on a 50:50 page split in the event of a new item that's just to the right of our provisional "many duplicates" split point. Fix a comment that incorrectly claimed that the new item had to be just to the left of our provisional split point. Backpatch: 12-, just like commit e3899ff.
1 parent 2f23453 commit ac37bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/nbtree/nbtsplitloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
815815
{
816816
/*
817817
* Avoid the problem by peforming a 50:50 split when the new item is
818-
* just to the left of the would-be "many duplicates" split point.
818+
* just to the right of the would-be "many duplicates" split point.
819819
*/
820820
final = &state->splits[0];
821821
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy