From 3a36d32c43c58592f81c405f648b17125ca0f6ce Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 18 Jan 2017 16:43:35 -0800 Subject: [PATCH] Mark some now unnecessarily exposed multi_planner.c functions static. --- src/backend/distributed/planner/multi_planner.c | 13 +++++++++---- src/include/distributed/multi_planner.h | 8 -------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/backend/distributed/planner/multi_planner.c b/src/backend/distributed/planner/multi_planner.c index d72f9db0c..c21665d9c 100644 --- a/src/backend/distributed/planner/multi_planner.c +++ b/src/backend/distributed/planner/multi_planner.c @@ -36,10 +36,15 @@ static List *relationRestrictionContextList = NIL; /* local function forward declarations */ static void CheckNodeIsDumpable(Node *node); - - -/* local function forward declarations */ static char * GetMultiPlanString(PlannedStmt *result); +static PlannedStmt * MultiQueryContainerNode(PlannedStmt *result, + struct MultiPlan *multiPlan); +static struct MultiPlan * CreatePhysicalPlan(Query *originalQuery, Query *query, + RelationRestrictionContext * + restrictionContext); +static RelationRestrictionContext * CreateAndPushRestrictionContext(void); +static RelationRestrictionContext * CurrentRestrictionContext(void); +static void PopRestrictionContext(void); /* Distributed planner hook */ @@ -123,7 +128,7 @@ multi_planner(Query *parse, int cursorOptions, ParamListInfo boundParams) * target shards. SELECT queries go through the full logical plan/optimize/ * physical plan process needed to produce distributed query plans. */ -MultiPlan * +static MultiPlan * CreatePhysicalPlan(Query *originalQuery, Query *query, RelationRestrictionContext *restrictionContext) { diff --git a/src/include/distributed/multi_planner.h b/src/include/distributed/multi_planner.h index 7c96b55bf..a425232fa 100644 --- a/src/include/distributed/multi_planner.h +++ b/src/include/distributed/multi_planner.h @@ -53,16 +53,8 @@ extern PlannedStmt * multi_planner(Query *parse, int cursorOptions, extern bool HasCitusToplevelNode(PlannedStmt *planStatement); struct MultiPlan; -extern struct MultiPlan * CreatePhysicalPlan(Query *originalQuery, Query *query, - RelationRestrictionContext * - restrictionContext); extern struct MultiPlan * GetMultiPlan(PlannedStmt *planStatement); -extern PlannedStmt * MultiQueryContainerNode(PlannedStmt *result, - struct MultiPlan *multiPlan); extern void multi_relation_restriction_hook(PlannerInfo *root, RelOptInfo *relOptInfo, Index index, RangeTblEntry *rte); -extern RelationRestrictionContext * CreateAndPushRestrictionContext(void); -extern RelationRestrictionContext * CurrentRestrictionContext(void); -extern void PopRestrictionContext(void); #endif /* MULTI_PLANNER_H */