@@ -166,8 +166,7 @@ static bool check_selective_binary_conversion(RelOptInfo *baserel,
166166 List * * columns );
167167static void estimate_size (PlannerInfo * root , RelOptInfo * baserel ,
168168 FileFdwPlanState * fdw_private );
169- static void estimate_costs (PlannerInfo * root , RelOptInfo * baserel ,
170- FileFdwPlanState * fdw_private ,
169+ static void estimate_costs (RelOptInfo * baserel , FileFdwPlanState * fdw_private ,
171170 Cost * startup_cost , Cost * total_cost );
172171static int file_acquire_sample_rows (Relation onerel , int elevel ,
173172 HeapTuple * rows , int targrows ,
@@ -569,8 +568,7 @@ fileGetForeignPaths(PlannerInfo *root,
569568 (Node * ) columns , -1 ));
570569
571570 /* Estimate costs */
572- estimate_costs (root , baserel , fdw_private ,
573- & startup_cost , & total_cost );
571+ estimate_costs (baserel , fdw_private , & startup_cost , & total_cost );
574572
575573 /*
576574 * Create a ForeignPath node and add it as only possible path. We use the
@@ -1139,7 +1137,7 @@ estimate_size(PlannerInfo *root, RelOptInfo *baserel,
11391137 * Results are returned in *startup_cost and *total_cost.
11401138 */
11411139static void
1142- estimate_costs (PlannerInfo * root , RelOptInfo * baserel ,
1140+ estimate_costs (RelOptInfo * baserel ,
11431141 FileFdwPlanState * fdw_private ,
11441142 Cost * startup_cost , Cost * total_cost )
11451143{
0 commit comments