fix_declaration_of_postgresGetForeignPlan.patch

text/x-patch

Filename: fix_declaration_of_postgresGetForeignPlan.patch
Type: text/x-patch
Part: 0
Message: Minor code improvement to postgresGetForeignPlan

Patch

Format: unified
File+
contrib/postgres_fdw/postgres_fdw.c 1 1
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 2851869..54edf4d 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -280,7 +280,7 @@ static void postgresGetForeignPaths(PlannerInfo *root,
 						RelOptInfo *baserel,
 						Oid foreigntableid);
 static ForeignScan *postgresGetForeignPlan(PlannerInfo *root,
-					   RelOptInfo *baserel,
+					   RelOptInfo *foreignrel,
 					   Oid foreigntableid,
 					   ForeignPath *best_path,
 					   List *tlist,