On 11/11/26 20:11, Tomas Vondra wrote:
>
>
> On 11/11/26 19:49, Kirill Reshke wrote:
>> ...
>>
>> Hi!
>> Cool findings.
>>
>> There is another issue I found during review, but this issue is not
>> directly related (exist on master before and after
>> e50d958f092bc33fcb51089c68c72779bae2a6a3), and maybe should be fixed
>> as separate bugs.But I decided to report here
>>
>> example setup & query
>>
>> CREATE TABLE fj_left (x int);
>> CREATE TABLE fj_right (x int);
>> INSERT INTO fj_left VALUES (0);
>> INSERT INTO fj_right VALUES (1);
>>
>> SELECT a.x AS ax, b.x AS bx
>> FROM fj_left a FULL JOIN fj_right b ON concat(a.x) = b.x::text
>> WHERE coalesce(concat(a.x), b.x::text) = '';
>>
>> (zero rows)
>>
>
> Isn't this the same issue as
> https://www.postgresql.org/message-id/[email protected]
> ?
>
> The fix I posted in that thread is a bit more elaborate, but also uses
> contain_nonstrict_functions. Please take a look and check if my fix
> addresses this issue, and whether it's correct.
>
FWIW with my patch applied your example query returns
ax | bx
----+----
| 1
(1 row)
which I think is the correct / expected result. So I guess it really is
the same issue.
regards
--
Tomas Vondra