Re: [PATCH] Fix hashed ScalarArrayOp semantics for NULL LHS with non-strict comparators
cca5507 <cca5507@qq.com>
From: cca5507 <cca5507@qq.com>
To: Chengpeng Yan <chengpeng_yan@outlook.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: David Rowley <dgrowleyml@gmail.com>
Date: 2026-04-17T12:45:57Z
Lists: pgsql-hackers
Attachments
- repro.sql (application/octet-stream)
Hi Chengpeng, Thanks for your report. After reading the code, I find that there is still an issue even if the LHS is not null and the comparator is strict (make myinteq always return null, see the attached sql for details). The main reason is that we did not consider whether the comparator's return value is null during looking up the hash. Not sure whether this is a big problem. -- Regards, ChangAo Chen
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix incorrect logic for hashed IN / NOT IN with non-strict operators
- 109de35b705c 14.23 landed
- 622f8b53014e 15.18 landed
- a2a0060d5d8f 16.14 landed
- 3fda3e12f41b 17.10 landed
- 035c520db866 18.4 landed
- 94219a73f79d 19 (unreleased) landed