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

Appearance settings

Commit 3b08133

Browse filesBrowse files
Remove redundant nbtree preprocessing assertions.
One of the assertions was the subject of a false positive complaint from Coverity, but none of the assertions added much, so get rid of them. Reported-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/3000247.1712537309@sss.pgh.pa.us
1 parent af7e90a commit 3b08133
Copy full SHA for 3b08133

File tree

Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed

‎src/backend/access/nbtree/nbtutils.c

Copy file name to clipboardExpand all lines: src/backend/access/nbtree/nbtutils.c
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2937,7 +2937,6 @@ _bt_preprocess_keys(IndexScanDesc scan)
29372937
if (j != (BTEqualStrategyNumber - 1) ||
29382938
!(xform[j].skey->sk_flags & SK_SEARCHARRAY))
29392939
{
2940-
Assert(!array || array->scan_key == i);
29412940
xform[j].skey = cur;
29422941
xform[j].ikey = i;
29432942
xform[j].arrayidx = arrayidx;
@@ -2951,9 +2950,6 @@ _bt_preprocess_keys(IndexScanDesc scan)
29512950
* scan key. _bt_compare_scankey_args expects us to
29522951
* always keep arrays (and discard non-arrays).
29532952
*/
2954-
Assert(j == (BTEqualStrategyNumber - 1));
2955-
Assert(xform[j].skey->sk_flags & SK_SEARCHARRAY);
2956-
Assert(xform[j].ikey == array->scan_key);
29572953
Assert(!(cur->sk_flags & SK_SEARCHARRAY));
29582954
}
29592955
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.