Re: BitmapAnd on correlated column?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BitmapAnd on correlated column?
Дата
Msg-id 4678.1570196105@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BitmapAnd on correlated column?  (greigwise <greigwise@comcast.net>)
Список pgsql-general
greigwise <greigwise@comcast.net> writes:
> Granted it cannot skip the condition, but that doesn't mean that it has to
> use that second index.  It's doing a  recheck on the conditions anyway,
> right?

I'm afraid you're out of luck on that for now.  In principle, the
presence of extended stats on the column combination might allow
the planner to figure out that the second IN condition adds little
selectivity.  But I'm not sure how hard it would be, and I am sure
that the extended-stats logic hasn't been built out in that direction
yet.

            regards, tom lane



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

Предыдущее
От: Matthias Apitz
Дата:
Сообщение: Perl DBI converts UTF-8 again to UTF-8 before sending it to theserver
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Postgres 12: backend crashes when creating non-deterministiccollation