• Tom Lane's avatar
    Dept of better ideas: refrain from creating the planner's placeholder_list · 31468d05
    Tom Lane authored
    until vars are distributed to rels during query_planner() startup.  We don't
    really need it before that, and not building it early has some advantages.
    First, we don't need to put it through the various preprocessing steps, which
    saves some cycles and eliminates the need for a number of routines to support
    PlaceHolderInfo nodes at all.  Second, this means one less unused plan for any
    sub-SELECT appearing in a placeholder's expression, since we don't build
    placeholder_list until after sublink expansion is complete.
    31468d05
placeholder.c 6.86 KB