We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6c30c32 commita3e77daCopy full SHA for a3e77da
src/hooks.c
@@ -130,9 +130,12 @@ pathman_join_pathlist_hook(PlannerInfo *root,
130
}
131
132
/* Make copy of partitioning expression and fix Var's varno attributes */
133
-expr=copyObject(inner_prel->expr);
+expr=inner_prel->expr;
134
if (innerrel->relid!=1)
135
+{
136
+expr=copyObject(expr);
137
ChangeVarNodes(expr,1,innerrel->relid,0);
138
+}
139
140
paramsel=1.0;
141
foreach (lc,joinclauses)
@@ -206,8 +209,6 @@ pathman_join_pathlist_hook(PlannerInfo *root,
206
209
required_nestloop=calc_nestloop_required_outer(outer,inner);
207
210
208
211
/*
- * Check to see if proposed path is still parameterized, and reject if the
- * parameterization wouldn't be sensible --- unless allow_star_schema_join
212
* says to allow it anyway. Also, we must reject if have_dangerous_phv
213
* doesn't like the look of it, which could only happen if the nestloop is
214
* still parameterized.