pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexey Ermakov <alexey.ermakov@dataegret.com>
To: David Rowley <david.rowley@2ndquadrant.com>
To: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15890: Planner can't use index "(col) where col is not null" for query "where col in ($1, $2, ... $100+)"
Date: Wed, 03 Jul 2019 19:49:37 +0600
Message-ID: <5D1CB271.6060108@dataegret.com> (raw)
In-Reply-To: <CAKJS1f8D_DvOZeOaOFTT9Z_HptRTVHmFB8BnOsWM9ZYN2zq3eA@mail.gmail.com>
References: <15890-d9e1cb33aceb86aa@postgresql.org>
	<CAKJS1f8D_DvOZeOaOFTT9Z_HptRTVHmFB8BnOsWM9ZYN2zq3eA@mail.gmail.com>

great, thank you!

--
Alexey Ermakov

On 7/3/19 19:01, David Rowley wrote:
> 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.
>






view thread (3+ messages)

Message-ID: <5D1CB271.6060108@dataegret.com>
Permalink:  ../5D1CB271.6060108@dataegret.com/
Also on:    postgresql.org/message-id/5D1CB271.6060108@dataegret.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alexey.ermakov@dataegret.com, david.rowley@2ndquadrant.com
  Subject: Re: BUG #15890: Planner can't use index "(col) where col is not null" for query "where col in ($1, $2, ... $100+)"
  In-Reply-To: <5D1CB271.6060108@dataegret.com>
  References: <15890-d9e1cb33aceb86aa@postgresql.org> <CAKJS1f8D_DvOZeOaOFTT9Z_HptRTVHmFB8BnOsWM9ZYN2zq3eA@mail.gmail.com> <5D1CB271.6060108@dataegret.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox