| От | Tom Lane |
|---|---|
| Тема | Re: Planner decisions |
| Дата | |
| Msg-id | 18031.1279299654@sss.pgh.pa.us обсуждение |
| Ответ на | Planner decisions ("Wappler, Robert" <rwappler@ophardt.com>) |
| Список | pgsql-general |
"Wappler, Robert" <rwappler@ophardt.com> writes:
> Attached is a query and its corresponding plan, where sorting of the CTE
> acts seems to be the bottle neck. It is a real execution plan captured
> with the auto_explain module.
There isn't a lot of intelligence about CTEs at the moment; in
particular I don't believe we have any provision for recognizing that
the output of a CTE is already sorted by anything the outer query would
recognize. The CTE is just a black box as far as the upper plan is
concerned.
In principle it's doable, I think, but nobody's spent much effort on
CTE optimization yet.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера