• Tom Lane's avatar
    Improve planning of Materialize nodes inserted atop the inner input of a · caf9c830
    Tom Lane authored
    mergejoin to shield it from doing mark/restore and refetches.  Put an explicit
    flag in MergePath so we can centralize the logic that knows about this,
    and add costing logic that considers using Materialize even when it's not
    forced by the previously-existing considerations.  This is in response to
    a discussion back in August that suggested that materializing an inner
    indexscan can be helpful when the refetch percentage is high enough.
    caf9c830
createplan.c 108 KB