• Tom Lane's avatar
    Repair planning bugs caused by my misguided removal of restrictinfo link · d8733ce6
    Tom Lane authored
    fields in JoinPaths --- turns out that we do need that after all :-(.
    Also, rearrange planner so that only one RelOptInfo is created for a
    particular set of joined base relations, no matter how many different
    subsets of relations it can be created from.  This saves memory and
    processing time compared to the old method of making a bunch of RelOptInfos
    and then removing the duplicates.  Clean up the jointree iteration logic;
    not sure if it's better, but I sure find it more readable and plausible
    now, particularly for the case of 'bushy plans'.
    d8733ce6
copyfuncs.c 34.6 KB