Re: BUG #17594: conditional hash indexes size (hash index ignore WHERE condition during CREATE INDEX?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17594: conditional hash indexes size (hash index ignore WHERE condition during CREATE INDEX?)
Дата
Msg-id 1573189.1661460549@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17594: conditional hash indexes size (hash index ignore WHERE condition during CREATE INDEX?)  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17594: conditional hash indexes size (hash index ignore WHERE condition during CREATE INDEX?)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I found very weird situation with size of highly selective partial hash
> indexes (they has almost same size as full table hash index).

hashbuild() sets up the initial hash index size based on estimating
the current number of rows in the table, without any correction for
partial-index selectivity.  I don't find this to be a bug particularly.
The odds of making things worse via a bad estimate seem at least as
high as the odds of making things better.

            regards, tom lane



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