From: Pavan Deolasee Date: Thu, 19 Nov 2015 09:30:51 +0000 (+0530) Subject: Initialise root->recursiveOk correcttly. X-Git-Tag: XL9_5_R1BETA1~149 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b76d30c4763ce1e32c4aad2178586a4894132eb3;p=postgres-xl.git Initialise root->recursiveOk correcttly. This was an oversight during the 9.5 merge process, thus breaking WITH RECURSIVE for replicated and catalog tables. As a side-effect, this also caused pg_dump to fail. --- diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c index eafa4a652d..04c609ec11 100644 --- a/src/backend/optimizer/plan/planner.c +++ b/src/backend/optimizer/plan/planner.c @@ -373,6 +373,7 @@ subquery_planner(PlannerGlobal *glob, Query *parse, root->rowMarks = NIL; root->hasInheritedTarget = false; root->grouping_map = NULL; + root->recursiveOk = true; root->hasRecursion = hasRecursion; if (hasRecursion)