| От | Tom Lane |
|---|---|
| Тема | Re: Optimizer showing wrong rows in plan |
| Дата | |
| Msg-id | 22618.1269793661@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Optimizer showing wrong rows in plan (Tadipathri Raghu <traghu.dba@gmail.com>) |
| Ответы |
Re: Optimizer showing wrong rows in plan
|
| Список | pgsql-performance |
Tadipathri Raghu <traghu.dba@gmail.com> writes:
> Frankly speaking its a newly created table without any operation on it as
> you have seen the example. Then how come it showing those many rows where we
> have only one in it.
Yes. This is intentional: the size estimates for a never-yet-analyzed
table are *not* zero. This is because people frequently create and load
up a table and then immediately query it without an explicit ANALYZE.
The quality of the plans you'd get at that point (especially for joins)
would be spectacularly bad if the default assumption were that the table
was very small.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера