Re: improving GROUP BY estimation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: improving GROUP BY estimation
Дата
Msg-id 7900.1459457981@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: improving GROUP BY estimation  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> Yeah, that makes sense. In fact, if we only apply the adjustment when
> reldistinct > 0 and rel->rows < rel->tuples, and rewrite the first
> argument to pow() as (rel->tuples - rel->rows) / rel->tuples, then it
> is guaranteed to be non-negative. If rel->rows >= rel->tuples (not
> sure if it can be greater), then we just want the original
> reldistinct.

Works for me.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: improving GROUP BY estimation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: improving GROUP BY estimation