| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | shihao zhong <zhong950419(at)gmail(dot)com> |
| Cc: | ZizhuanLiu X-MAN <44973863(at)qq(dot)com>, 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:56:12 |
| Message-ID: | 1770975.1795719372@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
shihao zhong <zhong950419(at)gmail(dot)com> writes:
> 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.
I concur that v3 looks pretty horrid. The join selectivity estimator
API is not something to mess with for marginal returns --- and
frankly, IS NOT DISTINCT FROM is marginal. Let's just eat the cost
of the duplicated statistics fetch.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Narayanan Venkateswaran | 2026-11-26 19:23:22 | Re: BUG #19737: Empty `JSON_OBJECT` cannot use documented `ON NULL` or unique-key clauses |
| Previous Message | shihao zhong | 2026-11-26 18:41:16 | Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs |