Skip to content

Commit 783af65

Browse files
author
hackorum
committed
Apply estimation.diff
1 parent b597835 commit 783af65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/postgres_fdw/postgres_fdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3408,8 +3408,8 @@ estimate_path_cost_size(PlannerInfo *root,
34083408
*/
34093409
run_cost = fpinfo_i->rel_total_cost - fpinfo_i->rel_startup_cost;
34103410
run_cost += fpinfo_o->rel_total_cost - fpinfo_o->rel_startup_cost;
3411-
run_cost += nrows * join_cost.per_tuple;
34123411
nrows = clamp_row_est(nrows * fpinfo->joinclause_sel);
3412+
run_cost += nrows * join_cost.per_tuple;
34133413
run_cost += nrows * remote_conds_cost.per_tuple;
34143414
run_cost += fpinfo->local_conds_cost.per_tuple * retrieved_rows;
34153415

0 commit comments

Comments
 (0)