Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuplesinaccurate.
Вложения
В списке pgsql-hackers по дате отправления:
| От | Alexander Kuzmenkov |
|---|---|
| Тема | Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuplesinaccurate. |
| Дата | |
| Msg-id | 1386effe-0e6d-fd5a-6f0d-f294e4ef2dda@postgrespro.ru обсуждение |
| Ответ на | Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuples inaccurate. (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
|
| Список | pgsql-hackers |
On 01.03.2018 18:09, Tom Lane wrote: > Ideally, at least, the estimate would remain on-target. The test shows that under this particular scenario the estimated number of tuples grows after each ANALYZE. I tried to explain how this happens in the attached pdf. The direct averaging of the number of tuples, not using the density, doesn't have this problem, so I suppose it could help. > I think you're reinventing the way we used to do it. Perhaps consulting > the git history in the vicinity of this code would be enlightening. I see that before vac_estimate_reltuples was introduced, the results of analyze and vacuum were used directly, without averaging. What I am suggesting is to use a different way of averaging, not to remove it. -- Alexander Kuzmenkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера