Fix path tree discrepancy for multiref recursive CTE
The planner wasn't correctly anchoring the path tree for queries which included multiple recursive CTE self-referential terms. Fix by anchoring to the appropriate parent root when invoking the sub- query planner. Adds a testcase illustrating the query, previously the test query would error with: ERROR: could not find CTE "x" (allpaths.c:<lineno>) Co-authored-by: NGeorgios Kokolatos <gkokolatos@pivotal.io> Reviewed-by: NHeikki Linnakangas <hlinnakangas@pivotal.io>
Showing
想要评论请 注册 或 登录