Amit Kapila <amit(dot)kapila(at)huawei(dot)com> writes:
> So what is the use of having PlannerInfo->planner_ctx which only contains
> CurrentMemoryContext?
It might be clearer if you read up on the memory management in GEQO
planning mode.
regards, tom lane