File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,12 @@ pathman_join_pathlist_hook(PlannerInfo *root,
130
130
}
131
131
132
132
/* Make copy of partitioning expression and fix Var's varno attributes */
133
- expr = copyObject ( inner_prel -> expr ) ;
133
+ expr = inner_prel -> expr ;
134
134
if (innerrel -> relid != 1 )
135
+ {
136
+ expr = copyObject (expr );
135
137
ChangeVarNodes (expr , 1 , innerrel -> relid , 0 );
138
+ }
136
139
137
140
paramsel = 1.0 ;
138
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
/*
209
- * Check to see if proposed path is still parameterized, and reject if the
210
- * parameterization wouldn't be sensible --- unless allow_star_schema_join
211
212
* says to allow it anyway. Also, we must reject if have_dangerous_phv
212
213
* doesn't like the look of it, which could only happen if the nestloop is
213
214
* still parameterized.
You can’t perform that action at this time.
0 commit comments