Re: The use of partial, expressional indices in pg < 14

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: The use of partial, expressional indices in pg < 14
Дата
Msg-id 173501.1654007375@sss.pgh.pa.us
обсуждение исходный текст
Ответ на The use of partial, expressional indices in pg < 14  (Danny Shemesh <dany74q@gmail.com>)
Список pgsql-general
Danny Shemesh <dany74q@gmail.com> writes:
> 2. Would it be theoretically possible to use the collected statistics if
> the index where clause is also specified in the query itself ?
> or in other words, if the index only contains records where x is not null,
> and the query also filters on x is not null, would the partial distribution
> not be safe to use ?

The hard part is to avoid double-counting the selectivity of the "is not
null" clause if you do that.  It's something that would be nice to do
but it's much trickier than it sounds.

            regards, tom lane



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

Предыдущее
От: Eric Katchan
Дата:
Сообщение: pgAdmin 4 v 6.9
Следующее
От: Mark Hill
Дата:
Сообщение: Build Postgres On AIX