| От | Rural Hunter |
|---|---|
| Тема | Re: wrong count estimation in query plan |
| Дата | |
| Msg-id | 54538F94.3010507@gmail.com обсуждение исходный текст |
| Ответ на | Re: wrong count estimation in query plan (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-admin |
在 2014/10/30 22:25, Tom Lane 写道: > If ANALYZE doesn't scan the entire table then it updates the rowcount > estimate using a moving-average approach, rather than assuming that > the blocks it did look at are necessarily completely representative. > That causes the estimate to converge over multiple passes. Since it > took so many cycles to get close to reality, we can conclude that the > table is several times larger than the number of blocks ANALYZE is > willing to sample ... which, for a table with only 1000 rows in it, > says you've got a bad table-bloat problem. VACUUM FULL or CLUSTER > might be indicated. regards, tom lane Got it. A vacuum solved the problem. Thanks.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера