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

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: ZizhuanLiu X-MAN <44973863(at)qq(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Burd <greg(at)burd(dot)me>, rahul <rahul(at)rhyadav(dot)dev>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>, 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-11-28 17:40:00
Message-ID: CAGRkXqRWEi3Pg8L0Ucktypruod9QiKw7WbfCPkAV9fo3W=Lvog@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Tom,

Thanks for the quick call on v3.

v4 leaves the join estimator API alone. The decision stays in
clausesel.c like v2. The null fraction lookup moved into a new
selfuncs.c function(distinctnullsel).

Thanks,
Shihao

Attachment Content-Type Size
v4-0002-Add-row-estimate-tests-for-IS-NOT-DISTINCT-FROM.patch application/octet-stream 7.8 KB
v4-0001-Count-NULL-pairs-in-IS-NOT-DISTINCT-FROM-selectivity.patch application/octet-stream 6.1 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-11-28 18:17:51 Re: BUG #19873: planner silently drops the second ORDER BY sort key when both keys reference the same expression und
Previous Message Nitin Motiani 2026-11-28 16:23:17 Re: BUG #19945: Partitionwise join omits lateral dependency from Memoize cache key