• D
    Cherry-pick upstream commit eaf1b5d3 "SS_finalize_plan" · 4697811d
    Dhanashree Kashid and Jemish Patel 提交于
    This is a cherry-pick of following upstream commit:
    
    Author: Tom Lane <tgl@sss.pgh.pa.us>
    Date:   Thu Jul 10 02:14:03 2008 +0000
    
        Tighten up SS_finalize_plan's computation of valid_params to exclude Params of
        the current query level that aren't in fact output parameters of the current
        initPlans.  (This means, for example, output parameters of regular subplans.)
        To make this work correctly for output parameters coming from sibling
        initplans requires rejiggering the API of SS_finalize_plan just a bit:
        we need the siblings to be visible to it, rather than hidden as
        SS_make_initplan_from_plan had been doing.  This is really part of my response
        to bug #4290, but I concluded this part probably shouldn't be back-patched,
        since all that it's doing is to make a debugging cross-check tighter.
    
        (cherry picked from commit eaf1b5d3)
    4697811d
planner.c 112.4 KB