| От | Tom Lane |
|---|---|
| Тема | Re: BUG #12933: Custom prepared plan vs partitioning. |
| Дата | |
| Msg-id | 23074.1427826337@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #12933: Custom prepared plan vs partitioning. (maxim.boguk@gmail.com) |
| Ответы |
Re: BUG #12933: Custom prepared plan vs partitioning.
|
| Список | pgsql-bugs |
maxim.boguk@gmail.com writes:
> I found case when custom plans with partitioning shows strange behavior.
> First 5 repetitions of execute with the same parameters I getting fast
> custom plan, on 6th run plan switch to slow generic (all-partitions)
> version.
This behavior is expected; after half a dozen trials the plancache will
decide it's not getting enough win from custom plans to justify replanning
every time. For a cost delta of about 0.6 unit I would have to agree with
it. You may have a real case where it's doing something wrong, but this
toy example doesn't demonstrate a bug IMO.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера