From: | Jinhui Lai <jinhui-lai(at)foxmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #18997: Two equivalent queries return different results |
Date: | 2025-07-24 17:49:54 |
Message-ID: | tencent_BBFD8437694FAE97171CF0D6079A261A5809@qq.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Dear Tom Lane,
Sorry for my careless. I check my PG version again, it is 17.4. Since my PG docker' tag is latest, I mistakenly thought it was the latest version (17.5).
Thanks for your reply.
Best regards,
Jinhui
原始邮件
发件人:Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
发件时间:2025年7月25日 01:33
收件人:jinhui-lai <jinhui-lai(at)foxmail(dot)com>
抄送:pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
主题:Re: BUG #18997: Two equivalent queries return different results
PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> I think these "SELECT COUNT(c0) FILTER (WHERE c0 IS NOT NULL) FROM t0" and
> "SELECT COUNT(c0) FROM t0 WHERE c0 IS NOT NULL;" are equivalent. However,
> their results are different.
You sure your server is 17.5, and not something a little older?
There was a bug of this sort in earlier 17.x releases, but
we fixed it in 17.5. For me, both queries produce "0" as
expected.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2025-07-24 17:50:36 | BUG #18998: No materialized views in INFORMATION_SCHEMA.TABLE_PRIVILEGES |
Previous Message | Tom Lane | 2025-07-24 17:33:36 | Re: BUG #18997: Two equivalent queries return different results |