1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +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 af85779bf7
commit 5021e3dac9

View File

@ -1120,6 +1120,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 =