Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Rahul <rahul(at)rhyadav(dot)dev>
Cc: Rpsalmi <rpsalmi(at)gmail(dot)com>, Pgsql Bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Guofenglinux <guofenglinux(at)gmail(dot)com>
Subject: Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs
Date: 2026-10-05 15:10:53
Message-ID: CAGRkXqRDQXP-3fv7B8_6E=J+Sq2UZbTUFD4WkNn2wBxCmBm0fw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Rahul,

Thanks for testing, and for the patch. I agree that EXISTS and NOT
EXISTS should be handled too.

v2 is attached, with your patch merged in and you as co-author. The
commit message of 0001 now mentions IS DISTINCT FROM too.

My test get the same numbers as you.

Thanks,
Shihao

Attachment Content-Type Size
v2-0001-Count-NULL-pairs-in-IS-NOT-DISTINCT-FROM-selectiv.patch application/octet-stream 5.8 KB
v2-0002-Add-row-estimate-tests-for-IS-NOT-DISTINCT-FROM.patch application/octet-stream 5.6 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-10-05 15:21:10 Re: BUG #19751: MIN aggregate + FETCH FIRST 1 ROW WITH TIES causes false 21000 error when index scan is forced
Previous Message Andrew Dunstan 2026-10-05 14:34:17 Re: Issue Installing PostGIS via Stack Builder on MacBook (Apple Silicon / ARM64) – Application Buffers/Freezes