• Robert Haas's avatar
    Try again to fix the way the scanjoin_target is used with partial paths. · 54f5c515
    Robert Haas authored
    Commit 04ae11f6 removed some broken
    code to apply the scan/join target to partial paths, but its theory
    that this processing step is totally unnecessary turns out to be wrong.
    Put similar code back again, but this time, check for parallel-safety
    and avoid in-place modifications to paths that may already have been
    used as part of some other path.
    
    (This is not an entirely elegant solution to this problem; it might
    be better, for example, to postpone generate_gather_paths for the
    topmost scan/join rel until after the scan/join target has been
    applied.  But this is not the time for such redesign work.)
    
    Amit Kapila and Robert Haas
    54f5c515
select_parallel.sql 1.52 KB