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: 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-26 18:41:16
Message-ID: CAGRkXqQEdbr0G0TBkGm9OdNp9RBnefDvQhtH-6fK=uKXz8FFCA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Zizhuan,

Thanks for asking before you split the patches.

I'd lean toward keeping the decision in clausesel.c as v2 does. The
null fraction lookup could move into a small selfuncs.c helper. That
works with any join estimator and needs no new estimator argument. If
that sounds right, I can post v4 that way.

Thanks,
Shihao

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-11-26 18:56:12 Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs
Previous Message Álvaro Herrera 2026-11-26 18:31:12 Re: BUG #19723: CREATE INDEX racing with ALTER INDEX ATTACH PARTITION triggers unexpected internal error