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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs
Дата
Msg-id 1385220.1657600906@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes:
> The comment in the codes has explained this behavior, as it says:
>     * This estimation method doesn't give the right behavior for nulls,
>     * but it's better than doing nothing.
> So maybe this is a known issue?

It's a nobodys-bothered-to-make-it-better issue.  In general, PG's
treatment of IS [NOT] DISTINCT FROM is pretty lame --- for example,
you might wish that IS NOT DISTINCT FROM could use an index in
the way that "=" can, but that's never been made to happen.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Richard Guo
Дата:
Сообщение: Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs
Следующее
От: David Rowley
Дата:
Сообщение: Reducing chunk header sizes on all memory context types