@@ -147,17 +147,31 @@ pathman_join_pathlist_hook(PlannerInfo *root,
147
147
if (saved_jointype == JOIN_UNIQUE_INNER )
148
148
return ;/* No way to do this with a parameterized inner path */
149
149
150
+ #if PG_VERSION_NUM >=90603
151
+ initial_cost_nestloop (root ,& workspace ,jointype ,
152
+ outer ,inner ,/* built paths */
153
+ extra );
154
+ #else
150
155
initial_cost_nestloop (root ,& workspace ,jointype ,
151
156
outer ,inner ,/* built paths */
152
157
extra -> sjinfo ,& extra -> semifactors );
158
+ #endif
153
159
154
160
pathkeys = build_join_pathkeys (root ,joinrel ,jointype ,outer -> pathkeys );
155
161
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
156
169
nest_path = create_nestloop_path (root ,joinrel ,jointype ,& workspace ,
157
170
extra -> sjinfo ,& extra -> semifactors ,
158
171
outer ,inner ,extra -> restrictlist ,
159
172
pathkeys ,
160
173
calc_nestloop_required_outer (outer ,inner ));
174
+ #endif
161
175
162
176
/* Discard all clauses that are to be evaluated by 'inner' */
163
177
foreach (rinfo_lc ,extra -> restrictlist )