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

Commitfc31001

Browse files
Remove redundant incomplete split assertion.
The fastpath insert optimization's incomplete split flag Assert() isredundant. We'll reach the more general Assert() within_bt_findinsertloc() in all cases. (Besides, Assert()'ing that therightmost page doesn't have the flag set never made much sense.)
1 parent8c081a2 commitfc31001

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)

[8]ページ先頭

©2009-2025 Movatter.jp