• Heikki Linnakangas's avatar
    Pull up isReset flag from AllocSetContext to MemoryContext struct. This · 30e98a7e
    Heikki Linnakangas authored
    avoids the overhead of one function call when calling MemoryContextReset(),
    and it seems like the isReset optimization would be applicable to any new
    memory context we might invent in the future anyway.
    
    This buys back the overhead I just added in previous patch to always call
    MemoryContextReset() in ExecScan, even when there's no quals or projections.
    30e98a7e
memnodes.h 2.55 KB