mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-06 23:49:21 +02:00
Correct nbtsplitloc.c comment.
The logic just added by commite3899ffd
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 commite3899ffd
.
This commit is contained in:
parent
2f23453e49
commit
ac37bd51a4
@ -815,7 +815,7 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Avoid the problem by peforming a 50:50 split when the new item is
|
* Avoid the problem by peforming a 50:50 split when the new item is
|
||||||
* just to the left of the would-be "many duplicates" split point.
|
* just to the right of the would-be "many duplicates" split point.
|
||||||
*/
|
*/
|
||||||
final = &state->splits[0];
|
final = &state->splits[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user