• Tom Lane's avatar
    Give pull_var_clause() reject/recurse/return behavior for WindowFuncs too. · c82c92b1
    Tom Lane authored
    All along, this function should have treated WindowFuncs in a manner
    similar to Aggrefs, ie with an option whether or not to recurse into them.
    By not considering the case, it was always recursing, which is OK for most
    callers (although I suspect that the case in prepare_sort_from_pathkeys
    might represent a bug).  But now we need return-without-recursing behavior
    as well.  There are also more than a few callers that should never see a
    WindowFunc, and now we'll get some error checking on that.
    c82c92b1
equivclass.c 74.3 KB