Re: [PATCH] Fix hashed ScalarArrayOp semantics for NULL LHS with non-strict comparators - Mailing list pgsql-hackers

From cca5507
Subject Re: [PATCH] Fix hashed ScalarArrayOp semantics for NULL LHS with non-strict comparators
Date
Msg-id tencent_75ACCC12DECD8182DD4AA84A617D2D48CA06@qq.com
Whole thread
In response to [PATCH] Fix hashed ScalarArrayOp semantics for NULL LHS with non-strict comparators  (Chengpeng Yan <chengpeng_yan@outlook.com>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Reject invalid databases in pg_get_database_ddl()
Next
From: Amul Sul
Date:
Subject: Cleanup: Use modern macro for text-to-CString conversion in plsample.c