Re: Bad n_distinct estimation; hacks suggested?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bad n_distinct estimation; hacks suggested?
Дата
Msg-id 25382.1113943489@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bad n_distinct estimation; hacks suggested?  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Bad n_distinct estimation; hacks suggested?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
> As you can see, n_distinct estimation is off by a factor of 10x and it's
> causing query planning problems.   Any suggested hacks to improve the
> histogram on this?

What's the histogram itself look like?  (I'd like to see the whole
pg_stats row not just part of it ...)  There's probably no point in
showing the target=1000 version, but maybe target=100 would be
informative.

            regards, tom lane

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

Предыдущее
От: "Dave Held"
Дата:
Сообщение: Re: Bad n_distinct estimation; hacks suggested?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Bad n_distinct estimation; hacks suggested?