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
if (j != (BTEqualStrategyNumber - 1) ||
!(xform[j].skey->sk_flags & SK_SEARCHARRAY))
{
- Assert(!array || array->scan_key == i);
xform[j].skey = cur;
xform[j].ikey = i;
xform[j].arrayidx = arrayidx;
* scan key. _bt_compare_scankey_args expects us to
* always keep arrays (and discard non-arrays).
*/
- Assert(j == (BTEqualStrategyNumber - 1));
- Assert(xform[j].skey->sk_flags & SK_SEARCHARRAY);
- Assert(xform[j].ikey == array->scan_key);
Assert(!(cur->sk_flags & SK_SEARCHARRAY));
}
}