Re: [GENERAL] how to get accurate values in pg_statistic (continued)
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [GENERAL] how to get accurate values in pg_statistic (continued) |
| Дата | |
| Msg-id | 21962.1063254659@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [GENERAL] how to get accurate values in pg_statistic (continued) (Christopher Browne <cbbrowne@libertyrms.info>) |
| Ответы |
Re: [GENERAL] how to get accurate values in pg_statistic
|
| Список | pgsql-performance |
Christopher Browne <cbbrowne@libertyrms.info> writes:
> The "right answer" for most use seems likely to involve:
> a) Getting an appropriate number of bins (I suspect 10 is a bit
> small, but I can't justify that mathematically), and
I suspect that also, but I don't have real evidence for it either.
We've heard complaints from a number of people for whom it was indeed
too small ... but that doesn't prove it's not appropriate in the
majority of cases ...
> Does the sample size change if you increase the number of bins?
Yes, read the comments in backend/commands/analyze.c.
> Do we also need a parameter to control sample size?
Not if the paper I read before writing that code is correct.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера