| От | Justin Pryzby |
|---|---|
| Тема | Re: Plan not skipping unnecessary inner join |
| Дата | |
| Msg-id | 20200517133124.GB18456@telsasoft.com обсуждение исходный текст |
| Ответ на | Re: Plan not skipping unnecessary inner join (Ranier Vilela <ranier.vf@gmail.com>) |
| Ответы |
Re: Plan not skipping unnecessary inner join
|
| Список | pgsql-performance |
On Sun, May 17, 2020 at 09:32:47AM -0300, Ranier Vilela wrote: > I redid the same tests with vanila postgres and with empty tables. > I'm surprised, why does the plan have 2550 rows in explain? That's the *estimated* rowcount. The planner tends to ignore table statistics which say the table is empty, since that can lead to a terrible plan if it's not true (stats are out of date or autovacuum threshold not hit). See also here https://www.postgresql.org/message-id/20171110204043.GS8563%40telsasoft.com -- Justin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера