mirror of https://github.com/citusdata/citus.git
add queryString to distributed_planner
distributed_planner now takes query string as a parameter. related commit on PG side: 6aba63ef3e606db71beb596210dd95fa73c44ce2pull/3900/head
parent
1a7ccac6ef
commit
9f1ec792b3
|
@ -127,7 +127,12 @@ static PlannedStmt * PlanDistributedStmt(DistributedPlanningContext *planContext
|
|||
|
||||
/* Distributed planner hook */
|
||||
PlannedStmt *
|
||||
distributed_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
|
||||
distributed_planner(Query *parse,
|
||||
#if PG_VERSION_NUM >= PG_VERSION_13
|
||||
const char *query_string,
|
||||
#endif
|
||||
int cursorOptions,
|
||||
ParamListInfo boundParams)
|
||||
{
|
||||
bool needsDistributedPlanning = false;
|
||||
bool fastPathRouterQuery = false;
|
||||
|
|
|
@ -183,8 +183,13 @@ typedef struct CitusCustomScanPath
|
|||
} CitusCustomScanPath;
|
||||
|
||||
|
||||
extern PlannedStmt * distributed_planner(Query *parse, int cursorOptions,
|
||||
ParamListInfo boundParams);
|
||||
extern PlannedStmt * distributed_planner(
|
||||
Query *parse,
|
||||
#if PG_VERSION_NUM >= PG_VERSION_13
|
||||
const char *query_string,
|
||||
#endif
|
||||
int cursorOptions,
|
||||
ParamListInfo boundParams);
|
||||
extern List * ExtractRangeTableEntryList(Query *query);
|
||||
extern List * ExtractReferenceTableRTEList(List *rteList);
|
||||
extern bool NeedsDistributedPlanning(Query *query);
|
||||
|
|
Loading…
Reference in New Issue