]> granicus.if.org Git - postgresql/commitdiff
Fix incomplete set_foreignscan_references handling for fdw_recheck_quals
authorRobert Haas <rhaas@postgresql.org>
Thu, 19 Nov 2015 02:17:50 +0000 (21:17 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 19 Nov 2015 03:12:21 +0000 (22:12 -0500)
KaiGai Kohei

src/backend/optimizer/plan/setrefs.c

index 48d6e6fd78386a3701b8ba84d32c4e022d25b409..d2232c227bcfddf8d987421d9a2ac0fff6e8da54 100644 (file)
@@ -1129,6 +1129,12 @@ set_foreignscan_references(PlannerInfo *root,
                                                   itlist,
                                                   INDEX_VAR,
                                                   rtoffset);
+               fscan->fdw_recheck_quals = (List *)
+                       fix_upper_expr(root,
+                                                  (Node *) fscan->fdw_recheck_quals,
+                                                  itlist,
+                                                  INDEX_VAR,
+                                                  rtoffset);
                pfree(itlist);
                /* fdw_scan_tlist itself just needs fix_scan_list() adjustments */
                fscan->fdw_scan_tlist =