Re: HashAggregate row estimate = 200

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: HashAggregate row estimate = 200
Дата
Msg-id CAKJS1f9Re58SGE11r=GmnZO8PUHU-kj5vVsii6Nvi22h6WZtww@mail.gmail.com
обсуждение исходный текст
Ответ на HashAggregate row estimate = 200  (Christophe Pettus <xof@thebuild.com>)
Список pgsql-hackers
On 4 June 2016 at 14:10, Christophe Pettus <xof@thebuild.com> wrote:
> Something I've noticed frequently is that HashAggregate will, especially if the children are Append with one of the
nodesa non-seqscan, estimate 200 rows rather than a calculated vlaue.  Where is that value coming from?  The statistics
target,a hardwired constant, or something else? 

Most likely from DEFAULT_NUM_DISTINCT in selfuncs.h. This is the
fallback, when nothing else can be used.

-- David Rowley                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Reviewing freeze map code
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: XTM & parallel search