Re: [GENERAL] Planner decisions

2010-07-16 Thread Tom Lane
"Wappler, Robert" 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 w

[GENERAL] Planner decisions

2010-07-16 Thread Wappler, Robert
Hi, 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. The query is recursive. In each iteration CTE acts is sorted again, which is obviously quite expensive for about 24000