@@ -2141,11 +2141,12 @@ create_foreignscan_plan(PlannerInfo *root, ForeignPath *best_path,
21412141scan_plan -> fs_relids = best_path -> path .parent -> relids ;
21422142
21432143/*
2144- * Replace any outer-relation variables with nestloop params in the qual
2145- * and fdw_exprs expressions. We do this last so that the FDW doesn't
2146- * have to be involved. (Note that parts of fdw_exprs could have come
2147- * from join clauses, so doing this beforehand on the scan_clauses
2148- * wouldn't work.) We assume fdw_scan_tlist contains no such variables.
2144+ * Replace any outer-relation variables with nestloop params in the qual,
2145+ * fdw_exprs and fdw_recheck_quals expressions. We do this last so that
2146+ * the FDW doesn't have to be involved. (Note that parts of fdw_exprs
2147+ * or fdw_recheck_quals could have come from join clauses, so doing this
2148+ * beforehand on the scan_clauses wouldn't work.) We assume
2149+ * fdw_scan_tlist contains no such variables.
21492150 */
21502151if (best_path -> path .param_info )
21512152{