#include "postgres.h"
#include "nodes/nodeFuncs.h"
#include "nodes/plannodes.h"
#include "optimizer/paramassign.h"
#include "optimizer/placeholder.h"
#include "rewrite/rewriteManip.h"
Go to the source code of this file.
Definition at line 150 of file paramassign.c.
References Assert(), copyObject, exprType(), if(), IncrementVarSublevelsUp(), IsA, PlannerParamItem::item, lappend(), lappend_oid(), lfirst, list_length(), makeNode, PlannerParamItem::paramId, PlaceHolderVar::phid, PlaceHolderVar::phlevelsup, and root.
Referenced by replace_outer_placeholdervar().
Definition at line 66 of file paramassign.c.
References bms_equal(), copyObject, if(), IsA, PlannerParamItem::item, lappend(), lappend_oid(), lfirst, list_length(), makeNode, PlannerParamItem::paramId, root, Var::varattno, Var::varlevelsup, Var::varno, and Var::varreturningtype.
Referenced by replace_outer_var().
Definition at line 754 of file paramassign.c.
References InvalidOid, lappend_oid(), list_length(), and root.
Referenced by create_gather_merge_plan(), create_gather_plan(), grouping_planner(), SS_process_ctes(), and subquery_planner().
Definition at line 727 of file paramassign.c.
References lappend_oid(), list_length(), Param::location, makeNode, PARAM_EXEC, Param::paramcollid, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, and root.
Referenced by build_subplan(), convert_EXISTS_to_ANY(), generate_subquery_params(), replace_nestloop_param_placeholdervar(), replace_nestloop_param_var(), and SS_make_initplan_output_param().
Definition at line 622 of file paramassign.c.
References bms_intersect(), bms_is_member(), bms_is_subset(), bms_overlap(), bms_union(), copyObject, find_placeholder_info(), foreach_delete_current, get_placeholder_nulling_relids(), IsA, lappend(), lfirst, NIL, NestLoopParam::paramval, PlaceHolderVar::phnullingrels, root, and Var::varno.
Referenced by create_nestloop_plan().
Definition at line 527 of file paramassign.c.
References Assert(), bms_is_member(), bms_is_subset(), copyObject, elog, equal(), ERROR, find_placeholder_info(), if(), IsA, PlannerParamItem::item, lappend(), lfirst, lfirst_node, makeNode, PlannerParamItem::paramId, root, and Var::varno.
Referenced by create_subqueryscan_plan().
Definition at line 463 of file paramassign.c.
References copyObject, equal(), exprCollation(), exprType(), exprTypmod(), generate_new_exec_param(), lappend(), lfirst, Param::location, makeNode, PARAM_EXEC, Param::paramcollid, Param::paramid, Param::paramkind, NestLoopParam::paramno, Param::paramtype, Param::paramtypmod, NestLoopParam::paramval, and root.
Referenced by replace_nestloop_params_mutator().
Definition at line 414 of file paramassign.c.
References copyObject, equal(), generate_new_exec_param(), lappend(), lfirst, Var::location, Param::location, makeNode, PARAM_EXEC, Param::paramcollid, Param::paramid, Param::paramkind, NestLoopParam::paramno, Param::paramtype, Param::paramtypmod, NestLoopParam::paramval, and root.
Referenced by replace_nestloop_params_mutator().
Definition at line 225 of file paramassign.c.
References Assert(), copyObject, IncrementVarSublevelsUp(), PlannerParamItem::item, lappend(), lappend_oid(), list_length(), Param::location, Aggref::location, makeNode, PARAM_EXEC, Param::paramcollid, PlannerParamItem::paramId, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, and root.
Referenced by replace_correlation_vars_mutator().
Definition at line 271 of file paramassign.c.
References GroupingFunc::agglevelsup, Assert(), copyObject, exprType(), IncrementVarSublevelsUp(), InvalidOid, PlannerParamItem::item, lappend(), lappend_oid(), list_length(), Param::location, GroupingFunc::location, makeNode, PARAM_EXEC, Param::paramcollid, PlannerParamItem::paramId, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, and root.
Referenced by replace_correlation_vars_mutator().
Definition at line 318 of file paramassign.c.
References Assert(), CMD_MERGE, copyObject, elog, ERROR, exprType(), InvalidOid, PlannerParamItem::item, lappend(), lappend_oid(), list_length(), Param::location, MergeSupportFunc::location, makeNode, PARAM_EXEC, Param::paramcollid, PlannerParamItem::paramId, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, and root.
Referenced by replace_correlation_vars_mutator().
Definition at line 198 of file paramassign.c.
References Assert(), assign_param_for_placeholdervar(), exprCollation(), exprType(), exprTypmod(), i, Param::location, makeNode, PARAM_EXEC, Param::paramcollid, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, PlaceHolderVar::phlevelsup, and root.
Referenced by replace_correlation_vars_mutator().
Definition at line 368 of file paramassign.c.
References Assert(), copyObject, exprCollation(), exprLocation(), exprType(), exprTypmod(), IncrementVarSublevelsUp(), PlannerParamItem::item, lappend(), lappend_oid(), list_length(), Param::location, makeNode, PARAM_EXEC, Param::paramcollid, PlannerParamItem::paramId, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, ReturningExpr::retexpr, ReturningExpr::retlevelsup, and root.
Referenced by replace_correlation_vars_mutator().
Definition at line 121 of file paramassign.c.
References Assert(), assign_param_for_var(), i, Var::location, Param::location, makeNode, PARAM_EXEC, Param::paramcollid, Param::paramid, Param::paramkind, Param::paramtype, Param::paramtypmod, root, and Var::varlevelsup.
Referenced by replace_correlation_vars_mutator().