Remove overzealous array element type assertion.

This led to spurious assertion failures in certain scenarios involving
pseudo types.

Oversight in commit 5bf748b8, which enhanced nbtree ScalarArrayOp
execution.

Reported-By: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/CAMbWs48f5rDOwxaT76Zd40m7n9iGZQcjEk7vG_5p3YWNh6oPfA@mail.gmail.com
This commit is contained in:
Peter Geoghegan 2024-04-21 22:51:56 -04:00
parent 8c239ee15a
commit eff6a757fd
1 changed files with 0 additions and 1 deletions

View File

@ -392,7 +392,6 @@ _bt_preprocess_array_keys(IndexScanDesc scan)
elemtype = cur->sk_subtype;
if (elemtype == InvalidOid)
elemtype = rel->rd_opcintype[cur->sk_attno - 1];
Assert(elemtype == ARR_ELEMTYPE(arrayval));
/*
* If the comparison operator is not equality, then the array qual