git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c239ee)
Remove overzealous array element type assertion.
2024年4月22日 02:51:56 +0000 (22:51 -0400)
2024年4月22日 02:51:56 +0000 (22:51 -0400)
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


diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c
index ecbbc2466d2551ba443b713f9415f0bd2748a18e..8381027f4e540154ea87513cc4992cca2aa281c5 100644 (file)
--- a/src/backend/access/nbtree/nbtutils.c
+++ b/src/backend/access/nbtree/nbtutils.c
@@ -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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /