Re: Improving N-Distinct estimation by ANALYZE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Improving N-Distinct estimation by ANALYZE
Дата
Msg-id 17038.1137213458@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Improving N-Distinct estimation by ANALYZE  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Improving N-Distinct estimation by ANALYZE  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
>> It's also worth mentioning that for datatypes that only have an "="
>> operator the performance of compute_minimal_stats is O(N^2) when values
>> are unique, so increasing sample size is a very bad idea in that case.

> Hmmm ... does ANALYZE check for UNIQUE constraints?

Our only implementation of UNIQUE constraints is btree indexes, which
require more than an "=" operator, so this seems irrelevant.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Improving N-Distinct estimation by ANALYZE
Следующее
От: Jaime Casanova
Дата:
Сообщение: message for constraint