PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
nodes.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Node
 

Macros

#define nodeTag(nodeptr)   (((const Node*)(nodeptr))->type)
 
#define newNode(size, tag)
 
#define makeNode(_type_)   ((_type_ *) newNode(sizeof(_type_),T_##_type_))
 
#define NodeSetTag(nodeptr, t)   (((Node*)(nodeptr))->type = (t))
 
#define IsA(nodeptr, _type_)   (nodeTag(nodeptr) == T_##_type_)
 
#define castNode(_type_, nodeptr)   ((_type_ *) (nodeptr))
 
#define IS_OUTER_JOIN(jointype)
 
#define AGGSPLITOP_COMBINE   0x01 /* substitute combinefn for transfn */
 
#define AGGSPLITOP_SKIPFINAL   0x02 /* skip finalfn, return state as-is */
 
#define AGGSPLITOP_SERIALIZE   0x04 /* apply serializefn to output */
 
#define AGGSPLITOP_DESERIALIZE   0x08 /* apply deserializefn to input */
 
#define DO_AGGSPLIT_COMBINE(as)   (((as) & AGGSPLITOP_COMBINE) != 0)
 
#define DO_AGGSPLIT_SKIPFINAL(as)   (((as) & AGGSPLITOP_SKIPFINAL) != 0)
 
#define DO_AGGSPLIT_SERIALIZE(as)   (((as) & AGGSPLITOP_SERIALIZE) != 0)
 
#define DO_AGGSPLIT_DESERIALIZE(as)   (((as) & AGGSPLITOP_DESERIALIZE) != 0)
 

Typedefs

typedef enum NodeTag NodeTag
 
typedef struct Node Node
 
typedef double Selectivity
 
typedef double Cost
 
typedef enum CmdType CmdType
 
typedef enum JoinType JoinType
 
typedef enum AggStrategy AggStrategy
 
typedef enum AggSplit AggSplit
 
typedef enum SetOpCmd SetOpCmd
 
typedef enum SetOpStrategy SetOpStrategy
 
typedef enum OnConflictAction OnConflictAction
 

Enumerations

enum  NodeTag {
  T_Invalid = 0, T_IndexInfo, T_ExprContext, T_ProjectionInfo,
  T_JunkFilter, T_ResultRelInfo, T_EState, T_TupleTableSlot,
  T_Plan, T_Result, T_ProjectSet, T_ModifyTable,
  T_Append, T_MergeAppend, T_RecursiveUnion, T_BitmapAnd,
  T_BitmapOr, T_Scan, T_SeqScan, T_SampleScan,
  T_IndexScan, T_IndexOnlyScan, T_BitmapIndexScan, T_BitmapHeapScan,
  T_TidScan, T_SubqueryScan, T_FunctionScan, T_ValuesScan,
  T_CteScan, T_WorkTableScan, T_ForeignScan, T_CustomScan,
  T_Join, T_NestLoop, T_MergeJoin, T_HashJoin,
  T_Material, T_Sort, T_Group, T_Agg,
  T_WindowAgg, T_Unique, T_Gather, T_Hash,
  T_SetOp, T_LockRows, T_Limit, T_NestLoopParam,
  T_PlanRowMark, T_PlanInvalItem, T_PlanState, T_ResultState,
  T_ProjectSetState, T_ModifyTableState, T_AppendState, T_MergeAppendState,
  T_RecursiveUnionState, T_BitmapAndState, T_BitmapOrState, T_ScanState,
  T_SeqScanState, T_SampleScanState, T_IndexScanState, T_IndexOnlyScanState,
  T_BitmapIndexScanState, T_BitmapHeapScanState, T_TidScanState, T_SubqueryScanState,
  T_FunctionScanState, T_ValuesScanState, T_CteScanState, T_WorkTableScanState,
  T_ForeignScanState, T_CustomScanState, T_JoinState, T_NestLoopState,
  T_MergeJoinState, T_HashJoinState, T_MaterialState, T_SortState,
  T_GroupState, T_AggState, T_WindowAggState, T_UniqueState,
  T_GatherState, T_HashState, T_SetOpState, T_LockRowsState,
  T_LimitState, T_Alias, T_RangeVar, T_Expr,
  T_Var, T_Const, T_Param, T_Aggref,
  T_GroupingFunc, T_WindowFunc, T_ArrayRef, T_FuncExpr,
  T_NamedArgExpr, T_OpExpr, T_DistinctExpr, T_NullIfExpr,
  T_ScalarArrayOpExpr, T_BoolExpr, T_SubLink, T_SubPlan,
  T_AlternativeSubPlan, T_FieldSelect, T_FieldStore, T_RelabelType,
  T_CoerceViaIO, T_ArrayCoerceExpr, T_ConvertRowtypeExpr, T_CollateExpr,
  T_CaseExpr, T_CaseWhen, T_CaseTestExpr, T_ArrayExpr,
  T_RowExpr, T_RowCompareExpr, T_CoalesceExpr, T_MinMaxExpr,
  T_SQLValueFunction, T_XmlExpr, T_NullTest, T_BooleanTest,
  T_CoerceToDomain, T_CoerceToDomainValue, T_SetToDefault, T_CurrentOfExpr,
  T_InferenceElem, T_TargetEntry, T_RangeTblRef, T_JoinExpr,
  T_FromExpr, T_OnConflictExpr, T_IntoClause, T_ExprState,
  T_GenericExprState, T_WholeRowVarExprState, T_AggrefExprState, T_GroupingFuncExprState,
  T_WindowFuncExprState, T_ArrayRefExprState, T_FuncExprState, T_ScalarArrayOpExprState,
  T_BoolExprState, T_SubPlanState, T_AlternativeSubPlanState, T_FieldSelectState,
  T_FieldStoreState, T_CoerceViaIOState, T_ArrayCoerceExprState, T_ConvertRowtypeExprState,
  T_CaseExprState, T_CaseWhenState, T_ArrayExprState, T_RowExprState,
  T_RowCompareExprState, T_CoalesceExprState, T_MinMaxExprState, T_XmlExprState,
  T_NullTestState, T_CoerceToDomainState, T_DomainConstraintState, T_PlannerInfo,
  T_PlannerGlobal, T_RelOptInfo, T_IndexOptInfo, T_ForeignKeyOptInfo,
  T_ParamPathInfo, T_Path, T_IndexPath, T_BitmapHeapPath,
  T_BitmapAndPath, T_BitmapOrPath, T_TidPath, T_SubqueryScanPath,
  T_ForeignPath, T_CustomPath, T_NestPath, T_MergePath,
  T_HashPath, T_AppendPath, T_MergeAppendPath, T_ResultPath,
  T_MaterialPath, T_UniquePath, T_GatherPath, T_ProjectionPath,
  T_ProjectSetPath, T_SortPath, T_GroupPath, T_UpperUniquePath,
  T_AggPath, T_GroupingSetsPath, T_MinMaxAggPath, T_WindowAggPath,
  T_SetOpPath, T_RecursiveUnionPath, T_LockRowsPath, T_ModifyTablePath,
  T_LimitPath, T_EquivalenceClass, T_EquivalenceMember, T_PathKey,
  T_PathTarget, T_RestrictInfo, T_PlaceHolderVar, T_SpecialJoinInfo,
  T_AppendRelInfo, T_PlaceHolderInfo, T_MinMaxAggInfo, T_PlannerParamItem,
  T_MemoryContext, T_AllocSetContext, T_Value, T_Integer,
  T_Float, T_String, T_BitString, T_Null,
  T_List, T_IntList, T_OidList, T_ExtensibleNode,
  T_RawStmt, T_Query, T_PlannedStmt, T_InsertStmt,
  T_DeleteStmt, T_UpdateStmt, T_SelectStmt, T_AlterTableStmt,
  T_AlterTableCmd, T_AlterDomainStmt, T_SetOperationStmt, T_GrantStmt,
  T_GrantRoleStmt, T_AlterDefaultPrivilegesStmt, T_ClosePortalStmt, T_ClusterStmt,
  T_CopyStmt, T_CreateStmt, T_DefineStmt, T_DropStmt,
  T_TruncateStmt, T_CommentStmt, T_FetchStmt, T_IndexStmt,
  T_CreateFunctionStmt, T_AlterFunctionStmt, T_DoStmt, T_RenameStmt,
  T_RuleStmt, T_NotifyStmt, T_ListenStmt, T_UnlistenStmt,
  T_TransactionStmt, T_ViewStmt, T_LoadStmt, T_CreateDomainStmt,
  T_CreatedbStmt, T_DropdbStmt, T_VacuumStmt, T_ExplainStmt,
  T_CreateTableAsStmt, T_CreateSeqStmt, T_AlterSeqStmt, T_VariableSetStmt,
  T_VariableShowStmt, T_DiscardStmt, T_CreateTrigStmt, T_CreatePLangStmt,
  T_CreateRoleStmt, T_AlterRoleStmt, T_DropRoleStmt, T_LockStmt,
  T_ConstraintsSetStmt, T_ReindexStmt, T_CheckPointStmt, T_CreateSchemaStmt,
  T_AlterDatabaseStmt, T_AlterDatabaseSetStmt, T_AlterRoleSetStmt, T_CreateConversionStmt,
  T_CreateCastStmt, T_CreateOpClassStmt, T_CreateOpFamilyStmt, T_AlterOpFamilyStmt,
  T_PrepareStmt, T_ExecuteStmt, T_DeallocateStmt, T_DeclareCursorStmt,
  T_CreateTableSpaceStmt, T_DropTableSpaceStmt, T_AlterObjectDependsStmt, T_AlterObjectSchemaStmt,
  T_AlterOwnerStmt, T_AlterOperatorStmt, T_DropOwnedStmt, T_ReassignOwnedStmt,
  T_CompositeTypeStmt, T_CreateEnumStmt, T_CreateRangeStmt, T_AlterEnumStmt,
  T_AlterTSDictionaryStmt, T_AlterTSConfigurationStmt, T_CreateFdwStmt, T_AlterFdwStmt,
  T_CreateForeignServerStmt, T_AlterForeignServerStmt, T_CreateUserMappingStmt, T_AlterUserMappingStmt,
  T_DropUserMappingStmt, T_AlterTableSpaceOptionsStmt, T_AlterTableMoveAllStmt, T_SecLabelStmt,
  T_CreateForeignTableStmt, T_ImportForeignSchemaStmt, T_CreateExtensionStmt, T_AlterExtensionStmt,
  T_AlterExtensionContentsStmt, T_CreateEventTrigStmt, T_AlterEventTrigStmt, T_RefreshMatViewStmt,
  T_ReplicaIdentityStmt, T_AlterSystemStmt, T_CreatePolicyStmt, T_AlterPolicyStmt,
  T_CreateTransformStmt, T_CreateAmStmt, T_PartitionCmd, T_CreatePublicationStmt,
  T_AlterPublicationStmt, T_CreateSubscriptionStmt, T_AlterSubscriptionStmt, T_DropSubscriptionStmt,
  T_A_Expr, T_ColumnRef, T_ParamRef, T_A_Const,
  T_FuncCall, T_A_Star, T_A_Indices, T_A_Indirection,
  T_A_ArrayExpr, T_ResTarget, T_MultiAssignRef, T_TypeCast,
  T_CollateClause, T_SortBy, T_WindowDef, T_RangeSubselect,
  T_RangeFunction, T_RangeTableSample, T_TypeName, T_ColumnDef,
  T_IndexElem, T_Constraint, T_DefElem, T_RangeTblEntry,
  T_RangeTblFunction, T_TableSampleClause, T_WithCheckOption, T_SortGroupClause,
  T_GroupingSet, T_WindowClause, T_FuncWithArgs, T_AccessPriv,
  T_CreateOpClassItem, T_TableLikeClause, T_FunctionParameter, T_LockingClause,
  T_RowMarkClause, T_XmlSerialize, T_WithClause, T_InferClause,
  T_OnConflictClause, T_CommonTableExpr, T_RoleSpec, T_TriggerTransition,
  T_PartitionElem, T_PartitionSpec, T_PartitionBoundSpec, T_PartitionRangeDatum,
  T_IdentifySystemCmd, T_BaseBackupCmd, T_CreateReplicationSlotCmd, T_DropReplicationSlotCmd,
  T_StartReplicationCmd, T_TimeLineHistoryCmd, T_TriggerData, T_EventTriggerData,
  T_ReturnSetInfo, T_WindowObjectData, T_TIDBitmap, T_InlineCodeBlock,
  T_FdwRoutine, T_IndexAmRoutine, T_TsmRoutine, T_ForeignKeyCacheInfo
}
 
enum  CmdType {
  CMD_UNKNOWN, CMD_SELECT, CMD_UPDATE, CMD_INSERT,
  CMD_DELETE, CMD_UTILITY, CMD_NOTHING
}
 
enum  JoinType {
  JOIN_INNER, JOIN_LEFT, JOIN_FULL, JOIN_RIGHT,
  JOIN_SEMI, JOIN_ANTI, JOIN_UNIQUE_OUTER, JOIN_UNIQUE_INNER
}
 
enum  AggStrategy { AGG_PLAIN, AGG_SORTED, AGG_HASHED }
 
enum  AggSplit { AGGSPLIT_SIMPLE = 0, AGGSPLIT_INITIAL_SERIAL = AGGSPLITOP_SKIPFINAL | AGGSPLITOP_SERIALIZE, AGGSPLIT_FINAL_DESERIAL = AGGSPLITOP_COMBINE | AGGSPLITOP_DESERIALIZE }
 
enum  SetOpCmd { SETOPCMD_INTERSECT, SETOPCMD_INTERSECT_ALL, SETOPCMD_EXCEPT, SETOPCMD_EXCEPT_ALL }
 
enum  SetOpStrategy { SETOP_SORTED, SETOP_HASHED }
 
enum  OnConflictAction { ONCONFLICT_NONE, ONCONFLICT_NOTHING, ONCONFLICT_UPDATE }
 

Functions

void outNode (struct StringInfoData *str, const void *obj)
 
void outToken (struct StringInfoData *str, const char *s)
 
void outBitmapset (struct StringInfoData *str, const struct Bitmapset *bms)
 
void outDatum (struct StringInfoData *str, uintptr_t value, int typlen, bool typbyval)
 
char * nodeToString (const void *obj)
 
char * bmsToString (const struct Bitmapset *bms)
 
void * stringToNode (char *str)
 
struct BitmapsetreadBitmapset (void)
 
uintptr_t readDatum (bool typbyval)
 
boolreadBoolCols (int numCols)
 
int * readIntCols (int numCols)
 
OidreadOidCols (int numCols)
 
int16readAttrNumberCols (int numCols)
 
void * copyObject (const void *obj)
 
bool equal (const void *a, const void *b)
 

Variables

PGDLLIMPORT NodenewNodeMacroHolder
 

Macro Definition Documentation

#define AGGSPLITOP_COMBINE   0x01 /* substitute combinefn for transfn */

Definition at line 742 of file nodes.h.

#define AGGSPLITOP_DESERIALIZE   0x08 /* apply deserializefn to input */

Definition at line 745 of file nodes.h.

#define AGGSPLITOP_SERIALIZE   0x04 /* apply serializefn to output */

Definition at line 744 of file nodes.h.

#define AGGSPLITOP_SKIPFINAL   0x02 /* skip finalfn, return state as-is */

Definition at line 743 of file nodes.h.

#define castNode (   _type_,
  nodeptr 
)    ((_type_ *) (nodeptr))

Definition at line 577 of file nodes.h.

Referenced by _SPI_execute_plan(), _SPI_prepare_oneshot_plan(), _SPI_prepare_plan(), AcquireExecutorLocks(), AcquirePlannerLocks(), adjust_view_column_set(), AlterOpFamilyAdd(), AlterOpFamilyDrop(), assign_aggregate_collations(), assign_collations_walker(), assign_ordered_set_collations(), ATExecAlterConstraint(), ATExecSetOptions(), ATPostAlterTypeParse(), AtSubAbort_Notify(), AtSubCommit_Notify(), BeginCopy(), BuildCachedPlan(), cached_plan_cost(), calc_joinrel_size_estimate(), check_sql_fn_retval(), compute_index_stats(), compute_semi_anti_join_factors(), conversion_error_callback(), cost_windowagg(), create_bitmap_scan_plan(), create_bitmap_subplan(), create_customscan_plan(), create_indexscan_plan(), create_mergejoin_plan(), create_one_window_path(), create_scan_plan(), CreateFunction(), CreateTrigger(), deconstruct_indexquals(), DefineAggregate(), DefineCollation(), DefineOpClass(), DefineQueryRewrite(), DefineView(), deparseExplicitTargetList(), errdetail_execute(), eval_const_expressions_mutator(), exec_parse_message(), exec_simple_query(), exec_simple_recheck_plan(), exec_stmt_execsql(), ExecAlternativeSubPlan(), ExecCleanTargetListLength(), ExecCreateTableAs(), ExecInitAgg(), ExecInitCteScan(), ExecInitCustomScan(), ExecInitExpr(), ExecInitHashJoin(), ExecInitLockRows(), ExecInitModifyTable(), ExecInitSubPlan(), ExecRefreshMatView(), ExecResetTupleTable(), ExecSetVariableStmt(), ExecSupportsMarkRestore(), execute_sql_string(), ExecuteQuery(), ExecWorkTableScan(), ExplainExecuteQuery(), ExplainNode(), ExplainOneUtility(), ExplainQuery(), exprCollation(), expression_tree_walker(), exprSetCollation(), exprType(), exprTypmod(), extract_actual_clauses(), extract_actual_join_clauses(), extract_nonindex_conditions(), extract_or_clause(), fetch_function_defaults(), FillPortalStore(), final_cost_hashjoin(), fix_indexqual_references(), flatten_simple_union_all(), fmgr_sql_validator(), func_get_detail(), generate_bitmap_or_paths(), get_actual_clauses(), get_agg_expr(), get_altertable_subcmdtypes(), get_first_col_type(), get_rule_expr(), get_sublink_expr(), ImportForeignSchema(), init_execution_state(), init_sql_fcache(), InsertRule(), interval_transform(), is_simple_union_all(), IsTransactionExitStmtList(), IsTransactionStmtList(), JumbleExpr(), JumbleRangeTable(), make_row_comparison_op(), make_subplan(), markRTEForSelectPriv(), match_clauses_to_index(), numeric_transform(), PerformCursorOpen(), pg_get_function_arg_default(), pg_plan_queries(), plan_set_operations(), PlanCacheComputeResultDesc(), PlanCacheFuncCallback(), PlanCacheRelCallback(), planstate_walk_subplans(), plpgsql_inline_handler(), PortalGetPrimaryStmt(), PortalRunMulti(), PortalStart(), postgresGetForeignPlan(), print_function_arguments(), ProcedureCreate(), ProcessCopyOptions(), query_is_distinct_for(), QueryListGetPrimaryStmt(), raw_expression_tree_walker(), rel_is_distinct_for(), ResetPlanCache(), restriction_is_constant_false(), RewriteQuery(), rewriteTargetView(), roleSpecsToIds(), ScanQueryForLocks(), ScanQueryWalker(), set_plan_references(), set_subquery_size_estimates(), setRuleCheckAsUser_Query(), SPI_cursor_open_internal(), subquery_is_pushdown_safe(), TemporalTransform(), transformAExprBetween(), transformAExprOp(), transformAlterTableStmt(), transformArraySubscripts(), transformCaseExpr(), transformColumnDefinition(), transformFromClauseItem(), transformIndexConstraint(), transformIndexConstraints(), transformInsertRow(), transformMultiAssignRef(), transformSetOperationStmt(), transformUpdateTargetList(), transformXmlExpr(), translate_col_privs(), type_in_list_does_not_exist_skipping(), TypeNameListToString(), typeStringToTypeName(), unique_key_recheck(), update_proconfig_value(), UtilityContainsQuery(), varbit_transform(), varchar_transform(), and view_cols_are_auto_updatable().

#define DO_AGGSPLIT_COMBINE (   as)    (((as) & AGGSPLITOP_COMBINE) != 0)
#define DO_AGGSPLIT_DESERIALIZE (   as)    (((as) & AGGSPLITOP_DESERIALIZE) != 0)

Definition at line 762 of file nodes.h.

Referenced by ExecInitAgg(), and get_agg_clause_costs_walker().

#define DO_AGGSPLIT_SERIALIZE (   as)    (((as) & AGGSPLITOP_SERIALIZE) != 0)

Definition at line 761 of file nodes.h.

Referenced by ExecInitAgg(), get_agg_clause_costs_walker(), and mark_partial_aggref().

#define DO_AGGSPLIT_SKIPFINAL (   as)    (((as) & AGGSPLITOP_SKIPFINAL) != 0)
#define IS_OUTER_JOIN (   jointype)
#define IsA (   nodeptr,
  _type_ 
)    (nodeTag(nodeptr) == T_##_type_)

Definition at line 559 of file nodes.h.

Referenced by _int_matchsel(), _outList(), _SPI_execute_plan(), accumulate_append_subpath(), acquireLocksOnSubLinks(), AcquireRewriteLocks(), add_base_rels_to_query(), add_path(), add_vars_to_targetlist(), AddQual(), addRangeTableEntryForCTE(), AddRelationNewConstraints(), adjust_appendrel_attrs(), adjust_appendrel_attrs_mutator(), adjust_inherited_tlist(), adjust_view_column_set(), adjustJoinTreeList(), AggCheckCallContext(), AggGetAggref(), AggGetTempMemoryContext(), AggRegisterCallback(), AlterDomainAddConstraint(), AlterDomainDefault(), AlterTableGetLockLevel(), analyzeCTE(), and_clause(), appendConditions(), apply_pathtarget_labeling_to_tlist(), apply_projection_to_path(), arraycontsel(), assign_param_for_placeholdervar(), assign_param_for_var(), assign_query_collations_walker(), ATColumnChangeRequiresRewrite(), ATExecAddConstraint(), ATExecAddIndex(), ATExecAddIndexConstraint(), ATExecAttachPartition(), ATExecSetStatistics(), ATExecSetStorage(), ATPostAlterTypeParse(), BeginCopy(), bernoulli_samplescangetsamplesize(), BitmapHeapNext(), brin_page_items(), btcostestimate(), build_index_paths(), build_joinrel_tlist(), build_physical_tlist(), build_subplan(), build_tlist_index(), build_tlist_index_other_vars(), buildMergedJoinVar(), canonicalize_ec_expression(), ChangeVarNodes(), ChangeVarNodes_walker(), check_agg_arguments_walker(), check_agglevels_and_constraints(), check_constant_qual(), check_functional_grouping(), check_parameter_resolution_walker(), check_ungrouped_columns_walker(), checkExprHasSubLink_walker(), checkWellFormedRecursion(), checkWellFormedRecursionWalker(), ChoosePortalStrategy(), chooseScalarFunctionAlias(), clause_selectivity(), clauselist_selectivity(), coerce_record_to_complex(), coerce_to_target_type(), coerce_type(), CommandIsReadOnly(), CommuteRowCompareExpr(), compute_semijoin_info(), ComputeIndexAttrs(), ComputePartitionAttrs(), connectby_text(), connectby_text_serial(), contain_agg_clause_walker(), contain_aggs_of_level_walker(), contain_context_dependent_node_walker(), contain_mutable_functions_walker(), contain_nonstrict_functions_walker(), contain_subplans_walker(), contain_var_clause_walker(), contain_vars_of_level_walker(), contain_volatile_functions_not_nextval_walker(), contain_volatile_functions_walker(), contain_windowfuncs_walker(), contains_multiexpr_param(), contains_target_param(), conversion_error_callback(), convert_combining_aggrefs(), convert_EXISTS_to_ANY(), convert_testexpr_mutator(), cost_bitmap_heap_scan(), cost_bitmap_or_node(), cost_bitmap_tree_node(), cost_index(), cost_qual_eval_walker(), cost_tidscan(), count_rowexpr_columns(), create_bitmap_subplan(), create_hashjoin_plan(), create_lateral_join_info(), create_nestloop_plan(), create_plan(), create_plan_recurse(), createdb(), crosstab(), crosstab_hash(), currtid_for_view(), deconstruct_indexquals(), deconstruct_jointree(), deconstruct_recurse(), defGetStringList(), DefineDomain(), DefineView(), deflist_to_tuplestore(), deparseArrayRef(), deparseSortGroupClause(), determineRecursiveColTypes(), each_worker(), each_worker_jsonb(), elements_worker(), elements_worker_jsonb(), eqsel(), errdetail_execute(), estimate_array_length(), eval_const_expressions_mutator(), evaluate_function(), EventTriggerCollectAlterTableSubcmd(), examine_simple_variable(), examine_variable(), exec_check_rw_parameter(), exec_init_tuple_store(), exec_simple_check_plan(), exec_simple_query(), exec_simple_recheck_plan(), ExecBuildProjectionInfo(), ExecCheckPlanOutput(), ExecCreateTableAs(), ExecDropSingleTupleTableSlot(), ExecIndexBuildScanKeys(), ExecInitExpr(), ExecInitMergeJoin(), ExecInitNode(), ExecInitSubPlan(), ExecMakeFunctionResultSet(), ExecMakeTableFunctionResult(), ExecNestLoop(), ExecProjectSRF(), ExecScanReScan(), ExecSupportsMarkRestore(), execute_sql_string(), expand_boolean_index_clause(), expand_function_arguments(), expand_indexqual_conditions(), expandRecordVariable(), ExpandRowReference(), ExplainNode(), ExplainOneUtility(), ExplainPrintPlan(), ExplainTargetRel(), exprCollation(), expression_returns_set_rows(), expression_returns_set_walker(), exprIsLengthCoercion(), exprIsNullConstant(), exprSetCollation(), exprType(), exprTypmod(), extract_lateral_references(), extract_not_arg(), extract_query_dependencies_walker(), extract_strong_not_arg(), fetch_more_data(), FetchStatementTargetList(), FigureColnameInternal(), final_cost_hashjoin(), final_cost_mergejoin(), finalize_agg_primnode(), finalize_grouping_exprs_walker(), finalize_primnode(), find_duplicate_ors(), find_ec_member_for_tle(), find_expr_references_walker(), find_forced_null_var(), find_forced_null_vars(), find_indexpath_quals(), find_jointree_node_for_rel(), find_minmax_aggs_walker(), find_nonnullable_rels_walker(), find_nonnullable_vars_walker(), find_param_referent(), find_placeholders_in_expr(), find_placeholders_in_jointree(), find_placeholders_recurse(), find_unaggregated_cols_walker(), find_window_functions_walker(), findTargetlistEntrySQL92(), fireRIRonSubLink(), fix_expr_common(), fix_indexorderby_references(), fix_indexqual_operand(), fix_indexqual_references(), fix_join_expr_mutator(), fix_opfuncids_walker(), fix_scan_expr_mutator(), fix_scan_expr_walker(), fix_upper_expr_mutator(), flatCopyTargetEntry(), flatten_grouping_sets(), flatten_join_alias_vars_mutator(), flatten_join_using_qual(), flatten_rtes_walker(), flatten_set_variable_args(), flatten_simple_union_all(), fmgr_security_definer(), fmgr_sql(), foreign_expr_walker(), foreign_grouping_ok(), func_get_detail(), generate_base_implied_equalities_const(), generate_join_implied_equalities_normal(), generate_setop_tlist(), genericcostestimate(), get_agg_clause_costs_walker(), get_agg_combine_expr(), get_agg_expr(), get_assignment_input(), get_bitmap_tree_required_outer(), get_call_expr_arg_stable(), get_call_expr_argtype(), get_cast_hashentry(), get_coercion_expr(), get_expr_result_type(), get_fn_expr_variadic(), get_from_clause(), get_from_clause_item(), get_func_expr(), get_indexpath_pages(), get_last_attnums(), get_name_for_var_field(), get_parameter(), get_qual_for_range(), get_relids_in_jointree(), get_rule_expr(), get_rule_expr_toplevel(), get_rule_sortgroupclause(), get_select_query_def(), get_setop_query(), get_special_variable(), get_sublink_expr(), get_target_list(), get_update_query_targetlist_def(), get_utility_query_def(), get_variable(), get_variable_numdistinct(), get_windowfunc_expr(), GetExistingLocalJoinPath(), GetFdwRoutine(), GetIndexAmRoutine(), getInsertSelectQuery(), GetTsmRoutine(), gincost_opexpr(), gincost_scalararrayopexpr(), gincostestimate(), has_dangerous_join_using(), has_indexed_join_quals(), hide_coercion_node(), identify_join_columns(), ImportForeignSchema(), IncrementVarSublevelsUp_walker(), infer_arbiter_indexes(), infer_collation_opclass_match(), init_execution_state(), init_MultiFuncCall(), inline_function(), inline_set_returning_function(), internal_get_result_type(), interval_transform(), is_dummy_plan(), is_safe_append_member(), is_simple_subquery(), is_simple_union_all(), is_simple_union_all_recurse(), is_strict_saop(), isAssignmentIndirectionExpr(), isQueryUsingTempRelation_walker(), isSimpleNode(), IsTidEqualAnyClause(), IsTidEqualClause(), IsTransactionExitStmt(), IsTransactionStmtList(), jointree_contains_lateral_outer_refs(), JumbleQuery(), limit_needed(), list_member_strip(), locate_agg_of_level_walker(), locate_var_of_level_walker(), locate_windowfunc_walker(), ltreeparentsel(), make_ands_implicit(), make_fn_arguments(), make_partial_grouping_target(), make_rel_from_joinlist(), make_subplan(), makeDependencyGraphWalker(), map_variable_attnos_mutator(), markQueryForLocking(), markRTEForSelectPriv(), markTargetListOrigin(), markVarForSelectPriv(), match_boolean_index_clause(), match_clause_to_indexcol(), match_eclasses_to_foreign_key_col(), match_foreign_keys_to_quals(), match_index_to_operand(), match_special_index_operator(), max_parallel_hazard_walker(), MJExamineQuals(), MultiExecBitmapAnd(), MultiExecBitmapOr(), NameListToString(), networksel(), not_clause(), numeric_transform(), OffsetVarNodes(), OffsetVarNodes_walker(), operator_precedence_group(), operator_predicate_proof(), or_clause(), order_qual_clauses(), orderby_operands_eval_cost(), outNode(), parse_output_parameters(), parseCheckAggregates(), ParseComplexProjection(), ParseFuncOrColumn(), pass_down_bound(), patternsel(), pg_available_extension_versions(), pg_available_extensions(), pg_cursor(), pg_decode_startup(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_extension_update_paths(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_replication_slots(), pg_hba_file_rules(), pg_logical_slot_get_changes_guts(), pg_prepared_statement(), pg_show_replication_origin_status(), pg_stat_get_activity(), pg_stat_get_progress_info(), pg_stat_get_subscription(), pg_stat_get_wal_senders(), pg_stat_statements_internal(), pg_stop_backup_v2(), pgss_ProcessUtility(), plan_set_operations(), plperl_func_handler(), plpgsql_exec_function(), pltcl_func_handler(), PLy_exec_function(), populate_recordset_worker(), PortalRunMulti(), PortalRunUtility(), postgresPlanDirectModify(), predicate_classify(), predicate_implied_by_recurse(), predicate_implied_by_simple_clause(), predicate_refuted_by_recurse(), predicate_refuted_by_simple_clause(), preprocess_limit(), preprocess_minmax_aggregates(), preprocess_qual_conditions(), preprocess_targetlist(), prepTuplestoreResult(), print_expr(), process_implied_equality(), process_matched_tle(), process_sublinks_mutator(), process_subquery_nestloop_params(), ProcessCopyOptions(), processIndirection(), ProcessUtility(), ProcessUtilitySlow(), pull_up_sublinks(), pull_up_sublinks_jointree_recurse(), pull_up_sublinks_qual_recurse(), pull_up_subqueries(), pull_up_subqueries_cleanup(), pull_up_subqueries_recurse(), pull_up_union_leaf_queries(), pull_var_clause_walker(), pull_varattnos_walker(), pull_varnos_walker(), pull_vars_walker(), pullup_replace_vars_callback(), pullup_replace_vars_subquery(), qual_is_pushdown_safe(), query_contains_extern_params_walker(), query_or_expression_tree_mutator(), query_or_expression_tree_walker(), query_tree_mutator(), query_tree_walker(), rangesel(), rangeTableEntry_used_walker(), RangeVarCallbackForAlterRelation(), reconsider_full_join_clause(), recurse_push_qual(), recurse_pushdown_safe(), recurse_set_operations(), recurse_union_children(), reduce_outer_joins_pass1(), reduce_outer_joins_pass2(), rel_is_distinct_for(), relabel_to_typmod(), relation_excluded_by_constraints(), remove_rel_from_joinlist(), remove_useless_groupby_columns(), reorder_function_arguments(), replace_correlation_vars_mutator(), replace_domain_constraint_value(), replace_nestloop_params_mutator(), replace_rte_variables(), replace_rte_variables_mutator(), replace_vars_in_jointree(), resolve_column_ref(), resolve_special_varno(), restriction_is_constant_false(), RewriteQuery(), rewriteTargetListIU(), rewriteTargetView(), rewriteValuesRTE(), scalararraysel(), scalararraysel_containment(), scalargtsel(), scalarltsel(), ScanQueryWalker(), search_indexed_tlist_for_non_var(), searchForDefault(), select_mergejoin_clauses(), set_append_rel_size(), set_cheapest(), set_deparse_planstate(), set_dummy_tlist_references(), set_function_pathlist(), set_join_references(), set_pathtarget_cost_width(), set_rel_width(), set_subquery_size_estimates(), set_upper_references(), set_using_names(), setRuleCheckAsUser_walker(), show_all_file_settings(), show_plan_tlist(), show_scan_qual(), simplify_and_arguments(), simplify_boolean_equality(), simplify_EXISTS_query(), simplify_or_arguments(), split_pathtarget_walker(), sql_fn_post_column_ref(), strip_array_coercion(), strip_implicit_coercions(), substitute_actual_parameters_mutator(), substitute_actual_srf_parameters_mutator(), substitute_multiple_relids_walker(), system_rows_samplescangetsamplesize(), system_samplescangetsamplesize(), system_time_samplescangetsamplesize(), TemporalTransform(), testexpr_is_hashable(), TidListCreate(), TidQualFromExpr(), tlist_matches_tupdesc(), tlist_member_ignore_relabel(), tlist_member_match_var(), transformAExprDistinct(), transformAExprIn(), transformAExprOp(), transformAlterTableStmt(), transformArrayExpr(), transformAssignedExpr(), transformAssignmentIndirection(), transformColumnRef(), transformConstraintAttrs(), transformCreateStmt(), transformCurrentOfExpr(), transformDeclareCursorStmt(), transformExpressionList(), transformFromClauseItem(), transformGroupClause(), transformGroupingSet(), transformIndirection(), transformInsertRow(), transformInsertStmt(), transformMultiAssignRef(), transformOptionalSelectInto(), transformRangeFunction(), transformRangeSubselect(), transformSetOperationStmt(), transformSetOperationTree(), transformSubLink(), transformTargetEntry(), transformTargetList(), transformTypeCast(), transformWithClause(), transformXmlExpr(), translate_sub_tlist(), trivial_subqueryscan(), tsmatchsel(), typenameTypeMod(), typeStringToTypeName(), unknown_attribute(), use_physical_tlist(), varbit_transform(), varchar_transform(), view_col_is_auto_updatable(), view_query_is_auto_updatable(), and xpath_table().

#define makeNode (   _type_)    ((_type_ *) newNode(sizeof(_type_),T_##_type_))

Definition at line 556 of file nodes.h.

Referenced by _copyA_ArrayExpr(), _copyA_Indirection(), _copyAccessPriv(), _copyAConst(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlias(), _copyAlterDatabaseSetStmt(), _copyAlterDatabaseStmt(), _copyAlterDefaultPrivilegesStmt(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterEventTrigStmt(), _copyAlterExtensionContentsStmt(), _copyAlterExtensionStmt(), _copyAlterFdwStmt(), _copyAlterForeignServerStmt(), _copyAlterFunctionStmt(), _copyAlternativeSubPlan(), _copyAlterObjectDependsStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOperatorStmt(), _copyAlterOpFamilyStmt(), _copyAlterOwnerStmt(), _copyAlterPolicyStmt(), _copyAlterPublicationStmt(), _copyAlterRoleSetStmt(), _copyAlterRoleStmt(), _copyAlterSeqStmt(), _copyAlterSubscriptionStmt(), _copyAlterSystemStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterTableStmt(), _copyAlterTSConfigurationStmt(), _copyAlterTSDictionaryStmt(), _copyAlterUserMappingStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyArrayRef(), _copyAStar(), _copyBitmapAnd(), _copyBitmapHeapScan(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCaseExpr(), _copyCaseTestExpr(), _copyCaseWhen(), _copyClosePortalStmt(), _copyClusterStmt(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceToDomainValue(), _copyCoerceViaIO(), _copyCollateClause(), _copyCollateExpr(), _copyColumnDef(), _copyColumnRef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyCompositeTypeStmt(), _copyConst(), _copyConstraint(), _copyConstraintsSetStmt(), _copyConvertRowtypeExpr(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateCastStmt(), _copyCreateConversionStmt(), _copyCreatedbStmt(), _copyCreateDomainStmt(), _copyCreateEnumStmt(), _copyCreateEventTrigStmt(), _copyCreateExtensionStmt(), _copyCreateFdwStmt(), _copyCreateForeignServerStmt(), _copyCreateForeignTableStmt(), _copyCreateFunctionStmt(), _copyCreateOpClassItem(), _copyCreateOpClassStmt(), _copyCreateOpFamilyStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRangeStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateSeqStmt(), _copyCreateStmt(), _copyCreateSubscriptionStmt(), _copyCreateTableAsStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _copyCteScan(), _copyCurrentOfExpr(), _copyCustomScan(), _copyDeallocateStmt(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDefineStmt(), _copyDeleteStmt(), _copyDiscardStmt(), _copyDistinctExpr(), _copyDoStmt(), _copyDropdbStmt(), _copyDropOwnedStmt(), _copyDropRoleStmt(), _copyDropStmt(), _copyDropSubscriptionStmt(), _copyDropTableSpaceStmt(), _copyDropUserMappingStmt(), _copyExecuteStmt(), _copyExplainStmt(), _copyFetchStmt(), _copyFieldSelect(), _copyFieldStore(), _copyForeignKeyCacheInfo(), _copyForeignScan(), _copyFromExpr(), _copyFuncCall(), _copyFuncExpr(), _copyFunctionParameter(), _copyFunctionScan(), _copyFuncWithArgs(), _copyGather(), _copyGrantRoleStmt(), _copyGrantStmt(), _copyGroup(), _copyGroupingFunc(), _copyGroupingSet(), _copyHash(), _copyHashJoin(), _copyImportForeignSchemaStmt(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferClause(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoin(), _copyJoinExpr(), _copyLimit(), _copyList(), _copyListenStmt(), _copyLoadStmt(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMaterial(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoop(), _copyNestLoopParam(), _copyNotifyStmt(), _copyNullIfExpr(), _copyNullTest(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionElem(), _copyPartitionRangeDatum(), _copyPartitionSpec(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlan(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyPrepareStmt(), _copyProjectSet(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableSample(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeTblRef(), _copyRangeVar(), _copyRawStmt(), _copyReassignOwnedStmt(), _copyRecursiveUnion(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyResTarget(), _copyRestrictInfo(), _copyResult(), _copyRoleSpec(), _copyRowCompareExpr(), _copyRowExpr(), _copyRowMarkClause(), _copyRuleStmt(), _copySampleScan(), _copyScalarArrayOpExpr(), _copyScan(), _copySecLabelStmt(), _copySelectStmt(), _copySeqScan(), _copySetOp(), _copySetOperationStmt(), _copySetToDefault(), _copySort(), _copySortBy(), _copySortGroupClause(), _copySpecialJoinInfo(), _copySQLValueFunction(), _copySubLink(), _copySubPlan(), _copySubqueryScan(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _copyTidScan(), _copyTransactionStmt(), _copyTriggerTransition(), _copyTruncateStmt(), _copyTypeCast(), _copyTypeName(), _copyUnique(), _copyUnlistenStmt(), _copyUpdateStmt(), _copyVacuumStmt(), _copyValue(), _copyValuesScan(), _copyVar(), _copyVariableSetStmt(), _copyVariableShowStmt(), _copyViewStmt(), _copyWindowAgg(), _copyWindowClause(), _copyWindowDef(), _copyWindowFunc(), _copyWithCheckOption(), _copyWithClause(), _copyWorkTableScan(), _copyXmlExpr(), _copyXmlSerialize(), add_eq_member(), add_with_check_options(), AddInvertedQual(), addRangeTableEntry(), addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), addRangeTableEntryForJoin(), addRangeTableEntryForRelation(), addRangeTableEntryForSubquery(), addRangeTableEntryForValues(), addRTEtoQuery(), addTargetToGroupList(), addTargetToSortList(), adjust_appendrel_attrs_mutator(), adjust_rowcompare_for_index(), AlterTableMoveAll(), applyLockingClause(), assign_nestloop_param_placeholdervar(), assign_nestloop_param_var(), assign_param_for_placeholdervar(), assign_param_for_var(), ATExecAttachPartition(), ATPostAlterTypeParse(), ATPrepAddOids(), ATPrepCmd(), blhandler(), brinhandler(), bthandler(), build_coercion_expression(), build_empty_join_rel(), build_join_rel(), build_minmax_path(), build_simple_rel(), build_subplan(), BuildIndexInfo(), buildMergedJoinVar(), CatalogOpenIndexes(), CheckIndexCompatible(), checkInsertTargets(), coerce_record_to_complex(), coerce_to_domain(), coerce_to_target_type(), coerce_type(), convert_ANY_sublink_to_join(), convert_combining_aggrefs(), convert_EXISTS_sublink_to_join(), ConvertTriggerToFK(), copy_pathtarget(), CopyFrom(), copyObject(), create_agg_path(), create_append_path(), create_bitmap_and_path(), create_bitmap_heap_path(), create_bitmap_or_path(), create_ctas_internal(), create_ctescan_path(), create_empty_pathtarget(), create_estate_for_relation(), create_foreignscan_path(), create_functionscan_path(), create_gather_path(), create_group_path(), create_groupingsets_path(), create_hashjoin_path(), create_index_path(), create_limit_path(), create_lockrows_path(), create_material_path(), create_merge_append_path(), create_merge_append_plan(), create_mergejoin_path(), create_minmaxagg_path(), create_modifytable_path(), create_nestloop_path(), create_projection_path(), create_recursiveunion_path(), create_result_path(), create_samplescan_path(), create_seqscan_path(), create_set_projection_path(), create_setop_path(), create_sort_path(), create_subqueryscan_path(), create_tidscan_path(), create_toast_table(), create_unique_path(), create_unique_plan(), create_upper_unique_path(), create_valuesscan_path(), create_windowagg_path(), create_worktablescan_path(), CreateExecutorState(), CreateExprContext(), CreateExtensionInternal(), CreateFKCheckTrigger(), createForeignKeyTriggers(), CreateSchemaCommand(), CreateStandaloneExprContext(), DefineCompositeType(), DefineIndex(), DefineRelation(), DefineSequence(), DefineView(), DefineVirtualRelation(), deparse_context_for(), DoCopy(), domainAddConstraint(), eval_const_expressions_mutator(), evaluate_function(), ExecBuildProjectionInfo(), ExecGetTriggerResultRel(), ExecInitAgg(), ExecInitAlternativeSubPlan(), ExecInitAppend(), ExecInitBitmapAnd(), ExecInitBitmapHeapScan(), ExecInitBitmapIndexScan(), ExecInitBitmapOr(), ExecInitCteScan(), ExecInitExpr(), ExecInitForeignScan(), ExecInitFunctionScan(), ExecInitGather(), ExecInitGroup(), ExecInitHash(), ExecInitHashJoin(), ExecInitIndexOnlyScan(), ExecInitIndexScan(), ExecInitJunkFilter(), ExecInitJunkFilterConversion(), ExecInitLimit(), ExecInitLockRows(), ExecInitMaterial(), ExecInitMergeAppend(), ExecInitMergeJoin(), ExecInitModifyTable(), ExecInitNestLoop(), ExecInitProjectSet(), ExecInitRecursiveUnion(), ExecInitResult(), ExecInitSampleScan(), ExecInitSeqScan(), ExecInitSetOp(), ExecInitSort(), ExecInitSubPlan(), ExecInitSubqueryScan(), ExecInitTidScan(), ExecInitUnique(), ExecInitValuesScan(), ExecInitWindowAgg(), ExecInitWorkTableScan(), ExecSerializePlan(), ExecuteDoStmt(), expand_inherited_rtentry(), ExpandRowReference(), fetch_upper_rel(), file_fdw_handler(), find_minmax_aggs_walker(), find_placeholder_info(), fixed_paramref_hook(), flatCopyTargetEntry(), flatten_join_alias_vars_mutator(), flatten_simple_union_all(), generate_new_param(), generateClonedIndexStmt(), get_appendrel_parampathinfo(), get_baserel_parampathinfo(), get_cast_hashentry(), get_eclass_for_sort_expr(), get_joinrel_parampathinfo(), get_qual_for_list(), get_qual_for_range(), get_relation_constraints(), get_relation_foreign_keys(), get_relation_info(), get_switched_clauses(), GetExistingLocalJoinPath(), ginhandler(), gisthandler(), hashhandler(), ImportForeignSchema(), index_check_primary_key(), index_constraint_create(), inheritance_planner(), init_execution_state(), inline_function(), intorel_startup(), load_domaintype_info(), make_agg(), make_agg_arg(), make_andclause(), make_append(), make_bitmap_and(), make_bitmap_heapscan(), make_bitmap_indexscan(), make_bitmap_or(), make_canonical_pathkey(), make_ctescan(), make_datum_param(), make_foreignscan(), make_functionscan(), make_gather(), make_group(), make_hash(), make_hashjoin(), make_indexonlyscan(), make_indexscan(), make_limit(), make_lockrows(), make_material(), make_mergejoin(), make_modifytable(), make_nestloop(), make_notclause(), make_nulltest_from_distinct(), make_op(), make_opclause(), make_orclause(), make_outerjoininfo(), make_partial_grouping_target(), make_pathtarget_from_tlist(), make_placeholder_expr(), make_project_set(), make_recursive_union(), make_restrictinfo_internal(), make_result(), make_row_comparison_op(), make_samplescan(), make_scalar_array_op(), make_seqscan(), make_setop(), make_sort(), make_subplan(), make_subqueryscan(), make_tidscan(), make_unique_from_pathkeys(), make_unique_from_sortclauses(), make_valuesscan(), make_windowagg(), make_worktablescan(), makeA_Expr(), makeAlias(), makeBitString(), makeBoolExpr(), makeColumnDef(), makeConst(), makeDefElem(), makeDefElemExtended(), makeFloat(), makeFromExpr(), makeFuncCall(), makeFuncExpr(), makeGroupingSet(), makeInteger(), makeRangeVar(), makeRelabelType(), makeSimpleA_Expr(), makeString(), makeTargetEntry(), MakeTupleTableSlot(), makeTypeNameFromNameList(), makeTypeNameFromOid(), makeVar(), match_clause_to_ordering_op(), MergeAttributes(), negate_clause(), parseCheckAggregates(), ParseComplexProjection(), ParseFuncOrColumn(), pg_get_triggerdef_worker(), pg_plan_queries(), plan_cluster_use_sort(), postgres_fdw_handler(), prep_domain_constraints(), PrepareQuery(), preprocess_rowmarks(), process_equivalence(), process_matched_tle(), process_subquery_nestloop_params(), ProcessUtilitySlow(), pull_up_simple_subquery(), pull_up_union_leaf_queries(), pullup_replace_vars_callback(), RebuildConstraintComment(), record_plan_function_dependency(), RelationGetFKeyList(), reparameterize_path(), replace_nestloop_params_mutator(), replace_outer_agg(), replace_outer_grouping(), replace_outer_placeholdervar(), replace_outer_var(), ReplaceVarsFromTargetList_callback(), resolve_unique_index_expr(), rewriteTargetView(), RI_Initial_Check(), scalararraysel(), spghandler(), sql_fn_make_param(), SS_make_initplan_from_plan(), SS_process_ctes(), standard_planner(), subquery_planner(), tbm_create(), test_rls_hooks_permissive(), test_rls_hooks_restrictive(), transformAExprIn(), transformAExprOp(), transformAlterTableStmt(), transformArrayExpr(), transformArraySubscripts(), transformAssignmentIndirection(), transformCaseExpr(), transformCoalesceExpr(), transformCollateClause(), transformColumnDefinition(), transformCreateTableAsStmt(), transformCurrentOfExpr(), transformDeclareCursorStmt(), transformDeleteStmt(), transformExplainStmt(), transformFKConstraints(), transformFromClauseItem(), transformGroupingFunc(), transformIndexConstraint(), transformInsertStmt(), transformLockingClause(), transformMinMaxExpr(), transformMultiAssignRef(), transformOfType(), transformOnConflictClause(), transformOptionalSelectInto(), transformPartitionSpec(), transformRangeTableSample(), transformRowExpr(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformSetOperationTree(), transformStmt(), transformSubLink(), transformTableLikeClause(), transformUpdateStmt(), transformValuesClause(), transformWindowDefinitions(), transformXmlExpr(), transformXmlSerialize(), tsm_bernoulli_handler(), tsm_system_handler(), tsm_system_rows_handler(), tsm_system_time_handler(), and variable_paramref_hook().

#define newNode (   size,
  tag 
)
Value:
( \
AssertMacro((size) >= sizeof(Node)), /* need the tag, at least */ \
)
Definition: nodes.h:508
#define AssertMacro(condition)
Definition: c.h:672
#define palloc0fast(sz)
Definition: palloc.h:91
NodeTag type
Definition: nodes.h:510
PGDLLIMPORT Node * newNodeMacroHolder
Definition: nodes.c:31

Definition at line 546 of file nodes.h.

Referenced by _copyExtensibleNode(), and _readExtensibleNode().

#define NodeSetTag (   nodeptr,
 
)    (((Node*)(nodeptr))->type = (t))

Definition at line 557 of file nodes.h.

Referenced by make_distinct_op(), and transformAExprNullIf().

#define nodeTag (   nodeptr)    (((const Node*)(nodeptr))->type)

Definition at line 513 of file nodes.h.

Referenced by _outQuery(), add_base_rels_to_query(), add_vars_to_targetlist(), AlterDomainAddConstraint(), analyze_requires_snapshot(), assign_collations_walker(), ATPostAlterTypeParse(), build_joinrel_tlist(), build_subplan(), check_functions_in_node(), check_xact_readonly(), ChoosePortalStrategy(), contain_leaked_vars_walker(), copyObject(), cost_bitmap_tree_node(), cost_subplan(), create_bitmap_subplan(), CreateCommandTag(), deconstruct_indexquals(), deconstruct_recurse(), defGetBoolean(), defGetInt32(), defGetInt64(), defGetNumeric(), defGetQualifiedName(), defGetString(), defGetStringList(), defGetTypeLength(), defGetTypeName(), DefineDomain(), deparseExpr(), equal(), eval_const_expressions_mutator(), exec_simple_check_node(), ExecEndNode(), ExecEvalWholeRowVar(), ExecIndexBuildScanKeys(), ExecInitExpr(), ExecInitNode(), ExecInitSubPlan(), ExecMakeFunctionResultSet(), ExecMarkPos(), ExecParallelEstimate(), ExecParallelInitializeDSM(), ExecParallelInitializeWorker(), ExecProcNode(), ExecReScan(), ExecRestrPos(), ExecScanReScan(), ExecSetVariableStmt(), ExecShutdownNode(), ExecSupportsBackwardScan(), expand_indexqual_conditions(), ExplainNode(), ExplainPreScanNode(), ExplainTargetRel(), exprCollation(), expression_tree_mutator(), expression_tree_walker(), exprInputCollation(), exprLocation(), exprSetCollation(), exprSetInputCollation(), exprType(), exprTypmod(), FigureColnameInternal(), finalize_plan(), find_indexpath_quals(), find_jointree_node_for_rel(), find_placeholders_recurse(), fix_indexorderby_references(), fix_indexqual_references(), flatten_join_using_qual(), flatten_set_variable_args(), foreign_expr_walker(), get_bitmap_tree_required_outer(), get_from_clause_item(), get_indexpath_pages(), get_relids_in_jointree(), get_rule_expr(), get_setop_query(), get_sublink_expr(), GetCommandLogLevel(), gincostestimate(), has_dangerous_join_using(), hide_coercion_node(), identify_join_columns(), ImportForeignSchema(), is_projection_capable_plan(), is_simple_union_all_recurse(), isSimpleNode(), jointree_contains_lateral_outer_refs(), JumbleExpr(), make_const(), make_rel_from_joinlist(), markQueryForLocking(), markRTEForSelectPriv(), MultiExecProcNode(), NameListToString(), negate_clause(), oidparse(), orderby_operands_eval_cost(), outNode(), pg_get_partkeydef_worker(), planstate_tree_walker(), preprocess_qual_conditions(), ProcessUtilitySlow(), pull_up_sublinks_jointree_recurse(), pull_up_subqueries_cleanup(), pull_up_subqueries_recurse(), pull_up_union_leaf_queries(), RangeVarCallbackForAlterRelation(), raw_expression_tree_walker(), recurse_push_qual(), recurse_pushdown_safe(), recurse_set_operations(), reduce_outer_joins_pass1(), reduce_outer_joins_pass2(), remove_rel_from_joinlist(), replace_vars_in_jointree(), search_plan_tree(), sepgsql_utility_command(), set_plan_refs(), set_using_names(), standard_ProcessUtility(), transformAlterTableStmt(), transformConstraintAttrs(), transformCreateSchemaStmt(), transformCreateStmt(), transformExprRecurse(), transformFromClauseItem(), transformStmt(), UtilityContainsQuery(), UtilityReturnsTuples(), and UtilityTupleDescriptor().

Typedef Documentation

typedef double Cost

Definition at line 632 of file nodes.h.

typedef struct Node Node

Definition at line 631 of file nodes.h.

Enumeration Type Documentation

enum AggSplit
Enumerator
AGGSPLIT_SIMPLE 
AGGSPLIT_INITIAL_SERIAL 
AGGSPLIT_FINAL_DESERIAL 

Definition at line 748 of file nodes.h.

749 {
750  /* Basic, non-split aggregation: */
751  AGGSPLIT_SIMPLE = 0,
752  /* Initial phase of partial aggregation, with serialization: */
754  /* Final phase of partial aggregation, with deserialization: */
756 } AggSplit;
#define AGGSPLITOP_DESERIALIZE
Definition: nodes.h:745
#define AGGSPLITOP_COMBINE
Definition: nodes.h:742
#define AGGSPLITOP_SERIALIZE
Definition: nodes.h:744
AggSplit
Definition: nodes.h:748
#define AGGSPLITOP_SKIPFINAL
Definition: nodes.h:743
Enumerator
AGG_PLAIN 
AGG_SORTED 
AGG_HASHED 

Definition at line 727 of file nodes.h.

728 {
729  AGG_PLAIN, /* simple agg across all input rows */
730  AGG_SORTED, /* grouped agg, input must be sorted */
731  AGG_HASHED /* grouped agg, use internal hashtable */
732 } AggStrategy;
AggStrategy
Definition: nodes.h:727
enum CmdType
Enumerator
CMD_UNKNOWN 
CMD_SELECT 
CMD_UPDATE 
CMD_INSERT 
CMD_DELETE 
CMD_UTILITY 
CMD_NOTHING 

Definition at line 641 of file nodes.h.

642 {
643  CMD_UNKNOWN,
644  CMD_SELECT, /* select stmt */
645  CMD_UPDATE, /* update stmt */
646  CMD_INSERT, /* insert stmt */
647  CMD_DELETE,
648  CMD_UTILITY, /* cmds like create, destroy, copy, vacuum,
649  * etc. */
650  CMD_NOTHING /* dummy command for instead nothing rules
651  * with qual */
652 } CmdType;
CmdType
Definition: nodes.h:641
enum JoinType
Enumerator
JOIN_INNER 
JOIN_LEFT 
JOIN_FULL 
JOIN_RIGHT 
JOIN_SEMI 
JOIN_ANTI 
JOIN_UNIQUE_OUTER 
JOIN_UNIQUE_INNER 

Definition at line 665 of file nodes.h.

666 {
667  /*
668  * The canonical kinds of joins according to the SQL JOIN syntax. Only
669  * these codes can appear in parser output (e.g., JoinExpr nodes).
670  */
671  JOIN_INNER, /* matching tuple pairs only */
672  JOIN_LEFT, /* pairs + unmatched LHS tuples */
673  JOIN_FULL, /* pairs + unmatched LHS + unmatched RHS */
674  JOIN_RIGHT, /* pairs + unmatched RHS tuples */
675 
676  /*
677  * Semijoins and anti-semijoins (as defined in relational theory) do not
678  * appear in the SQL JOIN syntax, but there are standard idioms for
679  * representing them (e.g., using EXISTS). The planner recognizes these
680  * cases and converts them to joins. So the planner and executor must
681  * support these codes. NOTE: in JOIN_SEMI output, it is unspecified
682  * which matching RHS row is joined to. In JOIN_ANTI output, the row is
683  * guaranteed to be null-extended.
684  */
685  JOIN_SEMI, /* 1 copy of each LHS row that has match(es) */
686  JOIN_ANTI, /* 1 copy of each LHS row that has no match */
687 
688  /*
689  * These codes are used internally in the planner, but are not supported
690  * by the executor (nor, indeed, by most of the planner).
691  */
692  JOIN_UNIQUE_OUTER, /* LHS path must be made unique */
693  JOIN_UNIQUE_INNER /* RHS path must be made unique */
694 
695  /*
696  * We might need additional join types someday.
697  */
698 } JoinType;
JoinType
Definition: nodes.h:665
enum NodeTag
Enumerator
T_Invalid 
T_IndexInfo 
T_ExprContext 
T_ProjectionInfo 
T_JunkFilter 
T_ResultRelInfo 
T_EState 
T_TupleTableSlot 
T_Plan 
T_Result 
T_ProjectSet 
T_ModifyTable 
T_Append 
T_MergeAppend 
T_RecursiveUnion 
T_BitmapAnd 
T_BitmapOr 
T_Scan 
T_SeqScan 
T_SampleScan 
T_IndexScan 
T_IndexOnlyScan 
T_BitmapIndexScan 
T_BitmapHeapScan 
T_TidScan 
T_SubqueryScan 
T_FunctionScan 
T_ValuesScan 
T_CteScan 
T_WorkTableScan 
T_ForeignScan 
T_CustomScan 
T_Join 
T_NestLoop 
T_MergeJoin 
T_HashJoin 
T_Material 
T_Sort 
T_Group 
T_Agg 
T_WindowAgg 
T_Unique 
T_Gather 
T_Hash 
T_SetOp 
T_LockRows 
T_Limit 
T_NestLoopParam 
T_PlanRowMark 
T_PlanInvalItem 
T_PlanState 
T_ResultState 
T_ProjectSetState 
T_ModifyTableState 
T_AppendState 
T_MergeAppendState 
T_RecursiveUnionState 
T_BitmapAndState 
T_BitmapOrState 
T_ScanState 
T_SeqScanState 
T_SampleScanState 
T_IndexScanState 
T_IndexOnlyScanState 
T_BitmapIndexScanState 
T_BitmapHeapScanState 
T_TidScanState 
T_SubqueryScanState 
T_FunctionScanState 
T_ValuesScanState 
T_CteScanState 
T_WorkTableScanState 
T_ForeignScanState 
T_CustomScanState 
T_JoinState 
T_NestLoopState 
T_MergeJoinState 
T_HashJoinState 
T_MaterialState 
T_SortState 
T_GroupState 
T_AggState 
T_WindowAggState 
T_UniqueState 
T_GatherState 
T_HashState 
T_SetOpState 
T_LockRowsState 
T_LimitState 
T_Alias 
T_RangeVar 
T_Expr 
T_Var 
T_Const 
T_Param 
T_Aggref 
T_GroupingFunc 
T_WindowFunc 
T_ArrayRef 
T_FuncExpr 
T_NamedArgExpr 
T_OpExpr 
T_DistinctExpr 
T_NullIfExpr 
T_ScalarArrayOpExpr 
T_BoolExpr 
T_SubLink 
T_SubPlan 
T_AlternativeSubPlan 
T_FieldSelect 
T_FieldStore 
T_RelabelType 
T_CoerceViaIO 
T_ArrayCoerceExpr 
T_ConvertRowtypeExpr 
T_CollateExpr 
T_CaseExpr 
T_CaseWhen 
T_CaseTestExpr 
T_ArrayExpr 
T_RowExpr 
T_RowCompareExpr 
T_CoalesceExpr 
T_MinMaxExpr 
T_SQLValueFunction 
T_XmlExpr 
T_NullTest 
T_BooleanTest 
T_CoerceToDomain 
T_CoerceToDomainValue 
T_SetToDefault 
T_CurrentOfExpr 
T_InferenceElem 
T_TargetEntry 
T_RangeTblRef 
T_JoinExpr 
T_FromExpr 
T_OnConflictExpr 
T_IntoClause 
T_ExprState 
T_GenericExprState 
T_WholeRowVarExprState 
T_AggrefExprState 
T_GroupingFuncExprState 
T_WindowFuncExprState 
T_ArrayRefExprState 
T_FuncExprState 
T_ScalarArrayOpExprState 
T_BoolExprState 
T_SubPlanState 
T_AlternativeSubPlanState 
T_FieldSelectState 
T_FieldStoreState 
T_CoerceViaIOState 
T_ArrayCoerceExprState 
T_ConvertRowtypeExprState 
T_CaseExprState 
T_CaseWhenState 
T_ArrayExprState 
T_RowExprState 
T_RowCompareExprState 
T_CoalesceExprState 
T_MinMaxExprState 
T_XmlExprState 
T_NullTestState 
T_CoerceToDomainState 
T_DomainConstraintState 
T_PlannerInfo 
T_PlannerGlobal 
T_RelOptInfo 
T_IndexOptInfo 
T_ForeignKeyOptInfo 
T_ParamPathInfo 
T_Path 
T_IndexPath 
T_BitmapHeapPath 
T_BitmapAndPath 
T_BitmapOrPath 
T_TidPath 
T_SubqueryScanPath 
T_ForeignPath 
T_CustomPath 
T_NestPath 
T_MergePath 
T_HashPath 
T_AppendPath 
T_MergeAppendPath 
T_ResultPath 
T_MaterialPath 
T_UniquePath 
T_GatherPath 
T_ProjectionPath 
T_ProjectSetPath 
T_SortPath 
T_GroupPath 
T_UpperUniquePath 
T_AggPath 
T_GroupingSetsPath 
T_MinMaxAggPath 
T_WindowAggPath 
T_SetOpPath 
T_RecursiveUnionPath 
T_LockRowsPath 
T_ModifyTablePath 
T_LimitPath 
T_EquivalenceClass 
T_EquivalenceMember 
T_PathKey 
T_PathTarget 
T_RestrictInfo 
T_PlaceHolderVar 
T_SpecialJoinInfo 
T_AppendRelInfo 
T_PlaceHolderInfo 
T_MinMaxAggInfo 
T_PlannerParamItem 
T_MemoryContext 
T_AllocSetContext 
T_Value 
T_Integer 
T_Float 
T_String 
T_BitString 
T_Null 
T_List 
T_IntList 
T_OidList 
T_ExtensibleNode 
T_RawStmt 
T_Query 
T_PlannedStmt 
T_InsertStmt 
T_DeleteStmt 
T_UpdateStmt 
T_SelectStmt 
T_AlterTableStmt 
T_AlterTableCmd 
T_AlterDomainStmt 
T_SetOperationStmt 
T_GrantStmt 
T_GrantRoleStmt 
T_AlterDefaultPrivilegesStmt 
T_ClosePortalStmt 
T_ClusterStmt 
T_CopyStmt 
T_CreateStmt 
T_DefineStmt 
T_DropStmt 
T_TruncateStmt 
T_CommentStmt 
T_FetchStmt 
T_IndexStmt 
T_CreateFunctionStmt 
T_AlterFunctionStmt 
T_DoStmt 
T_RenameStmt 
T_RuleStmt 
T_NotifyStmt 
T_ListenStmt 
T_UnlistenStmt 
T_TransactionStmt 
T_ViewStmt 
T_LoadStmt 
T_CreateDomainStmt 
T_CreatedbStmt 
T_DropdbStmt 
T_VacuumStmt 
T_ExplainStmt 
T_CreateTableAsStmt 
T_CreateSeqStmt 
T_AlterSeqStmt 
T_VariableSetStmt 
T_VariableShowStmt 
T_DiscardStmt 
T_CreateTrigStmt 
T_CreatePLangStmt 
T_CreateRoleStmt 
T_AlterRoleStmt 
T_DropRoleStmt 
T_LockStmt 
T_ConstraintsSetStmt 
T_ReindexStmt 
T_CheckPointStmt 
T_CreateSchemaStmt 
T_AlterDatabaseStmt 
T_AlterDatabaseSetStmt 
T_AlterRoleSetStmt 
T_CreateConversionStmt 
T_CreateCastStmt 
T_CreateOpClassStmt 
T_CreateOpFamilyStmt 
T_AlterOpFamilyStmt 
T_PrepareStmt 
T_ExecuteStmt 
T_DeallocateStmt 
T_DeclareCursorStmt 
T_CreateTableSpaceStmt 
T_DropTableSpaceStmt 
T_AlterObjectDependsStmt 
T_AlterObjectSchemaStmt 
T_AlterOwnerStmt 
T_AlterOperatorStmt 
T_DropOwnedStmt 
T_ReassignOwnedStmt 
T_CompositeTypeStmt 
T_CreateEnumStmt 
T_CreateRangeStmt 
T_AlterEnumStmt 
T_AlterTSDictionaryStmt 
T_AlterTSConfigurationStmt 
T_CreateFdwStmt 
T_AlterFdwStmt 
T_CreateForeignServerStmt 
T_AlterForeignServerStmt 
T_CreateUserMappingStmt 
T_AlterUserMappingStmt 
T_DropUserMappingStmt 
T_AlterTableSpaceOptionsStmt 
T_AlterTableMoveAllStmt 
T_SecLabelStmt 
T_CreateForeignTableStmt 
T_ImportForeignSchemaStmt 
T_CreateExtensionStmt 
T_AlterExtensionStmt 
T_AlterExtensionContentsStmt 
T_CreateEventTrigStmt 
T_AlterEventTrigStmt 
T_RefreshMatViewStmt 
T_ReplicaIdentityStmt 
T_AlterSystemStmt 
T_CreatePolicyStmt 
T_AlterPolicyStmt 
T_CreateTransformStmt 
T_CreateAmStmt 
T_PartitionCmd 
T_CreatePublicationStmt 
T_AlterPublicationStmt 
T_CreateSubscriptionStmt 
T_AlterSubscriptionStmt 
T_DropSubscriptionStmt 
T_A_Expr 
T_ColumnRef 
T_ParamRef 
T_A_Const 
T_FuncCall 
T_A_Star 
T_A_Indices 
T_A_Indirection 
T_A_ArrayExpr 
T_ResTarget 
T_MultiAssignRef 
T_TypeCast 
T_CollateClause 
T_SortBy 
T_WindowDef 
T_RangeSubselect 
T_RangeFunction 
T_RangeTableSample 
T_TypeName 
T_ColumnDef 
T_IndexElem 
T_Constraint 
T_DefElem 
T_RangeTblEntry 
T_RangeTblFunction 
T_TableSampleClause 
T_WithCheckOption 
T_SortGroupClause 
T_GroupingSet 
T_WindowClause 
T_FuncWithArgs 
T_AccessPriv 
T_CreateOpClassItem 
T_TableLikeClause 
T_FunctionParameter 
T_LockingClause 
T_RowMarkClause 
T_XmlSerialize 
T_WithClause 
T_InferClause 
T_OnConflictClause 
T_CommonTableExpr 
T_RoleSpec 
T_TriggerTransition 
T_PartitionElem 
T_PartitionSpec 
T_PartitionBoundSpec 
T_PartitionRangeDatum 
T_IdentifySystemCmd 
T_BaseBackupCmd 
T_CreateReplicationSlotCmd 
T_DropReplicationSlotCmd 
T_StartReplicationCmd 
T_TimeLineHistoryCmd 
T_TriggerData 
T_EventTriggerData 
T_ReturnSetInfo 
T_WindowObjectData 
T_TIDBitmap 
T_InlineCodeBlock 
T_FdwRoutine 
T_IndexAmRoutine 
T_TsmRoutine 
T_ForeignKeyCacheInfo 

Definition at line 26 of file nodes.h.

27 {
28  T_Invalid = 0,
29 
30  /*
31  * TAGS FOR EXECUTOR NODES (execnodes.h)
32  */
38  T_EState,
40 
41  /*
42  * TAGS FOR PLAN NODES (plannodes.h)
43  */
44  T_Plan,
45  T_Result,
48  T_Append,
52  T_BitmapOr,
53  T_Scan,
54  T_SeqScan,
60  T_TidScan,
64  T_CteScan,
68  T_Join,
69  T_NestLoop,
71  T_HashJoin,
72  T_Material,
73  T_Sort,
74  T_Group,
75  T_Agg,
77  T_Unique,
78  T_Gather,
79  T_Hash,
80  T_SetOp,
81  T_LockRows,
82  T_Limit,
83  /* these aren't subclasses of Plan: */
87 
88  /*
89  * TAGS FOR PLAN STATE NODES (execnodes.h)
90  *
91  * These should correspond one-to-one with Plan node types.
92  */
102  T_ScanState,
117  T_JoinState,
122  T_SortState,
123  T_GroupState,
124  T_AggState,
128  T_HashState,
129  T_SetOpState,
131  T_LimitState,
132 
133  /*
134  * TAGS FOR PRIMITIVE NODES (primnodes.h)
135  */
136  T_Alias,
137  T_RangeVar,
138  T_Expr,
139  T_Var,
140  T_Const,
141  T_Param,
142  T_Aggref,
144  T_WindowFunc,
145  T_ArrayRef,
146  T_FuncExpr,
148  T_OpExpr,
150  T_NullIfExpr,
152  T_BoolExpr,
153  T_SubLink,
154  T_SubPlan,
157  T_FieldStore,
163  T_CaseExpr,
164  T_CaseWhen,
166  T_ArrayExpr,
167  T_RowExpr,
170  T_MinMaxExpr,
172  T_XmlExpr,
173  T_NullTest,
182  T_JoinExpr,
183  T_FromExpr,
185  T_IntoClause,
186 
187  /*
188  * TAGS FOR EXPRESSION STATE NODES (execnodes.h)
189  *
190  * These correspond (not always one-for-one) to primitive nodes derived
191  * from Expr.
192  */
193  T_ExprState,
221 
222  /*
223  * TAGS FOR PLANNER NODES (relation.h)
224  */
227  T_RelOptInfo,
231  T_Path,
232  T_IndexPath,
236  T_TidPath,
239  T_CustomPath,
240  T_NestPath,
241  T_MergePath,
242  T_HashPath,
243  T_AppendPath,
245  T_ResultPath,
247  T_UniquePath,
248  T_GatherPath,
251  T_SortPath,
252  T_GroupPath,
254  T_AggPath,
258  T_SetOpPath,
262  T_LimitPath,
263  /* these aren't subclasses of Path: */
266  T_PathKey,
267  T_PathTarget,
275 
276  /*
277  * TAGS FOR MEMORY NODES (memnodes.h)
278  */
281 
282  /*
283  * TAGS FOR VALUE NODES (value.h)
284  */
285  T_Value,
286  T_Integer,
287  T_Float,
288  T_String,
289  T_BitString,
290  T_Null,
291 
292  /*
293  * TAGS FOR LIST NODES (pg_list.h)
294  */
295  T_List,
296  T_IntList,
297  T_OidList,
298 
299  /*
300  * TAGS FOR EXTENSIBLE NODES (extensible.h)
301  */
303 
304  /*
305  * TAGS FOR STATEMENT NODES (mostly in parsenodes.h)
306  */
307  T_RawStmt,
308  T_Query,
310  T_InsertStmt,
311  T_DeleteStmt,
312  T_UpdateStmt,
313  T_SelectStmt,
318  T_GrantStmt,
323  T_CopyStmt,
324  T_CreateStmt,
325  T_DefineStmt,
326  T_DropStmt,
329  T_FetchStmt,
330  T_IndexStmt,
333  T_DoStmt,
334  T_RenameStmt,
335  T_RuleStmt,
336  T_NotifyStmt,
337  T_ListenStmt,
340  T_ViewStmt,
341  T_LoadStmt,
344  T_DropdbStmt,
345  T_VacuumStmt,
358  T_LockStmt,
419 
420  /*
421  * TAGS FOR PARSE TREE NODES (parsenodes.h)
422  */
423  T_A_Expr,
424  T_ColumnRef,
425  T_ParamRef,
426  T_A_Const,
427  T_FuncCall,
428  T_A_Star,
429  T_A_Indices,
432  T_ResTarget,
434  T_TypeCast,
436  T_SortBy,
437  T_WindowDef,
441  T_TypeName,
442  T_ColumnDef,
443  T_IndexElem,
444  T_Constraint,
445  T_DefElem,
454  T_AccessPriv,
461  T_WithClause,
465  T_RoleSpec,
471 
472  /*
473  * TAGS FOR REPLICATION GRAMMAR PARSE NODES (replnodes.h)
474  */
481 
482  /*
483  * TAGS FOR RANDOM OTHER STUFF
484  *
485  * These are objects that aren't part of parse/plan/execute node tree
486  * structures, but we give them NodeTags anyway for identification
487  * purposes (usually because they are involved in APIs where we want to
488  * pass multiple object types through the same pointer).
489  */
490  T_TriggerData, /* in commands/trigger.h */
491  T_EventTriggerData, /* in commands/event_trigger.h */
492  T_ReturnSetInfo, /* in nodes/execnodes.h */
493  T_WindowObjectData, /* private in nodeWindowAgg.c */
494  T_TIDBitmap, /* in nodes/tidbitmap.h */
495  T_InlineCodeBlock, /* in nodes/parsenodes.h */
496  T_FdwRoutine, /* in foreign/fdwapi.h */
497  T_IndexAmRoutine, /* in access/amapi.h */
498  T_TsmRoutine, /* in access/tsmapi.h */
499  T_ForeignKeyCacheInfo /* in utils/rel.h */
500 } NodeTag;
Definition: nodes.h:75
Definition: nodes.h:77
Definition: nodes.h:53
Definition: nodes.h:48
Definition: nodes.h:73
NodeTag
Definition: nodes.h:26
Definition: nodes.h:45
Definition: nodes.h:138
Definition: nodes.h:74
Definition: nodes.h:136
Definition: nodes.h:295
Definition: nodes.h:140
Definition: nodes.h:139
Definition: nodes.h:308
Definition: nodes.h:79
Definition: nodes.h:285
Definition: nodes.h:44
Definition: nodes.h:68
Definition: nodes.h:290
Definition: nodes.h:80
Definition: nodes.h:287
Definition: nodes.h:78
Definition: nodes.h:231
Definition: nodes.h:38
Definition: nodes.h:141
Definition: nodes.h:82
Enumerator
ONCONFLICT_NONE 
ONCONFLICT_NOTHING 
ONCONFLICT_UPDATE 

Definition at line 790 of file nodes.h.

791 {
792  ONCONFLICT_NONE, /* No "ON CONFLICT" clause */
793  ONCONFLICT_NOTHING, /* ON CONFLICT ... DO NOTHING */
794  ONCONFLICT_UPDATE /* ON CONFLICT ... DO UPDATE */
OnConflictAction
Definition: nodes.h:790
enum SetOpCmd
Enumerator
SETOPCMD_INTERSECT 
SETOPCMD_INTERSECT_ALL 
SETOPCMD_EXCEPT 
SETOPCMD_EXCEPT_ALL 

Definition at line 770 of file nodes.h.

Enumerator
SETOP_SORTED 
SETOP_HASHED 

Definition at line 778 of file nodes.h.

779 {
780  SETOP_SORTED, /* input must be sorted */
781  SETOP_HASHED /* use internal hashtable */
782 } SetOpStrategy;
SetOpStrategy
Definition: nodes.h:778

Function Documentation

char* bmsToString ( const struct Bitmapset bms)
void* copyObject ( const void *  obj)

Definition at line 4475 of file copyfuncs.c.

References _copyA_ArrayExpr(), _copyA_Indirection(), _copyAccessPriv(), _copyAConst(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlias(), _copyAlterDatabaseSetStmt(), _copyAlterDatabaseStmt(), _copyAlterDefaultPrivilegesStmt(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterEventTrigStmt(), _copyAlterExtensionContentsStmt(), _copyAlterExtensionStmt(), _copyAlterFdwStmt(), _copyAlterForeignServerStmt(), _copyAlterFunctionStmt(), _copyAlternativeSubPlan(), _copyAlterObjectDependsStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOperatorStmt(), _copyAlterOpFamilyStmt(), _copyAlterOwnerStmt(), _copyAlterPolicyStmt(), _copyAlterPublicationStmt(), _copyAlterRoleSetStmt(), _copyAlterRoleStmt(), _copyAlterSeqStmt(), _copyAlterSubscriptionStmt(), _copyAlterSystemStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterTableStmt(), _copyAlterTSConfigurationStmt(), _copyAlterTSDictionaryStmt(), _copyAlterUserMappingStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyArrayRef(), _copyAStar(), _copyBitmapAnd(), _copyBitmapHeapScan(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCaseExpr(), _copyCaseTestExpr(), _copyCaseWhen(), _copyClosePortalStmt(), _copyClusterStmt(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceToDomainValue(), _copyCoerceViaIO(), _copyCollateClause(), _copyCollateExpr(), _copyColumnDef(), _copyColumnRef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyCompositeTypeStmt(), _copyConst(), _copyConstraint(), _copyConstraintsSetStmt(), _copyConvertRowtypeExpr(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateCastStmt(), _copyCreateConversionStmt(), _copyCreatedbStmt(), _copyCreateDomainStmt(), _copyCreateEnumStmt(), _copyCreateEventTrigStmt(), _copyCreateExtensionStmt(), _copyCreateFdwStmt(), _copyCreateForeignServerStmt(), _copyCreateForeignTableStmt(), _copyCreateFunctionStmt(), _copyCreateOpClassItem(), _copyCreateOpClassStmt(), _copyCreateOpFamilyStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRangeStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateSeqStmt(), _copyCreateStmt(), _copyCreateSubscriptionStmt(), _copyCreateTableAsStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _copyCteScan(), _copyCurrentOfExpr(), _copyCustomScan(), _copyDeallocateStmt(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDefineStmt(), _copyDeleteStmt(), _copyDiscardStmt(), _copyDistinctExpr(), _copyDoStmt(), _copyDropdbStmt(), _copyDropOwnedStmt(), _copyDropRoleStmt(), _copyDropStmt(), _copyDropSubscriptionStmt(), _copyDropTableSpaceStmt(), _copyDropUserMappingStmt(), _copyExecuteStmt(), _copyExplainStmt(), _copyExtensibleNode(), _copyFetchStmt(), _copyFieldSelect(), _copyFieldStore(), _copyForeignKeyCacheInfo(), _copyForeignScan(), _copyFromExpr(), _copyFuncCall(), _copyFuncExpr(), _copyFunctionParameter(), _copyFunctionScan(), _copyFuncWithArgs(), _copyGather(), _copyGrantRoleStmt(), _copyGrantStmt(), _copyGroup(), _copyGroupingFunc(), _copyGroupingSet(), _copyHash(), _copyHashJoin(), _copyImportForeignSchemaStmt(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferClause(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoin(), _copyJoinExpr(), _copyLimit(), _copyList(), _copyListenStmt(), _copyLoadStmt(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMaterial(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoop(), _copyNestLoopParam(), _copyNotifyStmt(), _copyNullIfExpr(), _copyNullTest(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionElem(), _copyPartitionRangeDatum(), _copyPartitionSpec(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlan(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyPrepareStmt(), _copyProjectSet(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableSample(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeTblRef(), _copyRangeVar(), _copyRawStmt(), _copyReassignOwnedStmt(), _copyRecursiveUnion(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyResTarget(), _copyRestrictInfo(), _copyResult(), _copyRoleSpec(), _copyRowCompareExpr(), _copyRowExpr(), _copyRowMarkClause(), _copyRuleStmt(), _copySampleScan(), _copyScalarArrayOpExpr(), _copyScan(), _copySecLabelStmt(), _copySelectStmt(), _copySeqScan(), _copySetOp(), _copySetOperationStmt(), _copySetToDefault(), _copySort(), _copySortBy(), _copySortGroupClause(), _copySpecialJoinInfo(), _copySQLValueFunction(), _copySubLink(), _copySubPlan(), _copySubqueryScan(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _copyTidScan(), _copyTransactionStmt(), _copyTriggerTransition(), _copyTruncateStmt(), _copyTypeCast(), _copyTypeName(), _copyUnique(), _copyUnlistenStmt(), _copyUpdateStmt(), _copyVacuumStmt(), _copyValue(), _copyValuesScan(), _copyVar(), _copyVariableSetStmt(), _copyVariableShowStmt(), _copyViewStmt(), _copyWindowAgg(), _copyWindowClause(), _copyWindowDef(), _copyWindowFunc(), _copyWithCheckOption(), _copyWithClause(), _copyWorkTableScan(), _copyXmlExpr(), _copyXmlSerialize(), check_stack_depth(), elog, ERROR, list_copy(), makeNode, nodeTag, NULL, T_A_ArrayExpr, T_A_Const, T_A_Expr, T_A_Indices, T_A_Indirection, T_A_Star, T_AccessPriv, T_Agg, T_Aggref, T_Alias, T_AlterDatabaseSetStmt, T_AlterDatabaseStmt, T_AlterDefaultPrivilegesStmt, T_AlterDomainStmt, T_AlterEnumStmt, T_AlterEventTrigStmt, T_AlterExtensionContentsStmt, T_AlterExtensionStmt, T_AlterFdwStmt, T_AlterForeignServerStmt, T_AlterFunctionStmt, T_AlternativeSubPlan, T_AlterObjectDependsStmt, T_AlterObjectSchemaStmt, T_AlterOperatorStmt, T_AlterOpFamilyStmt, T_AlterOwnerStmt, T_AlterPolicyStmt, T_AlterPublicationStmt, T_AlterRoleSetStmt, T_AlterRoleStmt, T_AlterSeqStmt, T_AlterSubscriptionStmt, T_AlterSystemStmt, T_AlterTableCmd, T_AlterTableMoveAllStmt, T_AlterTableSpaceOptionsStmt, T_AlterTableStmt, T_AlterTSConfigurationStmt, T_AlterTSDictionaryStmt, T_AlterUserMappingStmt, T_Append, T_AppendRelInfo, T_ArrayCoerceExpr, T_ArrayExpr, T_ArrayRef, T_BitmapAnd, T_BitmapHeapScan, T_BitmapIndexScan, T_BitmapOr, T_BitString, T_BooleanTest, T_BoolExpr, T_CaseExpr, T_CaseTestExpr, T_CaseWhen, T_CheckPointStmt, T_ClosePortalStmt, T_ClusterStmt, T_CoalesceExpr, T_CoerceToDomain, T_CoerceToDomainValue, T_CoerceViaIO, T_CollateClause, T_CollateExpr, T_ColumnDef, T_ColumnRef, T_CommentStmt, T_CommonTableExpr, T_CompositeTypeStmt, T_Const, T_Constraint, T_ConstraintsSetStmt, T_ConvertRowtypeExpr, T_CopyStmt, T_CreateAmStmt, T_CreateCastStmt, T_CreateConversionStmt, T_CreatedbStmt, T_CreateDomainStmt, T_CreateEnumStmt, T_CreateEventTrigStmt, T_CreateExtensionStmt, T_CreateFdwStmt, T_CreateForeignServerStmt, T_CreateForeignTableStmt, T_CreateFunctionStmt, T_CreateOpClassItem, T_CreateOpClassStmt, T_CreateOpFamilyStmt, T_CreatePLangStmt, T_CreatePolicyStmt, T_CreatePublicationStmt, T_CreateRangeStmt, T_CreateRoleStmt, T_CreateSchemaStmt, T_CreateSeqStmt, T_CreateStmt, T_CreateSubscriptionStmt, T_CreateTableAsStmt, T_CreateTableSpaceStmt, T_CreateTransformStmt, T_CreateTrigStmt, T_CreateUserMappingStmt, T_CteScan, T_CurrentOfExpr, T_CustomScan, T_DeallocateStmt, T_DeclareCursorStmt, T_DefElem, T_DefineStmt, T_DeleteStmt, T_DiscardStmt, T_DistinctExpr, T_DoStmt, T_DropdbStmt, T_DropOwnedStmt, T_DropRoleStmt, T_DropStmt, T_DropSubscriptionStmt, T_DropTableSpaceStmt, T_DropUserMappingStmt, T_ExecuteStmt, T_ExplainStmt, T_ExtensibleNode, T_FetchStmt, T_FieldSelect, T_FieldStore, T_Float, T_ForeignKeyCacheInfo, T_ForeignScan, T_FromExpr, T_FuncCall, T_FuncExpr, T_FunctionParameter, T_FunctionScan, T_FuncWithArgs, T_Gather, T_GrantRoleStmt, T_GrantStmt, T_Group, T_GroupingFunc, T_GroupingSet, T_Hash, T_HashJoin, T_ImportForeignSchemaStmt, T_IndexElem, T_IndexOnlyScan, T_IndexScan, T_IndexStmt, T_InferClause, T_InferenceElem, T_InsertStmt, T_Integer, T_IntList, T_IntoClause, T_Join, T_JoinExpr, T_Limit, T_List, T_ListenStmt, T_LoadStmt, T_LockingClause, T_LockRows, T_LockStmt, T_Material, T_MergeAppend, T_MergeJoin, T_MinMaxExpr, T_ModifyTable, T_MultiAssignRef, T_NamedArgExpr, T_NestLoop, T_NestLoopParam, T_NotifyStmt, T_Null, T_NullIfExpr, T_NullTest, T_OidList, T_OnConflictClause, T_OnConflictExpr, T_OpExpr, T_Param, T_ParamRef, T_PartitionBoundSpec, T_PartitionCmd, T_PartitionElem, T_PartitionRangeDatum, T_PartitionSpec, T_PathKey, T_PlaceHolderInfo, T_PlaceHolderVar, T_Plan, T_PlanInvalItem, T_PlannedStmt, T_PlanRowMark, T_PrepareStmt, T_ProjectSet, T_Query, T_RangeFunction, T_RangeSubselect, T_RangeTableSample, T_RangeTblEntry, T_RangeTblFunction, T_RangeTblRef, T_RangeVar, T_RawStmt, T_ReassignOwnedStmt, T_RecursiveUnion, T_RefreshMatViewStmt, T_ReindexStmt, T_RelabelType, T_RenameStmt, T_ReplicaIdentityStmt, T_ResTarget, T_RestrictInfo, T_Result, T_RoleSpec, T_RowCompareExpr, T_RowExpr, T_RowMarkClause, T_RuleStmt, T_SampleScan, T_ScalarArrayOpExpr, T_Scan, T_SecLabelStmt, T_SelectStmt, T_SeqScan, T_SetOp, T_SetOperationStmt, T_SetToDefault, T_Sort, T_SortBy, T_SortGroupClause, T_SpecialJoinInfo, T_SQLValueFunction, T_String, T_SubLink, T_SubPlan, T_SubqueryScan, T_TableLikeClause, T_TableSampleClause, T_TargetEntry, T_TidScan, T_TransactionStmt, T_TriggerTransition, T_TruncateStmt, T_TypeCast, T_TypeName, T_Unique, T_UnlistenStmt, T_UpdateStmt, T_VacuumStmt, T_ValuesScan, T_Var, T_VariableSetStmt, T_VariableShowStmt, T_ViewStmt, T_WindowAgg, T_WindowClause, T_WindowDef, T_WindowFunc, T_WithCheckOption, T_WithClause, T_WorkTableScan, T_XmlExpr, and T_XmlSerialize.

Referenced by add_placeholders_to_base_rels(), add_security_quals(), add_to_flat_tlist(), add_vars_to_targetlist(), add_with_check_options(), AddQual(), addRangeTableEntryForCTE(), addRangeTableEntryForJoin(), addRangeTableEntryForSubquery(), addRangeTableEntryForValues(), adjust_appendrel_attrs_mutator(), adjust_rowcompare_for_index(), adjustJoinTreeList(), AlterPolicy(), analyzeCTETargetList(), ApplyRetrieveRule(), assign_param_for_placeholdervar(), assign_param_for_var(), ATAddCheckConstraint(), ATExecAddColumn(), ATPrepAlterColumnType(), ATPrepCmd(), BeginCopy(), build_implied_join_equality(), build_minmax_path(), BuildCachedPlan(), CompleteCachedPlan(), compute_semijoin_info(), convert_combining_aggrefs(), convert_EXISTS_sublink_to_join(), convert_testexpr_mutator(), ConvertTriggerToFK(), copy_partition_key(), CopyAndAddInvertedQual(), CopyCachedPlan(), create_ctas_internal(), create_scan_plan(), CreateCachedPlan(), CreatePolicy(), CreateTrigger(), DefineView(), eval_const_expressions_mutator(), EvaluateParams(), EventTriggerAlterTableStart(), EventTriggerCollectAlterDefPrivs(), EventTriggerCollectAlterOpFam(), EventTriggerCollectAlterTableSubcmd(), EventTriggerCollectAlterTSConfig(), EventTriggerCollectCreateOpClass(), EventTriggerCollectGrant(), EventTriggerCollectSimpleCommand(), ExecCreateTableAs(), ExecSerializePlan(), expand_inherited_rtentry(), ExpandIndirectionStar(), ExpandRowReference(), ExplainOneUtility(), ExplainQuery(), expression_tree_mutator(), extract_lateral_references(), FetchPreparedStatementTargetList(), find_placeholder_info(), fireRules(), fix_indexqual_operand(), fix_param_node(), fix_scan_expr_mutator(), fix_upper_expr_mutator(), flatten_join_alias_vars_mutator(), flatten_simple_union_all(), generate_partition_qual(), generate_setop_grouplist(), get_cast_hashentry(), get_eclass_for_sort_expr(), get_qual_for_list(), get_qual_for_range(), grouping_planner(), index_register(), inheritance_planner(), inline_function(), inline_set_returning_function(), make_subplan(), PerformCursorOpen(), pg_parse_query(), pg_plan_query(), pg_rewrite_query(), prepare_sort_from_pathkeys(), PrepareQuery(), process_implied_equality(), process_subquery_nestloop_params(), pull_up_simple_subquery(), pull_up_simple_union_all(), pull_up_simple_values(), pullup_replace_vars_callback(), query_tree_mutator(), range_table_mutator(), refresh_matview_datafill(), RelationBuildRowSecurity(), RelationGetFKeyList(), RelationGetIndexExpressions(), RelationGetIndexPredicate(), replace_domain_constraint_value(), replace_outer_agg(), replace_outer_grouping(), ReplaceVarsFromTargetList_callback(), RevalidateCachedQuery(), rewriteRuleAction(), rewriteTargetView(), set_plan_refs(), set_subquery_pathlist(), SPI_cursor_open_internal(), split_pathtarget_at_srfs(), SS_process_ctes(), subquery_planner(), substitute_actual_srf_parameters_mutator(), test_rls_hooks_permissive(), test_rls_hooks_restrictive(), transformAExprBetween(), transformAExprIn(), transformAlterTableStmt(), transformCreateStmt(), transformCreateTableAsStmt(), transformDistinctClause(), transformDistinctOnClause(), transformGroupClauseExpr(), transformIndexStmt(), transformJoinUsingClause(), transformPartitionBound(), transformRuleStmt(), transformWindowDefinitions(), UpdateRangeTableOfViewParse(), and verify_dictoptions().

4476 {
4477  void *retval;
4478 
4479  if (from == NULL)
4480  return NULL;
4481 
4482  /* Guard against stack overflow due to overly complex expressions */
4484 
4485  switch (nodeTag(from))
4486  {
4487  /*
4488  * PLAN NODES
4489  */
4490  case T_PlannedStmt:
4491  retval = _copyPlannedStmt(from);
4492  break;
4493  case T_Plan:
4494  retval = _copyPlan(from);
4495  break;
4496  case T_Result:
4497  retval = _copyResult(from);
4498  break;
4499  case T_ProjectSet:
4500  retval = _copyProjectSet(from);
4501  break;
4502  case T_ModifyTable:
4503  retval = _copyModifyTable(from);
4504  break;
4505  case T_Append:
4506  retval = _copyAppend(from);
4507  break;
4508  case T_MergeAppend:
4509  retval = _copyMergeAppend(from);
4510  break;
4511  case T_RecursiveUnion:
4512  retval = _copyRecursiveUnion(from);
4513  break;
4514  case T_BitmapAnd:
4515  retval = _copyBitmapAnd(from);
4516  break;
4517  case T_BitmapOr:
4518  retval = _copyBitmapOr(from);
4519  break;
4520  case T_Scan:
4521  retval = _copyScan(from);
4522  break;
4523  case T_Gather:
4524  retval = _copyGather(from);
4525  break;
4526  case T_SeqScan:
4527  retval = _copySeqScan(from);
4528  break;
4529  case T_SampleScan:
4530  retval = _copySampleScan(from);
4531  break;
4532  case T_IndexScan:
4533  retval = _copyIndexScan(from);
4534  break;
4535  case T_IndexOnlyScan:
4536  retval = _copyIndexOnlyScan(from);
4537  break;
4538  case T_BitmapIndexScan:
4539  retval = _copyBitmapIndexScan(from);
4540  break;
4541  case T_BitmapHeapScan:
4542  retval = _copyBitmapHeapScan(from);
4543  break;
4544  case T_TidScan:
4545  retval = _copyTidScan(from);
4546  break;
4547  case T_SubqueryScan:
4548  retval = _copySubqueryScan(from);
4549  break;
4550  case T_FunctionScan:
4551  retval = _copyFunctionScan(from);
4552  break;
4553  case T_ValuesScan:
4554  retval = _copyValuesScan(from);
4555  break;
4556  case T_CteScan:
4557  retval = _copyCteScan(from);
4558  break;
4559  case T_WorkTableScan:
4560  retval = _copyWorkTableScan(from);
4561  break;
4562  case T_ForeignScan:
4563  retval = _copyForeignScan(from);
4564  break;
4565  case T_CustomScan:
4566  retval = _copyCustomScan(from);
4567  break;
4568  case T_Join:
4569  retval = _copyJoin(from);
4570  break;
4571  case T_NestLoop:
4572  retval = _copyNestLoop(from);
4573  break;
4574  case T_MergeJoin:
4575  retval = _copyMergeJoin(from);
4576  break;
4577  case T_HashJoin:
4578  retval = _copyHashJoin(from);
4579  break;
4580  case T_Material:
4581  retval = _copyMaterial(from);
4582  break;
4583  case T_Sort:
4584  retval = _copySort(from);
4585  break;
4586  case T_Group:
4587  retval = _copyGroup(from);
4588  break;
4589  case T_Agg:
4590  retval = _copyAgg(from);
4591  break;
4592  case T_WindowAgg:
4593  retval = _copyWindowAgg(from);
4594  break;
4595  case T_Unique:
4596  retval = _copyUnique(from);
4597  break;
4598  case T_Hash:
4599  retval = _copyHash(from);
4600  break;
4601  case T_SetOp:
4602  retval = _copySetOp(from);
4603  break;
4604  case T_LockRows:
4605  retval = _copyLockRows(from);
4606  break;
4607  case T_Limit:
4608  retval = _copyLimit(from);
4609  break;
4610  case T_NestLoopParam:
4611  retval = _copyNestLoopParam(from);
4612  break;
4613  case T_PlanRowMark:
4614  retval = _copyPlanRowMark(from);
4615  break;
4616  case T_PlanInvalItem:
4617  retval = _copyPlanInvalItem(from);
4618  break;
4619 
4620  /*
4621  * PRIMITIVE NODES
4622  */
4623  case T_Alias:
4624  retval = _copyAlias(from);
4625  break;
4626  case T_RangeVar:
4627  retval = _copyRangeVar(from);
4628  break;
4629  case T_IntoClause:
4630  retval = _copyIntoClause(from);
4631  break;
4632  case T_Var:
4633  retval = _copyVar(from);
4634  break;
4635  case T_Const:
4636  retval = _copyConst(from);
4637  break;
4638  case T_Param:
4639  retval = _copyParam(from);
4640  break;
4641  case T_Aggref:
4642  retval = _copyAggref(from);
4643  break;
4644  case T_GroupingFunc:
4645  retval = _copyGroupingFunc(from);
4646  break;
4647  case T_WindowFunc:
4648  retval = _copyWindowFunc(from);
4649  break;
4650  case T_ArrayRef:
4651  retval = _copyArrayRef(from);
4652  break;
4653  case T_FuncExpr:
4654  retval = _copyFuncExpr(from);
4655  break;
4656  case T_NamedArgExpr:
4657  retval = _copyNamedArgExpr(from);
4658  break;
4659  case T_OpExpr:
4660  retval = _copyOpExpr(from);
4661  break;
4662  case T_DistinctExpr:
4663  retval = _copyDistinctExpr(from);
4664  break;
4665  case T_NullIfExpr:
4666  retval = _copyNullIfExpr(from);
4667  break;
4668  case T_ScalarArrayOpExpr:
4669  retval = _copyScalarArrayOpExpr(from);
4670  break;
4671  case T_BoolExpr:
4672  retval = _copyBoolExpr(from);
4673  break;
4674  case T_SubLink:
4675  retval = _copySubLink(from);
4676  break;
4677  case T_SubPlan:
4678  retval = _copySubPlan(from);
4679  break;
4680  case T_AlternativeSubPlan:
4681  retval = _copyAlternativeSubPlan(from);
4682  break;
4683  case T_FieldSelect:
4684  retval = _copyFieldSelect(from);
4685  break;
4686  case T_FieldStore:
4687  retval = _copyFieldStore(from);
4688  break;
4689  case T_RelabelType:
4690  retval = _copyRelabelType(from);
4691  break;
4692  case T_CoerceViaIO:
4693  retval = _copyCoerceViaIO(from);
4694  break;
4695  case T_ArrayCoerceExpr:
4696  retval = _copyArrayCoerceExpr(from);
4697  break;
4698  case T_ConvertRowtypeExpr:
4699  retval = _copyConvertRowtypeExpr(from);
4700  break;
4701  case T_CollateExpr:
4702  retval = _copyCollateExpr(from);
4703  break;
4704  case T_CaseExpr:
4705  retval = _copyCaseExpr(from);
4706  break;
4707  case T_CaseWhen:
4708  retval = _copyCaseWhen(from);
4709  break;
4710  case T_CaseTestExpr:
4711  retval = _copyCaseTestExpr(from);
4712  break;
4713  case T_ArrayExpr:
4714  retval = _copyArrayExpr(from);
4715  break;
4716  case T_RowExpr:
4717  retval = _copyRowExpr(from);
4718  break;
4719  case T_RowCompareExpr:
4720  retval = _copyRowCompareExpr(from);
4721  break;
4722  case T_CoalesceExpr:
4723  retval = _copyCoalesceExpr(from);
4724  break;
4725  case T_MinMaxExpr:
4726  retval = _copyMinMaxExpr(from);
4727  break;
4728  case T_SQLValueFunction:
4729  retval = _copySQLValueFunction(from);
4730  break;
4731  case T_XmlExpr:
4732  retval = _copyXmlExpr(from);
4733  break;
4734  case T_NullTest:
4735  retval = _copyNullTest(from);
4736  break;
4737  case T_BooleanTest:
4738  retval = _copyBooleanTest(from);
4739  break;
4740  case T_CoerceToDomain:
4741  retval = _copyCoerceToDomain(from);
4742  break;
4743  case T_CoerceToDomainValue:
4744  retval = _copyCoerceToDomainValue(from);
4745  break;
4746  case T_SetToDefault:
4747  retval = _copySetToDefault(from);
4748  break;
4749  case T_CurrentOfExpr:
4750  retval = _copyCurrentOfExpr(from);
4751  break;
4752  case T_InferenceElem:
4753  retval = _copyInferenceElem(from);
4754  break;
4755  case T_TargetEntry:
4756  retval = _copyTargetEntry(from);
4757  break;
4758  case T_RangeTblRef:
4759  retval = _copyRangeTblRef(from);
4760  break;
4761  case T_JoinExpr:
4762  retval = _copyJoinExpr(from);
4763  break;
4764  case T_FromExpr:
4765  retval = _copyFromExpr(from);
4766  break;
4767  case T_OnConflictExpr:
4768  retval = _copyOnConflictExpr(from);
4769  break;
4770 
4771  /*
4772  * RELATION NODES
4773  */
4774  case T_PathKey:
4775  retval = _copyPathKey(from);
4776  break;
4777  case T_RestrictInfo:
4778  retval = _copyRestrictInfo(from);
4779  break;
4780  case T_PlaceHolderVar:
4781  retval = _copyPlaceHolderVar(from);
4782  break;
4783  case T_SpecialJoinInfo:
4784  retval = _copySpecialJoinInfo(from);
4785  break;
4786  case T_AppendRelInfo:
4787  retval = _copyAppendRelInfo(from);
4788  break;
4789  case T_PlaceHolderInfo:
4790  retval = _copyPlaceHolderInfo(from);
4791  break;
4792 
4793  /*
4794  * VALUE NODES
4795  */
4796  case T_Integer:
4797  case T_Float:
4798  case T_String:
4799  case T_BitString:
4800  case T_Null:
4801  retval = _copyValue(from);
4802  break;
4803 
4804  /*
4805  * LIST NODES
4806  */
4807  case T_List:
4808  retval = _copyList(from);
4809  break;
4810 
4811  /*
4812  * Lists of integers and OIDs don't need to be deep-copied, so we
4813  * perform a shallow copy via list_copy()
4814  */
4815  case T_IntList:
4816  case T_OidList:
4817  retval = list_copy(from);
4818  break;
4819 
4820  /*
4821  * EXTENSIBLE NODES
4822  */
4823  case T_ExtensibleNode:
4824  retval = _copyExtensibleNode(from);
4825  break;
4826 
4827  /*
4828  * PARSE NODES
4829  */
4830  case T_Query:
4831  retval = _copyQuery(from);
4832  break;
4833  case T_RawStmt:
4834  retval = _copyRawStmt(from);
4835  break;
4836  case T_InsertStmt:
4837  retval = _copyInsertStmt(from);
4838  break;
4839  case T_DeleteStmt:
4840  retval = _copyDeleteStmt(from);
4841  break;
4842  case T_UpdateStmt:
4843  retval = _copyUpdateStmt(from);
4844  break;
4845  case T_SelectStmt:
4846  retval = _copySelectStmt(from);
4847  break;
4848  case T_SetOperationStmt:
4849  retval = _copySetOperationStmt(from);
4850  break;
4851  case T_AlterTableStmt:
4852  retval = _copyAlterTableStmt(from);
4853  break;
4854  case T_AlterTableCmd:
4855  retval = _copyAlterTableCmd(from);
4856  break;
4857  case T_AlterDomainStmt:
4858  retval = _copyAlterDomainStmt(from);
4859  break;
4860  case T_GrantStmt:
4861  retval = _copyGrantStmt(from);
4862  break;
4863  case T_GrantRoleStmt:
4864  retval = _copyGrantRoleStmt(from);
4865  break;
4867  retval = _copyAlterDefaultPrivilegesStmt(from);
4868  break;
4869  case T_DeclareCursorStmt:
4870  retval = _copyDeclareCursorStmt(from);
4871  break;
4872  case T_ClosePortalStmt:
4873  retval = _copyClosePortalStmt(from);
4874  break;
4875  case T_ClusterStmt:
4876  retval = _copyClusterStmt(from);
4877  break;
4878  case T_CopyStmt:
4879  retval = _copyCopyStmt(from);
4880  break;
4881  case T_CreateStmt:
4882  retval = _copyCreateStmt(from);
4883  break;
4884  case T_TableLikeClause:
4885  retval = _copyTableLikeClause(from);
4886  break;
4887  case T_DefineStmt:
4888  retval = _copyDefineStmt(from);
4889  break;
4890  case T_DropStmt:
4891  retval = _copyDropStmt(from);
4892  break;
4893  case T_TruncateStmt:
4894  retval = _copyTruncateStmt(from);
4895  break;
4896  case T_CommentStmt:
4897  retval = _copyCommentStmt(from);
4898  break;
4899  case T_SecLabelStmt:
4900  retval = _copySecLabelStmt(from);
4901  break;
4902  case T_FetchStmt:
4903  retval = _copyFetchStmt(from);
4904  break;
4905  case T_IndexStmt:
4906  retval = _copyIndexStmt(from);
4907  break;
4908  case T_CreateFunctionStmt:
4909  retval = _copyCreateFunctionStmt(from);
4910  break;
4911  case T_FunctionParameter:
4912  retval = _copyFunctionParameter(from);
4913  break;
4914  case T_AlterFunctionStmt:
4915  retval = _copyAlterFunctionStmt(from);
4916  break;
4917  case T_DoStmt:
4918  retval = _copyDoStmt(from);
4919  break;
4920  case T_RenameStmt:
4921  retval = _copyRenameStmt(from);
4922  break;
4924  retval = _copyAlterObjectDependsStmt(from);
4925  break;
4927  retval = _copyAlterObjectSchemaStmt(from);
4928  break;
4929  case T_AlterOwnerStmt:
4930  retval = _copyAlterOwnerStmt(from);
4931  break;
4932  case T_AlterOperatorStmt:
4933  retval = _copyAlterOperatorStmt(from);
4934  break;
4935  case T_RuleStmt:
4936  retval = _copyRuleStmt(from);
4937  break;
4938  case T_NotifyStmt:
4939  retval = _copyNotifyStmt(from);
4940  break;
4941  case T_ListenStmt:
4942  retval = _copyListenStmt(from);
4943  break;
4944  case T_UnlistenStmt:
4945  retval = _copyUnlistenStmt(from);
4946  break;
4947  case T_TransactionStmt:
4948  retval = _copyTransactionStmt(from);
4949  break;
4950  case T_CompositeTypeStmt:
4951  retval = _copyCompositeTypeStmt(from);
4952  break;
4953  case T_CreateEnumStmt:
4954  retval = _copyCreateEnumStmt(from);
4955  break;
4956  case T_CreateRangeStmt:
4957  retval = _copyCreateRangeStmt(from);
4958  break;
4959  case T_AlterEnumStmt:
4960  retval = _copyAlterEnumStmt(from);
4961  break;
4962  case T_ViewStmt:
4963  retval = _copyViewStmt(from);
4964  break;
4965  case T_LoadStmt:
4966  retval = _copyLoadStmt(from);
4967  break;
4968  case T_CreateDomainStmt:
4969  retval = _copyCreateDomainStmt(from);
4970  break;
4971  case T_CreateOpClassStmt:
4972  retval = _copyCreateOpClassStmt(from);
4973  break;
4974  case T_CreateOpClassItem:
4975  retval = _copyCreateOpClassItem(from);
4976  break;
4977  case T_CreateOpFamilyStmt:
4978  retval = _copyCreateOpFamilyStmt(from);
4979  break;
4980  case T_AlterOpFamilyStmt:
4981  retval = _copyAlterOpFamilyStmt(from);
4982  break;
4983  case T_CreatedbStmt:
4984  retval = _copyCreatedbStmt(from);
4985  break;
4986  case T_AlterDatabaseStmt:
4987  retval = _copyAlterDatabaseStmt(from);
4988  break;
4990  retval = _copyAlterDatabaseSetStmt(from);
4991  break;
4992  case T_DropdbStmt:
4993  retval = _copyDropdbStmt(from);
4994  break;
4995  case T_VacuumStmt:
4996  retval = _copyVacuumStmt(from);
4997  break;
4998  case T_ExplainStmt:
4999  retval = _copyExplainStmt(from);
5000  break;
5001  case T_CreateTableAsStmt:
5002  retval = _copyCreateTableAsStmt(from);
5003  break;
5004  case T_RefreshMatViewStmt:
5005  retval = _copyRefreshMatViewStmt(from);
5006  break;
5007  case T_ReplicaIdentityStmt:
5008  retval = _copyReplicaIdentityStmt(from);
5009  break;
5010  case T_AlterSystemStmt:
5011  retval = _copyAlterSystemStmt(from);
5012  break;
5013  case T_CreateSeqStmt:
5014  retval = _copyCreateSeqStmt(from);
5015  break;
5016  case T_AlterSeqStmt:
5017  retval = _copyAlterSeqStmt(from);
5018  break;
5019  case T_VariableSetStmt:
5020  retval = _copyVariableSetStmt(from);
5021  break;
5022  case T_VariableShowStmt:
5023  retval = _copyVariableShowStmt(from);
5024  break;
5025  case T_DiscardStmt:
5026  retval = _copyDiscardStmt(from);
5027  break;
5029  retval = _copyCreateTableSpaceStmt(from);
5030  break;
5031  case T_DropTableSpaceStmt:
5032  retval = _copyDropTableSpaceStmt(from);
5033  break;
5035  retval = _copyAlterTableSpaceOptionsStmt(from);
5036  break;
5038  retval = _copyAlterTableMoveAllStmt(from);
5039  break;
5040  case T_CreateExtensionStmt:
5041  retval = _copyCreateExtensionStmt(from);
5042  break;
5043  case T_AlterExtensionStmt:
5044  retval = _copyAlterExtensionStmt(from);
5045  break;
5047  retval = _copyAlterExtensionContentsStmt(from);
5048  break;
5049  case T_CreateFdwStmt:
5050  retval = _copyCreateFdwStmt(from);
5051  break;
5052  case T_AlterFdwStmt:
5053  retval = _copyAlterFdwStmt(from);
5054  break;
5056  retval = _copyCreateForeignServerStmt(from);
5057  break;
5059  retval = _copyAlterForeignServerStmt(from);
5060  break;
5062  retval = _copyCreateUserMappingStmt(from);
5063  break;
5065  retval = _copyAlterUserMappingStmt(from);
5066  break;
5067  case T_DropUserMappingStmt:
5068  retval = _copyDropUserMappingStmt(from);
5069  break;
5071  retval = _copyCreateForeignTableStmt(from);
5072  break;
5074  retval = _copyImportForeignSchemaStmt(from);
5075  break;
5076  case T_CreateTransformStmt:
5077  retval = _copyCreateTransformStmt(from);
5078  break;
5079  case T_CreateAmStmt:
5080  retval = _copyCreateAmStmt(from);
5081  break;
5082  case T_CreateTrigStmt:
5083  retval = _copyCreateTrigStmt(from);
5084  break;
5085  case T_CreateEventTrigStmt:
5086  retval = _copyCreateEventTrigStmt(from);
5087  break;
5088  case T_AlterEventTrigStmt:
5089  retval = _copyAlterEventTrigStmt(from);
5090  break;
5091  case T_CreatePLangStmt:
5092  retval = _copyCreatePLangStmt(from);
5093  break;
5094  case T_CreateRoleStmt:
5095  retval = _copyCreateRoleStmt(from);
5096  break;
5097  case T_AlterRoleStmt:
5098  retval = _copyAlterRoleStmt(from);
5099  break;
5100  case T_AlterRoleSetStmt:
5101  retval = _copyAlterRoleSetStmt(from);
5102  break;
5103  case T_DropRoleStmt:
5104  retval = _copyDropRoleStmt(from);
5105  break;
5106  case T_LockStmt:
5107  retval = _copyLockStmt(from);
5108  break;
5109  case T_ConstraintsSetStmt:
5110  retval = _copyConstraintsSetStmt(from);
5111  break;
5112  case T_ReindexStmt:
5113  retval = _copyReindexStmt(from);
5114  break;
5115  case T_CheckPointStmt:
5116  retval = (void *) makeNode(CheckPointStmt);
5117  break;
5118  case T_CreateSchemaStmt:
5119  retval = _copyCreateSchemaStmt(from);
5120  break;
5122  retval = _copyCreateConversionStmt(from);
5123  break;
5124  case T_CreateCastStmt:
5125  retval = _copyCreateCastStmt(from);
5126  break;
5127  case T_PrepareStmt:
5128  retval = _copyPrepareStmt(from);
5129  break;
5130  case T_ExecuteStmt:
5131  retval = _copyExecuteStmt(from);
5132  break;
5133  case T_DeallocateStmt:
5134  retval = _copyDeallocateStmt(from);
5135  break;
5136  case T_DropOwnedStmt:
5137  retval = _copyDropOwnedStmt(from);
5138  break;
5139  case T_ReassignOwnedStmt:
5140  retval = _copyReassignOwnedStmt(from);
5141  break;
5143  retval = _copyAlterTSDictionaryStmt(from);
5144  break;
5146  retval = _copyAlterTSConfigurationStmt(from);
5147  break;
5148  case T_CreatePolicyStmt:
5149  retval = _copyCreatePolicyStmt(from);
5150  break;
5151  case T_AlterPolicyStmt:
5152  retval = _copyAlterPolicyStmt(from);
5153  break;
5155  retval = _copyCreatePublicationStmt(from);
5156  break;
5158  retval = _copyAlterPublicationStmt(from);
5159  break;
5161  retval = _copyCreateSubscriptionStmt(from);
5162  break;
5164  retval = _copyAlterSubscriptionStmt(from);
5165  break;
5167  retval = _copyDropSubscriptionStmt(from);
5168  break;
5169  case T_A_Expr:
5170  retval = _copyAExpr(from);
5171  break;
5172  case T_ColumnRef:
5173  retval = _copyColumnRef(from);
5174  break;
5175  case T_ParamRef:
5176  retval = _copyParamRef(from);
5177  break;
5178  case T_A_Const:
5179  retval = _copyAConst(from);
5180  break;
5181  case T_FuncCall:
5182  retval = _copyFuncCall(from);
5183  break;
5184  case T_A_Star:
5185  retval = _copyAStar(from);
5186  break;
5187  case T_A_Indices:
5188  retval = _copyAIndices(from);
5189  break;
5190  case T_A_Indirection:
5191  retval = _copyA_Indirection(from);
5192  break;
5193  case T_A_ArrayExpr:
5194  retval = _copyA_ArrayExpr(from);
5195  break;
5196  case T_ResTarget:
5197  retval = _copyResTarget(from);
5198  break;
5199  case T_MultiAssignRef:
5200  retval = _copyMultiAssignRef(from);
5201  break;
5202  case T_TypeCast:
5203  retval = _copyTypeCast(from);
5204  break;
5205  case T_CollateClause:
5206  retval = _copyCollateClause(from);
5207  break;
5208  case T_SortBy:
5209  retval = _copySortBy(from);
5210  break;
5211  case T_WindowDef:
5212  retval = _copyWindowDef(from);
5213  break;
5214  case T_RangeSubselect:
5215  retval = _copyRangeSubselect(from);
5216  break;
5217  case T_RangeFunction:
5218  retval = _copyRangeFunction(from);
5219  break;
5220  case T_RangeTableSample:
5221  retval = _copyRangeTableSample(from);
5222  break;
5223  case T_TypeName:
5224  retval = _copyTypeName(from);
5225  break;
5226  case T_IndexElem:
5227  retval = _copyIndexElem(from);
5228  break;
5229  case T_ColumnDef:
5230  retval = _copyColumnDef(from);
5231  break;
5232  case T_Constraint:
5233  retval = _copyConstraint(from);
5234  break;
5235  case T_DefElem:
5236  retval = _copyDefElem(from);
5237  break;
5238  case T_LockingClause:
5239  retval = _copyLockingClause(from);
5240  break;
5241  case T_RangeTblEntry:
5242  retval = _copyRangeTblEntry(from);
5243  break;
5244  case T_RangeTblFunction:
5245  retval = _copyRangeTblFunction(from);
5246  break;
5247  case T_TableSampleClause:
5248  retval = _copyTableSampleClause(from);
5249  break;
5250  case T_WithCheckOption:
5251  retval = _copyWithCheckOption(from);
5252  break;
5253  case T_SortGroupClause:
5254  retval = _copySortGroupClause(from);
5255  break;
5256  case T_GroupingSet:
5257  retval = _copyGroupingSet(from);
5258  break;
5259  case T_WindowClause:
5260  retval = _copyWindowClause(from);
5261  break;
5262  case T_RowMarkClause:
5263  retval = _copyRowMarkClause(from);
5264  break;
5265  case T_WithClause:
5266  retval = _copyWithClause(from);
5267  break;
5268  case T_InferClause:
5269  retval = _copyInferClause(from);
5270  break;
5271  case T_OnConflictClause:
5272  retval = _copyOnConflictClause(from);
5273  break;
5274  case T_CommonTableExpr:
5275  retval = _copyCommonTableExpr(from);
5276  break;
5277  case T_FuncWithArgs:
5278  retval = _copyFuncWithArgs(from);
5279  break;
5280  case T_AccessPriv:
5281  retval = _copyAccessPriv(from);
5282  break;
5283  case T_XmlSerialize:
5284  retval = _copyXmlSerialize(from);
5285  break;
5286  case T_RoleSpec:
5287  retval = _copyRoleSpec(from);
5288  break;
5289  case T_TriggerTransition:
5290  retval = _copyTriggerTransition(from);
5291  break;
5292  case T_PartitionSpec:
5293  retval = _copyPartitionSpec(from);
5294  break;
5295  case T_PartitionElem:
5296  retval = _copyPartitionElem(from);
5297  break;
5298  case T_PartitionBoundSpec:
5299  retval = _copyPartitionBoundSpec(from);
5300  break;
5301  case T_PartitionRangeDatum:
5302  retval = _copyPartitionRangeDatum(from);
5303  break;
5304  case T_PartitionCmd:
5305  retval = _copyPartitionCmd(from);
5306  break;
5307 
5308  /*
5309  * MISCELLANEOUS NODES
5310  */
5311  case T_ForeignKeyCacheInfo:
5312  retval = _copyForeignKeyCacheInfo(from);
5313  break;
5314 
5315  default:
5316  elog(ERROR, "unrecognized node type: %d", (int) nodeTag(from));
5317  retval = 0; /* keep compiler quiet */
5318  break;
5319  }
5320 
5321  return retval;
5322 }
static Limit * _copyLimit(const Limit *from)
Definition: copyfuncs.c:1037
static WindowClause * _copyWindowClause(const WindowClause *from)
Definition: copyfuncs.c:2263
static CreateEnumStmt * _copyCreateEnumStmt(const CreateEnumStmt *from)
Definition: copyfuncs.c:3401
static RefreshMatViewStmt * _copyRefreshMatViewStmt(const RefreshMatViewStmt *from)
Definition: copyfuncs.c:3612
static RangeSubselect * _copyRangeSubselect(const RangeSubselect *from)
Definition: copyfuncs.c:2553
static AlterSystemStmt * _copyAlterSystemStmt(const AlterSystemStmt *from)
Definition: copyfuncs.c:3635
static DeallocateStmt * _copyDeallocateStmt(const DeallocateStmt *from)
Definition: copyfuncs.c:4140
static PlanInvalItem * _copyPlanInvalItem(const PlanInvalItem *from)
Definition: copyfuncs.c:1093
static Scan * _copyScan(const Scan *from)
Definition: copyfuncs.c:381
static AlterEventTrigStmt * _copyAlterEventTrigStmt(const AlterEventTrigStmt *from)
Definition: copyfuncs.c:3967
static SeqScan * _copySeqScan(const SeqScan *from)
Definition: copyfuncs.c:397
static AlterTableMoveAllStmt * _copyAlterTableMoveAllStmt(const AlterTableMoveAllStmt *from)
Definition: copyfuncs.c:3739
static DiscardStmt * _copyDiscardStmt(const DiscardStmt *from)
Definition: copyfuncs.c:3693
static DeleteStmt * _copyDeleteStmt(const DeleteStmt *from)
Definition: copyfuncs.c:2825
static Unique * _copyUnique(const Unique *from)
Definition: copyfuncs.c:939
static BitmapAnd * _copyBitmapAnd(const BitmapAnd *from)
Definition: copyfuncs.c:301
static AccessPriv * _copyAccessPriv(const AccessPriv *from)
Definition: copyfuncs.c:2969
static FromExpr * _copyFromExpr(const FromExpr *from)
Definition: copyfuncs.c:1979
Definition: nodes.h:75
static DropStmt * _copyDropStmt(const DropStmt *from)
Definition: copyfuncs.c:3114
static Plan * _copyPlan(const Plan *from)
Definition: copyfuncs.c:134
static LockStmt * _copyLockStmt(const LockStmt *from)
Definition: copyfuncs.c:4040
static RowMarkClause * _copyRowMarkClause(const RowMarkClause *from)
Definition: copyfuncs.c:2281
static Var * _copyVar(const Var *from)
Definition: copyfuncs.c:1171
static ValuesScan * _copyValuesScan(const ValuesScan *from)
Definition: copyfuncs.c:594
static AlterForeignServerStmt * _copyAlterForeignServerStmt(const AlterForeignServerStmt *from)
Definition: copyfuncs.c:3828
static RowExpr * _copyRowExpr(const RowExpr *from)
Definition: copyfuncs.c:1710
static VariableShowStmt * _copyVariableShowStmt(const VariableShowStmt *from)
Definition: copyfuncs.c:3683
Definition: nodes.h:77
static TransactionStmt * _copyTransactionStmt(const TransactionStmt *from)
Definition: copyfuncs.c:3378
static TableLikeClause * _copyTableLikeClause(const TableLikeClause *from)
Definition: copyfuncs.c:3088
static CreatePolicyStmt * _copyCreatePolicyStmt(const CreatePolicyStmt *from)
Definition: copyfuncs.c:4199
static AlterEnumStmt * _copyAlterEnumStmt(const AlterEnumStmt *from)
Definition: copyfuncs.c:3423
Definition: nodes.h:53
static AlterExtensionStmt * _copyAlterExtensionStmt(const AlterExtensionStmt *from)
Definition: copyfuncs.c:3765
static DeclareCursorStmt * _copyDeclareCursorStmt(const DeclareCursorStmt *from)
Definition: copyfuncs.c:3006
static A_Const * _copyAConst(const A_Const *from)
Definition: copyfuncs.c:2388
static HashJoin * _copyHashJoin(const HashJoin *from)
Definition: copyfuncs.c:804
static AlterFdwStmt * _copyAlterFdwStmt(const AlterFdwStmt *from)
Definition: copyfuncs.c:3802
static PartitionSpec * _copyPartitionSpec(const PartitionSpec *from)
Definition: copyfuncs.c:4229
static GroupingSet * _copyGroupingSet(const GroupingSet *from)
Definition: copyfuncs.c:2251
static DropRoleStmt * _copyDropRoleStmt(const DropRoleStmt *from)
Definition: copyfuncs.c:4029
static CreateAmStmt * _copyCreateAmStmt(const CreateAmStmt *from)
Definition: copyfuncs.c:3919
static AlternativeSubPlan * _copyAlternativeSubPlan(const AlternativeSubPlan *from)
Definition: copyfuncs.c:1512
static UnlistenStmt * _copyUnlistenStmt(const UnlistenStmt *from)
Definition: copyfuncs.c:3368
static Hash * _copyHash(const Hash *from)
Definition: copyfuncs.c:962
static AlterTSConfigurationStmt * _copyAlterTSConfigurationStmt(const AlterTSConfigurationStmt *from)
Definition: copyfuncs.c:4183
static CreateOpClassStmt * _copyCreateOpClassStmt(const CreateOpClassStmt *from)
Definition: copyfuncs.c:3476
static Result * _copyResult(const Result *from)
Definition: copyfuncs.c:151
static Material * _copyMaterial(const Material *from)
Definition: copyfuncs.c:826
static ArrayRef * _copyArrayRef(const ArrayRef *from)
Definition: copyfuncs.c:1316
static RestrictInfo * _copyRestrictInfo(const RestrictInfo *from)
Definition: copyfuncs.c:2038
static ClusterStmt * _copyClusterStmt(const ClusterStmt *from)
Definition: copyfuncs.c:3028
static FunctionScan * _copyFunctionScan(const FunctionScan *from)
Definition: copyfuncs.c:572
static AlterFunctionStmt * _copyAlterFunctionStmt(const AlterFunctionStmt *from)
Definition: copyfuncs.c:3237
static SortBy * _copySortBy(const SortBy *from)
Definition: copyfuncs.c:2522
static MergeJoin * _copyMergeJoin(const MergeJoin *from)
Definition: copyfuncs.c:774
static RuleStmt * _copyRuleStmt(const RuleStmt *from)
Definition: copyfuncs.c:3331
static ImportForeignSchemaStmt * _copyImportForeignSchemaStmt(const ImportForeignSchemaStmt *from)
Definition: copyfuncs.c:3890
static FuncCall * _copyFuncCall(const FuncCall *from)
Definition: copyfuncs.c:2419
static RangeVar * _copyRangeVar(const RangeVar *from)
Definition: copyfuncs.c:1126
static CreatedbStmt * _copyCreatedbStmt(const CreatedbStmt *from)
Definition: copyfuncs.c:3531
static CopyStmt * _copyCopyStmt(const CopyStmt *from)
Definition: copyfuncs.c:3040
List * list_copy(const List *oldlist)
Definition: list.c:1160
static PartitionBoundSpec * _copyPartitionBoundSpec(const PartitionBoundSpec *from)
Definition: copyfuncs.c:4255
static CreateTableSpaceStmt * _copyCreateTableSpaceStmt(const CreateTableSpaceStmt *from)
Definition: copyfuncs.c:3703
static GrantStmt * _copyGrantStmt(const GrantStmt *from)
Definition: copyfuncs.c:2941
static Value * _copyValue(const Value *from)
Definition: copyfuncs.c:4422
Definition: nodes.h:48
static AlterOperatorStmt * _copyAlterOperatorStmt(const AlterOperatorStmt *from)
Definition: copyfuncs.c:3319
static Alias * _copyAlias(const Alias *from)
Definition: copyfuncs.c:1112
static BitmapHeapScan * _copyBitmapHeapScan(const BitmapHeapScan *from)
Definition: copyfuncs.c:509
static Sort * _copySort(const Sort *from)
Definition: copyfuncs.c:843
static A_ArrayExpr * _copyA_ArrayExpr(const A_ArrayExpr *from)
Definition: copyfuncs.c:2469
static Agg * _copyAgg(const Agg *from)
Definition: copyfuncs.c:883
static IntoClause * _copyIntoClause(const IntoClause *from)
Definition: copyfuncs.c:1145
static ParamRef * _copyParamRef(const ParamRef *from)
Definition: copyfuncs.c:2377
Definition: nodes.h:73
static IndexStmt * _copyIndexStmt(const IndexStmt *from)
Definition: copyfuncs.c:3181
static FuncExpr * _copyFuncExpr(const FuncExpr *from)
Definition: copyfuncs.c:1336
static BoolExpr * _copyBoolExpr(const BoolExpr *from)
Definition: copyfuncs.c:1451
static PathKey * _copyPathKey(const PathKey *from)
Definition: copyfuncs.c:2021
static DefineStmt * _copyDefineStmt(const DefineStmt *from)
Definition: copyfuncs.c:3099
static Join * _copyJoin(const Join *from)
Definition: copyfuncs.c:735
static WithClause * _copyWithClause(const WithClause *from)
Definition: copyfuncs.c:2294
static TypeName * _copyTypeName(const TypeName *from)
Definition: copyfuncs.c:2505
static WindowAgg * _copyWindowAgg(const WindowAgg *from)
Definition: copyfuncs.c:909
static PlannedStmt * _copyPlannedStmt(const PlannedStmt *from)
Definition: copyfuncs.c:78
static WindowDef * _copyWindowDef(const WindowDef *from)
Definition: copyfuncs.c:2536
static ScalarArrayOpExpr * _copyScalarArrayOpExpr(const ScalarArrayOpExpr *from)
Definition: copyfuncs.c:1433
static ExecuteStmt * _copyExecuteStmt(const ExecuteStmt *from)
Definition: copyfuncs.c:4129
static SubqueryScan * _copySubqueryScan(const SubqueryScan *from)
Definition: copyfuncs.c:551
static WithCheckOption * _copyWithCheckOption(const WithCheckOption *from)
Definition: copyfuncs.c:2223
static ReplicaIdentityStmt * _copyReplicaIdentityStmt(const ReplicaIdentityStmt *from)
Definition: copyfuncs.c:3624
static ExplainStmt * _copyExplainStmt(const ExplainStmt *from)
Definition: copyfuncs.c:3587
static TableSampleClause * _copyTableSampleClause(const TableSampleClause *from)
Definition: copyfuncs.c:2211
static DropUserMappingStmt * _copyDropUserMappingStmt(const DropUserMappingStmt *from)
Definition: copyfuncs.c:3865
static PartitionCmd * _copyPartitionCmd(const PartitionCmd *from)
Definition: copyfuncs.c:4281
static NestLoop * _copyNestLoop(const NestLoop *from)
Definition: copyfuncs.c:752
static Query * _copyQuery(const Query *from)
Definition: copyfuncs.c:2754
static XmlSerialize * _copyXmlSerialize(const XmlSerialize *from)
Definition: copyfuncs.c:2717
static ConvertRowtypeExpr * _copyConvertRowtypeExpr(const ConvertRowtypeExpr *from)
Definition: copyfuncs.c:1613
static RawStmt * _copyRawStmt(const RawStmt *from)
Definition: copyfuncs.c:2798
static PlaceHolderVar * _copyPlaceHolderVar(const PlaceHolderVar *from)
Definition: copyfuncs.c:2081
static BitmapOr * _copyBitmapOr(const BitmapOr *from)
Definition: copyfuncs.c:322
static RenameStmt * _copyRenameStmt(const RenameStmt *from)
Definition: copyfuncs.c:3258
static ReassignOwnedStmt * _copyReassignOwnedStmt(const ReassignOwnedStmt *from)
Definition: copyfuncs.c:4161
static ColumnDef * _copyColumnDef(const ColumnDef *from)
Definition: copyfuncs.c:2634
static A_Star * _copyAStar(const A_Star *from)
Definition: copyfuncs.c:2438
static SpecialJoinInfo * _copySpecialJoinInfo(const SpecialJoinInfo *from)
Definition: copyfuncs.c:2097
static RelabelType * _copyRelabelType(const RelabelType *from)
Definition: copyfuncs.c:1558
static CaseTestExpr * _copyCaseTestExpr(const CaseTestExpr *from)
Definition: copyfuncs.c:1677
static CreatePublicationStmt * _copyCreatePublicationStmt(const CreatePublicationStmt *from)
Definition: copyfuncs.c:4292
static CreateFunctionStmt * _copyCreateFunctionStmt(const CreateFunctionStmt *from)
Definition: copyfuncs.c:3209
static AlterTableStmt * _copyAlterTableStmt(const AlterTableStmt *from)
Definition: copyfuncs.c:2898
static SortGroupClause * _copySortGroupClause(const SortGroupClause *from)
Definition: copyfuncs.c:2237
static ArrayCoerceExpr * _copyArrayCoerceExpr(const ArrayCoerceExpr *from)
Definition: copyfuncs.c:1593
static RoleSpec * _copyRoleSpec(const RoleSpec *from)
Definition: copyfuncs.c:2730
Definition: nodes.h:45
#define ERROR
Definition: elog.h:43
static CreateOpClassItem * _copyCreateOpClassItem(const CreateOpClassItem *from)
Definition: copyfuncs.c:3491
static AlterExtensionContentsStmt * _copyAlterExtensionContentsStmt(const AlterExtensionContentsStmt *from)
Definition: copyfuncs.c:3776
static List * _copyList(const List *from)
Definition: copyfuncs.c:4369
static MergeAppend * _copyMergeAppend(const MergeAppend *from)
Definition: copyfuncs.c:247
static VariableSetStmt * _copyVariableSetStmt(const VariableSetStmt *from)
Definition: copyfuncs.c:3670
static AlterPublicationStmt * _copyAlterPublicationStmt(const AlterPublicationStmt *from)
Definition: copyfuncs.c:4305
static CreateRoleStmt * _copyCreateRoleStmt(const CreateRoleStmt *from)
Definition: copyfuncs.c:3993
static LockingClause * _copyLockingClause(const LockingClause *from)
Definition: copyfuncs.c:2705
static PlaceHolderInfo * _copyPlaceHolderInfo(const PlaceHolderInfo *from)
Definition: copyfuncs.c:2138
static ArrayExpr * _copyArrayExpr(const ArrayExpr *from)
Definition: copyfuncs.c:1692
static CreateExtensionStmt * _copyCreateExtensionStmt(const CreateExtensionStmt *from)
Definition: copyfuncs.c:3753
static SetToDefault * _copySetToDefault(const SetToDefault *from)
Definition: copyfuncs.c:1881
Definition: nodes.h:74
static DropSubscriptionStmt * _copyDropSubscriptionStmt(const DropSubscriptionStmt *from)
Definition: copyfuncs.c:4343
static AlterDefaultPrivilegesStmt * _copyAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *from)
Definition: copyfuncs.c:2995
static CreateSeqStmt * _copyCreateSeqStmt(const CreateSeqStmt *from)
Definition: copyfuncs.c:3645
static CreateSchemaStmt * _copyCreateSchemaStmt(const CreateSchemaStmt *from)
Definition: copyfuncs.c:4076
static AlterOpFamilyStmt * _copyAlterOpFamilyStmt(const AlterOpFamilyStmt *from)
Definition: copyfuncs.c:3518
Definition: nodes.h:136
static AlterObjectSchemaStmt * _copyAlterObjectSchemaStmt(const AlterObjectSchemaStmt *from)
Definition: copyfuncs.c:3290
void check_stack_depth(void)
Definition: postgres.c:3096
static RowCompareExpr * _copyRowCompareExpr(const RowCompareExpr *from)
Definition: copyfuncs.c:1727
static Constraint * _copyConstraint(const Constraint *from)
Definition: copyfuncs.c:2657
static CommentStmt * _copyCommentStmt(const CommentStmt *from)
Definition: copyfuncs.c:3141
static CreateRangeStmt * _copyCreateRangeStmt(const CreateRangeStmt *from)
Definition: copyfuncs.c:3412
static AlterUserMappingStmt * _copyAlterUserMappingStmt(const AlterUserMappingStmt *from)
Definition: copyfuncs.c:3853
static IndexElem * _copyIndexElem(const IndexElem *from)
Definition: copyfuncs.c:2618
static CollateExpr * _copyCollateExpr(const CollateExpr *from)
Definition: copyfuncs.c:1629
static TypeCast * _copyTypeCast(const TypeCast *from)
Definition: copyfuncs.c:2594
static MultiAssignRef * _copyMultiAssignRef(const MultiAssignRef *from)
Definition: copyfuncs.c:2493
static OnConflictExpr * _copyOnConflictExpr(const OnConflictExpr *from)
Definition: copyfuncs.c:1993
static InferenceElem * _copyInferenceElem(const InferenceElem *from)
Definition: copyfuncs.c:1912
static IndexOnlyScan * _copyIndexOnlyScan(const IndexOnlyScan *from)
Definition: copyfuncs.c:461
static CreateConversionStmt * _copyCreateConversionStmt(const CreateConversionStmt *from)
Definition: copyfuncs.c:4089
static CreateForeignTableStmt * _copyCreateForeignTableStmt(const CreateForeignTableStmt *from)
Definition: copyfuncs.c:3877
static SubPlan * _copySubPlan(const SubPlan *from)
Definition: copyfuncs.c:1484
Definition: nodes.h:295
static DropdbStmt * _copyDropdbStmt(const DropdbStmt *from)
Definition: copyfuncs.c:3564
Definition: nodes.h:140
static CreateFdwStmt * _copyCreateFdwStmt(const CreateFdwStmt *from)
Definition: copyfuncs.c:3790
static SQLValueFunction * _copySQLValueFunction(const SQLValueFunction *from)
Definition: copyfuncs.c:1779
static DropTableSpaceStmt * _copyDropTableSpaceStmt(const DropTableSpaceStmt *from)
Definition: copyfuncs.c:3716
Definition: nodes.h:139
static RangeTblEntry * _copyRangeTblEntry(const RangeTblEntry *from)
Definition: copyfuncs.c:2158
static PlanRowMark * _copyPlanRowMark(const PlanRowMark *from)
Definition: copyfuncs.c:1073
static ListenStmt * _copyListenStmt(const ListenStmt *from)
Definition: copyfuncs.c:3358
static ProjectSet * _copyProjectSet(const ProjectSet *from)
Definition: copyfuncs.c:172
Definition: nodes.h:308
static DistinctExpr * _copyDistinctExpr(const DistinctExpr *from)
Definition: copyfuncs.c:1393
static LoadStmt * _copyLoadStmt(const LoadStmt *from)
Definition: copyfuncs.c:3453
static ConstraintsSetStmt * _copyConstraintsSetStmt(const ConstraintsSetStmt *from)
Definition: copyfuncs.c:4052
static BitmapIndexScan * _copyBitmapIndexScan(const BitmapIndexScan *from)
Definition: copyfuncs.c:486
static AlterTSDictionaryStmt * _copyAlterTSDictionaryStmt(const AlterTSDictionaryStmt *from)
Definition: copyfuncs.c:4172
static AlterDatabaseStmt * _copyAlterDatabaseStmt(const AlterDatabaseStmt *from)
Definition: copyfuncs.c:3542
static CoalesceExpr * _copyCoalesceExpr(const CoalesceExpr *from)
Definition: copyfuncs.c:1745
static CoerceToDomain * _copyCoerceToDomain(const CoerceToDomain *from)
Definition: copyfuncs.c:1847
static ReindexStmt * _copyReindexStmt(const ReindexStmt *from)
Definition: copyfuncs.c:4063
static ExtensibleNode * _copyExtensibleNode(const ExtensibleNode *from)
Definition: copyfuncs.c:4401
static CaseWhen * _copyCaseWhen(const CaseWhen *from)
Definition: copyfuncs.c:1662
static Gather * _copyGather(const Gather *from)
Definition: copyfuncs.c:343
static FieldSelect * _copyFieldSelect(const FieldSelect *from)
Definition: copyfuncs.c:1525
static CoerceToDomainValue * _copyCoerceToDomainValue(const CoerceToDomainValue *from)
Definition: copyfuncs.c:1865
static SelectStmt * _copySelectStmt(const SelectStmt *from)
Definition: copyfuncs.c:2854
static ViewStmt * _copyViewStmt(const ViewStmt *from)
Definition: copyfuncs.c:3438
static AlterObjectDependsStmt * _copyAlterObjectDependsStmt(const AlterObjectDependsStmt *from)
Definition: copyfuncs.c:3276
static CoerceViaIO * _copyCoerceViaIO(const CoerceViaIO *from)
Definition: copyfuncs.c:1576
Definition: nodes.h:79
static ModifyTable * _copyModifyTable(const ModifyTable *from)
Definition: copyfuncs.c:188
static GrantRoleStmt * _copyGrantRoleStmt(const GrantRoleStmt *from)
Definition: copyfuncs.c:2980
static FuncWithArgs * _copyFuncWithArgs(const FuncWithArgs *from)
Definition: copyfuncs.c:2958
static InsertStmt * _copyInsertStmt(const InsertStmt *from)
Definition: copyfuncs.c:2810
static Append * _copyAppend(const Append *from)
Definition: copyfuncs.c:226
#define makeNode(_type_)
Definition: nodes.h:556
static AppendRelInfo * _copyAppendRelInfo(const AppendRelInfo *from)
Definition: copyfuncs.c:2120
static NullTest * _copyNullTest(const NullTest *from)
Definition: copyfuncs.c:1816
static CreateTableAsStmt * _copyCreateTableAsStmt(const CreateTableAsStmt *from)
Definition: copyfuncs.c:3598
static Aggref * _copyAggref(const Aggref *from)
Definition: copyfuncs.c:1248
static CreateUserMappingStmt * _copyCreateUserMappingStmt(const CreateUserMappingStmt *from)
Definition: copyfuncs.c:3841
#define NULL
Definition: c.h:226
static A_Indices * _copyAIndices(const A_Indices *from)
Definition: copyfuncs.c:2446
static VacuumStmt * _copyVacuumStmt(const VacuumStmt *from)
Definition: copyfuncs.c:3575
static RangeTblRef * _copyRangeTblRef(const RangeTblRef *from)
Definition: copyfuncs.c:1946
static WorkTableScan * _copyWorkTableScan(const WorkTableScan *from)
Definition: copyfuncs.c:637
static FieldStore * _copyFieldStore(const FieldStore *from)
Definition: copyfuncs.c:1542
static ForeignScan * _copyForeignScan(const ForeignScan *from)
Definition: copyfuncs.c:658
static CurrentOfExpr * _copyCurrentOfExpr(const CurrentOfExpr *from)
Definition: copyfuncs.c:1897
static SetOp * _copySetOp(const SetOp *from)
Definition: copyfuncs.c:987
static ForeignKeyCacheInfo * _copyForeignKeyCacheInfo(const ForeignKeyCacheInfo *from)
Definition: copyfuncs.c:4452
static AlterOwnerStmt * _copyAlterOwnerStmt(const AlterOwnerStmt *from)
Definition: copyfuncs.c:3305
static RangeTblFunction * _copyRangeTblFunction(const RangeTblFunction *from)
Definition: copyfuncs.c:2195
static CreateCastStmt * _copyCreateCastStmt(const CreateCastStmt *from)
Definition: copyfuncs.c:4103
static JoinExpr * _copyJoinExpr(const JoinExpr *from)
Definition: copyfuncs.c:1959
static DropOwnedStmt * _copyDropOwnedStmt(const DropOwnedStmt *from)
Definition: copyfuncs.c:4150
static TargetEntry * _copyTargetEntry(const TargetEntry *from)
Definition: copyfuncs.c:1927
static CollateClause * _copyCollateClause(const CollateClause *from)
Definition: copyfuncs.c:2606
static PrepareStmt * _copyPrepareStmt(const PrepareStmt *from)
Definition: copyfuncs.c:4117
static AlterTableSpaceOptionsStmt * _copyAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *from)
Definition: copyfuncs.c:3727
static RangeTableSample * _copyRangeTableSample(const RangeTableSample *from)
Definition: copyfuncs.c:2580
static LockRows * _copyLockRows(const LockRows *from)
Definition: copyfuncs.c:1015
static CreatePLangStmt * _copyCreatePLangStmt(const CreatePLangStmt *from)
Definition: copyfuncs.c:3978
static GroupingFunc * _copyGroupingFunc(const GroupingFunc *from)
Definition: copyfuncs.c:1277
static Group * _copyGroup(const Group *from)
Definition: copyfuncs.c:866
static AlterSubscriptionStmt * _copyAlterSubscriptionStmt(const AlterSubscriptionStmt *from)
Definition: copyfuncs.c:4332
static CustomScan * _copyCustomScan(const CustomScan *from)
Definition: copyfuncs.c:686
static OnConflictClause * _copyOnConflictClause(const OnConflictClause *from)
Definition: copyfuncs.c:2319
#define nodeTag(nodeptr)
Definition: nodes.h:513
Definition: nodes.h:44
static FetchStmt * _copyFetchStmt(const FetchStmt *from)
Definition: copyfuncs.c:3168
static AlterPolicyStmt * _copyAlterPolicyStmt(const AlterPolicyStmt *from)
Definition: copyfuncs.c:4215
Definition: nodes.h:68
static NullIfExpr * _copyNullIfExpr(const NullIfExpr *from)
Definition: copyfuncs.c:1413
Definition: nodes.h:290
static CommonTableExpr * _copyCommonTableExpr(const CommonTableExpr *from)
Definition: copyfuncs.c:2333
Definition: nodes.h:80
static NotifyStmt * _copyNotifyStmt(const NotifyStmt *from)
Definition: copyfuncs.c:3347
static RecursiveUnion * _copyRecursiveUnion(const RecursiveUnion *from)
Definition: copyfuncs.c:273
Definition: nodes.h:287
static Const * _copyConst(const Const *from)
Definition: copyfuncs.c:1192
static SubLink * _copySubLink(const SubLink *from)
Definition: copyfuncs.c:1466
static NestLoopParam * _copyNestLoopParam(const NestLoopParam *from)
Definition: copyfuncs.c:1059
static OpExpr * _copyOpExpr(const OpExpr *from)
Definition: copyfuncs.c:1373
static AlterRoleStmt * _copyAlterRoleStmt(const AlterRoleStmt *from)
Definition: copyfuncs.c:4005
static UpdateStmt * _copyUpdateStmt(const UpdateStmt *from)
Definition: copyfuncs.c:2839
static ColumnRef * _copyColumnRef(const ColumnRef *from)
Definition: copyfuncs.c:2366
static CreateSubscriptionStmt * _copyCreateSubscriptionStmt(const CreateSubscriptionStmt *from)
Definition: copyfuncs.c:4319
static DefElem * _copyDefElem(const DefElem *from)
Definition: copyfuncs.c:2691
static FunctionParameter * _copyFunctionParameter(const FunctionParameter *from)
Definition: copyfuncs.c:3224
static CreateForeignServerStmt * _copyCreateForeignServerStmt(const CreateForeignServerStmt *from)
Definition: copyfuncs.c:3814
static ResTarget * _copyResTarget(const ResTarget *from)
Definition: copyfuncs.c:2480
static Param * _copyParam(const Param *from)
Definition: copyfuncs.c:1230
Definition: nodes.h:78
static PartitionRangeDatum * _copyPartitionRangeDatum(const PartitionRangeDatum *from)
Definition: copyfuncs.c:4269
static TriggerTransition * _copyTriggerTransition(const TriggerTransition *from)
Definition: copyfuncs.c:2742
static CreateTrigStmt * _copyCreateTrigStmt(const CreateTrigStmt *from)
Definition: copyfuncs.c:3931
static AlterTableCmd * _copyAlterTableCmd(const AlterTableCmd *from)
Definition: copyfuncs.c:2911
static CaseExpr * _copyCaseExpr(const CaseExpr *from)
Definition: copyfuncs.c:1644
static XmlExpr * _copyXmlExpr(const XmlExpr *from)
Definition: copyfuncs.c:1795
static ClosePortalStmt * _copyClosePortalStmt(const ClosePortalStmt *from)
Definition: copyfuncs.c:3018
static CteScan * _copyCteScan(const CteScan *from)
Definition: copyfuncs.c:615
static CreateOpFamilyStmt * _copyCreateOpFamilyStmt(const CreateOpFamilyStmt *from)
Definition: copyfuncs.c:3507
static InferClause * _copyInferClause(const InferClause *from)
Definition: copyfuncs.c:2306
#define elog
Definition: elog.h:219
static WindowFunc * _copyWindowFunc(const WindowFunc *from)
Definition: copyfuncs.c:1294
static IndexScan * _copyIndexScan(const IndexScan *from)
Definition: copy