@@ -147,17 +147,31 @@ pathman_join_pathlist_hook(PlannerInfo *root,
147147 if (saved_jointype == JOIN_UNIQUE_INNER )
148148 return ; /* No way to do this with a parameterized inner path */
149149
150+ #if PG_VERSION_NUM >= 90603
151+ initial_cost_nestloop (root , & workspace , jointype ,
152+ outer , inner , /* built paths */
153+ extra );
154+ #else
150155 initial_cost_nestloop (root , & workspace , jointype ,
151156 outer , inner , /* built paths */
152157 extra -> sjinfo , & extra -> semifactors );
158+ #endif
153159
154160 pathkeys = build_join_pathkeys (root , joinrel , jointype , outer -> pathkeys );
155161
162+ #if PG_VERSION_NUM >= 90603
163+ nest_path = create_nestloop_path (root , joinrel , jointype , & workspace ,
164+ extra , outer , inner ,
165+ extra -> restrictlist ,
166+ pathkeys ,
167+ calc_nestloop_required_outer (outer , inner ));
168+ #else
156169 nest_path = create_nestloop_path (root , joinrel , jointype , & workspace ,
157170 extra -> sjinfo , & extra -> semifactors ,
158171 outer , inner , extra -> restrictlist ,
159172 pathkeys ,
160173 calc_nestloop_required_outer (outer , inner ));
174+ #endif
161175
162176 /* Discard all clauses that are to be evaluated by 'inner' */
163177 foreach (rinfo_lc , extra -> restrictlist )
0 commit comments