1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Fix incomplete set_foreignscan_references handling for fdw_recheck_quals

KaiGai Kohei
This commit is contained in:
Robert Haas
2015-11-18 21:17:50 -05:00
parent d3c8ac114f
commit 7907a949ab

View File

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