• Robert Haas's avatar
    Ensure gatherstate->nextreader is properly initialized. · 53c7cff7
    Robert Haas authored
    The previously code worked OK as long as a Gather node was never
    rescanned, or if it was rescanned, as long as it got at least as
    many workers on rescan as it had originally.  But if the number
    of workers ever decreased on a rescan, then it could crash.
    
    Andreas Seltenreich
    53c7cff7
nodeGather.c 13.4 KB