mirror of https://github.com/citusdata/citus.git
Initialize fast planner restriction context (#4349)
We initialize fast planner restriction context so that code paths that rely on this being not NULL will operate without a problem.pull/4342/head
parent
7539454ccb
commit
83020f444e
|
@ -1808,6 +1808,8 @@ FilterPlannerRestrictionForQuery(PlannerRestrictionContext *plannerRestrictionCo
|
|||
/* allocate the filtered planner restriction context and set all the fields */
|
||||
PlannerRestrictionContext *filteredPlannerRestrictionContext = palloc0(
|
||||
sizeof(PlannerRestrictionContext));
|
||||
filteredPlannerRestrictionContext->fastPathRestrictionContext =
|
||||
palloc0(sizeof(FastPathRestrictionContext));
|
||||
|
||||
filteredPlannerRestrictionContext->memoryContext =
|
||||
plannerRestrictionContext->memoryContext;
|
||||
|
|
Loading…
Reference in New Issue