@@ -147,17 +147,31 @@ pathman_join_pathlist_hook(PlannerInfo *root,
147147if (saved_jointype == JOIN_UNIQUE_INNER )
148148return ;/* 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
150155initial_cost_nestloop (root ,& workspace ,jointype ,
151156outer ,inner ,/* built paths */
152157extra -> sjinfo ,& extra -> semifactors );
158+ #endif
153159
154160pathkeys = 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
156169nest_path = create_nestloop_path (root ,joinrel ,jointype ,& workspace ,
157170extra -> sjinfo ,& extra -> semifactors ,
158171outer ,inner ,extra -> restrictlist ,
159172pathkeys ,
160173calc_nestloop_required_outer (outer ,inner ));
174+ #endif
161175
162176/* Discard all clauses that are to be evaluated by 'inner' */
163177foreach (rinfo_lc ,extra -> restrictlist )