• Tom Lane's avatar
    Rethink representation of PathTargets. · 307c7885
    Tom Lane authored
    In commit 19a54114 I did not make PathTarget a subtype of Node,
    and embedded a RelOptInfo's reltarget directly into it rather than having
    a separately-allocated Node.  In hindsight that was misguided
    micro-optimization, enabled by the fact that at that point we didn't have
    any Paths with custom PathTargets.  Now that PathTarget processing has
    been fleshed out some more, it's easier to see that it's better to have
    PathTarget as an indepedent Node type, even if it does cost us one more
    palloc to create a RelOptInfo.  So change it while we still can.
    
    This commit just changes the representation, without doing anything more
    interesting than that.
    307c7885
postgres_fdw.c 117 KB