• Tom Lane's avatar
    Refactor ExecProject and associated routines so that fast-path code is used · 85369f88
    Tom Lane authored
    for simple Var targetlist entries all the time, even when there are other
    entries that are not simple Vars.  Also, ensure that we prefetch attributes
    (with slot_getsomeattrs) for all Vars in the targetlist, even those buried
    within expressions.  In combination these changes seem to significantly
    reduce the runtime for cases where tlists are mostly but not exclusively
    Vars.  Per my proposal of yesterday.
    85369f88
execUtils.c 34.2 KB