码迷,mamicode.com
首页 > 其他好文 > 详细

postgres 9.5 FDW变化

时间:2016-04-27 00:03:31      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:

9.5主要是2个方法有变动:

create_foreignscan_path

extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
						double rows, Cost startup_cost, Cost total_cost,
						List *pathkeys,
						Relids required_outer,
						Path *fdw_outerpath,
						List *fdw_private);

 

9.4比9.5少了个Path *fdw_outerpath

extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
						double rows, Cost startup_cost, Cost total_cost,
						List *pathkeys,
						Relids required_outer,
						List *fdw_private);

 

make_foreignscan

这个函数在9.5中添加了3个参数:

extern ForeignScan *make_foreignscan(List *qptlist, List *qpqual,
				 Index scanrelid, List *fdw_exprs, List *fdw_private,
				 List *fdw_scan_tlist, List *fdw_recheck_quals,
				 Plan *outer_plan);

 

9.4中的make_foreignscan

extern ForeignScan *make_foreignscan(List *qptlist, List *qpqual,
				 Index scanrelid, List *fdw_exprs, List *fdw_private);

 

在接口fdwroutine->GetForeignPlan中需要添加一个Plan *outer_plan

 

这样就能快乐的在9.5上面玩耍fdw了

postgres 9.5 FDW变化

标签:

原文地址:http://www.cnblogs.com/sangli/p/5437148.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!