• Tom Lane's avatar
    Fix GEQO to work again in CVS tip, by being more careful about memory · 9f76d0d9
    Tom Lane authored
    allocation in best_inner_indexscan().  While at it, simplify GEQO's
    interface to the main planner --- make_join_rel() offers exactly the
    API it really wants, whereas calling make_rels_by_clause_joins() and
    make_rels_by_clauseless_joins() required jumping through hoops.
    Rewrite gimme_tree for clarity (sometimes iteration is much better than
    recursion), and approximately halve GEQO's runtime by recognizing that
    tours of the forms (a,b,c,d,...) and (b,a,c,d,...) are equivalent
    because of symmetry in make_join_rel().
    9f76d0d9
indxpath.c 66.9 KB