Skip to content

Commit eff6a75

Browse files
Remove overzealous array element type assertion.
This led to spurious assertion failures in certain scenarios involving pseudo types. Oversight in commit 5bf748b, which enhanced nbtree ScalarArrayOp execution. Reported-By: Richard Guo <guofenglinux@gmail.com> Discussion: https://postgr.es/m/CAMbWs48f5rDOwxaT76Zd40m7n9iGZQcjEk7vG_5p3YWNh6oPfA@mail.gmail.com
1 parent 8c239ee commit eff6a75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/access/nbtree/nbtutils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ _bt_preprocess_array_keys(IndexScanDesc scan)
392392
elemtype = cur->sk_subtype;
393393
if (elemtype == InvalidOid)
394394
elemtype = rel->rd_opcintype[cur->sk_attno - 1];
395-
Assert(elemtype == ARR_ELEMTYPE(arrayval));
396395

397396
/*
398397
* If the comparison operator is not equality, then the array qual

0 commit comments

Comments
 (0)