• Robert Haas's avatar
    Pass eflags down to parallel workers. · f455e112
    Robert Haas authored
    Currently, there are no known consequences of this oversight, so no
    back-patch.  Several of the EXEC_FLAG_* constants aren't usable in
    parallel mode anyway, and potential problems related to the presence
    or absence of OIDs (see EXEC_FLAG_WITH_OIDS, EXEC_FLAG_WITHOUT_OIDS)
    seem at present to be masked by the unconditional projection step
    performed by Gather and Gather Merge.  In general, however, it seems
    important that all participants agree on the values of these flags,
    which modify executor behavior globally, and a pending patch to skip
    projection in Gather (Merge) would be outright broken in certain cases
    without this fix.
    
    Patch by me, based on investigation of a test case provided by Amit
    Kapila.  This patch was also reviewed by Amit Kapila.
    
    Discussion: http://postgr.es/m/CA+TgmoZ0ZL=cesZFq8c9NnfK6bqy-wwUd3_74iYGodYrSoQ7Fw@mail.gmail.com
    f455e112
execParallel.c 38.5 KB