mirror of https://github.com/citusdata/citus.git
Mark some now unnecessarily exposed multi_planner.c functions static.
parent
608bed0387
commit
3a36d32c43
|
@ -36,10 +36,15 @@ static List *relationRestrictionContextList = NIL;
|
||||||
|
|
||||||
/* local function forward declarations */
|
/* local function forward declarations */
|
||||||
static void CheckNodeIsDumpable(Node *node);
|
static void CheckNodeIsDumpable(Node *node);
|
||||||
|
|
||||||
|
|
||||||
/* local function forward declarations */
|
|
||||||
static char * GetMultiPlanString(PlannedStmt *result);
|
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 */
|
/* 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/
|
* target shards. SELECT queries go through the full logical plan/optimize/
|
||||||
* physical plan process needed to produce distributed query plans.
|
* physical plan process needed to produce distributed query plans.
|
||||||
*/
|
*/
|
||||||
MultiPlan *
|
static MultiPlan *
|
||||||
CreatePhysicalPlan(Query *originalQuery, Query *query,
|
CreatePhysicalPlan(Query *originalQuery, Query *query,
|
||||||
RelationRestrictionContext *restrictionContext)
|
RelationRestrictionContext *restrictionContext)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,16 +53,8 @@ extern PlannedStmt * multi_planner(Query *parse, int cursorOptions,
|
||||||
|
|
||||||
extern bool HasCitusToplevelNode(PlannedStmt *planStatement);
|
extern bool HasCitusToplevelNode(PlannedStmt *planStatement);
|
||||||
struct MultiPlan;
|
struct MultiPlan;
|
||||||
extern struct MultiPlan * CreatePhysicalPlan(Query *originalQuery, Query *query,
|
|
||||||
RelationRestrictionContext *
|
|
||||||
restrictionContext);
|
|
||||||
extern struct MultiPlan * GetMultiPlan(PlannedStmt *planStatement);
|
extern struct MultiPlan * GetMultiPlan(PlannedStmt *planStatement);
|
||||||
extern PlannedStmt * MultiQueryContainerNode(PlannedStmt *result,
|
|
||||||
struct MultiPlan *multiPlan);
|
|
||||||
extern void multi_relation_restriction_hook(PlannerInfo *root, RelOptInfo *relOptInfo,
|
extern void multi_relation_restriction_hook(PlannerInfo *root, RelOptInfo *relOptInfo,
|
||||||
Index index, RangeTblEntry *rte);
|
Index index, RangeTblEntry *rte);
|
||||||
extern RelationRestrictionContext * CreateAndPushRestrictionContext(void);
|
|
||||||
extern RelationRestrictionContext * CurrentRestrictionContext(void);
|
|
||||||
extern void PopRestrictionContext(void);
|
|
||||||
|
|
||||||
#endif /* MULTI_PLANNER_H */
|
#endif /* MULTI_PLANNER_H */
|
||||||
|
|
Loading…
Reference in New Issue