Thread: pgsql/src backend/optimizer/plan/createplan.c ...

pgsql/src backend/optimizer/plan/createplan.c ...

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.org    02/05/17 22:25:50

Modified files:
    src/backend/optimizer/plan: createplan.c initsplan.c planner.c
                                setrefs.c
    src/backend/optimizer/util: var.c
    src/include/optimizer: planmain.h var.h

Log message:
    Change set_plan_references and join_references to take an rtable List
    rather than a Query node; this allows set_plan_references to recurse
    into subplans correctly.  Fixes core dump on full outer joins in
    subplans.  Also, invoke preprocess_expression on function RTEs'
    function expressions.  This seems to fix the planner's problems with
    outer-level Vars in function RTEs.