• Andres Freund's avatar
    Introduce ExecQualAndReset() helper. · c12693d8
    Andres Freund authored
    It's a common task to evaluate a qual and reset the corresponding
    expression context. Currently that requires storing the result of the
    qual eval, resetting the context, and then reacting on the result. As
    that's awkward several places only reset the context next time through
    a node. That's not great, so introduce a helper that evaluates and
    resets.
    
    It's a bit ugly that it currently uses MemoryContextReset() instead of
    ResetExprContext(), but that seems easier than reordering all of
    executor.h.
    
    Author: Andres Freund
    Discussion: https://postgr.es/m/20180109222544.f7loxrunqh3xjl5f@alap3.anarazel.de
    c12693d8
nodeHash.c 98.4 KB