Hi, Here is a small patch to update an comment in create_foreignscan_plan; add fdw_recheck_quals to the list of expressions that need the replace_nestloop_params processing. I should have updated the comment when I proposed the patch for the fdw_recheck_quals.
Best regards, Etsuro Fujita
*** a/src/backend/optimizer/plan/createplan.c --- b/src/backend/optimizer/plan/createplan.c *************** *** 2141,2151 **** create_foreignscan_plan(PlannerInfo *root, ForeignPath *best_path, scan_plan->fs_relids = best_path->path.parent->relids; /* ! * Replace any outer-relation variables with nestloop params in the qual ! * and fdw_exprs expressions. We do this last so that the FDW doesn't ! * have to be involved. (Note that parts of fdw_exprs could have come ! * from join clauses, so doing this beforehand on the scan_clauses ! * wouldn't work.) We assume fdw_scan_tlist contains no such variables. */ if (best_path->path.param_info) { --- 2141,2152 ---- scan_plan->fs_relids = best_path->path.parent->relids; /* ! * Replace any outer-relation variables with nestloop params in the qual, ! * fdw_exprs and fdw_recheck_quals expressions. We do this last so that ! * the FDW doesn't have to be involved. (Note that parts of fdw_exprs ! * or fdw_recheck_quals could have come from join clauses, so doing this ! * beforehand on the scan_clauses wouldn't work.) We assume ! * fdw_scan_tlist contains no such variables. */ if (best_path->path.param_info) {
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers