Skip to content

Commit 3b08133

Browse 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

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/access/nbtree/nbtutils.c

Lines 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)
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