Re: strange row count estimates with conditions on multiple column

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: strange row count estimates with conditions on multiple column
Дата
Msg-id 4CE369A6.80701@fuzzy.cz
обсуждение исходный текст
Ответ на Re: strange row count estimates with conditions on multiple column  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-general
> BTW I think the default estimate used to be 1000, so it was changed in
> one of the 8.x releases? Can you point me to the docs? I've even tried
> to find that in the sources, but unsuccessfully.

OK, I've found it right after submitting the e-mail.

It's defined in selfuncs.h as DEFAULT_RANGE_INEQ_SEL, equal 0.005. Which
makes sense, as it's related to the table size. I've mixed that with
some other default which used to be 1000 (table size I think).

regards
Tomas

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: strange row count estimates with conditions on multiple column
Следующее
От: Tom Lane
Дата:
Сообщение: Re: strange row count estimates with conditions on multiple column