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 copyObject(obj)   copyObjectImpl(obj)
 
#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_TableFuncScan, T_CteScan, T_NamedTuplestoreScan, 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_GatherMerge, 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_TableFuncScanState, T_ValuesScanState, T_CteScanState, T_NamedTuplestoreScanState,
  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_GatherMergeState, T_HashState,
  T_SetOpState, T_LockRowsState, T_LimitState, T_Alias,
  T_RangeVar, T_TableFunc, 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_NextValueExpr,
  T_InferenceElem, T_TargetEntry, T_RangeTblRef, T_JoinExpr,
  T_FromExpr, T_OnConflictExpr, T_IntoClause, T_ExprState,
  T_AggrefExprState, T_WindowFuncExprState, T_SetExprState, T_SubPlanState,
  T_AlternativeSubPlanState, 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_GatherMergePath, 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_PartitionedChildRelInfo, T_PlaceHolderInfo, T_MinMaxAggInfo,
  T_PlannerParamItem, T_RollupData, T_GroupingSetData, T_StatisticExtInfo,
  T_MemoryContext, T_AllocSetContext, T_SlabContext, 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_CreatePublicationStmt,
  T_AlterPublicationStmt, T_CreateSubscriptionStmt, T_AlterSubscriptionStmt, T_DropSubscriptionStmt,
  T_CreateStatsStmt, T_AlterCollationStmt, 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_RangeTableFunc, T_RangeTableFuncCol, 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_ObjectWithArgs, 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_PartitionCmd, T_IdentifySystemCmd, T_BaseBackupCmd, T_CreateReplicationSlotCmd,
  T_DropReplicationSlotCmd, T_StartReplicationCmd, T_TimeLineHistoryCmd, T_SQLCmd,
  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, AGG_MIXED }
 
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 * copyObjectImpl (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 751 of file nodes.h.

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

Definition at line 754 of file nodes.h.

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

Definition at line 753 of file nodes.h.

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

Definition at line 752 of file nodes.h.

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

Definition at line 578 of file nodes.h.

Referenced by adjust_view_column_set(), ATExecAddIdentity(), ATExecAlterConstraint(), ATExecSetIdentity(), ATExecSetOptions(), ATPostAlterTypeParse(), check_new_partition_bound(), check_object_ownership(), ComputePartitionAttrs(), conversion_error_callback(), create_bitmap_subplan(), create_customscan_plan(), create_scan_plan(), CreateFunction(), does_not_exist_skipping(), eval_const_expressions_mutator(), ExecAlterObjectSchemaStmt(), ExecAlterOwnerStmt(), ExecCreateTableAs(), ExecInitAgg(), ExecInitCteScan(), ExecInitCustomScan(), ExecInitModifyTable(), ExecInitSubPlan(), ExecSupportsMarkRestore(), ExecWorkTableScan(), ExplainNode(), ExplainOneUtility(), ExplainQuery(), extract_or_clause(), fetch_function_defaults(), flatten_simple_union_all(), func_get_detail(), generate_bitmap_or_paths(), generate_partition_qual(), generateSerialExtraStmts(), get_altertable_subcmdtypes(), get_object_address(), get_qual_for_list(), get_qual_for_range(), get_range_key_properties(), get_rule_expr(), interval_transform(), is_simple_union_all(), JumbleExpr(), make_one_range_bound(), make_row_comparison_op(), make_subplan(), numeric_transform(), PerformCursorOpen(), pg_get_function_arg_default(), plan_set_operations(), plpgsql_inline_handler(), print_function_arguments(), ProcedureCreate(), ProcessCopyOptions(), query_is_distinct_for(), rel_is_distinct_for(), RelationBuildPartitionDesc(), RemoveObjects(), RenameConstraint(), RenameType(), RewriteQuery(), ScanQueryForLocks(), ScanQueryWalker(), setRuleCheckAsUser_Query(), ShutdownSetExpr(), SlabAlloc(), SlabFree(), SlabGetChunkSpace(), SlabInit(), SlabIsEmpty(), SlabRealloc(), SlabReset(), SlabStats(), subquery_is_pushdown_safe(), TemporalTransform(), transformAExprBetween(), transformAExprOp(), transformAlterTableStmt(), transformFromClauseItem(), transformMultiAssignRef(), transformPartitionBound(), transformPartitionSpec(), transformSetOperationStmt(), unique_key_recheck(), UtilityContainsQuery(), varbit_transform(), and varchar_transform().

#define copyObject (   obj)    copyObjectImpl(obj)

Definition at line 622 of file nodes.h.

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(), addRangeTableEntryForTableFunc(), 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(), get_range_key_properties(), 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(), transformPartitionSpec(), transformRuleStmt(), transformWindowDefinitions(), UpdateRangeTableOfViewParse(), and verify_dictoptions().

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

Definition at line 771 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 770 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 IsA (   nodeptr,
  _type_ 
)    (nodeTag(nodeptr) == T_##_type_)

Definition at line 560 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(), ATExecSetStatistics(), ATExecSetStorage(), ATPostAlterTypeParse(), BeginCopy(), bernoulli_samplescangetsamplesize(), bitmap_subplan_mark_shared(), 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(), CreateStatistics(), crosstab(), crosstab_hash(), currtid_for_view(), deconstruct_indexquals(), deconstruct_jointree(), deconstruct_recurse(), defGetStringList(), DefineDomain(), DefineView(), deflist_to_tuplestore(), deparseArrayRef(), deparseSortGroupClause(), dependency_is_compatible_clause(), determineRecursiveColTypes(), each_worker(), each_worker_jsonb(), elements_worker(), elements_worker_jsonb(), eqsel_internal(), errdetail_execute(), estimate_array_length(), estimate_multivariate_ndistinct(), eval_const_expressions_mutator(), evaluate_function(), EventTriggerCollectAlterTableSubcmd(), examine_simple_variable(), examine_variable(), exec_check_rw_parameter(), exec_init_tuple_store(), exec_replication_command(), exec_simple_check_plan(), exec_simple_query(), exec_simple_recheck_plan(), ExecBuildProjectionInfo(), ExecCheckPlanOutput(), ExecCreateTableAs(), ExecDropSingleTupleTableSlot(), ExecIndexBuildScanKeys(), ExecInitCheck(), ExecInitExprRec(), ExecInitFunc(), ExecInitFunctionResultSet(), ExecInitMergeJoin(), ExecInitNode(), ExecInitProjectSet(), ExecInitQual(), ExecInitSubPlan(), ExecInitTableFunctionResult(), 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_single_rel_for_clauses(), 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_walker(), get_name_for_var_field(), get_parameter(), 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_partition_op_expr(), 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_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(), TidExprListCreate(), 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(), transformPartitionBoundValue(), transformRangeFunction(), transformRangeSubselect(), transformRangeTableFunc(), 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 557 of file nodes.h.

Referenced by _copyA_ArrayExpr(), _copyA_Indirection(), _copyAccessPriv(), _copyAConst(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlias(), _copyAlterCollationStmt(), _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(), _copyCreateStatsStmt(), _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(), _copyGather(), _copyGatherMerge(), _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(), _copyNamedTuplestoreScan(), _copyNestLoop(), _copyNestLoopParam(), _copyNextValueExpr(), _copyNotifyStmt(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionedChildRelInfo(), _copyPartitionElem(), _copyPartitionRangeDatum(), _copyPartitionSpec(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlan(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyPrepareStmt(), _copyProjectSet(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _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(), _copyTableFunc(), _copyTableFuncScan(), _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(), addRangeTableEntryForENR(), addRangeTableEntryForFunction(), addRangeTableEntryForJoin(), addRangeTableEntryForRelation(), addRangeTableEntryForSubquery(), addRangeTableEntryForTableFunc(), 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(), consider_groupingsets_paths(), convert_ANY_sublink_to_join(), convert_combining_aggrefs(), convert_EXISTS_sublink_to_join(), ConvertTriggerToFK(), copy_pathtarget(), CopyFrom(), copyObjectImpl(), 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_merge_path(), create_gather_merge_plan(), 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_namedtuplestorescan_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_tablefuncscan_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(), 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(), ExecInitExprRec(), ExecInitForeignScan(), ExecInitFunctionResultSet(), ExecInitFunctionScan(), ExecInitGather(), ExecInitGatherMerge(), ExecInitGroup(), ExecInitHash(), ExecInitHashJoin(), ExecInitIndexOnlyScan(), ExecInitIndexScan(), ExecInitJunkFilter(), ExecInitJunkFilterConversion(), ExecInitLimit(), ExecInitLockRows(), ExecInitMaterial(), ExecInitMergeAppend(), ExecInitMergeJoin(), ExecInitModifyTable(), ExecInitNamedTuplestoreScan(), ExecInitNestLoop(), ExecInitProjectSet(), ExecInitQual(), ExecInitRecursiveUnion(), ExecInitResult(), ExecInitSampleScan(), ExecInitSeqScan(), ExecInitSetOp(), ExecInitSort(), ExecInitSubPlan(), ExecInitSubqueryScan(), ExecInitTableFuncScan(), ExecInitTableFunctionResult(), 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(), generateSerialExtraStmts(), 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_relation_statistics(), 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_namedtuplestorescan(), make_nestloop(), make_notclause(), make_nulltest_from_distinct(), make_op(), make_opclause(), make_orclause(), make_outerjoininfo(), make_partial_grouping_target(), make_partition_op_expr(), 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_tablefuncscan(), 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_object_address(), pg_get_triggerdef_worker(), pg_plan_queries(), plan_cluster_use_sort(), postgres_fdw_handler(), prep_domain_constraints(), PrepareQuery(), preprocess_grouping_sets(), 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(), reorder_grouping_sets(), reparameterize_path(), replace_nestloop_params_mutator(), replace_outer_agg(), replace_outer_grouping(), replace_outer_placeholdervar(), replace_outer_var(), ReplaceVarsFromTargetList_callback(), resolve_unique_index_expr(), rewriteTargetListIU(), 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(), transformRangeTableFunc(), 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:509
#define AssertMacro(condition)
Definition: c.h:676
#define palloc0fast(sz)
Definition: palloc.h:91
NodeTag type
Definition: nodes.h:511
PGDLLIMPORT Node * newNodeMacroHolder
Definition: nodes.c:31

Definition at line 547 of file nodes.h.

Referenced by _copyExtensibleNode(), and _readExtensibleNode().

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

Definition at line 558 of file nodes.h.

Referenced by make_distinct_op(), and transformAExprNullIf().

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

Definition at line 514 of file nodes.h.

Referenced by _outQuery(), add_base_rels_to_query(), add_vars_to_targetlist(), AlterDomainAddConstraint(), analyze_requires_snapshot(), assign_collations_walker(), ATPostAlterTypeParse(), bitmap_subplan_mark_shared(), build_joinrel_tlist(), build_subplan(), check_functions_in_node(), check_xact_readonly(), ChoosePortalStrategy(), contain_leaked_vars_walker(), copyObjectImpl(), 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(), ExecIndexBuildScanKeys(), ExecInitExprRec(), ExecInitFunctionResultSet(), ExecInitNode(), ExecInitSubPlan(), ExecInitWholeRowVar(), 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(), looks_like_function(), 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 640 of file nodes.h.

typedef struct Node Node

Definition at line 639 of file nodes.h.

Enumeration Type Documentation

enum AggSplit
Enumerator
AGGSPLIT_SIMPLE 
AGGSPLIT_INITIAL_SERIAL 
AGGSPLIT_FINAL_DESERIAL 

Definition at line 757 of file nodes.h.

758 {
759  /* Basic, non-split aggregation: */
760  AGGSPLIT_SIMPLE = 0,
761  /* Initial phase of partial aggregation, with serialization: */
763  /* Final phase of partial aggregation, with deserialization: */
765 } AggSplit;
#define AGGSPLITOP_DESERIALIZE
Definition: nodes.h:754
#define AGGSPLITOP_COMBINE
Definition: nodes.h:751
#define AGGSPLITOP_SERIALIZE
Definition: nodes.h:753
AggSplit
Definition: nodes.h:757
#define AGGSPLITOP_SKIPFINAL
Definition: nodes.h:752
Enumerator
AGG_PLAIN 
AGG_SORTED 
AGG_HASHED 
AGG_MIXED 

Definition at line 735 of file nodes.h.

736 {
737  AGG_PLAIN, /* simple agg across all input rows */
738  AGG_SORTED, /* grouped agg, input must be sorted */
739  AGG_HASHED, /* grouped agg, use internal hashtable */
740  AGG_MIXED /* grouped agg, hash and sort both used */
741 } AggStrategy;
AggStrategy
Definition: nodes.h:735
enum CmdType
Enumerator
CMD_UNKNOWN 
CMD_SELECT 
CMD_UPDATE 
CMD_INSERT 
CMD_DELETE 
CMD_UTILITY 
CMD_NOTHING 

Definition at line 649 of file nodes.h.

650 {
651  CMD_UNKNOWN,
652  CMD_SELECT, /* select stmt */
653  CMD_UPDATE, /* update stmt */
654  CMD_INSERT, /* insert stmt */
655  CMD_DELETE,
656  CMD_UTILITY, /* cmds like create, destroy, copy, vacuum,
657  * etc. */
658  CMD_NOTHING /* dummy command for instead nothing rules
659  * with qual */
660 } CmdType;
CmdType
Definition: nodes.h:649
enum JoinType
Enumerator
JOIN_INNER 
JOIN_LEFT 
JOIN_FULL 
JOIN_RIGHT 
JOIN_SEMI 
JOIN_ANTI 
JOIN_UNIQUE_OUTER 
JOIN_UNIQUE_INNER 

Definition at line 673 of file nodes.h.

674 {
675  /*
676  * The canonical kinds of joins according to the SQL JOIN syntax. Only
677  * these codes can appear in parser output (e.g., JoinExpr nodes).
678  */
679  JOIN_INNER, /* matching tuple pairs only */
680  JOIN_LEFT, /* pairs + unmatched LHS tuples */
681  JOIN_FULL, /* pairs + unmatched LHS + unmatched RHS */
682  JOIN_RIGHT, /* pairs + unmatched RHS tuples */
683 
684  /*
685  * Semijoins and anti-semijoins (as defined in relational theory) do not
686  * appear in the SQL JOIN syntax, but there are standard idioms for
687  * representing them (e.g., using EXISTS). The planner recognizes these
688  * cases and converts them to joins. So the planner and executor must
689  * support these codes. NOTE: in JOIN_SEMI output, it is unspecified
690  * which matching RHS row is joined to. In JOIN_ANTI output, the row is
691  * guaranteed to be null-extended.
692  */
693  JOIN_SEMI, /* 1 copy of each LHS row that has match(es) */
694  JOIN_ANTI, /* 1 copy of each LHS row that has no match */
695 
696  /*
697  * These codes are used internally in the planner, but are not supported
698  * by the executor (nor, indeed, by most of the planner).
699  */
700  JOIN_UNIQUE_OUTER, /* LHS path must be made unique */
701  JOIN_UNIQUE_INNER /* RHS path must be made unique */
702 
703  /*
704  * We might need additional join types someday.
705  */
706 } JoinType;
JoinType
Definition: nodes.h:673
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_TableFuncScan 
T_CteScan 
T_NamedTuplestoreScan 
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_GatherMerge 
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_TableFuncScanState 
T_ValuesScanState 
T_CteScanState 
T_NamedTuplestoreScanState 
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_GatherMergeState 
T_HashState 
T_SetOpState 
T_LockRowsState 
T_LimitState 
T_Alias 
T_RangeVar 
T_TableFunc 
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_NextValueExpr 
T_InferenceElem 
T_TargetEntry 
T_RangeTblRef 
T_JoinExpr 
T_FromExpr 
T_OnConflictExpr 
T_IntoClause 
T_ExprState 
T_AggrefExprState 
T_WindowFuncExprState 
T_SetExprState 
T_SubPlanState 
T_AlternativeSubPlanState 
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_GatherMergePath 
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_PartitionedChildRelInfo 
T_PlaceHolderInfo 
T_MinMaxAggInfo 
T_PlannerParamItem 
T_RollupData 
T_GroupingSetData 
T_StatisticExtInfo 
T_MemoryContext 
T_AllocSetContext 
T_SlabContext 
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_CreatePublicationStmt 
T_AlterPublicationStmt 
T_CreateSubscriptionStmt 
T_AlterSubscriptionStmt 
T_DropSubscriptionStmt 
T_CreateStatsStmt 
T_AlterCollationStmt 
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_RangeTableFunc 
T_RangeTableFuncCol 
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_ObjectWithArgs 
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_PartitionCmd 
T_IdentifySystemCmd 
T_BaseBackupCmd 
T_CreateReplicationSlotCmd 
T_DropReplicationSlotCmd 
T_StartReplicationCmd 
T_TimeLineHistoryCmd 
T_SQLCmd 
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,
65  T_CteScan,
70  T_Join,
71  T_NestLoop,
73  T_HashJoin,
74  T_Material,
75  T_Sort,
76  T_Group,
77  T_Agg,
79  T_Unique,
80  T_Gather,
82  T_Hash,
83  T_SetOp,
84  T_LockRows,
85  T_Limit,
86  /* these aren't subclasses of Plan: */
90 
91  /*
92  * TAGS FOR PLAN STATE NODES (execnodes.h)
93  *
94  * These should correspond one-to-one with Plan node types.
95  */
105  T_ScanState,
122  T_JoinState,
127  T_SortState,
128  T_GroupState,
129  T_AggState,
134  T_HashState,
135  T_SetOpState,
137  T_LimitState,
138 
139  /*
140  * TAGS FOR PRIMITIVE NODES (primnodes.h)
141  */
142  T_Alias,
143  T_RangeVar,
144  T_TableFunc,
145  T_Expr,
146  T_Var,
147  T_Const,
148  T_Param,
149  T_Aggref,
151  T_WindowFunc,
152  T_ArrayRef,
153  T_FuncExpr,
155  T_OpExpr,
157  T_NullIfExpr,
159  T_BoolExpr,
160  T_SubLink,
161  T_SubPlan,
164  T_FieldStore,
170  T_CaseExpr,
171  T_CaseWhen,
173  T_ArrayExpr,
174  T_RowExpr,
177  T_MinMaxExpr,
179  T_XmlExpr,
180  T_NullTest,
190  T_JoinExpr,
191  T_FromExpr,
193  T_IntoClause,
194 
195  /*
196  * TAGS FOR EXPRESSION STATE NODES (execnodes.h)
197  *
198  * ExprState represents the evaluation state for a whole expression tree.
199  * Most Expr-based plan nodes do not have a corresponding expression state
200  * node, they're fully handled within execExpr* - but sometimes the state
201  * needs to be shared with other parts of the executor, as for example
202  * with AggrefExprState, which nodeAgg.c has to modify.
203  */
204  T_ExprState,
211 
212  /*
213  * TAGS FOR PLANNER NODES (relation.h)
214  */
217  T_RelOptInfo,
221  T_Path,
222  T_IndexPath,
226  T_TidPath,
229  T_CustomPath,
230  T_NestPath,
231  T_MergePath,
232  T_HashPath,
233  T_AppendPath,
235  T_ResultPath,
237  T_UniquePath,
238  T_GatherPath,
242  T_SortPath,
243  T_GroupPath,
245  T_AggPath,
249  T_SetOpPath,
253  T_LimitPath,
254  /* these aren't subclasses of Path: */
257  T_PathKey,
258  T_PathTarget,
267  T_RollupData,
270 
271  /*
272  * TAGS FOR MEMORY NODES (memnodes.h)
273  */
277 
278  /*
279  * TAGS FOR VALUE NODES (value.h)
280  */
281  T_Value,
282  T_Integer,
283  T_Float,
284  T_String,
285  T_BitString,
286  T_Null,
287 
288  /*
289  * TAGS FOR LIST NODES (pg_list.h)
290  */
291  T_List,
292  T_IntList,
293  T_OidList,
294 
295  /*
296  * TAGS FOR EXTENSIBLE NODES (extensible.h)
297  */
299 
300  /*
301  * TAGS FOR STATEMENT NODES (mostly in parsenodes.h)
302  */
303  T_RawStmt,
304  T_Query,
306  T_InsertStmt,
307  T_DeleteStmt,
308  T_UpdateStmt,
309  T_SelectStmt,
314  T_GrantStmt,
319  T_CopyStmt,
320  T_CreateStmt,
321  T_DefineStmt,
322  T_DropStmt,
325  T_FetchStmt,
326  T_IndexStmt,
329  T_DoStmt,
330  T_RenameStmt,
331  T_RuleStmt,
332  T_NotifyStmt,
333  T_ListenStmt,
336  T_ViewStmt,
337  T_LoadStmt,
340  T_DropdbStmt,
341  T_VacuumStmt,
354  T_LockStmt,
416 
417  /*
418  * TAGS FOR PARSE TREE NODES (parsenodes.h)
419  */
420  T_A_Expr,
421  T_ColumnRef,
422  T_ParamRef,
423  T_A_Const,
424  T_FuncCall,
425  T_A_Star,
426  T_A_Indices,
429  T_ResTarget,
431  T_TypeCast,
433  T_SortBy,
434  T_WindowDef,
440  T_TypeName,
441  T_ColumnDef,
442  T_IndexElem,
443  T_Constraint,
444  T_DefElem,
453  T_AccessPriv,
460  T_WithClause,
464  T_RoleSpec,
471 
472  /*
473  * TAGS FOR REPLICATION GRAMMAR PARSE NODES (replnodes.h)
474  */
481  T_SQLCmd,
482 
483  /*
484  * TAGS FOR RANDOM OTHER STUFF
485  *
486  * These are objects that aren't part of parse/plan/execute node tree
487  * structures, but we give them NodeTags anyway for identification
488  * purposes (usually because they are involved in APIs where we want to
489  * pass multiple object types through the same pointer).
490  */
491  T_TriggerData, /* in commands/trigger.h */
492  T_EventTriggerData, /* in commands/event_trigger.h */
493  T_ReturnSetInfo, /* in nodes/execnodes.h */
494  T_WindowObjectData, /* private in nodeWindowAgg.c */
495  T_TIDBitmap, /* in nodes/tidbitmap.h */
496  T_InlineCodeBlock, /* in nodes/parsenodes.h */
497  T_FdwRoutine, /* in foreign/fdwapi.h */
498  T_IndexAmRoutine, /* in access/amapi.h */
499  T_TsmRoutine, /* in access/tsmapi.h */
500  T_ForeignKeyCacheInfo /* in utils/rel.h */
501 } NodeTag;
Definition: nodes.h:77
Definition: nodes.h:79
Definition: nodes.h:53
Definition: nodes.h:48
Definition: nodes.h:75
NodeTag
Definition: nodes.h:26
Definition: nodes.h:45
Definition: nodes.h:145
Definition: nodes.h:76
Definition: nodes.h:142
Definition: nodes.h:291
Definition: nodes.h:147
Definition: nodes.h:146
Definition: nodes.h:304
Definition: nodes.h:82
Definition: nodes.h:281
Definition: nodes.h:44
Definition: nodes.h:70
Definition: nodes.h:286
Definition: nodes.h:83
Definition: nodes.h:283
Definition: nodes.h:80
Definition: nodes.h:221
Definition: nodes.h:38
Definition: nodes.h:148
Definition: nodes.h:85
Enumerator
ONCONFLICT_NONE 
ONCONFLICT_NOTHING 
ONCONFLICT_UPDATE 

Definition at line 799 of file nodes.h.

800 {
801  ONCONFLICT_NONE, /* No "ON CONFLICT" clause */
802  ONCONFLICT_NOTHING, /* ON CONFLICT ... DO NOTHING */
803  ONCONFLICT_UPDATE /* ON CONFLICT ... DO UPDATE */
OnConflictAction
Definition: nodes.h:799
enum SetOpCmd
Enumerator
SETOPCMD_INTERSECT 
SETOPCMD_INTERSECT_ALL 
SETOPCMD_EXCEPT 
SETOPCMD_EXCEPT_ALL 

Definition at line 779 of file nodes.h.

Enumerator
SETOP_SORTED 
SETOP_HASHED 

Definition at line 787 of file nodes.h.

788 {
789  SETOP_SORTED, /* input must be sorted */
790  SETOP_HASHED /* use internal hashtable */
791 } SetOpStrategy;
SetOpStrategy
Definition: nodes.h:787

Function Documentation

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

Definition at line 4666 of file copyfuncs.c.

References _copyA_ArrayExpr(), _copyA_Indirection(), _copyAccessPriv(), _copyAConst(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlias(), _copyAlterCollationStmt(), _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(), _copyCreateStatsStmt(), _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(), _copyGather(), _copyGatherMerge(), _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(), _copyNamedTuplestoreScan(), _copyNestLoop(), _copyNestLoopParam(), _copyNextValueExpr(), _copyNotifyStmt(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionedChildRelInfo(), _copyPartitionElem(), _copyPartitionRangeDatum(), _copyPartitionSpec(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlan(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyPrepareStmt(), _copyProjectSet(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _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(), _copyTableFunc(), _copyTableFuncScan(), _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_AlterCollationStmt, 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_CreateStatsStmt, 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_Gather, T_GatherMerge, 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_NamedTuplestoreScan, T_NestLoop, T_NestLoopParam, T_NextValueExpr, T_NotifyStmt, T_Null, T_NullIfExpr, T_NullTest, T_ObjectWithArgs, T_OidList, T_OnConflictClause, T_OnConflictExpr, T_OpExpr, T_Param, T_ParamRef, T_PartitionBoundSpec, T_PartitionCmd, T_PartitionedChildRelInfo, 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_RangeTableFunc, T_RangeTableFuncCol, 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_TableFunc, T_TableFuncScan, 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.

4667 {
4668  void *retval;
4669 
4670  if (from == NULL)
4671  return NULL;
4672 
4673  /* Guard against stack overflow due to overly complex expressions */
4675 
4676  switch (nodeTag(from))
4677  {
4678  /*
4679  * PLAN NODES
4680  */
4681  case T_PlannedStmt:
4682  retval = _copyPlannedStmt(from);
4683  break;
4684  case T_Plan:
4685  retval = _copyPlan(from);
4686  break;
4687  case T_Result:
4688  retval = _copyResult(from);
4689  break;
4690  case T_ProjectSet:
4691  retval = _copyProjectSet(from);
4692  break;
4693  case T_ModifyTable:
4694  retval = _copyModifyTable(from);
4695  break;
4696  case T_Append:
4697  retval = _copyAppend(from);
4698  break;
4699  case T_MergeAppend:
4700  retval = _copyMergeAppend(from);
4701  break;
4702  case T_RecursiveUnion:
4703  retval = _copyRecursiveUnion(from);
4704  break;
4705  case T_BitmapAnd:
4706  retval = _copyBitmapAnd(from);
4707  break;
4708  case T_BitmapOr:
4709  retval = _copyBitmapOr(from);
4710  break;
4711  case T_Scan:
4712  retval = _copyScan(from);
4713  break;
4714  case T_Gather:
4715  retval = _copyGather(from);
4716  break;
4717  case T_GatherMerge:
4718  retval = _copyGatherMerge(from);
4719  break;
4720  case T_SeqScan:
4721  retval = _copySeqScan(from);
4722  break;
4723  case T_SampleScan:
4724  retval = _copySampleScan(from);
4725  break;
4726  case T_IndexScan:
4727  retval = _copyIndexScan(from);
4728  break;
4729  case T_IndexOnlyScan:
4730  retval = _copyIndexOnlyScan(from);
4731  break;
4732  case T_BitmapIndexScan:
4733  retval = _copyBitmapIndexScan(from);
4734  break;
4735  case T_BitmapHeapScan:
4736  retval = _copyBitmapHeapScan(from);
4737  break;
4738  case T_TidScan:
4739  retval = _copyTidScan(from);
4740  break;
4741  case T_SubqueryScan:
4742  retval = _copySubqueryScan(from);
4743  break;
4744  case T_FunctionScan:
4745  retval = _copyFunctionScan(from);
4746  break;
4747  case T_TableFuncScan:
4748  retval = _copyTableFuncScan(from);
4749  break;
4750  case T_ValuesScan:
4751  retval = _copyValuesScan(from);
4752  break;
4753  case T_CteScan:
4754  retval = _copyCteScan(from);
4755  break;
4756  case T_NamedTuplestoreScan:
4757  retval = _copyNamedTuplestoreScan(from);
4758  break;
4759  case T_WorkTableScan:
4760  retval = _copyWorkTableScan(from);
4761  break;
4762  case T_ForeignScan:
4763  retval = _copyForeignScan(from);
4764  break;
4765  case T_CustomScan:
4766  retval = _copyCustomScan(from);
4767  break;
4768  case T_Join:
4769  retval = _copyJoin(from);
4770  break;
4771  case T_NestLoop:
4772  retval = _copyNestLoop(from);
4773  break;
4774  case T_MergeJoin:
4775  retval = _copyMergeJoin(from);
4776  break;
4777  case T_HashJoin:
4778  retval = _copyHashJoin(from);
4779  break;
4780  case T_Material:
4781  retval = _copyMaterial(from);
4782  break;
4783  case T_Sort:
4784  retval = _copySort(from);
4785  break;
4786  case T_Group:
4787  retval = _copyGroup(from);
4788  break;
4789  case T_Agg:
4790  retval = _copyAgg(from);
4791  break;
4792  case T_WindowAgg:
4793  retval = _copyWindowAgg(from);
4794  break;
4795  case T_Unique:
4796  retval = _copyUnique(from);
4797  break;
4798  case T_Hash:
4799  retval = _copyHash(from);
4800  break;
4801  case T_SetOp:
4802  retval = _copySetOp(from);
4803  break;
4804  case T_LockRows:
4805  retval = _copyLockRows(from);
4806  break;
4807  case T_Limit:
4808  retval = _copyLimit(from);
4809  break;
4810  case T_NestLoopParam:
4811  retval = _copyNestLoopParam(from);
4812  break;
4813  case T_PlanRowMark:
4814  retval = _copyPlanRowMark(from);
4815  break;
4816  case T_PlanInvalItem:
4817  retval = _copyPlanInvalItem(from);
4818  break;
4819 
4820  /*
4821  * PRIMITIVE NODES
4822  */
4823  case T_Alias:
4824  retval = _copyAlias(from);
4825  break;
4826  case T_RangeVar:
4827  retval = _copyRangeVar(from);
4828  break;
4829  case T_TableFunc:
4830  retval = _copyTableFunc(from);
4831  break;
4832  case T_IntoClause:
4833  retval = _copyIntoClause(from);
4834  break;
4835  case T_Var:
4836  retval = _copyVar(from);
4837  break;
4838  case T_Const:
4839  retval = _copyConst(from);
4840  break;
4841  case T_Param:
4842  retval = _copyParam(from);
4843  break;
4844  case T_Aggref:
4845  retval = _copyAggref(from);
4846  break;
4847  case T_GroupingFunc:
4848  retval = _copyGroupingFunc(from);
4849  break;
4850  case T_WindowFunc:
4851  retval = _copyWindowFunc(from);
4852  break;
4853  case T_ArrayRef:
4854  retval = _copyArrayRef(from);
4855  break;
4856  case T_FuncExpr:
4857  retval = _copyFuncExpr(from);
4858  break;
4859  case T_NamedArgExpr:
4860  retval = _copyNamedArgExpr(from);
4861  break;
4862  case T_OpExpr:
4863  retval = _copyOpExpr(from);
4864  break;
4865  case T_DistinctExpr:
4866  retval = _copyDistinctExpr(from);
4867  break;
4868  case T_NullIfExpr:
4869  retval = _copyNullIfExpr(from);
4870  break;
4871  case T_ScalarArrayOpExpr:
4872  retval = _copyScalarArrayOpExpr(from);
4873  break;
4874  case T_BoolExpr:
4875  retval = _copyBoolExpr(from);
4876  break;
4877  case T_SubLink:
4878  retval = _copySubLink(from);
4879  break;
4880  case T_SubPlan:
4881  retval = _copySubPlan(from);
4882  break;
4883  case T_AlternativeSubPlan:
4884  retval = _copyAlternativeSubPlan(from);
4885  break;
4886  case T_FieldSelect:
4887  retval = _copyFieldSelect(from);
4888  break;
4889  case T_FieldStore:
4890  retval = _copyFieldStore(from);
4891  break;
4892  case T_RelabelType:
4893  retval = _copyRelabelType(from);
4894  break;
4895  case T_CoerceViaIO:
4896  retval = _copyCoerceViaIO(from);
4897  break;
4898  case T_ArrayCoerceExpr:
4899  retval = _copyArrayCoerceExpr(from);
4900  break;
4901  case T_ConvertRowtypeExpr:
4902  retval = _copyConvertRowtypeExpr(from);
4903  break;
4904  case T_CollateExpr:
4905  retval = _copyCollateExpr(from);
4906  break;
4907  case T_CaseExpr:
4908  retval = _copyCaseExpr(from);
4909  break;
4910  case T_CaseWhen:
4911  retval = _copyCaseWhen(from);
4912  break;
4913  case T_CaseTestExpr:
4914  retval = _copyCaseTestExpr(from);
4915  break;
4916  case T_ArrayExpr:
4917  retval = _copyArrayExpr(from);
4918  break;
4919  case T_RowExpr:
4920  retval = _copyRowExpr(from);
4921  break;
4922  case T_RowCompareExpr:
4923  retval = _copyRowCompareExpr(from);
4924  break;
4925  case T_CoalesceExpr:
4926  retval = _copyCoalesceExpr(from);
4927  break;
4928  case T_MinMaxExpr:
4929  retval = _copyMinMaxExpr(from);
4930  break;
4931  case T_SQLValueFunction:
4932  retval = _copySQLValueFunction(from);
4933  break;
4934  case T_XmlExpr:
4935  retval = _copyXmlExpr(from);
4936  break;
4937  case T_NullTest:
4938  retval = _copyNullTest(from);
4939  break;
4940  case T_BooleanTest:
4941  retval = _copyBooleanTest(from);
4942  break;
4943  case T_CoerceToDomain:
4944  retval = _copyCoerceToDomain(from);
4945  break;
4946  case T_CoerceToDomainValue:
4947  retval = _copyCoerceToDomainValue(from);
4948  break;
4949  case T_SetToDefault:
4950  retval = _copySetToDefault(from);
4951  break;
4952  case T_CurrentOfExpr:
4953  retval = _copyCurrentOfExpr(from);
4954  break;
4955  case T_NextValueExpr:
4956  retval = _copyNextValueExpr(from);
4957  break;
4958  case T_InferenceElem:
4959  retval = _copyInferenceElem(from);
4960  break;
4961  case T_TargetEntry:
4962  retval = _copyTargetEntry(from);
4963  break;
4964  case T_RangeTblRef:
4965  retval = _copyRangeTblRef(from);
4966  break;
4967  case T_JoinExpr:
4968  retval = _copyJoinExpr(from);
4969  break;
4970  case T_FromExpr:
4971  retval = _copyFromExpr(from);
4972  break;
4973  case T_OnConflictExpr:
4974  retval = _copyOnConflictExpr(from);
4975  break;
4976 
4977  /*
4978  * RELATION NODES
4979  */
4980  case T_PathKey:
4981  retval = _copyPathKey(from);
4982  break;
4983  case T_RestrictInfo:
4984  retval = _copyRestrictInfo(from);
4985  break;
4986  case T_PlaceHolderVar:
4987  retval = _copyPlaceHolderVar(from);
4988  break;
4989  case T_SpecialJoinInfo:
4990  retval = _copySpecialJoinInfo(from);
4991  break;
4992  case T_AppendRelInfo:
4993  retval = _copyAppendRelInfo(from);
4994  break;
4996  retval = _copyPartitionedChildRelInfo(from);
4997  break;
4998  case T_PlaceHolderInfo:
4999  retval = _copyPlaceHolderInfo(from);
5000  break;
5001 
5002  /*
5003  * VALUE NODES
5004  */
5005  case T_Integer:
5006  case T_Float:
5007  case T_String:
5008  case T_BitString:
5009  case T_Null:
5010  retval = _copyValue(from);
5011  break;
5012 
5013  /*
5014  * LIST NODES
5015  */
5016  case T_List:
5017  retval = _copyList(from);
5018  break;
5019 
5020  /*
5021  * Lists of integers and OIDs don't need to be deep-copied, so we
5022  * perform a shallow copy via list_copy()
5023  */
5024  case T_IntList:
5025  case T_OidList:
5026  retval = list_copy(from);
5027  break;
5028 
5029  /*
5030  * EXTENSIBLE NODES
5031  */
5032  case T_ExtensibleNode:
5033  retval = _copyExtensibleNode(from);
5034  break;
5035 
5036  /*
5037  * PARSE NODES
5038  */
5039  case T_Query:
5040  retval = _copyQuery(from);
5041  break;
5042  case T_RawStmt:
5043  retval = _copyRawStmt(from);
5044  break;
5045  case T_InsertStmt:
5046  retval = _copyInsertStmt(from);
5047  break;
5048  case T_DeleteStmt:
5049  retval = _copyDeleteStmt(from);
5050  break;
5051  case T_UpdateStmt:
5052  retval = _copyUpdateStmt(from);
5053  break;
5054  case T_SelectStmt:
5055  retval = _copySelectStmt(from);
5056  break;
5057  case T_SetOperationStmt:
5058  retval = _copySetOperationStmt(from);
5059  break;
5060  case T_AlterTableStmt:
5061  retval = _copyAlterTableStmt(from);
5062  break;
5063  case T_AlterTableCmd:
5064  retval = _copyAlterTableCmd(from);
5065  break;
5066  case T_AlterCollationStmt:
5067  retval = _copyAlterCollationStmt(from);
5068  break;
5069  case T_AlterDomainStmt:
5070  retval = _copyAlterDomainStmt(from);
5071  break;
5072  case T_GrantStmt:
5073  retval = _copyGrantStmt(from);
5074  break;
5075  case T_GrantRoleStmt:
5076  retval = _copyGrantRoleStmt(from);
5077  break;
5079  retval = _copyAlterDefaultPrivilegesStmt(from);
5080  break;
5081  case T_DeclareCursorStmt:
5082  retval = _copyDeclareCursorStmt(from);
5083  break;
5084  case T_ClosePortalStmt:
5085  retval = _copyClosePortalStmt(from);
5086  break;
5087  case T_ClusterStmt:
5088  retval = _copyClusterStmt(from);
5089  break;
5090  case T_CopyStmt:
5091  retval = _copyCopyStmt(from);
5092  break;
5093  case T_CreateStmt:
5094  retval = _copyCreateStmt(from);
5095  break;
5096  case T_TableLikeClause:
5097  retval = _copyTableLikeClause(from);
5098  break;
5099  case T_DefineStmt:
5100  retval = _copyDefineStmt(from);
5101  break;
5102  case T_DropStmt:
5103  retval = _copyDropStmt(from);
5104  break;
5105  case T_TruncateStmt:
5106  retval = _copyTruncateStmt(from);
5107  break;
5108  case T_CommentStmt:
5109  retval = _copyCommentStmt(from);
5110  break;
5111  case T_SecLabelStmt:
5112  retval = _copySecLabelStmt(from);
5113  break;
5114  case T_FetchStmt:
5115  retval = _copyFetchStmt(from);
5116  break;
5117  case T_IndexStmt:
5118  retval = _copyIndexStmt(from);
5119  break;
5120  case T_CreateStatsStmt:
5121  retval = _copyCreateStatsStmt(from);
5122  break;
5123  case T_CreateFunctionStmt:
5124  retval = _copyCreateFunctionStmt(from);
5125  break;
5126  case T_FunctionParameter:
5127  retval = _copyFunctionParameter(from);
5128  break;
5129  case T_AlterFunctionStmt:
5130  retval = _copyAlterFunctionStmt(from);
5131  break;
5132  case T_DoStmt:
5133  retval = _copyDoStmt(from);
5134  break;
5135  case T_RenameStmt:
5136  retval = _copyRenameStmt(from);
5137  break;
5139  retval = _copyAlterObjectDependsStmt(from);
5140  break;
5142  retval = _copyAlterObjectSchemaStmt(from);
5143  break;
5144  case T_AlterOwnerStmt:
5145  retval = _copyAlterOwnerStmt(from);
5146  break;
5147  case T_AlterOperatorStmt:
5148  retval = _copyAlterOperatorStmt(from);
5149  break;
5150  case T_RuleStmt:
5151  retval = _copyRuleStmt(from);
5152  break;
5153  case T_NotifyStmt:
5154  retval = _copyNotifyStmt(from);
5155  break;
5156  case T_ListenStmt:
5157  retval = _copyListenStmt(from);
5158  break;
5159  case T_UnlistenStmt:
5160  retval = _copyUnlistenStmt(from);
5161  break;
5162  case T_TransactionStmt:
5163  retval = _copyTransactionStmt(from);
5164  break;
5165  case T_CompositeTypeStmt:
5166  retval = _copyCompositeTypeStmt(from);
5167  break;
5168  case T_CreateEnumStmt:
5169  retval = _copyCreateEnumStmt(from);
5170  break;
5171  case T_CreateRangeStmt:
5172  retval = _copyCreateRangeStmt(from);
5173  break;
5174  case T_AlterEnumStmt:
5175  retval = _copyAlterEnumStmt(from);
5176  break;
5177  case T_ViewStmt:
5178  retval = _copyViewStmt(from);
5179  break;
5180  case T_LoadStmt:
5181  retval = _copyLoadStmt(from);
5182  break;
5183  case T_CreateDomainStmt:
5184  retval = _copyCreateDomainStmt(from);
5185  break;
5186  case T_CreateOpClassStmt:
5187  retval = _copyCreateOpClassStmt(from);
5188  break;
5189  case T_CreateOpClassItem:
5190  retval = _copyCreateOpClassItem(from);
5191  break;
5192  case T_CreateOpFamilyStmt:
5193  retval = _copyCreateOpFamilyStmt(from);
5194  break;
5195  case T_AlterOpFamilyStmt:
5196  retval = _copyAlterOpFamilyStmt(from);
5197  break;
5198  case T_CreatedbStmt:
5199  retval = _copyCreatedbStmt(from);
5200  break;
5201  case T_AlterDatabaseStmt:
5202  retval = _copyAlterDatabaseStmt(from);
5203  break;
5205  retval = _copyAlterDatabaseSetStmt(from);
5206  break;
5207  case T_DropdbStmt:
5208  retval = _copyDropdbStmt(from);
5209  break;
5210  case T_VacuumStmt:
5211  retval = _copyVacuumStmt(from);
5212  break;
5213  case T_ExplainStmt:
5214  retval = _copyExplainStmt(from);
5215  break;
5216  case T_CreateTableAsStmt:
5217  retval = _copyCreateTableAsStmt(from);
5218  break;
5219  case T_RefreshMatViewStmt:
5220  retval = _copyRefreshMatViewStmt(from);
5221  break;
5222  case T_ReplicaIdentityStmt:
5223  retval = _copyReplicaIdentityStmt(from);
5224  break;
5225  case T_AlterSystemStmt:
5226  retval = _copyAlterSystemStmt(from);
5227  break;
5228  case T_CreateSeqStmt:
5229  retval = _copyCreateSeqStmt(from);
5230  break;
5231  case T_AlterSeqStmt:
5232  retval = _copyAlterSeqStmt(from);
5233  break;
5234  case T_VariableSetStmt:
5235  retval = _copyVariableSetStmt(from);
5236  break;
5237  case T_VariableShowStmt:
5238  retval = _copyVariableShowStmt(from);
5239  break;
5240  case T_DiscardStmt:
5241  retval = _copyDiscardStmt(from);
5242  break;
5244  retval = _copyCreateTableSpaceStmt(from);
5245  break;
5246  case T_DropTableSpaceStmt:
5247  retval = _copyDropTableSpaceStmt(from);
5248  break;
5250  retval = _copyAlterTableSpaceOptionsStmt(from);
5251  break;
5253  retval = _copyAlterTableMoveAllStmt(from);
5254  break;
5255  case T_CreateExtensionStmt:
5256  retval = _copyCreateExtensionStmt(from);
5257  break;
5258  case T_AlterExtensionStmt:
5259  retval = _copyAlterExtensionStmt(from);
5260  break;
5262  retval = _copyAlterExtensionContentsStmt(from);
5263  break;
5264  case T_CreateFdwStmt:
5265  retval = _copyCreateFdwStmt(from);
5266  break;
5267  case T_AlterFdwStmt:
5268  retval = _copyAlterFdwStmt(from);
5269  break;
5271  retval = _copyCreateForeignServerStmt(from);
5272  break;
5274  retval = _copyAlterForeignServerStmt(from);
5275  break;
5277  retval = _copyCreateUserMappingStmt(from);
5278  break;
5280  retval = _copyAlterUserMappingStmt(from);
5281  break;
5282  case T_DropUserMappingStmt:
5283  retval = _copyDropUserMappingStmt(from);
5284  break;
5286  retval = _copyCreateForeignTableStmt(from);
5287  break;
5289  retval = _copyImportForeignSchemaStmt(from);
5290  break;
5291  case T_CreateTransformStmt:
5292  retval = _copyCreateTransformStmt(from);
5293  break;
5294  case T_CreateAmStmt:
5295  retval = _copyCreateAmStmt(from);
5296  break;
5297  case T_CreateTrigStmt:
5298  retval = _copyCreateTrigStmt(from);
5299  break;
5300  case T_CreateEventTrigStmt:
5301  retval = _copyCreateEventTrigStmt(from);
5302  break;
5303  case T_AlterEventTrigStmt:
5304  retval = _copyAlterEventTrigStmt(from);
5305  break;
5306  case T_CreatePLangStmt:
5307  retval = _copyCreatePLangStmt(from);
5308  break;
5309  case T_CreateRoleStmt:
5310  retval = _copyCreateRoleStmt(from);
5311  break;
5312  case T_AlterRoleStmt:
5313  retval = _copyAlterRoleStmt(from);
5314  break;
5315  case T_AlterRoleSetStmt:
5316  retval = _copyAlterRoleSetStmt(from);
5317  break;
5318  case T_DropRoleStmt:
5319  retval = _copyDropRoleStmt(from);
5320  break;
5321  case T_LockStmt:
5322  retval = _copyLockStmt(from);
5323  break;
5324  case T_ConstraintsSetStmt:
5325  retval = _copyConstraintsSetStmt(from);
5326  break;
5327  case T_ReindexStmt:
5328  retval = _copyReindexStmt(from);
5329  break;
5330  case T_CheckPointStmt:
5331  retval = (void *) makeNode(CheckPointStmt);
5332  break;
5333  case T_CreateSchemaStmt:
5334  retval = _copyCreateSchemaStmt(from);
5335  break;
5337  retval = _copyCreateConversionStmt(from);
5338  break;
5339  case T_CreateCastStmt:
5340  retval = _copyCreateCastStmt(from);
5341  break;
5342  case T_PrepareStmt:
5343  retval = _copyPrepareStmt(from);
5344  break;
5345  case T_ExecuteStmt:
5346  retval = _copyExecuteStmt(from);
5347  break;
5348  case T_DeallocateStmt:
5349  retval = _copyDeallocateStmt(from);
5350  break;
5351  case T_DropOwnedStmt:
5352  retval = _copyDropOwnedStmt(from);
5353  break;
5354  case T_ReassignOwnedStmt:
5355  retval = _copyReassignOwnedStmt(from);
5356  break;
5358  retval = _copyAlterTSDictionaryStmt(from);
5359  break;
5361  retval = _copyAlterTSConfigurationStmt(from);
5362  break;
5363  case T_CreatePolicyStmt:
5364  retval = _copyCreatePolicyStmt(from);
5365  break;
5366  case T_AlterPolicyStmt:
5367  retval = _copyAlterPolicyStmt(from);
5368  break;
5370  retval = _copyCreatePublicationStmt(from);
5371  break;
5373  retval = _copyAlterPublicationStmt(from);
5374  break;
5376  retval = _copyCreateSubscriptionStmt(from);
5377  break;
5379  retval = _copyAlterSubscriptionStmt(from);
5380  break;
5382  retval = _copyDropSubscriptionStmt(from);
5383  break;
5384  case T_A_Expr:
5385  retval = _copyAExpr(from);
5386  break;
5387  case T_ColumnRef:
5388  retval = _copyColumnRef(from);
5389  break;
5390  case T_ParamRef:
5391  retval = _copyParamRef(from);
5392  break;
5393  case T_A_Const:
5394  retval = _copyAConst(from);
5395  break;
5396  case T_FuncCall:
5397  retval = _copyFuncCall(from);
5398  break;
5399  case T_A_Star:
5400  retval = _copyAStar(from);
5401  break;
5402  case T_A_Indices:
5403  retval = _copyAIndices(from);
5404  break;
5405  case T_A_Indirection:
5406  retval = _copyA_Indirection(from);
5407  break;
5408  case T_A_ArrayExpr:
5409  retval = _copyA_ArrayExpr(from);
5410  break;
5411  case T_ResTarget:
5412  retval = _copyResTarget(from);
5413  break;
5414  case T_MultiAssignRef:
5415  retval = _copyMultiAssignRef(from);
5416  break;
5417  case T_TypeCast:
5418  retval = _copyTypeCast(from);
5419  break;
5420  case T_CollateClause:
5421  retval = _copyCollateClause(from);
5422  break;
5423  case T_SortBy:
5424  retval = _copySortBy(from);
5425  break;
5426  case T_WindowDef:
5427  retval = _copyWindowDef(from);
5428  break;
5429  case T_RangeSubselect:
5430  retval = _copyRangeSubselect(from);
5431  break;
5432  case T_RangeFunction:
5433  retval = _copyRangeFunction(from);
5434  break;
5435  case T_RangeTableSample:
5436  retval = _copyRangeTableSample(from);
5437  break;
5438  case T_RangeTableFunc:
5439  retval = _copyRangeTableFunc(from);
5440  break;
5441  case T_RangeTableFuncCol:
5442  retval = _copyRangeTableFuncCol(from);
5443  break;
5444  case T_TypeName:
5445  retval = _copyTypeName(from);
5446  break;
5447  case T_IndexElem:
5448  retval = _copyIndexElem(from);
5449  break;
5450  case T_ColumnDef:
5451  retval = _copyColumnDef(from);
5452  break;
5453  case T_Constraint:
5454  retval = _copyConstraint(from);
5455  break;
5456  case T_DefElem:
5457  retval = _copyDefElem(from);
5458  break;
5459  case T_LockingClause:
5460  retval = _copyLockingClause(from);
5461  break;
5462  case T_RangeTblEntry:
5463  retval = _copyRangeTblEntry(from);
5464  break;
5465  case T_RangeTblFunction:
5466  retval = _copyRangeTblFunction(from);
5467  break;
5468  case T_TableSampleClause:
5469  retval = _copyTableSampleClause(from);
5470  break;
5471  case T_WithCheckOption:
5472  retval = _copyWithCheckOption(from);
5473  break;
5474  case T_SortGroupClause:
5475  retval = _copySortGroupClause(from);
5476  break;
5477  case T_GroupingSet:
5478  retval = _copyGroupingSet(from);
5479  break;
5480  case T_WindowClause:
5481  retval = _copyWindowClause(from);
5482  break;
5483  case T_RowMarkClause:
5484  retval = _copyRowMarkClause(from);
5485  break;
5486  case T_WithClause:
5487  retval = _copyWithClause(from);
5488  break;
5489  case T_InferClause:
5490  retval = _copyInferClause(from);
5491  break;
5492  case T_OnConflictClause:
5493  retval = _copyOnConflictClause(from);
5494  break;
5495  case T_CommonTableExpr:
5496  retval = _copyCommonTableExpr(from);
5497  break;
5498  case T_ObjectWithArgs:
5499  retval = _copyObjectWithArgs(from);
5500  break;
5501  case T_AccessPriv:
5502  retval = _copyAccessPriv(from);
5503  break;
5504  case T_XmlSerialize:
5505  retval = _copyXmlSerialize(from);
5506  break;
5507  case T_RoleSpec:
5508  retval = _copyRoleSpec(from);
5509  break;
5510  case T_TriggerTransition:
5511  retval = _copyTriggerTransition(from);
5512  break;
5513  case T_PartitionElem:
5514  retval = _copyPartitionElem(from);
5515  break;
5516  case T_PartitionSpec:
5517  retval = _copyPartitionSpec(from);
5518  break;
5519  case T_PartitionBoundSpec:
5520  retval = _copyPartitionBoundSpec(from);
5521  break;
5522  case T_PartitionRangeDatum:
5523  retval = _copyPartitionRangeDatum(from);
5524  break;
5525  case T_PartitionCmd:
5526  retval = _copyPartitionCmd(from);
5527  break;
5528 
5529  /*
5530  * MISCELLANEOUS NODES
5531  */
5532  case T_ForeignKeyCacheInfo:
5533  retval = _copyForeignKeyCacheInfo(from);
5534  break;
5535 
5536  default:
5537  elog(ERROR, "unrecognized node type: %d", (int) nodeTag(from));
5538  retval = 0; /* keep compiler quiet */
5539  break;
5540  }
5541 
5542  return retval;
5543 }
static Limit * _copyLimit(const Limit *from)
Definition: copyfuncs.c:1113
static WindowClause * _copyWindowClause(const WindowClause *from)
Definition: copyfuncs.c:2395
static CreateEnumStmt * _copyCreateEnumStmt(const CreateEnumStmt *from)
Definition: copyfuncs.c:3587
static RefreshMatViewStmt * _copyRefreshMatViewStmt(const RefreshMatViewStmt *from)
Definition: copyfuncs.c:3797
static RangeSubselect * _copyRangeSubselect(const RangeSubselect *from)
Definition: copyfuncs.c:2685
static AlterSystemStmt * _copyAlterSystemStmt(const AlterSystemStmt *from)
Definition: copyfuncs.c:3820
static DeallocateStmt * _copyDeallocateStmt(const DeallocateStmt *from)
Definition: copyfuncs.c:4328
static PlanInvalItem * _copyPlanInvalItem(const PlanInvalItem *from)
Definition: copyfuncs.c:1169
static Scan * _copyScan(const Scan *from)
Definition: copyfuncs.c:414
static AlterEventTrigStmt * _copyAlterEventTrigStmt(const AlterEventTrigStmt *from)
Definition: copyfuncs.c:4155
static SeqScan * _copySeqScan(const SeqScan *from)
Definition: copyfuncs.c:430
static AlterTableMoveAllStmt * _copyAlterTableMoveAllStmt(const AlterTableMoveAllStmt *from)
Definition: copyfuncs.c:3926
static DiscardStmt * _copyDiscardStmt(const DiscardStmt *from)
Definition: copyfuncs.c:3880
static DeleteStmt * _copyDeleteStmt(const DeleteStmt *from)
Definition: copyfuncs.c:2994
static Unique * _copyUnique(const Unique *from)
Definition: copyfuncs.c:1017
static BitmapAnd * _copyBitmapAnd(const BitmapAnd *from)
Definition: copyfuncs.c:308
static AccessPriv * _copyAccessPriv(const AccessPriv *from)
Definition: copyfuncs.c:3149
static FromExpr * _copyFromExpr(const FromExpr *from)
Definition: copyfuncs.c:2094
Definition: nodes.h:77
static DropStmt * _copyDropStmt(const DropStmt *from)
Definition: copyfuncs.c:3294
static Plan * _copyPlan(const Plan *from)
Definition: copyfuncs.c:137
static LockStmt * _copyLockStmt(const LockStmt *from)
Definition: copyfuncs.c:4228
static RowMarkClause * _copyRowMarkClause(const RowMarkClause *from)
Definition: copyfuncs.c:2413
static Var * _copyVar(const Var *from)
Definition: copyfuncs.c:1272
static ValuesScan * _copyValuesScan(const ValuesScan *from)
Definition: copyfuncs.c:649
static AlterForeignServerStmt * _copyAlterForeignServerStmt(const AlterForeignServerStmt *from)
Definition: copyfuncs.c:4015
static RowExpr * _copyRowExpr(const RowExpr *from)
Definition: copyfuncs.c:1811
static VariableShowStmt * _copyVariableShowStmt(const VariableShowStmt *from)
Definition: copyfuncs.c:3870
Definition: nodes.h:79
static TransactionStmt * _copyTransactionStmt(const TransactionStmt *from)
Definition: copyfuncs.c:3564
static TableLikeClause * _copyTableLikeClause(const TableLikeClause *from)
Definition: copyfuncs.c:3268
static CreatePolicyStmt * _copyCreatePolicyStmt(const CreatePolicyStmt *from)
Definition: copyfuncs.c:4387
static AlterEnumStmt * _copyAlterEnumStmt(const AlterEnumStmt *from)
Definition: copyfuncs.c:3609
Definition: nodes.h:53
static AlterExtensionStmt * _copyAlterExtensionStmt(const AlterExtensionStmt *from)
Definition: copyfuncs.c:3952
static DeclareCursorStmt * _copyDeclareCursorStmt(const DeclareCursorStmt *from)
Definition: copyfuncs.c:3186
static A_Const * _copyAConst(const A_Const *from)
Definition: copyfuncs.c:2520
static HashJoin * _copyHashJoin(const HashJoin *from)
Definition: copyfuncs.c:882
static AlterFdwStmt * _copyAlterFdwStmt(const AlterFdwStmt *from)
Definition: copyfuncs.c:3988
static PartitionSpec * _copyPartitionSpec(const PartitionSpec *from)
Definition: copyfuncs.c:4431
static GroupingSet * _copyGroupingSet(const GroupingSet *from)
Definition: copyfuncs.c:2383
static DropRoleStmt * _copyDropRoleStmt(const DropRoleStmt *from)
Definition: copyfuncs.c:4217
static CreateAmStmt * _copyCreateAmStmt(const CreateAmStmt *from)
Definition: copyfuncs.c:4107
static AlternativeSubPlan * _copyAlternativeSubPlan(const AlternativeSubPlan *from)
Definition: copyfuncs.c:1613
static UnlistenStmt * _copyUnlistenStmt(const UnlistenStmt *from)
Definition: copyfuncs.c:3554
static Hash * _copyHash(const Hash *from)
Definition: copyfuncs.c:1040
static AlterTSConfigurationStmt * _copyAlterTSConfigurationStmt(const AlterTSConfigurationStmt *from)
Definition: copyfuncs.c:4371
static CreateOpClassStmt * _copyCreateOpClassStmt(const CreateOpClassStmt *from)
Definition: copyfuncs.c:3662
static Result * _copyResult(const Result *from)
Definition: copyfuncs.c:154
static Material * _copyMaterial(const Material *from)
Definition: copyfuncs.c:904
static GatherMerge * _copyGatherMerge(const GatherMerge *from)
Definition: copyfuncs.c:374
static PartitionedChildRelInfo * _copyPartitionedChildRelInfo(const PartitionedChildRelInfo *from)
Definition: copyfuncs.c:2253
static ArrayRef * _copyArrayRef(const ArrayRef *from)
Definition: copyfuncs.c:1417
static RestrictInfo * _copyRestrictInfo(const RestrictInfo *from)
Definition: copyfuncs.c:2153
static ClusterStmt * _copyClusterStmt(const ClusterStmt *from)
Definition: copyfuncs.c:3208
static FunctionScan * _copyFunctionScan(const FunctionScan *from)
Definition: copyfuncs.c:606
static AlterFunctionStmt * _copyAlterFunctionStmt(const AlterFunctionStmt *from)
Definition: copyfuncs.c:3428
static SortBy * _copySortBy(const SortBy *from)
Definition: copyfuncs.c:2654
static MergeJoin * _copyMergeJoin(const MergeJoin *from)
Definition: copyfuncs.c:851
static AlterCollationStmt * _copyAlterCollationStmt(const AlterCollationStmt *from)
Definition: copyfuncs.c:3095
static RuleStmt * _copyRuleStmt(const RuleStmt *from)
Definition: copyfuncs.c:3517
static ImportForeignSchemaStmt * _copyImportForeignSchemaStmt(const ImportForeignSchemaStmt *from)
Definition: copyfuncs.c:4078
static FuncCall * _copyFuncCall(const FuncCall *from)
Definition: copyfuncs.c:2551
static RangeVar * _copyRangeVar(const RangeVar *from)
Definition: copyfuncs.c:1202
static CreatedbStmt * _copyCreatedbStmt(const CreatedbStmt *from)
Definition: copyfuncs.c:3716
static CopyStmt * _copyCopyStmt(const CopyStmt *from)
Definition: copyfuncs.c:3220
List * list_copy(const List *oldlist)
Definition: list.c:1160
static PartitionBoundSpec * _copyPartitionBoundSpec(const PartitionBoundSpec *from)
Definition: copyfuncs.c:4443
static CreateTableSpaceStmt * _copyCreateTableSpaceStmt(const CreateTableSpaceStmt *from)
Definition: copyfuncs.c:3890
static GrantStmt * _copyGrantStmt(const GrantStmt *from)
Definition: copyfuncs.c:3120
static Value * _copyValue(const Value *from)
Definition: copyfuncs.c:4613
Definition: nodes.h:48
static AlterOperatorStmt * _copyAlterOperatorStmt(const AlterOperatorStmt *from)
Definition: copyfuncs.c:3506
static Alias * _copyAlias(const Alias *from)
Definition: copyfuncs.c:1188
static BitmapHeapScan * _copyBitmapHeapScan(const BitmapHeapScan *from)
Definition: copyfuncs.c:543
static Sort * _copySort(const Sort *from)
Definition: copyfuncs.c:921
static A_ArrayExpr * _copyA_ArrayExpr(const A_ArrayExpr *from)
Definition: copyfuncs.c:2601
static Agg * _copyAgg(const Agg *from)
Definition: copyfuncs.c:961
static IntoClause * _copyIntoClause(const IntoClause *from)
Definition: copyfuncs.c:1246
static ParamRef * _copyParamRef(const ParamRef *from)
Definition: copyfuncs.c:2509
Definition: nodes.h:75
static IndexStmt * _copyIndexStmt(const IndexStmt *from)
Definition: copyfuncs.c:3358
static FuncExpr * _copyFuncExpr(const FuncExpr *from)
Definition: copyfuncs.c:1437
static ObjectWithArgs * _copyObjectWithArgs(const ObjectWithArgs *from)
Definition: copyfuncs.c:3137
static BoolExpr * _copyBoolExpr(const BoolExpr *from)
Definition: copyfuncs.c:1552
static PathKey * _copyPathKey(const PathKey *from)
Definition: copyfuncs.c:2136
static DefineStmt * _copyDefineStmt(const DefineStmt *from)
Definition: copyfuncs.c:3279
static Join * _copyJoin(const Join *from)
Definition: copyfuncs.c:812
static WithClause * _copyWithClause(const WithClause *from)
Definition: copyfuncs.c:2426
static TypeName * _copyTypeName(const TypeName *from)
Definition: copyfuncs.c:2637
static WindowAgg * _copyWindowAgg(const WindowAgg *from)
Definition: copyfuncs.c:987
static PlannedStmt * _copyPlannedStmt(const PlannedStmt *from)
Definition: copyfuncs.c:78
static WindowDef * _copyWindowDef(const WindowDef *from)
Definition: copyfuncs.c:2668
static ScalarArrayOpExpr * _copyScalarArrayOpExpr(const ScalarArrayOpExpr *from)
Definition: copyfuncs.c:1534
static ExecuteStmt * _copyExecuteStmt(const ExecuteStmt *from)
Definition: copyfuncs.c:4317
static SubqueryScan * _copySubqueryScan(const SubqueryScan *from)
Definition: copyfuncs.c:585
static WithCheckOption * _copyWithCheckOption(const WithCheckOption *from)
Definition: copyfuncs.c:2355
static ReplicaIdentityStmt * _copyReplicaIdentityStmt(const ReplicaIdentityStmt *from)
Definition: copyfuncs.c:3809
static ExplainStmt * _copyExplainStmt(const ExplainStmt *from)
Definition: copyfuncs.c:3772
static TableSampleClause * _copyTableSampleClause(const TableSampleClause *from)
Definition: copyfuncs.c:2343
static DropUserMappingStmt * _copyDropUserMappingStmt(const DropUserMappingStmt *from)
Definition: copyfuncs.c:4053
static PartitionCmd * _copyPartitionCmd(const PartitionCmd *from)
Definition: copyfuncs.c:4469
static NestLoop * _copyNestLoop(const NestLoop *from)
Definition: copyfuncs.c:829
static Query * _copyQuery(const Query *from)
Definition: copyfuncs.c:2921
static XmlSerialize * _copyXmlSerialize(const XmlSerialize *from)
Definition: copyfuncs.c:2884
static ConvertRowtypeExpr * _copyConvertRowtypeExpr(const ConvertRowtypeExpr *from)
Definition: copyfuncs.c:1714
static RawStmt * _copyRawStmt(const RawStmt *from)
Definition: copyfuncs.c:2966
static PlaceHolderVar * _copyPlaceHolderVar(const PlaceHolderVar *from)
Definition: copyfuncs.c:2196
static BitmapOr * _copyBitmapOr(const BitmapOr *from)
Definition: copyfuncs.c:329
static RenameStmt * _copyRenameStmt(const RenameStmt *from)
Definition: copyfuncs.c:3449
static ReassignOwnedStmt * _copyReassignOwnedStmt(const ReassignOwnedStmt *from)
Definition: copyfuncs.c:4349
static ColumnDef * _copyColumnDef(const ColumnDef *from)
Definition: copyfuncs.c:2798
static A_Star * _copyAStar(const A_Star *from)
Definition: copyfuncs.c:2570
static SpecialJoinInfo * _copySpecialJoinInfo(const SpecialJoinInfo *from)
Definition: copyfuncs.c:2212
static RelabelType * _copyRelabelType(const RelabelType *from)
Definition: copyfuncs.c:1659
static CaseTestExpr * _copyCaseTestExpr(const CaseTestExpr *from)
Definition: copyfuncs.c:1778
static CreatePublicationStmt * _copyCreatePublicationStmt(const CreatePublicationStmt *from)
Definition: copyfuncs.c:4480
static CreateFunctionStmt * _copyCreateFunctionStmt(const CreateFunctionStmt *from)
Definition: copyfuncs.c:3400
static AlterTableStmt * _copyAlterTableStmt(const AlterTableStmt *from)
Definition: copyfuncs.c:3067
static SortGroupClause * _copySortGroupClause(const SortGroupClause *from)
Definition: copyfuncs.c:2369
static ArrayCoerceExpr * _copyArrayCoerceExpr(const ArrayCoerceExpr *from)
Definition: copyfuncs.c:1694
static RoleSpec * _copyRoleSpec(const RoleSpec *from)
Definition: copyfuncs.c:2897
Definition: nodes.h:45
static NextValueExpr * _copyNextValueExpr(const NextValueExpr *from)
Definition: copyfuncs.c:2013
#define ERROR
Definition: elog.h:43
static CreateOpClassItem * _copyCreateOpClassItem(const CreateOpClassItem *from)
Definition: copyfuncs.c:3677
static AlterExtensionContentsStmt * _copyAlterExtensionContentsStmt(const AlterExtensionContentsStmt *from)
Definition: copyfuncs.c:3963
static List * _copyList(const List *from)
Definition: copyfuncs.c:4560
static MergeAppend * _copyMergeAppend(const MergeAppend *from)
Definition: copyfuncs.c:253
static VariableSetStmt * _copyVariableSetStmt(const VariableSetStmt *from)
Definition: copyfuncs.c:3857
static AlterPublicationStmt * _copyAlterPublicationStmt(const AlterPublicationStmt *from)
Definition: copyfuncs.c:4493
static CreateRoleStmt * _copyCreateRoleStmt(const CreateRoleStmt *from)
Definition: copyfuncs.c:4181
static LockingClause * _copyLockingClause(const LockingClause *from)
Definition: copyfuncs.c:2872
static PlaceHolderInfo * _copyPlaceHolderInfo(const PlaceHolderInfo *from)
Definition: copyfuncs.c:2267
static ArrayExpr * _copyArrayExpr(const ArrayExpr *from)
Definition: copyfuncs.c:1793
static CreateExtensionStmt * _copyCreateExtensionStmt(const CreateExtensionStmt *from)
Definition: copyfuncs.c:3940
static SetToDefault * _copySetToDefault(const SetToDefault *from)
Definition: copyfuncs.c:1982
Definition: nodes.h:76
static DropSubscriptionStmt * _copyDropSubscriptionStmt(const DropSubscriptionStmt *from)
Definition: copyfuncs.c:4534
static AlterDefaultPrivilegesStmt * _copyAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *from)
Definition: copyfuncs.c:3175
static CreateSeqStmt * _copyCreateSeqStmt(const CreateSeqStmt *from)
Definition: copyfuncs.c:3830
static CreateSchemaStmt * _copyCreateSchemaStmt(const CreateSchemaStmt *from)
Definition: copyfuncs.c:4264
static AlterOpFamilyStmt * _copyAlterOpFamilyStmt(const AlterOpFamilyStmt *from)
Definition: copyfuncs.c:3703
Definition: nodes.h:142
static AlterObjectSchemaStmt * _copyAlterObjectSchemaStmt(const AlterObjectSchemaStmt *from)
Definition: copyfuncs.c:3479
void check_stack_depth(void)
Definition: postgres.c:3117
static RowCompareExpr * _copyRowCompareExpr(const RowCompareExpr *from)
Definition: copyfuncs.c:1828
static Constraint * _copyConstraint(const Constraint *from)
Definition: copyfuncs.c:2823
static CommentStmt * _copyCommentStmt(const CommentStmt *from)
Definition: copyfuncs.c:3320
static CreateRangeStmt * _copyCreateRangeStmt(const CreateRangeStmt *from)
Definition: copyfuncs.c:3598
static AlterUserMappingStmt * _copyAlterUserMappingStmt(const AlterUserMappingStmt *from)
Definition: copyfuncs.c:4041
static IndexElem * _copyIndexElem(const IndexElem *from)
Definition: copyfuncs.c:2782
static CollateExpr * _copyCollateExpr(const CollateExpr *from)
Definition: copyfuncs.c:1730
static TypeCast * _copyTypeCast(const TypeCast *from)
Definition: copyfuncs.c:2758
static MultiAssignRef * _copyMultiAssignRef(const MultiAssignRef *from)
Definition: copyfuncs.c:2625
static OnConflictExpr * _copyOnConflictExpr(const OnConflictExpr *from)
Definition: copyfuncs.c:2108
static InferenceElem * _copyInferenceElem(const InferenceElem *from)
Definition: copyfuncs.c:2027
static IndexOnlyScan * _copyIndexOnlyScan(const IndexOnlyScan *from)
Definition: copyfuncs.c:494
static CreateConversionStmt * _copyCreateConversionStmt(const CreateConversionStmt *from)
Definition: copyfuncs.c:4277
static CreateForeignTableStmt * _copyCreateForeignTableStmt(const CreateForeignTableStmt *from)
Definition: copyfuncs.c:4065
static SubPlan * _copySubPlan(const SubPlan *from)
Definition: copyfuncs.c:1585
Definition: nodes.h:291
static DropdbStmt * _copyDropdbStmt(const DropdbStmt *from)
Definition: copyfuncs.c:3749
Definition: nodes.h:147
static CreateFdwStmt * _copyCreateFdwStmt(const CreateFdwStmt *from)
Definition: copyfuncs.c:3976
static SQLValueFunction * _copySQLValueFunction(const SQLValueFunction *from)
Definition: copyfuncs.c:1880
static DropTableSpaceStmt * _copyDropTableSpaceStmt(const DropTableSpaceStmt *from)
Definition: copyfuncs.c:3903
Definition: nodes.h:146
static RangeTblEntry * _copyRangeTblEntry(const RangeTblEntry *from)
Definition: copyfuncs.c:2287
static PlanRowMark * _copyPlanRowMark(const PlanRowMark *from)
Definition: copyfuncs.c:1149
static ListenStmt * _copyListenStmt(const ListenStmt *from)
Definition: copyfuncs.c:3544
static ProjectSet * _copyProjectSet(const ProjectSet *from)
Definition: copyfuncs.c:175
Definition: nodes.h:304
static DistinctExpr * _copyDistinctExpr(const DistinctExpr *from)
Definition: copyfuncs.c:1494
static LoadStmt * _copyLoadStmt(const LoadStmt *from)
Definition: copyfuncs.c:3639
static ConstraintsSetStmt * _copyConstraintsSetStmt(const ConstraintsSetStmt *from)
Definition: copyfuncs.c:4240
static BitmapIndexScan * _copyBitmapIndexScan(const BitmapIndexScan *from)
Definition: copyfuncs.c:519
static AlterTSDictionaryStmt * _copyAlterTSDictionaryStmt(const AlterTSDictionaryStmt *from)
Definition: copyfuncs.c:4360
static AlterDatabaseStmt * _copyAlterDatabaseStmt(const AlterDatabaseStmt *from)
Definition: copyfuncs.c:3727
static CoalesceExpr * _copyCoalesceExpr(const CoalesceExpr *from)
Definition: copyfuncs.c:1846
static CoerceToDomain * _copyCoerceToDomain(const CoerceToDomain *from)
Definition: copyfuncs.c:1948
static ReindexStmt * _copyReindexStmt(const ReindexStmt *from)
Definition: copyfuncs.c:4251
static ExtensibleNode * _copyExtensibleNode(const ExtensibleNode *from)
Definition: copyfuncs.c:4592
static RangeTableFuncCol * _copyRangeTableFuncCol(const RangeTableFuncCol *from)
Definition: copyfuncs.c:2742
static CaseWhen * _copyCaseWhen(const CaseWhen *from)
Definition: copyfuncs.c:1763
static Gather * _copyGather(const Gather *from)
Definition: copyfuncs.c:351
static FieldSelect * _copyFieldSelect(const FieldSelect *from)
Definition: copyfuncs.c:1626
static CoerceToDomainValue * _copyCoerceToDomainValue(const CoerceToDomainValue *from)
Definition: copyfuncs.c:1966
static SelectStmt * _copySelectStmt(const SelectStmt *from)
Definition: copyfuncs.c:3023
static ViewStmt * _copyViewStmt(const ViewStmt *from)
Definition: copyfuncs.c:3624
static AlterObjectDependsStmt * _copyAlterObjectDependsStmt(const AlterObjectDependsStmt *from)
Definition: copyfuncs.c:3466
static CoerceViaIO * _copyCoerceViaIO(const CoerceViaIO *from)
Definition: copyfuncs.c:1677
Definition: nodes.h:82
static ModifyTable * _copyModifyTable(const ModifyTable *from)
Definition: copyfuncs.c:191
static TableFunc * _copyTableFunc(const TableFunc *from)
Definition: copyfuncs.c:1221
static GrantRoleStmt * _copyGrantRoleStmt(const GrantRoleStmt *from)
Definition: copyfuncs.c:3160
static InsertStmt * _copyInsertStmt(const InsertStmt *from)
Definition: copyfuncs.c:2978
static Append * _copyAppend(const Append *from)
Definition: copyfuncs.c:231
#define makeNode(_type_)
Definition: nodes.h:557
static AppendRelInfo * _copyAppendRelInfo(const AppendRelInfo *from)
Definition: copyfuncs.c:2235
static NullTest * _copyNullTest(const NullTest *from)
Definition: copyfuncs.c:1917
static CreateTableAsStmt * _copyCreateTableAsStmt(const CreateTableAsStmt *from)
Definition: copyfuncs.c:3783
static Aggref * _copyAggref(const Aggref *from)
Definition: copyfuncs.c:1349
static CreateUserMappingStmt * _copyCreateUserMappingStmt(const CreateUserMappingStmt *from)
Definition: copyfuncs.c:4028
#define NULL
Definition: c.h:229
static A_Indices * _copyAIndices(const A_Indices *from)
Definition: copyfuncs.c:2578
static VacuumStmt * _copyVacuumStmt(const VacuumStmt *from)
Definition: copyfuncs.c:3760
static RangeTblRef * _copyRangeTblRef(const RangeTblRef *from)
Definition: copyfuncs.c:2061
static TableFuncScan * _copyTableFuncScan(const TableFuncScan *from)
Definition: copyfuncs.c:628
static WorkTableScan * _copyWorkTableScan(const WorkTableScan *from)
Definition: copyfuncs.c:713
static FieldStore * _copyFieldStore(const FieldStore *from)
Definition: copyfuncs.c:1643
static ForeignScan * _copyForeignScan(const ForeignScan *from)
Definition: copyfuncs.c:734
static CurrentOfExpr * _copyCurrentOfExpr(const CurrentOfExpr *from)
Definition: copyfuncs.c:1998
static SetOp * _copySetOp(const SetOp *from)
Definition: copyfuncs.c:1063
static ForeignKeyCacheInfo * _copyForeignKeyCacheInfo(const ForeignKeyCacheInfo *from)
Definition: copyfuncs.c:4643
static AlterOwnerStmt * _copyAlterOwnerStmt(const AlterOwnerStmt *from)
Definition: copyfuncs.c:3493
static RangeTblFunction * _copyRangeTblFunction(const RangeTblFunction *from)
Definition: copyfuncs.c:2327
static CreateCastStmt * _copyCreateCastStmt(const CreateCastStmt *from)
Definition: copyfuncs.c:4291
static JoinExpr * _copyJoinExpr(const JoinExpr *from)
Definition: copyfuncs.c:2074
static DropOwnedStmt * _copyDropOwnedStmt(const DropOwnedStmt *from)
Definition: copyfuncs.c:4338
static TargetEntry * _copyTargetEntry(const TargetEntry *from)
Definition: copyfuncs.c:2042
static CollateClause * _copyCollateClause(const CollateClause *from)
Definition: copyfuncs.c:2770
static PrepareStmt * _copyPrepareStmt(const PrepareStmt *from)
Definition: copyfuncs.c:4305
static AlterTableSpaceOptionsStmt * _copyAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *from)
Definition: copyfuncs.c:3914
static RangeTableSample * _copyRangeTableSample(const RangeTableSample *from)
Definition: copyfuncs.c:2712
static LockRows * _copyLockRows(const LockRows *from)
Definition: copyfuncs.c:1091
static CreatePLangStmt * _copyCreatePLangStmt(const CreatePLangStmt *from)
Definition: copyfuncs.c:4166
static GroupingFunc * _copyGroupingFunc(const GroupingFunc *from)
Definition: copyfuncs.c:1378
static Group * _copyGroup(const Group *from)
Definition: copyfuncs.c:944
static AlterSubscriptionStmt * _copyAlterSubscriptionStmt(const AlterSubscriptionStmt *from)
Definition: copyfuncs.c:4520
static CustomScan * _copyCustomScan(const CustomScan *from)
Definition: copyfuncs.c:762
static OnConflictClause * _copyOnConflictClause(const OnConflictClause *from)
Definition: copyfuncs.c:2451
#define nodeTag(nodeptr)
Definition: nodes.h:514
Definition: nodes.h:44
static FetchStmt * _copyFetchStmt(const FetchStmt *from)
Definition: copyfuncs.c:3345
static AlterPolicyStmt * _copyAlterPolicyStmt(const AlterPolicyStmt *from)
Definition: copyfuncs.c:4403
Definition: nodes.h:70
static NullIfExpr * _copyNullIfExpr(const NullIfExpr *from)
Definition: copyfuncs.c:1514
Definition: nodes.h:286
static CommonTableExpr * _copyCommonTableExpr(const CommonTableExpr *from)
Definition: copyfuncs.c:2465
Definition: nodes.h:83
static NotifyStmt * _copyNotifyStmt(const NotifyStmt *from)
Definition: copyfuncs.c:3533
static RecursiveUnion * _copyRecursiveUnion(const RecursiveUnion *from)
Definition: copyfuncs.c:280
static NamedTuplestoreScan * _copyNamedTuplestoreScan(const NamedTuplestoreScan *from)
Definition: copyfuncs.c:692
Definition: nodes.h:283
static Const * _copyConst(const Const *from)
Definition: copyfuncs.c:1293
static SubLink * _copySubLink(const SubLink *from)
Definition: copyfuncs.c:1567
static NestLoopParam * _copyNestLoopParam(const NestLoopParam *from)
Definition: copyfuncs.c:1135
static OpExpr * _copyOpExpr(const OpExpr *from)
Definition: copyfuncs.c:1474
static AlterRoleStmt * _copyAlterRoleStmt(const AlterRoleStmt *from)
Definition: copyfuncs.c:4193
static UpdateStmt * _copyUpdateStmt(const UpdateStmt *from)
Definition: copyfuncs.c:3008