Re: BUG #15890: Planner can't use index "(col) where col is not null"for query "where col in ($1, $2, ... $100+)"

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: BUG #15890: Planner can't use index "(col) where col is not null"for query "where col in ($1, $2, ... $100+)"
Дата
Msg-id CAKJS1f8D_DvOZeOaOFTT9Z_HptRTVHmFB8BnOsWM9ZYN2zq3eA@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #15890: Planner can't use index "(col) where col is not null" for query "where col in ($1, $2, ... $100+)"  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15890: Planner can't use index "(col) where col is not null"for query "where col in ($1, $2, ... $100+)"  (Alexey Ermakov <alexey.ermakov@dataegret.com>)
Список pgsql-bugs
On Wed, 3 Jul 2019 at 21:42, PG Bug reporting form
<noreply@postgresql.org> wrote:
> -- 100+ elements, can't use index, using seq scan
> # explain select a from test_not_null_indexes where a in

> Is it possible somehow to pass information that (a) can't be null in such
> cases?

Yes, it is possible, however, this is not a bug in v11. It's something
that has been improved in v12, which will be released later this year.

See: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=65ce07e020

v11 won't receive the same improvement.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #15889: PostgreSQL failed to build due to error MSB8020 withMSVC on windows
Следующее
От: Maarten Jacobs
Дата:
Сообщение: Cannot alter columns and add constraints in one alter statement since11.4 update