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-12-03 03:03:16
Message-ID: CAGRkXqR9q8_XRVd6BL_XiOmN6--Z6mDBSETXJR4gZRgsq_W4Yg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Zizhuan,

Thanks for checking v4 so closely.

v4 only fixes the NULL pairs this bug reports, and the three cases
you listed get the same estimates as on master.

I think fcinfo->context still changes the estimator contract, since an
estimator that ignores it would quietly return the plain "=" estimate.

Maybe your <> fix for BUG #19926 could go in as its own patch?

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message shihao zhong 2026-12-03 02:53:18 Re: BUG #19846: dump/restore marks inherited NOT VALID not-null constraint as local