projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23fcb13
)
Initialise root->recursiveOk correcttly.
author
Pavan Deolasee
<
[email protected]
>
Thu, 19 Nov 2015 09:30:51 +0000
(15:00 +0530)
committer
Pavan Deolasee
<
[email protected]
>
Thu, 19 Nov 2015 09:30:51 +0000
(15:00 +0530)
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.
src/backend/optimizer/plan/planner.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/optimizer/plan/planner.c
b/src/backend/optimizer/plan/planner.c
index eafa4a652d060cd46ba249b6dda1a57dd1085078..04c609ec115c4ca55d897542be64733bd21d1ec2 100644
(file)
--- 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)