summaryrefslogtreecommitdiff
path: root/src/backend/optimizer/plan/setrefs.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-11-18 21:17:50 -0500
committerRobert Haas <rhaas@postgresql.org>2015-11-18 22:12:21 -0500
commit7907a949abf100b5a1e1def1184ba1e6fc8b9fd7 (patch)
treeda907a38e811a7e7a9024a7da3ea8bf2279b0b8d /src/backend/optimizer/plan/setrefs.c
parentd3c8ac114f1183e54315e64ef697c6588823c4dd (diff)
Fix incomplete set_foreignscan_references handling for fdw_recheck_quals
KaiGai Kohei
Diffstat (limited to 'src/backend/optimizer/plan/setrefs.c')
-rw-r--r--src/backend/optimizer/plan/setrefs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c
index 48d6e6fd783..d2232c227bc 100644
--- a/src/backend/optimizer/plan/setrefs.c
+++ b/src/backend/optimizer/plan/setrefs.c
@@ -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 =