Skip to content

Commit fc31001

Browse files
Remove redundant incomplete split assertion.
The fastpath insert optimization's incomplete split flag Assert() is redundant. We'll reach the more general Assert() within _bt_findinsertloc() in all cases. (Besides, Assert()'ing that the rightmost page doesn't have the flag set never made much sense.)
1 parent 8c081a2 commit fc31001

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/backend/access/nbtree/nbtinsert.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,6 @@ _bt_doinsert(Relation rel, IndexTuple itup,
179179
PageGetMaxOffsetNumber(page) >= P_FIRSTDATAKEY(lpageop) &&
180180
_bt_compare(rel, itup_key, page, P_FIRSTDATAKEY(lpageop)) > 0)
181181
{
182-
/*
183-
* The right-most block should never have an incomplete split.
184-
* But be paranoid and check for it anyway.
185-
*/
186-
Assert(!P_INCOMPLETE_SPLIT(lpageop));
187182
fastpath = true;
188183
}
189184
else

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