diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-04-10 16:57:19 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-04-10 16:57:19 +0300 |
commit | 29d7ebf51ee33e1711fc9681f273f3de2da76ebf (patch) | |
tree | d198aab7ea840315577a1a63ee0a50074fc17aa3 /src | |
parent | 3b8f6e75f3c8c6d192621f21624cc8cee04ec3cb (diff) | |
download | postgresql-29d7ebf51ee33e1711fc9681f273f3de2da76ebf.tar.gz postgresql-29d7ebf51ee33e1711fc9681f273f3de2da76ebf.zip |
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".
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/nbtree/nbtinsert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c index 9bfa0e9acec..0b93acd0244 100644 --- a/src/backend/access/nbtree/nbtinsert.c +++ b/src/backend/access/nbtree/nbtinsert.c @@ -171,9 +171,9 @@ top: /* * Check if the page is still the rightmost leaf page, has enough - * free space to accommodate the new tuple, no split is in progress - * and the scankey is greater than or equal to the first key on the - * page. + * free space to accommodate the new tuple, no split is in + * progress, and the insertion scan key is strictly greater than + * the first key on the page. */ if (P_ISLEAF(lpageop) && P_RIGHTMOST(lpageop) && !P_INCOMPLETE_SPLIT(lpageop) && |