<div class="WordSection1"><p class="MsoNormal">PlannerInfo->planner_ctx is assigned with either MessageContext or
PortalHeapMemorydepending on the flow from which planner is invoked.<p class="MsoNormal">My doubt is that during whole
planningprocess till the Plan is stored in PlannedStmt, all the memory is from CurrentMemoryContext which is same as
PlannerInfo->planner_ctx.<pclass="MsoNormal"> <p class="MsoNormal">So what is the use of having
PlannerInfo->planner_ctxwhich only contains CurrentMemoryContext?<p class="MsoNormal"> </div>