From 28048cbaa285b8ac46940e4b39f985d9885fc698 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 14 Mar 2016 17:31:28 -0400 Subject: Allow callers of create_foreignscan_path to specify nondefault PathTarget. Although the default choice of rel->reltarget should typically be sufficient for scan or join paths, it's not at all sufficient for the purposes PathTargets were invented for; in particular not for upper-relation Paths. So break API compatibility by adding a PathTarget argument to create_foreignscan_path(). To ease updating of existing code, accept a NULL value of the argument as selecting rel->reltarget. --- contrib/file_fdw/file_fdw.c | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/file_fdw/file_fdw.c') diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index 0ac4658e84d..bc4d2d70824 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -524,6 +524,7 @@ fileGetForeignPaths(PlannerInfo *root, */ add_path(baserel, (Path *) create_foreignscan_path(root, baserel, + NULL, /* default pathtarget */ baserel->rows, startup_cost, total_cost, -- cgit v1.2.3