PostgreSQL Source Code  git master
copyfuncs.c File Reference
#include "postgres.h"
#include "miscadmin.h"
#include "nodes/extensible.h"
#include "nodes/pathnodes.h"
#include "nodes/plannodes.h"
#include "utils/datum.h"
#include "utils/rel.h"
Include dependency graph for copyfuncs.c:

Go to the source code of this file.

Macros

#define COPY_SCALAR_FIELD(fldname)   (newnode->fldname = from->fldname)
 
#define COPY_NODE_FIELD(fldname)   (newnode->fldname = copyObjectImpl(from->fldname))
 
#define COPY_BITMAPSET_FIELD(fldname)   (newnode->fldname = bms_copy(from->fldname))
 
#define COPY_STRING_FIELD(fldname)   (newnode->fldname = from->fldname ? pstrdup(from->fldname) : (char *) NULL)
 
#define COPY_POINTER_FIELD(fldname, sz)
 
#define COPY_LOCATION_FIELD(fldname)   (newnode->fldname = from->fldname)
 

Functions

static PlannedStmt_copyPlannedStmt (const PlannedStmt *from)
 
static void CopyPlanFields (const Plan *from, Plan *newnode)
 
static Plan_copyPlan (const Plan *from)
 
static Result_copyResult (const Result *from)
 
static ProjectSet_copyProjectSet (const ProjectSet *from)
 
static ModifyTable_copyModifyTable (const ModifyTable *from)
 
static Append_copyAppend (const Append *from)
 
static MergeAppend_copyMergeAppend (const MergeAppend *from)
 
static RecursiveUnion_copyRecursiveUnion (const RecursiveUnion *from)
 
static BitmapAnd_copyBitmapAnd (const BitmapAnd *from)
 
static BitmapOr_copyBitmapOr (const BitmapOr *from)
 
static Gather_copyGather (const Gather *from)
 
static GatherMerge_copyGatherMerge (const GatherMerge *from)
 
static void CopyScanFields (const Scan *from, Scan *newnode)
 
static Scan_copyScan (const Scan *from)
 
static SeqScan_copySeqScan (const SeqScan *from)
 
static SampleScan_copySampleScan (const SampleScan *from)
 
static IndexScan_copyIndexScan (const IndexScan *from)
 
static IndexOnlyScan_copyIndexOnlyScan (const IndexOnlyScan *from)
 
static BitmapIndexScan_copyBitmapIndexScan (const BitmapIndexScan *from)
 
static BitmapHeapScan_copyBitmapHeapScan (const BitmapHeapScan *from)
 
static TidScan_copyTidScan (const TidScan *from)
 
static TidRangeScan_copyTidRangeScan (const TidRangeScan *from)
 
static SubqueryScan_copySubqueryScan (const SubqueryScan *from)
 
static FunctionScan_copyFunctionScan (const FunctionScan *from)
 
static TableFuncScan_copyTableFuncScan (const TableFuncScan *from)
 
static ValuesScan_copyValuesScan (const ValuesScan *from)
 
static CteScan_copyCteScan (const CteScan *from)
 
static NamedTuplestoreScan_copyNamedTuplestoreScan (const NamedTuplestoreScan *from)
 
static WorkTableScan_copyWorkTableScan (const WorkTableScan *from)
 
static ForeignScan_copyForeignScan (const ForeignScan *from)
 
static CustomScan_copyCustomScan (const CustomScan *from)
 
static void CopyJoinFields (const Join *from, Join *newnode)
 
static Join_copyJoin (const Join *from)
 
static NestLoop_copyNestLoop (const NestLoop *from)
 
static MergeJoin_copyMergeJoin (const MergeJoin *from)
 
static HashJoin_copyHashJoin (const HashJoin *from)
 
static Material_copyMaterial (const Material *from)
 
static ResultCache_copyResultCache (const ResultCache *from)
 
static void CopySortFields (const Sort *from, Sort *newnode)
 
static Sort_copySort (const Sort *from)
 
static IncrementalSort_copyIncrementalSort (const IncrementalSort *from)
 
static Group_copyGroup (const Group *from)
 
static Agg_copyAgg (const Agg *from)
 
static WindowAgg_copyWindowAgg (const WindowAgg *from)
 
static Unique_copyUnique (const Unique *from)
 
static Hash_copyHash (const Hash *from)
 
static SetOp_copySetOp (const SetOp *from)
 
static LockRows_copyLockRows (const LockRows *from)
 
static Limit_copyLimit (const Limit *from)
 
static NestLoopParam_copyNestLoopParam (const NestLoopParam *from)
 
static PlanRowMark_copyPlanRowMark (const PlanRowMark *from)
 
static PartitionPruneInfo_copyPartitionPruneInfo (const PartitionPruneInfo *from)
 
static PartitionedRelPruneInfo_copyPartitionedRelPruneInfo (const PartitionedRelPruneInfo *from)
 
static PartitionPruneStepOp_copyPartitionPruneStepOp (const PartitionPruneStepOp *from)
 
static PartitionPruneStepCombine_copyPartitionPruneStepCombine (const PartitionPruneStepCombine *from)
 
static PlanInvalItem_copyPlanInvalItem (const PlanInvalItem *from)
 
static Alias_copyAlias (const Alias *from)
 
static RangeVar_copyRangeVar (const RangeVar *from)
 
static TableFunc_copyTableFunc (const TableFunc *from)
 
static IntoClause_copyIntoClause (const IntoClause *from)
 
static Var_copyVar (const Var *from)
 
static Const_copyConst (const Const *from)
 
static Param_copyParam (const Param *from)
 
static Aggref_copyAggref (const Aggref *from)
 
static GroupingFunc_copyGroupingFunc (const GroupingFunc *from)
 
static WindowFunc_copyWindowFunc (const WindowFunc *from)
 
static SubscriptingRef_copySubscriptingRef (const SubscriptingRef *from)
 
static FuncExpr_copyFuncExpr (const FuncExpr *from)
 
static NamedArgExpr_copyNamedArgExpr (const NamedArgExpr *from)
 
static OpExpr_copyOpExpr (const OpExpr *from)
 
static DistinctExpr_copyDistinctExpr (const DistinctExpr *from)
 
static NullIfExpr_copyNullIfExpr (const NullIfExpr *from)
 
static ScalarArrayOpExpr_copyScalarArrayOpExpr (const ScalarArrayOpExpr *from)
 
static BoolExpr_copyBoolExpr (const BoolExpr *from)
 
static SubLink_copySubLink (const SubLink *from)
 
static SubPlan_copySubPlan (const SubPlan *from)
 
static AlternativeSubPlan_copyAlternativeSubPlan (const AlternativeSubPlan *from)
 
static FieldSelect_copyFieldSelect (const FieldSelect *from)
 
static FieldStore_copyFieldStore (const FieldStore *from)
 
static RelabelType_copyRelabelType (const RelabelType *from)
 
static CoerceViaIO_copyCoerceViaIO (const CoerceViaIO *from)
 
static ArrayCoerceExpr_copyArrayCoerceExpr (const ArrayCoerceExpr *from)
 
static ConvertRowtypeExpr_copyConvertRowtypeExpr (const ConvertRowtypeExpr *from)
 
static CollateExpr_copyCollateExpr (const CollateExpr *from)
 
static CaseExpr_copyCaseExpr (const CaseExpr *from)
 
static CaseWhen_copyCaseWhen (const CaseWhen *from)
 
static CaseTestExpr_copyCaseTestExpr (const CaseTestExpr *from)
 
static ArrayExpr_copyArrayExpr (const ArrayExpr *from)
 
static RowExpr_copyRowExpr (const RowExpr *from)
 
static RowCompareExpr_copyRowCompareExpr (const RowCompareExpr *from)
 
static CoalesceExpr_copyCoalesceExpr (const CoalesceExpr *from)
 
static MinMaxExpr_copyMinMaxExpr (const MinMaxExpr *from)
 
static SQLValueFunction_copySQLValueFunction (const SQLValueFunction *from)
 
static XmlExpr_copyXmlExpr (const XmlExpr *from)
 
static NullTest_copyNullTest (const NullTest *from)
 
static BooleanTest_copyBooleanTest (const BooleanTest *from)
 
static CoerceToDomain_copyCoerceToDomain (const CoerceToDomain *from)
 
static CoerceToDomainValue_copyCoerceToDomainValue (const CoerceToDomainValue *from)
 
static SetToDefault_copySetToDefault (const SetToDefault *from)
 
static CurrentOfExpr_copyCurrentOfExpr (const CurrentOfExpr *from)
 
static NextValueExpr_copyNextValueExpr (const NextValueExpr *from)
 
static InferenceElem_copyInferenceElem (const InferenceElem *from)
 
static TargetEntry_copyTargetEntry (const TargetEntry *from)
 
static RangeTblRef_copyRangeTblRef (const RangeTblRef *from)
 
static JoinExpr_copyJoinExpr (const JoinExpr *from)
 
static FromExpr_copyFromExpr (const FromExpr *from)
 
static OnConflictExpr_copyOnConflictExpr (const OnConflictExpr *from)
 
static PathKey_copyPathKey (const PathKey *from)
 
static RestrictInfo_copyRestrictInfo (const RestrictInfo *from)
 
static PlaceHolderVar_copyPlaceHolderVar (const PlaceHolderVar *from)
 
static SpecialJoinInfo_copySpecialJoinInfo (const SpecialJoinInfo *from)
 
static AppendRelInfo_copyAppendRelInfo (const AppendRelInfo *from)
 
static PlaceHolderInfo_copyPlaceHolderInfo (const PlaceHolderInfo *from)
 
static RangeTblEntry_copyRangeTblEntry (const RangeTblEntry *from)
 
static RangeTblFunction_copyRangeTblFunction (const RangeTblFunction *from)
 
static TableSampleClause_copyTableSampleClause (const TableSampleClause *from)
 
static WithCheckOption_copyWithCheckOption (const WithCheckOption *from)
 
static SortGroupClause_copySortGroupClause (const SortGroupClause *from)
 
static GroupingSet_copyGroupingSet (const GroupingSet *from)
 
static WindowClause_copyWindowClause (const WindowClause *from)
 
static RowMarkClause_copyRowMarkClause (const RowMarkClause *from)
 
static WithClause_copyWithClause (const WithClause *from)
 
static InferClause_copyInferClause (const InferClause *from)
 
static OnConflictClause_copyOnConflictClause (const OnConflictClause *from)
 
static CTESearchClause_copyCTESearchClause (const CTESearchClause *from)
 
static CTECycleClause_copyCTECycleClause (const CTECycleClause *from)
 
static CommonTableExpr_copyCommonTableExpr (const CommonTableExpr *from)
 
static A_Expr_copyAExpr (const A_Expr *from)
 
static ColumnRef_copyColumnRef (const ColumnRef *from)
 
static ParamRef_copyParamRef (const ParamRef *from)
 
static A_Const_copyAConst (const A_Const *from)
 
static FuncCall_copyFuncCall (const FuncCall *from)
 
static A_Star_copyAStar (const A_Star *from)
 
static A_Indices_copyAIndices (const A_Indices *from)
 
static A_Indirection_copyA_Indirection (const A_Indirection *from)
 
static A_ArrayExpr_copyA_ArrayExpr (const A_ArrayExpr *from)
 
static ResTarget_copyResTarget (const ResTarget *from)
 
static MultiAssignRef_copyMultiAssignRef (const MultiAssignRef *from)
 
static TypeName_copyTypeName (const TypeName *from)
 
static SortBy_copySortBy (const SortBy *from)
 
static WindowDef_copyWindowDef (const WindowDef *from)
 
static RangeSubselect_copyRangeSubselect (const RangeSubselect *from)
 
static RangeFunction_copyRangeFunction (const RangeFunction *from)
 
static RangeTableSample_copyRangeTableSample (const RangeTableSample *from)
 
static RangeTableFunc_copyRangeTableFunc (const RangeTableFunc *from)
 
static RangeTableFuncCol_copyRangeTableFuncCol (const RangeTableFuncCol *from)
 
static TypeCast_copyTypeCast (const TypeCast *from)
 
static CollateClause_copyCollateClause (const CollateClause *from)
 
static IndexElem_copyIndexElem (const IndexElem *from)
 
static StatsElem_copyStatsElem (const StatsElem *from)
 
static ColumnDef_copyColumnDef (const ColumnDef *from)
 
static Constraint_copyConstraint (const Constraint *from)
 
static DefElem_copyDefElem (const DefElem *from)
 
static LockingClause_copyLockingClause (const LockingClause *from)
 
static XmlSerialize_copyXmlSerialize (const XmlSerialize *from)
 
static RoleSpec_copyRoleSpec (const RoleSpec *from)
 
static TriggerTransition_copyTriggerTransition (const TriggerTransition *from)
 
static Query_copyQuery (const Query *from)
 
static RawStmt_copyRawStmt (const RawStmt *from)
 
static InsertStmt_copyInsertStmt (const InsertStmt *from)
 
static DeleteStmt_copyDeleteStmt (const DeleteStmt *from)
 
static UpdateStmt_copyUpdateStmt (const UpdateStmt *from)
 
static SelectStmt_copySelectStmt (const SelectStmt *from)
 
static SetOperationStmt_copySetOperationStmt (const SetOperationStmt *from)
 
static ReturnStmt_copyReturnStmt (const ReturnStmt *from)
 
static PLAssignStmt_copyPLAssignStmt (const PLAssignStmt *from)
 
static AlterTableStmt_copyAlterTableStmt (const AlterTableStmt *from)
 
static AlterTableCmd_copyAlterTableCmd (const AlterTableCmd *from)
 
static AlterDomainStmt_copyAlterDomainStmt (const AlterDomainStmt *from)
 
static GrantStmt_copyGrantStmt (const GrantStmt *from)
 
static ObjectWithArgs_copyObjectWithArgs (const ObjectWithArgs *from)
 
static AccessPriv_copyAccessPriv (const AccessPriv *from)
 
static GrantRoleStmt_copyGrantRoleStmt (const GrantRoleStmt *from)
 
static AlterDefaultPrivilegesStmt_copyAlterDefaultPrivilegesStmt (const AlterDefaultPrivilegesStmt *from)
 
static DeclareCursorStmt_copyDeclareCursorStmt (const DeclareCursorStmt *from)
 
static ClosePortalStmt_copyClosePortalStmt (const ClosePortalStmt *from)
 
static CallStmt_copyCallStmt (const CallStmt *from)
 
static ClusterStmt_copyClusterStmt (const ClusterStmt *from)
 
static CopyStmt_copyCopyStmt (const CopyStmt *from)
 
static void CopyCreateStmtFields (const CreateStmt *from, CreateStmt *newnode)
 
static CreateStmt_copyCreateStmt (const CreateStmt *from)
 
static TableLikeClause_copyTableLikeClause (const TableLikeClause *from)
 
static DefineStmt_copyDefineStmt (const DefineStmt *from)
 
static DropStmt_copyDropStmt (const DropStmt *from)
 
static TruncateStmt_copyTruncateStmt (const TruncateStmt *from)
 
static CommentStmt_copyCommentStmt (const CommentStmt *from)
 
static SecLabelStmt_copySecLabelStmt (const SecLabelStmt *from)
 
static FetchStmt_copyFetchStmt (const FetchStmt *from)
 
static IndexStmt_copyIndexStmt (const IndexStmt *from)
 
static CreateStatsStmt_copyCreateStatsStmt (const CreateStatsStmt *from)
 
static AlterStatsStmt_copyAlterStatsStmt (const AlterStatsStmt *from)
 
static CreateFunctionStmt_copyCreateFunctionStmt (const CreateFunctionStmt *from)
 
static FunctionParameter_copyFunctionParameter (const FunctionParameter *from)
 
static AlterFunctionStmt_copyAlterFunctionStmt (const AlterFunctionStmt *from)
 
static DoStmt_copyDoStmt (const DoStmt *from)
 
static RenameStmt_copyRenameStmt (const RenameStmt *from)
 
static AlterObjectDependsStmt_copyAlterObjectDependsStmt (const AlterObjectDependsStmt *from)
 
static AlterObjectSchemaStmt_copyAlterObjectSchemaStmt (const AlterObjectSchemaStmt *from)
 
static AlterOwnerStmt_copyAlterOwnerStmt (const AlterOwnerStmt *from)
 
static AlterOperatorStmt_copyAlterOperatorStmt (const AlterOperatorStmt *from)
 
static AlterTypeStmt_copyAlterTypeStmt (const AlterTypeStmt *from)
 
static RuleStmt_copyRuleStmt (const RuleStmt *from)
 
static NotifyStmt_copyNotifyStmt (const NotifyStmt *from)
 
static ListenStmt_copyListenStmt (const ListenStmt *from)
 
static UnlistenStmt_copyUnlistenStmt (const UnlistenStmt *from)
 
static TransactionStmt_copyTransactionStmt (const TransactionStmt *from)
 
static CompositeTypeStmt_copyCompositeTypeStmt (const CompositeTypeStmt *from)
 
static CreateEnumStmt_copyCreateEnumStmt (const CreateEnumStmt *from)
 
static CreateRangeStmt_copyCreateRangeStmt (const CreateRangeStmt *from)
 
static AlterEnumStmt_copyAlterEnumStmt (const AlterEnumStmt *from)
 
static ViewStmt_copyViewStmt (const ViewStmt *from)
 
static LoadStmt_copyLoadStmt (const LoadStmt *from)
 
static CreateDomainStmt_copyCreateDomainStmt (const CreateDomainStmt *from)
 
static CreateOpClassStmt_copyCreateOpClassStmt (const CreateOpClassStmt *from)
 
static CreateOpClassItem_copyCreateOpClassItem (const CreateOpClassItem *from)
 
static CreateOpFamilyStmt_copyCreateOpFamilyStmt (const CreateOpFamilyStmt *from)
 
static AlterOpFamilyStmt_copyAlterOpFamilyStmt (const AlterOpFamilyStmt *from)
 
static CreatedbStmt_copyCreatedbStmt (const CreatedbStmt *from)
 
static AlterDatabaseStmt_copyAlterDatabaseStmt (const AlterDatabaseStmt *from)
 
static AlterDatabaseSetStmt_copyAlterDatabaseSetStmt (const AlterDatabaseSetStmt *from)
 
static DropdbStmt_copyDropdbStmt (const DropdbStmt *from)
 
static VacuumStmt_copyVacuumStmt (const VacuumStmt *from)
 
static VacuumRelation_copyVacuumRelation (const VacuumRelation *from)
 
static ExplainStmt_copyExplainStmt (const ExplainStmt *from)
 
static CreateTableAsStmt_copyCreateTableAsStmt (const CreateTableAsStmt *from)
 
static RefreshMatViewStmt_copyRefreshMatViewStmt (const RefreshMatViewStmt *from)
 
static ReplicaIdentityStmt_copyReplicaIdentityStmt (const ReplicaIdentityStmt *from)
 
static AlterSystemStmt_copyAlterSystemStmt (const AlterSystemStmt *from)
 
static CreateSeqStmt_copyCreateSeqStmt (const CreateSeqStmt *from)
 
static AlterSeqStmt_copyAlterSeqStmt (const AlterSeqStmt *from)
 
static VariableSetStmt_copyVariableSetStmt (const VariableSetStmt *from)
 
static VariableShowStmt_copyVariableShowStmt (const VariableShowStmt *from)
 
static DiscardStmt_copyDiscardStmt (const DiscardStmt *from)
 
static CreateTableSpaceStmt_copyCreateTableSpaceStmt (const CreateTableSpaceStmt *from)
 
static DropTableSpaceStmt_copyDropTableSpaceStmt (const DropTableSpaceStmt *from)
 
static AlterTableSpaceOptionsStmt_copyAlterTableSpaceOptionsStmt (const AlterTableSpaceOptionsStmt *from)
 
static AlterTableMoveAllStmt_copyAlterTableMoveAllStmt (const AlterTableMoveAllStmt *from)
 
static CreateExtensionStmt_copyCreateExtensionStmt (const CreateExtensionStmt *from)
 
static AlterExtensionStmt_copyAlterExtensionStmt (const AlterExtensionStmt *from)
 
static AlterExtensionContentsStmt_copyAlterExtensionContentsStmt (const AlterExtensionContentsStmt *from)
 
static CreateFdwStmt_copyCreateFdwStmt (const CreateFdwStmt *from)
 
static AlterFdwStmt_copyAlterFdwStmt (const AlterFdwStmt *from)
 
static CreateForeignServerStmt_copyCreateForeignServerStmt (const CreateForeignServerStmt *from)
 
static AlterForeignServerStmt_copyAlterForeignServerStmt (const AlterForeignServerStmt *from)
 
static CreateUserMappingStmt_copyCreateUserMappingStmt (const CreateUserMappingStmt *from)
 
static AlterUserMappingStmt_copyAlterUserMappingStmt (const AlterUserMappingStmt *from)
 
static DropUserMappingStmt_copyDropUserMappingStmt (const DropUserMappingStmt *from)
 
static CreateForeignTableStmt_copyCreateForeignTableStmt (const CreateForeignTableStmt *from)
 
static ImportForeignSchemaStmt_copyImportForeignSchemaStmt (const ImportForeignSchemaStmt *from)
 
static CreateTransformStmt_copyCreateTransformStmt (const CreateTransformStmt *from)
 
static CreateAmStmt_copyCreateAmStmt (const CreateAmStmt *from)
 
static CreateTrigStmt_copyCreateTrigStmt (const CreateTrigStmt *from)
 
static CreateEventTrigStmt_copyCreateEventTrigStmt (const CreateEventTrigStmt *from)
 
static AlterEventTrigStmt_copyAlterEventTrigStmt (const AlterEventTrigStmt *from)
 
static CreatePLangStmt_copyCreatePLangStmt (const CreatePLangStmt *from)
 
static CreateRoleStmt_copyCreateRoleStmt (const CreateRoleStmt *from)
 
static AlterRoleStmt_copyAlterRoleStmt (const AlterRoleStmt *from)
 
static AlterRoleSetStmt_copyAlterRoleSetStmt (const AlterRoleSetStmt *from)
 
static DropRoleStmt_copyDropRoleStmt (const DropRoleStmt *from)
 
static LockStmt_copyLockStmt (const LockStmt *from)
 
static ConstraintsSetStmt_copyConstraintsSetStmt (const ConstraintsSetStmt *from)
 
static ReindexStmt_copyReindexStmt (const ReindexStmt *from)
 
static CreateSchemaStmt_copyCreateSchemaStmt (const CreateSchemaStmt *from)
 
static CreateConversionStmt_copyCreateConversionStmt (const CreateConversionStmt *from)
 
static CreateCastStmt_copyCreateCastStmt (const CreateCastStmt *from)
 
static PrepareStmt_copyPrepareStmt (const PrepareStmt *from)
 
static ExecuteStmt_copyExecuteStmt (const ExecuteStmt *from)
 
static DeallocateStmt_copyDeallocateStmt (const DeallocateStmt *from)
 
static DropOwnedStmt_copyDropOwnedStmt (const DropOwnedStmt *from)
 
static ReassignOwnedStmt_copyReassignOwnedStmt (const ReassignOwnedStmt *from)
 
static AlterTSDictionaryStmt_copyAlterTSDictionaryStmt (const AlterTSDictionaryStmt *from)
 
static AlterTSConfigurationStmt_copyAlterTSConfigurationStmt (const AlterTSConfigurationStmt *from)
 
static CreatePolicyStmt_copyCreatePolicyStmt (const CreatePolicyStmt *from)
 
static AlterPolicyStmt_copyAlterPolicyStmt (const AlterPolicyStmt *from)
 
static PartitionElem_copyPartitionElem (const PartitionElem *from)
 
static PartitionSpec_copyPartitionSpec (const PartitionSpec *from)
 
static PartitionBoundSpec_copyPartitionBoundSpec (const PartitionBoundSpec *from)
 
static PartitionRangeDatum_copyPartitionRangeDatum (const PartitionRangeDatum *from)
 
static PartitionCmd_copyPartitionCmd (const PartitionCmd *from)
 
static CreatePublicationStmt_copyCreatePublicationStmt (const CreatePublicationStmt *from)
 
static AlterPublicationStmt_copyAlterPublicationStmt (const AlterPublicationStmt *from)
 
static CreateSubscriptionStmt_copyCreateSubscriptionStmt (const CreateSubscriptionStmt *from)
 
static AlterSubscriptionStmt_copyAlterSubscriptionStmt (const AlterSubscriptionStmt *from)
 
static DropSubscriptionStmt_copyDropSubscriptionStmt (const DropSubscriptionStmt *from)
 
static ExtensibleNode_copyExtensibleNode (const ExtensibleNode *from)
 
static Value_copyValue (const Value *from)
 
static ForeignKeyCacheInfo_copyForeignKeyCacheInfo (const ForeignKeyCacheInfo *from)
 
void * copyObjectImpl (const void *from)
 

Macro Definition Documentation

◆ COPY_BITMAPSET_FIELD

◆ COPY_LOCATION_FIELD

◆ COPY_NODE_FIELD

#define COPY_NODE_FIELD (   fldname)    (newnode->fldname = copyObjectImpl(from->fldname))

Definition at line 45 of file copyfuncs.c.

Referenced by _copyA_ArrayExpr(), _copyA_Indirection(), _copyAccessPriv(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlias(), _copyAlterDatabaseSetStmt(), _copyAlterDatabaseStmt(), _copyAlterDefaultPrivilegesStmt(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterExtensionContentsStmt(), _copyAlterExtensionStmt(), _copyAlterFdwStmt(), _copyAlterForeignServerStmt(), _copyAlterFunctionStmt(), _copyAlternativeSubPlan(), _copyAlterObjectDependsStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOperatorStmt(), _copyAlterOpFamilyStmt(), _copyAlterOwnerStmt(), _copyAlterPolicyStmt(), _copyAlterPublicationStmt(), _copyAlterRoleSetStmt(), _copyAlterRoleStmt(), _copyAlterSeqStmt(), _copyAlterStatsStmt(), _copyAlterSubscriptionStmt(), _copyAlterSystemStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterTableStmt(), _copyAlterTSConfigurationStmt(), _copyAlterTSDictionaryStmt(), _copyAlterTypeStmt(), _copyAlterUserMappingStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyBitmapAnd(), _copyBitmapHeapScan(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCallStmt(), _copyCaseExpr(), _copyCaseWhen(), _copyClusterStmt(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceViaIO(), _copyCollateClause(), _copyCollateExpr(), _copyColumnDef(), _copyColumnRef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyCompositeTypeStmt(), _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(), _copyCreateSubscriptionStmt(), _copyCreateTableAsStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _copyCTECycleClause(), _copyCTESearchClause(), _copyCustomScan(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDefineStmt(), _copyDeleteStmt(), _copyDistinctExpr(), _copyDoStmt(), _copyDropdbStmt(), _copyDropOwnedStmt(), _copyDropRoleStmt(), _copyDropStmt(), _copyDropUserMappingStmt(), _copyExecuteStmt(), _copyExplainStmt(), _copyFieldSelect(), _copyFieldStore(), _copyForeignScan(), _copyFromExpr(), _copyFuncCall(), _copyFuncExpr(), _copyFunctionParameter(), _copyFunctionScan(), _copyGrantRoleStmt(), _copyGrantStmt(), _copyGroupingFunc(), _copyGroupingSet(), _copyHash(), _copyHashJoin(), _copyImportForeignSchemaStmt(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferClause(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoinExpr(), _copyLimit(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoop(), _copyNestLoopParam(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionedRelPruneInfo(), _copyPartitionElem(), _copyPartitionPruneInfo(), _copyPartitionPruneStepCombine(), _copyPartitionPruneStepOp(), _copyPartitionRangeDatum(), _copyPartitionSpec(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlannedStmt(), _copyPLAssignStmt(), _copyPrepareStmt(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _copyRangeTableSample(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeVar(), _copyRawStmt(), _copyReassignOwnedStmt(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyResTarget(), _copyRestrictInfo(), _copyResult(), _copyResultCache(), _copyReturnStmt(), _copyRowCompareExpr(), _copyRowExpr(), _copyRuleStmt(), _copySampleScan(), _copyScalarArrayOpExpr(), _copySecLabelStmt(), _copySelectStmt(), _copySetOperationStmt(), _copySortBy(), _copySpecialJoinInfo(), _copyStatsElem(), _copySubLink(), _copySubPlan(), _copySubqueryScan(), _copySubscriptingRef(), _copyTableFunc(), _copyTableFuncScan(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _copyTidRangeScan(), _copyTidScan(), _copyTransactionStmt(), _copyTruncateStmt(), _copyTypeCast(), _copyTypeName(), _copyUpdateStmt(), _copyVacuumRelation(), _copyVacuumStmt(), _copyValuesScan(), _copyVariableSetStmt(), _copyViewStmt(), _copyWindowAgg(), _copyWindowClause(), _copyWindowDef(), _copyWindowFunc(), _copyWithCheckOption(), _copyWithClause(), _copyXmlExpr(), _copyXmlSerialize(), CopyCreateStmtFields(), CopyJoinFields(), and CopyPlanFields().

◆ COPY_POINTER_FIELD

#define COPY_POINTER_FIELD (   fldname,
  sz 
)
Value:
do { \
Size _size = (sz); \
newnode->fldname = palloc(_size); \
memcpy(newnode->fldname, from->fldname, _size); \
} while (0)
void * palloc(Size size)
Definition: mcxt.c:1062

Definition at line 57 of file copyfuncs.c.

Referenced by _copyAgg(), _copyAppendRelInfo(), _copyGatherMerge(), _copyGroup(), _copyLimit(), _copyMergeAppend(), _copyMergeJoin(), _copyPartitionedRelPruneInfo(), _copyRecursiveUnion(), _copyResultCache(), _copySetOp(), _copyUnique(), _copyWindowAgg(), and CopySortFields().

◆ COPY_SCALAR_FIELD

#define COPY_SCALAR_FIELD (   fldname)    (newnode->fldname = from->fldname)

Definition at line 41 of file copyfuncs.c.

Referenced by _copyAConst(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterEventTrigStmt(), _copyAlterExtensionContentsStmt(), _copyAlterForeignServerStmt(), _copyAlterFunctionStmt(), _copyAlterObjectDependsStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOpFamilyStmt(), _copyAlterOwnerStmt(), _copyAlterPublicationStmt(), _copyAlterRoleStmt(), _copyAlterSeqStmt(), _copyAlterStatsStmt(), _copyAlterSubscriptionStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterTableStmt(), _copyAlterTSConfigurationStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCaseExpr(), _copyCaseTestExpr(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceToDomainValue(), _copyCoerceViaIO(), _copyCollateExpr(), _copyColumnDef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyConst(), _copyConstraint(), _copyConstraintsSetStmt(), _copyConvertRowtypeExpr(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateCastStmt(), _copyCreateConversionStmt(), _copyCreateExtensionStmt(), _copyCreateForeignServerStmt(), _copyCreateFunctionStmt(), _copyCreateOpClassItem(), _copyCreateOpClassStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateSeqStmt(), _copyCreateStatsStmt(), _copyCreateTableAsStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _copyCTECycleClause(), _copyCteScan(), _copyCTESearchClause(), _copyCurrentOfExpr(), _copyCustomScan(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDefineStmt(), _copyDiscardStmt(), _copyDistinctExpr(), _copyDropdbStmt(), _copyDropOwnedStmt(), _copyDropRoleStmt(), _copyDropStmt(), _copyDropSubscriptionStmt(), _copyDropTableSpaceStmt(), _copyDropUserMappingStmt(), _copyFetchStmt(), _copyFieldSelect(), _copyFieldStore(), _copyForeignKeyCacheInfo(), _copyForeignScan(), _copyFuncCall(), _copyFuncExpr(), _copyFunctionParameter(), _copyFunctionScan(), _copyGather(), _copyGatherMerge(), _copyGrantRoleStmt(), _copyGrantStmt(), _copyGroup(), _copyGroupingFunc(), _copyGroupingSet(), _copyHash(), _copyImportForeignSchemaStmt(), _copyIncrementalSort(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoinExpr(), _copyLimit(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoopParam(), _copyNextValueExpr(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionedRelPruneInfo(), _copyPartitionPruneStepCombine(), _copyPartitionPruneStepOp(), _copyPartitionRangeDatum(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyPLAssignStmt(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeTblRef(), _copyRangeVar(), _copyRawStmt(), _copyRecursiveUnion(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyRestrictInfo(), _copyResultCache(), _copyRoleSpec(), _copyRowCompareExpr(), _copyRowExpr(), _copyRowMarkClause(), _copyRuleStmt(), _copyScalarArrayOpExpr(), _copySecLabelStmt(), _copySelectStmt(), _copySetOp(), _copySetOperationStmt(), _copySetToDefault(), _copySortBy(), _copySortGroupClause(), _copySpecialJoinInfo(), _copySQLValueFunction(), _copySubLink(), _copySubPlan(), _copySubscriptingRef(), _copyTableFunc(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _copyTransactionStmt(), _copyTriggerTransition(), _copyTruncateStmt(), _copyTypeName(), _copyUnique(), _copyVacuumRelation(), _copyVacuumStmt(), _copyValue(), _copyVar(), _copyVariableSetStmt(), _copyViewStmt(), _copyWindowAgg(), _copyWindowClause(), _copyWindowDef(), _copyWindowFunc(), _copyWithCheckOption(), _copyWithClause(), _copyWorkTableScan(), _copyXmlExpr(), _copyXmlSerialize(), CopyCreateStmtFields(), CopyJoinFields(), CopyPlanFields(), CopyScanFields(), and CopySortFields().

◆ COPY_STRING_FIELD

#define COPY_STRING_FIELD (   fldname)    (newnode->fldname = from->fldname ? pstrdup(from->fldname) : (char *) NULL)

Definition at line 53 of file copyfuncs.c.

Referenced by _copyAccessPriv(), _copyAConst(), _copyAlias(), _copyAlterDatabaseSetStmt(), _copyAlterDatabaseStmt(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterEventTrigStmt(), _copyAlterExtensionContentsStmt(), _copyAlterExtensionStmt(), _copyAlterFdwStmt(), _copyAlterForeignServerStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOpFamilyStmt(), _copyAlterPolicyStmt(), _copyAlterPublicationStmt(), _copyAlterRoleSetStmt(), _copyAlterSubscriptionStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterUserMappingStmt(), _copyClosePortalStmt(), _copyClusterStmt(), _copyColumnDef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyConstraint(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateConversionStmt(), _copyCreatedbStmt(), _copyCreateEventTrigStmt(), _copyCreateExtensionStmt(), _copyCreateFdwStmt(), _copyCreateForeignServerStmt(), _copyCreateForeignTableStmt(), _copyCreateOpClassStmt(), _copyCreateOpFamilyStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateStatsStmt(), _copyCreateSubscriptionStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _copyCTECycleClause(), _copyCTESearchClause(), _copyCurrentOfExpr(), _copyDeallocateStmt(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDropdbStmt(), _copyDropSubscriptionStmt(), _copyDropTableSpaceStmt(), _copyDropUserMappingStmt(), _copyExecuteStmt(), _copyExtensibleNode(), _copyFetchStmt(), _copyFunctionParameter(), _copyImportForeignSchemaStmt(), _copyIndexElem(), _copyIndexStmt(), _copyInferClause(), _copyIntoClause(), _copyListenStmt(), _copyLoadStmt(), _copyNamedArgExpr(), _copyNamedTuplestoreScan(), _copyNotifyStmt(), _copyPartitionElem(), _copyPartitionSpec(), _copyPLAssignStmt(), _copyPrepareStmt(), _copyRangeTableFuncCol(), _copyRangeTblEntry(), _copyRangeVar(), _copyReindexStmt(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyResTarget(), _copyRoleSpec(), _copyRuleStmt(), _copySecLabelStmt(), _copyStatsElem(), _copySubPlan(), _copyTargetEntry(), _copyTransactionStmt(), _copyTriggerTransition(), _copyUnlistenStmt(), _copyValue(), _copyVariableSetStmt(), _copyVariableShowStmt(), _copyWindowClause(), _copyWindowDef(), _copyWithCheckOption(), _copyXmlExpr(), and CopyCreateStmtFields().

Function Documentation

◆ _copyA_ArrayExpr()

static A_ArrayExpr* _copyA_ArrayExpr ( const A_ArrayExpr from)
static

Definition at line 2820 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2821 {
2822  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2823 
2824  COPY_NODE_FIELD(elements);
2825  COPY_LOCATION_FIELD(location);
2826 
2827  return newnode;
2828 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2809 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2810 {
2811  A_Indirection *newnode = makeNode(A_Indirection);
2812 
2814  COPY_NODE_FIELD(indirection);
2815 
2816  return newnode;
2817 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3406 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3407 {
3408  AccessPriv *newnode = makeNode(AccessPriv);
3409 
3410  COPY_STRING_FIELD(priv_name);
3411  COPY_NODE_FIELD(cols);
3412 
3413  return newnode;
3414 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAConst()

static A_Const* _copyAConst ( const A_Const from)
static

Definition at line 2738 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, elog, ERROR, makeNode, T_BitString, T_Float, T_Integer, T_Null, T_String, Value::type, A_Const::val, and val.

Referenced by copyObjectImpl().

2739 {
2740  A_Const *newnode = makeNode(A_Const);
2741 
2742  /* This part must duplicate _copyValue */
2743  COPY_SCALAR_FIELD(val.type);
2744  switch (from->val.type)
2745  {
2746  case T_Integer:
2747  COPY_SCALAR_FIELD(val.val.ival);
2748  break;
2749  case T_Float:
2750  case T_String:
2751  case T_BitString:
2752  COPY_STRING_FIELD(val.val.str);
2753  break;
2754  case T_Null:
2755  /* nothing to do */
2756  break;
2757  default:
2758  elog(ERROR, "unrecognized node type: %d",
2759  (int) from->val.type);
2760  break;
2761  }
2762 
2763  COPY_LOCATION_FIELD(location);
2764 
2765  return newnode;
2766 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define ERROR
Definition: elog.h:46
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
Definition: nodes.h:300
Definition: nodes.h:297
#define elog(elevel,...)
Definition: elog.h:232
Value val
Definition: parsenodes.h:298
long val
Definition: informix.c:664
NodeTag type
Definition: value.h:44

◆ _copyAExpr()

static A_Expr* _copyAExpr ( const A_Expr from)
static

Definition at line 2702 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

2703 {
2704  A_Expr *newnode = makeNode(A_Expr);
2705 
2706  COPY_SCALAR_FIELD(kind);
2708  COPY_NODE_FIELD(lexpr);
2709  COPY_NODE_FIELD(rexpr);
2710  COPY_LOCATION_FIELD(location);
2711 
2712  return newnode;
2713 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 1057 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, COPY_NODE_FIELD, COPY_POINTER_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1058 {
1059  Agg *newnode = makeNode(Agg);
1060 
1061  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1062 
1063  COPY_SCALAR_FIELD(aggstrategy);
1064  COPY_SCALAR_FIELD(aggsplit);
1065  COPY_SCALAR_FIELD(numCols);
1066  if (from->numCols > 0)
1067  {
1068  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
1069  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
1070  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
1071  }
1072  COPY_SCALAR_FIELD(numGroups);
1073  COPY_SCALAR_FIELD(transitionSpace);
1074  COPY_BITMAPSET_FIELD(aggParams);
1075  COPY_NODE_FIELD(groupingSets);
1076  COPY_NODE_FIELD(chain);
1077 
1078  return newnode;
1079 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587
Definition: plannodes.h:856
int16 AttrNumber
Definition: attnum.h:21

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1525 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1526 {
1527  Aggref *newnode = makeNode(Aggref);
1528 
1529  COPY_SCALAR_FIELD(aggfnoid);
1530  COPY_SCALAR_FIELD(aggtype);
1531  COPY_SCALAR_FIELD(aggcollid);
1532  COPY_SCALAR_FIELD(inputcollid);
1533  COPY_SCALAR_FIELD(aggtranstype);
1534  COPY_NODE_FIELD(aggargtypes);
1535  COPY_NODE_FIELD(aggdirectargs);
1537  COPY_NODE_FIELD(aggorder);
1538  COPY_NODE_FIELD(aggdistinct);
1539  COPY_NODE_FIELD(aggfilter);
1540  COPY_SCALAR_FIELD(aggstar);
1541  COPY_SCALAR_FIELD(aggvariadic);
1542  COPY_SCALAR_FIELD(aggkind);
1543  COPY_SCALAR_FIELD(agglevelsup);
1544  COPY_SCALAR_FIELD(aggsplit);
1545  COPY_SCALAR_FIELD(aggno);
1546  COPY_SCALAR_FIELD(aggtransno);
1547  COPY_LOCATION_FIELD(location);
1548 
1549  return newnode;
1550 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAIndices()

static A_Indices* _copyAIndices ( const A_Indices from)
static

Definition at line 2797 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2798 {
2799  A_Indices *newnode = makeNode(A_Indices);
2800 
2801  COPY_SCALAR_FIELD(is_slice);
2802  COPY_NODE_FIELD(lidx);
2803  COPY_NODE_FIELD(uidx);
2804 
2805  return newnode;
2806 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1363 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1364 {
1365  Alias *newnode = makeNode(Alias);
1366 
1367  COPY_STRING_FIELD(aliasname);
1368  COPY_NODE_FIELD(colnames);
1369 
1370  return newnode;
1371 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 4043 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4044 {
4046 
4048  COPY_NODE_FIELD(setstmt);
4049 
4050  return newnode;
4051 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 4032 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4033 {
4035 
4038 
4039  return newnode;
4040 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3432 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3433 {
3435 
3438 
3439  return newnode;
3440 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3361 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3362 {
3364 
3365  COPY_SCALAR_FIELD(subtype);
3366  COPY_NODE_FIELD(typeName);
3368  COPY_NODE_FIELD(def);
3369  COPY_SCALAR_FIELD(behavior);
3370  COPY_SCALAR_FIELD(missing_ok);
3371 
3372  return newnode;
3373 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3914 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3915 {
3916  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3917 
3918  COPY_NODE_FIELD(typeName);
3919  COPY_STRING_FIELD(oldVal);
3920  COPY_STRING_FIELD(newVal);
3921  COPY_STRING_FIELD(newValNeighbor);
3922  COPY_SCALAR_FIELD(newValIsAfter);
3923  COPY_SCALAR_FIELD(skipIfNewValExists);
3924 
3925  return newnode;
3926 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4474 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4475 {
4477 
4478  COPY_STRING_FIELD(trigname);
4479  COPY_SCALAR_FIELD(tgenabled);
4480 
4481  return newnode;
4482 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4281 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4282 {
4284 
4285  COPY_STRING_FIELD(extname);
4287  COPY_SCALAR_FIELD(objtype);
4288  COPY_NODE_FIELD(object);
4289 
4290  return newnode;
4291 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4270 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4271 {
4273 
4274  COPY_STRING_FIELD(extname);
4276 
4277  return newnode;
4278 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4306 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4307 {
4308  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4309 
4310  COPY_STRING_FIELD(fdwname);
4311  COPY_NODE_FIELD(func_options);
4313 
4314  return newnode;
4315 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4333 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4334 {
4336 
4337  COPY_STRING_FIELD(servername);
4338  COPY_STRING_FIELD(version);
4340  COPY_SCALAR_FIELD(has_version);
4341 
4342  return newnode;
4343 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3718 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3719 {
3721 
3722  COPY_SCALAR_FIELD(objtype);
3723  COPY_NODE_FIELD(func);
3724  COPY_NODE_FIELD(actions);
3725 
3726  return newnode;
3727 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1793 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1794 {
1796 
1797  COPY_NODE_FIELD(subplans);
1798 
1799  return newnode;
1800 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3757 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3758 {
3760 
3761  COPY_SCALAR_FIELD(objectType);
3762  COPY_NODE_FIELD(relation);
3763  COPY_NODE_FIELD(object);
3764  COPY_NODE_FIELD(extname);
3765  COPY_SCALAR_FIELD(remove);
3766 
3767  return newnode;
3768 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3771 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3772 {
3774 
3775  COPY_SCALAR_FIELD(objectType);
3776  COPY_NODE_FIELD(relation);
3777  COPY_NODE_FIELD(object);
3778  COPY_STRING_FIELD(newschema);
3779  COPY_SCALAR_FIELD(missing_ok);
3780 
3781  return newnode;
3782 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3798 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3799 {
3801 
3802  COPY_NODE_FIELD(opername);
3804 
3805  return newnode;
3806 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 4008 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4009 {
4011 
4012  COPY_NODE_FIELD(opfamilyname);
4013  COPY_STRING_FIELD(amname);
4014  COPY_SCALAR_FIELD(isDrop);
4015  COPY_NODE_FIELD(items);
4016 
4017  return newnode;
4018 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3785 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3786 {
3788 
3789  COPY_SCALAR_FIELD(objectType);
3790  COPY_NODE_FIELD(relation);
3791  COPY_NODE_FIELD(object);
3792  COPY_NODE_FIELD(newowner);
3793 
3794  return newnode;
3795 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4722 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4723 {
4725 
4726  COPY_STRING_FIELD(policy_name);
4727  COPY_NODE_FIELD(table);
4728  COPY_NODE_FIELD(roles);
4729  COPY_NODE_FIELD(qual);
4730  COPY_NODE_FIELD(with_check);
4731 
4732  return newnode;
4733 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4816 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4817 {
4819 
4820  COPY_STRING_FIELD(pubname);
4822  COPY_NODE_FIELD(tables);
4823  COPY_SCALAR_FIELD(for_all_tables);
4824  COPY_SCALAR_FIELD(tableAction);
4825 
4826  return newnode;
4827 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4524 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4525 {
4527 
4528  COPY_NODE_FIELD(role);
4529  COPY_STRING_FIELD(database);
4530  COPY_NODE_FIELD(setstmt);
4531 
4532  return newnode;
4533 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4512 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4513 {
4514  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4515 
4516  COPY_NODE_FIELD(role);
4519 
4520  return newnode;
4521 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 4162 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4163 {
4164  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
4165 
4166  COPY_NODE_FIELD(sequence);
4168  COPY_SCALAR_FIELD(for_identity);
4169  COPY_SCALAR_FIELD(missing_ok);
4170 
4171  return newnode;
4172 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterStatsStmt()

static AlterStatsStmt* _copyAlterStatsStmt ( const AlterStatsStmt from)
static

Definition at line 3677 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3678 {
3680 
3681  COPY_NODE_FIELD(defnames);
3682  COPY_SCALAR_FIELD(stxstattarget);
3683  COPY_SCALAR_FIELD(missing_ok);
3684 
3685  return newnode;
3686 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4843 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4844 {
4846 
4847  COPY_SCALAR_FIELD(kind);
4849  COPY_STRING_FIELD(conninfo);
4850  COPY_NODE_FIELD(publication);
4852 
4853  return newnode;
4854 }
NameData subname
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 4138 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4139 {
4141 
4142  COPY_NODE_FIELD(setstmt);
4143 
4144  return newnode;
4145 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3344 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3345 {
3346  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3347 
3348  COPY_SCALAR_FIELD(subtype);
3350  COPY_NODE_FIELD(object);
3351  COPY_SCALAR_FIELD(num);
3352  COPY_NODE_FIELD(newowner);
3353  COPY_NODE_FIELD(def);
3354  COPY_SCALAR_FIELD(behavior);
3355  COPY_SCALAR_FIELD(missing_ok);
3356 
3357  return newnode;
3358 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4244 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4245 {
4247 
4248  COPY_STRING_FIELD(orig_tablespacename);
4249  COPY_SCALAR_FIELD(objtype);
4250  COPY_NODE_FIELD(roles);
4251  COPY_STRING_FIELD(new_tablespacename);
4252  COPY_SCALAR_FIELD(nowait);
4253 
4254  return newnode;
4255 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 4232 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4233 {
4235 
4236  COPY_STRING_FIELD(tablespacename);
4238  COPY_SCALAR_FIELD(isReset);
4239 
4240  return newnode;
4241 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3331 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3332 {
3334 
3335  COPY_NODE_FIELD(relation);
3336  COPY_NODE_FIELD(cmds);
3337  COPY_SCALAR_FIELD(objtype);
3338  COPY_SCALAR_FIELD(missing_ok);
3339 
3340  return newnode;
3341 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4690 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4691 {
4693 
4694  COPY_SCALAR_FIELD(kind);
4695  COPY_NODE_FIELD(cfgname);
4696  COPY_NODE_FIELD(tokentype);
4697  COPY_NODE_FIELD(dicts);
4698  COPY_SCALAR_FIELD(override);
4699  COPY_SCALAR_FIELD(replace);
4700  COPY_SCALAR_FIELD(missing_ok);
4701 
4702  return newnode;
4703 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4679 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4680 {
4682 
4683  COPY_NODE_FIELD(dictname);
4685 
4686  return newnode;
4687 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTypeStmt()

static AlterTypeStmt* _copyAlterTypeStmt ( const AlterTypeStmt from)
static

Definition at line 3809 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3810 {
3811  AlterTypeStmt *newnode = makeNode(AlterTypeStmt);
3812 
3813  COPY_NODE_FIELD(typeName);
3815 
3816  return newnode;
3817 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4359 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4360 {
4362 
4364  COPY_STRING_FIELD(servername);
4366 
4367  return newnode;
4368 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * user
Definition: pg_regress.c:95

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 231 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

232 {
233  Append *newnode = makeNode(Append);
234 
235  /*
236  * copy node superclass fields
237  */
238  CopyPlanFields((const Plan *) from, (Plan *) newnode);
239 
240  /*
241  * copy remainder of node
242  */
243  COPY_BITMAPSET_FIELD(apprelids);
244  COPY_NODE_FIELD(appendplans);
245  COPY_SCALAR_FIELD(nasyncplans);
246  COPY_SCALAR_FIELD(first_partial_plan);
247  COPY_NODE_FIELD(part_prune_info);
248 
249  return newnode;
250 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2419 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_POINTER_FIELD, COPY_SCALAR_FIELD, makeNode, and AppendRelInfo::num_child_cols.

Referenced by copyObjectImpl().

2420 {
2421  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2422 
2423  COPY_SCALAR_FIELD(parent_relid);
2424  COPY_SCALAR_FIELD(child_relid);
2425  COPY_SCALAR_FIELD(parent_reltype);
2426  COPY_SCALAR_FIELD(child_reltype);
2427  COPY_NODE_FIELD(translated_vars);
2428  COPY_SCALAR_FIELD(num_child_cols);
2429  COPY_POINTER_FIELD(parent_colnos, from->num_child_cols * sizeof(AttrNumber));
2430  COPY_SCALAR_FIELD(parent_reloid);
2431 
2432  return newnode;
2433 }
int num_child_cols
Definition: pathnodes.h:2331
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
int16 AttrNumber
Definition: attnum.h:21

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1874 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1875 {
1877 
1879  COPY_NODE_FIELD(elemexpr);
1880  COPY_SCALAR_FIELD(resulttype);
1881  COPY_SCALAR_FIELD(resulttypmod);
1882  COPY_SCALAR_FIELD(resultcollid);
1883  COPY_SCALAR_FIELD(coerceformat);
1884  COPY_LOCATION_FIELD(location);
1885 
1886  return newnode;
1887 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1972 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1973 {
1974  ArrayExpr *newnode = makeNode(ArrayExpr);
1975 
1976  COPY_SCALAR_FIELD(array_typeid);
1977  COPY_SCALAR_FIELD(array_collid);
1978  COPY_SCALAR_FIELD(element_typeid);
1979  COPY_NODE_FIELD(elements);
1980  COPY_SCALAR_FIELD(multidims);
1981  COPY_LOCATION_FIELD(location);
1982 
1983  return newnode;
1984 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAStar()

static A_Star* _copyAStar ( const A_Star from)
static

Definition at line 2789 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2790 {
2791  A_Star *newnode = makeNode(A_Star);
2792 
2793  return newnode;
2794 }
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 313 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

314 {
315  BitmapAnd *newnode = makeNode(BitmapAnd);
316 
317  /*
318  * copy node superclass fields
319  */
320  CopyPlanFields((const Plan *) from, (Plan *) newnode);
321 
322  /*
323  * copy remainder of node
324  */
325  COPY_NODE_FIELD(bitmapplans);
326 
327  return newnode;
328 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 552 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

553 {
555 
556  /*
557  * copy node superclass fields
558  */
559  CopyScanFields((const Scan *) from, (Scan *) newnode);
560 
561  /*
562  * copy remainder of node
563  */
564  COPY_NODE_FIELD(bitmapqualorig);
565 
566  return newnode;
567 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 528 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

529 {
531 
532  /*
533  * copy node superclass fields
534  */
535  CopyScanFields((const Scan *) from, (Scan *) newnode);
536 
537  /*
538  * copy remainder of node
539  */
540  COPY_SCALAR_FIELD(indexid);
541  COPY_SCALAR_FIELD(isshared);
542  COPY_NODE_FIELD(indexqual);
543  COPY_NODE_FIELD(indexqualorig);
544 
545  return newnode;
546 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 334 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

335 {
336  BitmapOr *newnode = makeNode(BitmapOr);
337 
338  /*
339  * copy node superclass fields
340  */
341  CopyPlanFields((const Plan *) from, (Plan *) newnode);
342 
343  /*
344  * copy remainder of node
345  */
346  COPY_SCALAR_FIELD(isshared);
347  COPY_NODE_FIELD(bitmapplans);
348 
349  return newnode;
350 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 2112 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2113 {
2114  BooleanTest *newnode = makeNode(BooleanTest);
2115 
2117  COPY_SCALAR_FIELD(booltesttype);
2118  COPY_LOCATION_FIELD(location);
2119 
2120  return newnode;
2121 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1732 of file copyfuncs.c.

References generate_unaccent_rules::args, boolop(), COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1733 {
1734  BoolExpr *newnode = makeNode(BoolExpr);
1735 
1738  COPY_LOCATION_FIELD(location);
1739 
1740  return newnode;
1741 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:419
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3465 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3466 {
3467  CallStmt *newnode = makeNode(CallStmt);
3468 
3469  COPY_NODE_FIELD(funccall);
3470  COPY_NODE_FIELD(funcexpr);
3471 
3472  return newnode;
3473 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1924 of file copyfuncs.c.

References arg, generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1925 {
1926  CaseExpr *newnode = makeNode(CaseExpr);
1927 
1928  COPY_SCALAR_FIELD(casetype);
1929  COPY_SCALAR_FIELD(casecollid);
1932  COPY_NODE_FIELD(defresult);
1933  COPY_LOCATION_FIELD(location);
1934 
1935  return newnode;
1936 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1957 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1958 {
1959  CaseTestExpr *newnode = makeNode(CaseTestExpr);
1960 
1961  COPY_SCALAR_FIELD(typeId);
1962  COPY_SCALAR_FIELD(typeMod);
1963  COPY_SCALAR_FIELD(collation);
1964 
1965  return newnode;
1966 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1942 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1943 {
1944  CaseWhen *newnode = makeNode(CaseWhen);
1945 
1946  COPY_NODE_FIELD(expr);
1947  COPY_NODE_FIELD(result);
1948  COPY_LOCATION_FIELD(location);
1949 
1950  return newnode;
1951 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3455 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3456 {
3458 
3459  COPY_STRING_FIELD(portalname);
3460 
3461  return newnode;
3462 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3476 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3477 {
3478  ClusterStmt *newnode = makeNode(ClusterStmt);
3479 
3480  COPY_NODE_FIELD(relation);
3481  COPY_STRING_FIELD(indexname);
3482  COPY_NODE_FIELD(params);
3483 
3484  return newnode;
3485 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 2025 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2026 {
2027  CoalesceExpr *newnode = makeNode(CoalesceExpr);
2028 
2029  COPY_SCALAR_FIELD(coalescetype);
2030  COPY_SCALAR_FIELD(coalescecollid);
2032  COPY_LOCATION_FIELD(location);
2033 
2034  return newnode;
2035 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 2127 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2128 {
2130 
2132  COPY_SCALAR_FIELD(resulttype);
2133  COPY_SCALAR_FIELD(resulttypmod);
2134  COPY_SCALAR_FIELD(resultcollid);
2135  COPY_SCALAR_FIELD(coercionformat);
2136  COPY_LOCATION_FIELD(location);
2137 
2138  return newnode;
2139 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 2145 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2146 {
2148 
2149  COPY_SCALAR_FIELD(typeId);
2150  COPY_SCALAR_FIELD(typeMod);
2151  COPY_SCALAR_FIELD(collation);
2152  COPY_LOCATION_FIELD(location);
2153 
2154  return newnode;
2155 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1857 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1858 {
1859  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1860 
1862  COPY_SCALAR_FIELD(resulttype);
1863  COPY_SCALAR_FIELD(resultcollid);
1864  COPY_SCALAR_FIELD(coerceformat);
1865  COPY_LOCATION_FIELD(location);
1866 
1867  return newnode;
1868 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2989 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2990 {
2991  CollateClause *newnode = makeNode(CollateClause);
2992 
2994  COPY_NODE_FIELD(collname);
2995  COPY_LOCATION_FIELD(location);
2996 
2997  return newnode;
2998 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1909 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1910 {
1911  CollateExpr *newnode = makeNode(CollateExpr);
1912 
1914  COPY_SCALAR_FIELD(collOid);
1915  COPY_LOCATION_FIELD(location);
1916 
1917  return newnode;
1918 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 3029 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3030 {
3031  ColumnDef *newnode = makeNode(ColumnDef);
3032 
3033  COPY_STRING_FIELD(colname);
3034  COPY_NODE_FIELD(typeName);
3035  COPY_STRING_FIELD(compression);
3036  COPY_SCALAR_FIELD(inhcount);
3037  COPY_SCALAR_FIELD(is_local);
3038  COPY_SCALAR_FIELD(is_not_null);
3039  COPY_SCALAR_FIELD(is_from_type);
3040  COPY_SCALAR_FIELD(storage);
3041  COPY_NODE_FIELD(raw_default);
3042  COPY_NODE_FIELD(cooked_default);
3043  COPY_SCALAR_FIELD(identity);
3044  COPY_NODE_FIELD(identitySequence);
3045  COPY_SCALAR_FIELD(generated);
3046  COPY_NODE_FIELD(collClause);
3047  COPY_SCALAR_FIELD(collOid);
3048  COPY_NODE_FIELD(constraints);
3049  COPY_NODE_FIELD(fdwoptions);
3050  COPY_LOCATION_FIELD(location);
3051 
3052  return newnode;
3053 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2716 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2717 {
2718  ColumnRef *newnode = makeNode(ColumnRef);
2719 
2720  COPY_NODE_FIELD(fields);
2721  COPY_LOCATION_FIELD(location);
2722 
2723  return newnode;
2724 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3592 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3593 {
3594  CommentStmt *newnode = makeNode(CommentStmt);
3595 
3596  COPY_SCALAR_FIELD(objtype);
3597  COPY_NODE_FIELD(object);
3598  COPY_STRING_FIELD(comment);
3599 
3600  return newnode;
3601 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2680 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2681 {
2683 
2684  COPY_STRING_FIELD(ctename);
2685  COPY_NODE_FIELD(aliascolnames);
2686  COPY_SCALAR_FIELD(ctematerialized);
2687  COPY_NODE_FIELD(ctequery);
2688  COPY_NODE_FIELD(search_clause);
2689  COPY_NODE_FIELD(cycle_clause);
2690  COPY_LOCATION_FIELD(location);
2691  COPY_SCALAR_FIELD(cterecursive);
2692  COPY_SCALAR_FIELD(cterefcount);
2693  COPY_NODE_FIELD(ctecolnames);
2694  COPY_NODE_FIELD(ctecoltypes);
2695  COPY_NODE_FIELD(ctecoltypmods);
2696  COPY_NODE_FIELD(ctecolcollations);
2697 
2698  return newnode;
2699 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3881 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3882 {
3884 
3885  COPY_NODE_FIELD(typevar);
3886  COPY_NODE_FIELD(coldeflist);
3887 
3888  return newnode;
3889 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

Definition at line 1469 of file copyfuncs.c.

References Const::constbyval, Const::constisnull, Const::constlen, Const::constvalue, COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, datumCopy(), and makeNode.

Referenced by copyObjectImpl().

1470 {
1471  Const *newnode = makeNode(Const);
1472 
1473  COPY_SCALAR_FIELD(consttype);
1474  COPY_SCALAR_FIELD(consttypmod);
1475  COPY_SCALAR_FIELD(constcollid);
1476  COPY_SCALAR_FIELD(constlen);
1477 
1478  if (from->constbyval || from->constisnull)
1479  {
1480  /*
1481  * passed by value so just copy the datum. Also, don't try to copy
1482  * struct when value is null!
1483  */
1484  newnode->constvalue = from->constvalue;
1485  }
1486  else
1487  {
1488  /*
1489  * passed by reference. We need a palloc'd copy.
1490  */
1491  newnode->constvalue = datumCopy(from->constvalue,
1492  from->constbyval,
1493  from->constlen);
1494  }
1495 
1496  COPY_SCALAR_FIELD(constisnull);
1497  COPY_SCALAR_FIELD(constbyval);
1498  COPY_LOCATION_FIELD(location);
1499 
1500  return newnode;
1501 }
Datum constvalue
Definition: primnodes.h:219
bool constbyval
Definition: primnodes.h:222
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
int constlen
Definition: primnodes.h:218
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
Datum datumCopy(Datum value, bool typByVal, int typLen)
Definition: datum.c:131
#define makeNode(_type_)
Definition: nodes.h:587
bool constisnull
Definition: primnodes.h:220

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 3056 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3057 {
3058  Constraint *newnode = makeNode(Constraint);
3059 
3060  COPY_SCALAR_FIELD(contype);
3061  COPY_STRING_FIELD(conname);
3062  COPY_SCALAR_FIELD(deferrable);
3063  COPY_SCALAR_FIELD(initdeferred);
3064  COPY_LOCATION_FIELD(location);
3065  COPY_SCALAR_FIELD(is_no_inherit);
3066  COPY_NODE_FIELD(raw_expr);
3067  COPY_STRING_FIELD(cooked_expr);
3068  COPY_SCALAR_FIELD(generated_when);
3069  COPY_NODE_FIELD(keys);
3070  COPY_NODE_FIELD(including);
3071  COPY_NODE_FIELD(exclusions);
3073  COPY_STRING_FIELD(indexname);
3074  COPY_STRING_FIELD(indexspace);
3075  COPY_SCALAR_FIELD(reset_default_tblspc);
3076  COPY_STRING_FIELD(access_method);
3077  COPY_NODE_FIELD(where_clause);
3078  COPY_NODE_FIELD(pktable);
3079  COPY_NODE_FIELD(fk_attrs);
3080  COPY_NODE_FIELD(pk_attrs);
3081  COPY_SCALAR_FIELD(fk_matchtype);
3082  COPY_SCALAR_FIELD(fk_upd_action);
3083  COPY_SCALAR_FIELD(fk_del_action);
3084  COPY_NODE_FIELD(old_conpfeqop);
3085  COPY_SCALAR_FIELD(old_pktable_oid);
3086  COPY_SCALAR_FIELD(skip_validation);
3087  COPY_SCALAR_FIELD(initially_valid);
3088 
3089  return newnode;
3090 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4559 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4560 {
4562 
4563  COPY_NODE_FIELD(constraints);
4564  COPY_SCALAR_FIELD(deferred);
4565 
4566  return newnode;
4567 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1893 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1894 {
1896 
1898  COPY_SCALAR_FIELD(resulttype);
1899  COPY_SCALAR_FIELD(convertformat);
1900  COPY_LOCATION_FIELD(location);
1901 
1902  return newnode;
1903 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3488 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3489 {
3490  CopyStmt *newnode = makeNode(CopyStmt);
3491 
3492  COPY_NODE_FIELD(relation);
3493  COPY_NODE_FIELD(query);
3494  COPY_NODE_FIELD(attlist);
3495  COPY_SCALAR_FIELD(is_from);
3496  COPY_SCALAR_FIELD(is_program);
3499  COPY_NODE_FIELD(whereClause);
3500 
3501  return newnode;
3502 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * filename
Definition: pg_dumpall.c:91

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4425 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4426 {
4427  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4428 
4429  COPY_STRING_FIELD(amname);
4430  COPY_NODE_FIELD(handler_name);
4431  COPY_SCALAR_FIELD(amtype);
4432 
4433  return newnode;
4434 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4610 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4611 {
4613 
4614  COPY_NODE_FIELD(sourcetype);
4615  COPY_NODE_FIELD(targettype);
4616  COPY_NODE_FIELD(func);
4617  COPY_SCALAR_FIELD(context);
4618  COPY_SCALAR_FIELD(inout);
4619 
4620  return newnode;
4621 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4596 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4597 {
4599 
4600  COPY_NODE_FIELD(conversion_name);
4601  COPY_STRING_FIELD(for_encoding_name);
4602  COPY_STRING_FIELD(to_encoding_name);
4603  COPY_NODE_FIELD(func_name);
4604  COPY_SCALAR_FIELD(def);
4605 
4606  return newnode;
4607 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 4021 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4022 {
4023  CreatedbStmt *newnode = makeNode(CreatedbStmt);
4024 
4027 
4028  return newnode;
4029 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3954 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3955 {
3957 
3958  COPY_NODE_FIELD(domainname);
3959  COPY_NODE_FIELD(typeName);
3960  COPY_NODE_FIELD(collClause);
3961  COPY_NODE_FIELD(constraints);
3962 
3963  return newnode;
3964 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3892 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3893 {
3895 
3896  COPY_NODE_FIELD(typeName);
3897  COPY_NODE_FIELD(vals);
3898 
3899  return newnode;
3900 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4461 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4462 {
4464 
4465  COPY_STRING_FIELD(trigname);
4466  COPY_STRING_FIELD(eventname);
4467  COPY_NODE_FIELD(whenclause);
4468  COPY_NODE_FIELD(funcname);
4469 
4470  return newnode;
4471 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4258 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4259 {
4261 
4262  COPY_STRING_FIELD(extname);
4263  COPY_SCALAR_FIELD(if_not_exists);
4265 
4266  return newnode;
4267 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4294 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4295 {
4296  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4297 
4298  COPY_STRING_FIELD(fdwname);
4299  COPY_NODE_FIELD(func_options);
4301 
4302  return newnode;
4303 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4318 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4319 {
4321 
4322  COPY_STRING_FIELD(servername);
4323  COPY_STRING_FIELD(servertype);
4324  COPY_STRING_FIELD(version);
4325  COPY_STRING_FIELD(fdwname);
4326  COPY_SCALAR_FIELD(if_not_exists);
4328 
4329  return newnode;
4330 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4383 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

4384 {
4386 
4387  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4388 
4389  COPY_STRING_FIELD(servername);
4391 
4392  return newnode;
4393 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3511
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3689 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3690 {
3692 
3693  COPY_SCALAR_FIELD(is_procedure);
3694  COPY_SCALAR_FIELD(replace);
3695  COPY_NODE_FIELD(funcname);
3696  COPY_NODE_FIELD(parameters);
3697  COPY_NODE_FIELD(returnType);
3699  COPY_NODE_FIELD(sql_body);
3700 
3701  return newnode;
3702 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3982 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3983 {
3985 
3986  COPY_SCALAR_FIELD(itemtype);
3988  COPY_SCALAR_FIELD(number);
3989  COPY_NODE_FIELD(order_family);
3990  COPY_NODE_FIELD(class_args);
3991  COPY_NODE_FIELD(storedtype);
3992 
3993  return newnode;
3994 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3967 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3968 {
3970 
3971  COPY_NODE_FIELD(opclassname);
3972  COPY_NODE_FIELD(opfamilyname);
3973  COPY_STRING_FIELD(amname);
3974  COPY_NODE_FIELD(datatype);
3975  COPY_NODE_FIELD(items);
3976  COPY_SCALAR_FIELD(isDefault);
3977 
3978  return newnode;
3979 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3997 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3998 {
4000 
4001  COPY_NODE_FIELD(opfamilyname);
4002  COPY_STRING_FIELD(amname);
4003 
4004  return newnode;
4005 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4485 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4486 {
4488 
4489  COPY_SCALAR_FIELD(replace);
4490  COPY_STRING_FIELD(plname);
4491  COPY_NODE_FIELD(plhandler);
4492  COPY_NODE_FIELD(plinline);
4493  COPY_NODE_FIELD(plvalidator);
4494  COPY_SCALAR_FIELD(pltrusted);
4495 
4496  return newnode;
4497 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4706 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4707 {
4709 
4710  COPY_STRING_FIELD(policy_name);
4711  COPY_NODE_FIELD(table);
4712  COPY_STRING_FIELD(cmd_name);
4713  COPY_SCALAR_FIELD(permissive);
4714  COPY_NODE_FIELD(roles);
4715  COPY_NODE_FIELD(qual);
4716  COPY_NODE_FIELD(with_check);
4717 
4718  return newnode;
4719 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4803 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4804 {
4806 
4807  COPY_STRING_FIELD(pubname);
4809  COPY_NODE_FIELD(tables);
4810  COPY_SCALAR_FIELD(for_all_tables);
4811 
4812  return newnode;
4813 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3903 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3904 {
3906 
3907  COPY_NODE_FIELD(typeName);
3908  COPY_NODE_FIELD(params);
3909 
3910  return newnode;
3911 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4500 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4501 {
4503 
4504  COPY_SCALAR_FIELD(stmt_type);
4505  COPY_STRING_FIELD(role);
4507 
4508  return newnode;
4509 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4583 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4584 {
4586 
4587  COPY_STRING_FIELD(schemaname);
4588  COPY_NODE_FIELD(authrole);
4589  COPY_NODE_FIELD(schemaElts);
4590  COPY_SCALAR_FIELD(if_not_exists);
4591 
4592  return newnode;
4593 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 4148 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4149 {
4150  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
4151 
4152  COPY_NODE_FIELD(sequence);
4154  COPY_SCALAR_FIELD(ownerId);
4155  COPY_SCALAR_FIELD(for_identity);
4156  COPY_SCALAR_FIELD(if_not_exists);
4157 
4158  return newnode;
4159 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3662 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3663 {
3665 
3666  COPY_NODE_FIELD(defnames);
3667  COPY_NODE_FIELD(stat_types);
3668  COPY_NODE_FIELD(exprs);
3669  COPY_NODE_FIELD(relations);
3670  COPY_STRING_FIELD(stxcomment);
3671  COPY_SCALAR_FIELD(if_not_exists);
3672 
3673  return newnode;
3674 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3528 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3529 {
3530  CreateStmt *newnode = makeNode(CreateStmt);
3531 
3532  CopyCreateStmtFields(from, newnode);
3533 
3534  return newnode;
3535 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3511
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4830 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4831 {
4833 
4835  COPY_STRING_FIELD(conninfo);
4836  COPY_NODE_FIELD(publication);
4838 
4839  return newnode;
4840 }
NameData subname
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 4101 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4102 {
4104 
4105  COPY_NODE_FIELD(query);
4106  COPY_NODE_FIELD(into);
4107  COPY_SCALAR_FIELD(objtype);
4108  COPY_SCALAR_FIELD(is_select_into);
4109  COPY_SCALAR_FIELD(if_not_exists);
4110 
4111  return newnode;
4112 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4208 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4209 {
4211 
4212  COPY_STRING_FIELD(tablespacename);
4213  COPY_NODE_FIELD(owner);
4214  COPY_STRING_FIELD(location);
4216 
4217  return newnode;
4218 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4411 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4412 {
4414 
4415  COPY_SCALAR_FIELD(replace);
4416  COPY_NODE_FIELD(type_name);
4417  COPY_STRING_FIELD(lang);
4418  COPY_NODE_FIELD(fromsql);
4419  COPY_NODE_FIELD(tosql);
4420 
4421  return newnode;
4422 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4437 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4438 {
4440 
4441  COPY_SCALAR_FIELD(replace);
4442  COPY_SCALAR_FIELD(isconstraint);
4443  COPY_STRING_FIELD(trigname);
4444  COPY_NODE_FIELD(relation);
4445  COPY_NODE_FIELD(funcname);
4447  COPY_SCALAR_FIELD(row);
4448  COPY_SCALAR_FIELD(timing);
4449  COPY_SCALAR_FIELD(events);
4450  COPY_NODE_FIELD(columns);
4451  COPY_NODE_FIELD(whenClause);
4452  COPY_NODE_FIELD(transitionRels);
4453  COPY_SCALAR_FIELD(deferrable);
4454  COPY_SCALAR_FIELD(initdeferred);
4455  COPY_NODE_FIELD(constrrel);
4456 
4457  return newnode;
4458 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4346 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4347 {
4349 
4351  COPY_STRING_FIELD(servername);
4352  COPY_SCALAR_FIELD(if_not_exists);
4354 
4355  return newnode;
4356 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * user
Definition: pg_regress.c:95

◆ _copyCTECycleClause()

static CTECycleClause* _copyCTECycleClause ( const CTECycleClause from)
static

Definition at line 2661 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2662 {
2664 
2665  COPY_NODE_FIELD(cycle_col_list);
2666  COPY_STRING_FIELD(cycle_mark_column);
2667  COPY_NODE_FIELD(cycle_mark_value);
2668  COPY_NODE_FIELD(cycle_mark_default);
2669  COPY_STRING_FIELD(cycle_path_column);
2670  COPY_LOCATION_FIELD(location);
2671  COPY_SCALAR_FIELD(cycle_mark_type);
2672  COPY_SCALAR_FIELD(cycle_mark_typmod);
2673  COPY_SCALAR_FIELD(cycle_mark_collation);
2674  COPY_SCALAR_FIELD(cycle_mark_neop);
2675 
2676  return newnode;
2677 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 700 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

701 {
702  CteScan *newnode = makeNode(CteScan);
703 
704  /*
705  * copy node superclass fields
706  */
707  CopyScanFields((const Scan *) from, (Scan *) newnode);
708 
709  /*
710  * copy remainder of node
711  */
712  COPY_SCALAR_FIELD(ctePlanId);
713  COPY_SCALAR_FIELD(cteParam);
714 
715  return newnode;
716 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCTESearchClause()

static CTESearchClause* _copyCTESearchClause ( const CTESearchClause from)
static

Definition at line 2648 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2649 {
2651 
2652  COPY_NODE_FIELD(search_col_list);
2653  COPY_SCALAR_FIELD(search_breadth_first);
2654  COPY_STRING_FIELD(search_seq_column);
2655  COPY_LOCATION_FIELD(location);
2656 
2657  return newnode;
2658 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2177 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2178 {
2179  CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
2180 
2181  COPY_SCALAR_FIELD(cvarno);
2182  COPY_STRING_FIELD(cursor_name);
2183  COPY_SCALAR_FIELD(cursor_param);
2184 
2185  return newnode;
2186 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 793 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

794 {
795  CustomScan *newnode = makeNode(CustomScan);
796 
797  /*
798  * copy node superclass fields
799  */
800  CopyScanFields((const Scan *) from, (Scan *) newnode);
801 
802  /*
803  * copy remainder of node
804  */
805  COPY_SCALAR_FIELD(flags);
806  COPY_NODE_FIELD(custom_plans);
807  COPY_NODE_FIELD(custom_exprs);
808  COPY_NODE_FIELD(custom_private);
809  COPY_NODE_FIELD(custom_scan_tlist);
810  COPY_BITMAPSET_FIELD(custom_relids);
811 
812  /*
813  * NOTE: The method field of CustomScan is required to be a pointer to a
814  * static table of callback functions. So we don't copy the table itself,
815  * just reference the original one.
816  */
817  COPY_SCALAR_FIELD(methods);
818 
819  return newnode;
820 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4647 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4648 {
4650 
4652 
4653  return newnode;
4654 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3443 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3444 {
3446 
3447  COPY_STRING_FIELD(portalname);
3449  COPY_NODE_FIELD(query);
3450 
3451  return newnode;
3452 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 3093 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3094 {
3095  DefElem *newnode = makeNode(DefElem);
3096 
3097  COPY_STRING_FIELD(defnamespace);
3098  COPY_STRING_FIELD(defname);
3100  COPY_SCALAR_FIELD(defaction);
3101  COPY_LOCATION_FIELD(location);
3102 
3103  return newnode;
3104 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3550 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3551 {
3552  DefineStmt *newnode = makeNode(DefineStmt);
3553 
3554  COPY_SCALAR_FIELD(kind);
3555  COPY_SCALAR_FIELD(oldstyle);
3556  COPY_NODE_FIELD(defnames);
3558  COPY_NODE_FIELD(definition);
3559  COPY_SCALAR_FIELD(if_not_exists);
3560  COPY_SCALAR_FIELD(replace);
3561 
3562  return newnode;
3563 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3232 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3233 {
3234  DeleteStmt *newnode = makeNode(DeleteStmt);
3235 
3236  COPY_NODE_FIELD(relation);
3237  COPY_NODE_FIELD(usingClause);
3238  COPY_NODE_FIELD(whereClause);
3239  COPY_NODE_FIELD(returningList);
3240  COPY_NODE_FIELD(withClause);
3241 
3242  return newnode;
3243 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 4198 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4199 {
4200  DiscardStmt *newnode = makeNode(DiscardStmt);
4201 
4202  COPY_SCALAR_FIELD(target);
4203 
4204  return newnode;
4205 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1673 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1674 {
1675  DistinctExpr *newnode = makeNode(DistinctExpr);
1676 
1677  COPY_SCALAR_FIELD(opno);
1678  COPY_SCALAR_FIELD(opfuncid);
1679  COPY_SCALAR_FIELD(opresulttype);
1680  COPY_SCALAR_FIELD(opretset);
1681  COPY_SCALAR_FIELD(opcollid);
1682  COPY_SCALAR_FIELD(inputcollid);
1684  COPY_LOCATION_FIELD(location);
1685 
1686  return newnode;
1687 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3730 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3731 {
3732  DoStmt *newnode = makeNode(DoStmt);
3733 
3735 
3736  return newnode;
3737 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 4054 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4055 {
4056  DropdbStmt *newnode = makeNode(DropdbStmt);
4057 
4059  COPY_SCALAR_FIELD(missing_ok);
4061 
4062  return newnode;
4063 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4657 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4658 {
4659  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4660 
4661  COPY_NODE_FIELD(roles);
4662  COPY_SCALAR_FIELD(behavior);
4663 
4664  return newnode;
4665 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4536 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4537 {
4538  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4539 
4540  COPY_NODE_FIELD(roles);
4541  COPY_SCALAR_FIELD(missing_ok);
4542 
4543  return newnode;
4544 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3566 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3567 {
3568  DropStmt *newnode = makeNode(DropStmt);
3569 
3570  COPY_NODE_FIELD(objects);
3571  COPY_SCALAR_FIELD(removeType);
3572  COPY_SCALAR_FIELD(behavior);
3573  COPY_SCALAR_FIELD(missing_ok);
3574  COPY_SCALAR_FIELD(concurrent);
3575 
3576  return newnode;
3577 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4857 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4858 {
4860 
4862  COPY_SCALAR_FIELD(missing_ok);
4863  COPY_SCALAR_FIELD(behavior);
4864 
4865  return newnode;
4866 }
NameData subname
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4221 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4222 {
4224 
4225  COPY_STRING_FIELD(tablespacename);
4226  COPY_SCALAR_FIELD(missing_ok);
4227 
4228  return newnode;
4229 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4371 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4372 {
4374 
4376  COPY_STRING_FIELD(servername);
4377  COPY_SCALAR_FIELD(missing_ok);
4378 
4379  return newnode;
4380 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * user
Definition: pg_regress.c:95

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4636 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4637 {
4638  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4639 
4641  COPY_NODE_FIELD(params);
4642 
4643  return newnode;
4644 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 4090 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4091 {
4092  ExplainStmt *newnode = makeNode(ExplainStmt);
4093 
4094  COPY_NODE_FIELD(query);
4096 
4097  return newnode;
4098 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4873 of file copyfuncs.c.

References COPY_STRING_FIELD, ExtensibleNode::extnodename, GetExtensibleNodeMethods(), newNode, ExtensibleNodeMethods::node_size, ExtensibleNodeMethods::nodeCopy, and T_ExtensibleNode.

Referenced by copyObjectImpl().

4874 {
4875  ExtensibleNode *newnode;
4876  const ExtensibleNodeMethods *methods;
4877 
4878  methods = GetExtensibleNodeMethods(from->extnodename, false);
4879  newnode = (ExtensibleNode *) newNode(methods->node_size,
4881  COPY_STRING_FIELD(extnodename);
4882 
4883  /* copy the private fields */
4884  methods->nodeCopy(newnode, from);
4885 
4886  return newnode;
4887 }
#define newNode(size, tag)
Definition: nodes.h:577
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
void(* nodeCopy)(struct ExtensibleNode *newnode, const struct ExtensibleNode *oldnode)
Definition: extensible.h:64
const char * extnodename
Definition: extensible.h:35
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _copyFetchStmt()

static FetchStmt* _copyFetchStmt ( const FetchStmt from)
static

Definition at line 3617 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3618 {
3619  FetchStmt *newnode = makeNode(FetchStmt);
3620 
3621  COPY_SCALAR_FIELD(direction);
3622  COPY_SCALAR_FIELD(howMany);
3623  COPY_STRING_FIELD(portalname);
3624  COPY_SCALAR_FIELD(ismove);
3625 
3626  return newnode;
3627 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1806 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1807 {
1808  FieldSelect *newnode = makeNode(FieldSelect);
1809 
1811  COPY_SCALAR_FIELD(fieldnum);
1812  COPY_SCALAR_FIELD(resulttype);
1813  COPY_SCALAR_FIELD(resulttypmod);
1814  COPY_SCALAR_FIELD(resultcollid);
1815 
1816  return newnode;
1817 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1823 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1824 {
1825  FieldStore *newnode = makeNode(FieldStore);
1826 
1828  COPY_NODE_FIELD(newvals);
1829  COPY_NODE_FIELD(fieldnums);
1830  COPY_SCALAR_FIELD(resulttype);
1831 
1832  return newnode;
1833 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4924 of file copyfuncs.c.

References ForeignKeyCacheInfo::confkey, ForeignKeyCacheInfo::conkey, ForeignKeyCacheInfo::conpfeqop, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4925 {
4927 
4928  COPY_SCALAR_FIELD(conoid);
4929  COPY_SCALAR_FIELD(conrelid);
4930  COPY_SCALAR_FIELD(confrelid);
4931  COPY_SCALAR_FIELD(nkeys);
4932  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4933  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4934  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4935  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4936 
4937  return newnode;
4938 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:263
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:587
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:265
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:264

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 764 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

765 {
766  ForeignScan *newnode = makeNode(ForeignScan);
767 
768  /*
769  * copy node superclass fields
770  */
771  CopyScanFields((const Scan *) from, (Scan *) newnode);
772 
773  /*
774  * copy remainder of node
775  */
776  COPY_SCALAR_FIELD(operation);
777  COPY_SCALAR_FIELD(fs_server);
778  COPY_NODE_FIELD(fdw_exprs);
779  COPY_NODE_FIELD(fdw_private);
780  COPY_NODE_FIELD(fdw_scan_tlist);
781  COPY_NODE_FIELD(fdw_recheck_quals);
782  COPY_BITMAPSET_FIELD(fs_relids);
783  COPY_SCALAR_FIELD(fsSystemCol);
784  COPY_SCALAR_FIELD(resultRelation);
785 
786  return newnode;
787 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2274 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2275 {
2276  FromExpr *newnode = makeNode(FromExpr);
2277 
2278  COPY_NODE_FIELD(fromlist);
2279  COPY_NODE_FIELD(quals);
2280 
2281  return newnode;
2282 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2769 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2770 {
2771  FuncCall *newnode = makeNode(FuncCall);
2772 
2773  COPY_NODE_FIELD(funcname);
2775  COPY_NODE_FIELD(agg_order);
2776  COPY_NODE_FIELD(agg_filter);
2777  COPY_NODE_FIELD(over);
2778  COPY_SCALAR_FIELD(agg_within_group);
2779  COPY_SCALAR_FIELD(agg_star);
2780  COPY_SCALAR_FIELD(agg_distinct);
2781  COPY_SCALAR_FIELD(func_variadic);
2782  COPY_SCALAR_FIELD(funcformat);
2783  COPY_LOCATION_FIELD(location);
2784 
2785  return newnode;
2786 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1616 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1617 {
1618  FuncExpr *newnode = makeNode(FuncExpr);
1619 
1620  COPY_SCALAR_FIELD(funcid);
1621  COPY_SCALAR_FIELD(funcresulttype);
1622  COPY_SCALAR_FIELD(funcretset);
1623  COPY_SCALAR_FIELD(funcvariadic);
1624  COPY_SCALAR_FIELD(funcformat);
1625  COPY_SCALAR_FIELD(funccollid);
1626  COPY_SCALAR_FIELD(inputcollid);
1628  COPY_LOCATION_FIELD(location);
1629 
1630  return newnode;
1631 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3705 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, mode, and name.

Referenced by copyObjectImpl().

3706 {
3708 
3710  COPY_NODE_FIELD(argType);
3712  COPY_NODE_FIELD(defexpr);
3713 
3714  return newnode;
3715 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 636 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyScanFields(), functions, and makeNode.

Referenced by copyObjectImpl().

637 {
638  FunctionScan *newnode = makeNode(FunctionScan);
639 
640  /*
641  * copy node superclass fields
642  */
643  CopyScanFields((const Scan *) from, (Scan *) newnode);
644 
645  /*
646  * copy remainder of node
647  */
649  COPY_SCALAR_FIELD(funcordinality);
650 
651  return newnode;
652 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
static const struct fns functions
Definition: regcomp.c:314

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 356 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

357 {
358  Gather *newnode = makeNode(Gather);
359 
360  /*
361  * copy node superclass fields
362  */
363  CopyPlanFields((const Plan *) from, (Plan *) newnode);
364 
365  /*
366  * copy remainder of node
367  */
368  COPY_SCALAR_FIELD(num_workers);
369  COPY_SCALAR_FIELD(rescan_param);
370  COPY_SCALAR_FIELD(single_copy);
371  COPY_SCALAR_FIELD(invisible);
372  COPY_BITMAPSET_FIELD(initParam);
373 
374  return newnode;
375 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 381 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, COPY_POINTER_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

382 {
383  GatherMerge *newnode = makeNode(GatherMerge);
384 
385  /*
386  * copy node superclass fields
387  */
388  CopyPlanFields((const Plan *) from, (Plan *) newnode);
389 
390  /*
391  * copy remainder of node
392  */
393  COPY_SCALAR_FIELD(num_workers);
394  COPY_SCALAR_FIELD(rescan_param);
395  COPY_SCALAR_FIELD(numCols);
396  COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
397  COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
398  COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
399  COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
400  COPY_BITMAPSET_FIELD(initParam);
401 
402  return newnode;
403 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3417 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3418 {
3419  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3420 
3421  COPY_NODE_FIELD(granted_roles);
3422  COPY_NODE_FIELD(grantee_roles);
3423  COPY_SCALAR_FIELD(is_grant);
3424  COPY_SCALAR_FIELD(admin_opt);
3425  COPY_NODE_FIELD(grantor);
3426  COPY_SCALAR_FIELD(behavior);
3427 
3428  return newnode;
3429 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3376 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3377 {
3378  GrantStmt *newnode = makeNode(GrantStmt);
3379 
3380  COPY_SCALAR_FIELD(is_grant);
3381  COPY_SCALAR_FIELD(targtype);
3382  COPY_SCALAR_FIELD(objtype);
3383  COPY_NODE_FIELD(objects);
3384  COPY_NODE_FIELD(privileges);
3385  COPY_NODE_FIELD(grantees);
3386  COPY_SCALAR_FIELD(grant_option);
3387  COPY_NODE_FIELD(grantor);
3388  COPY_SCALAR_FIELD(behavior);
3389 
3390  return newnode;
3391 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 1039 of file copyfuncs.c.

References COPY_POINTER_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1040 {
1041  Group *newnode = makeNode(Group);
1042 
1043  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1044 
1045  COPY_SCALAR_FIELD(numCols);
1046  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
1047  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
1048  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
1049 
1050  return newnode;
1051 }
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1556 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1557 {
1558  GroupingFunc *newnode = makeNode(GroupingFunc);
1559 
1561  COPY_NODE_FIELD(refs);
1562  COPY_NODE_FIELD(cols);
1563  COPY_SCALAR_FIELD(agglevelsup);
1564  COPY_LOCATION_FIELD(location);
1565 
1566  return newnode;
1567 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2561 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2562 {
2563  GroupingSet *newnode = makeNode(GroupingSet);
2564 
2565  COPY_SCALAR_FIELD(kind);
2566  COPY_NODE_FIELD(content);
2567  COPY_LOCATION_FIELD(location);
2568 
2569  return newnode;
2570 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1146 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1147 {
1148  Hash *newnode = makeNode(Hash);
1149 
1150  /*
1151  * copy node superclass fields
1152  */
1153  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1154 
1155  /*
1156  * copy remainder of node
1157  */
1158  COPY_NODE_FIELD(hashkeys);
1159  COPY_SCALAR_FIELD(skewTable);
1160  COPY_SCALAR_FIELD(skewColumn);
1161  COPY_SCALAR_FIELD(skewInherit);
1162  COPY_SCALAR_FIELD(rows_total);
1163 
1164  return newnode;
1165 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 913 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

914 {
915  HashJoin *newnode = makeNode(HashJoin);
916 
917  /*
918  * copy node superclass fields
919  */
920  CopyJoinFields((const Join *) from, (Join *) newnode);
921 
922  /*
923  * copy remainder of node
924  */
925  COPY_NODE_FIELD(hashclauses);
926  COPY_NODE_FIELD(hashoperators);
927  COPY_NODE_FIELD(hashcollations);
928  COPY_NODE_FIELD(hashkeys);
929 
930  return newnode;
931 }
static void CopyJoinFields(const Join *from, Join *newnode)
Definition: copyfuncs.c:829
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4396 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4397 {
4399 
4400  COPY_STRING_FIELD(server_name);
4401  COPY_STRING_FIELD(remote_schema);
4402  COPY_STRING_FIELD(local_schema);
4403  COPY_SCALAR_FIELD(list_type);
4404  COPY_NODE_FIELD(table_list);
4406 
4407  return newnode;
4408 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyIncrementalSort()

static IncrementalSort* _copyIncrementalSort ( const IncrementalSort from)
static

Definition at line 1017 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopySortFields(), and makeNode.

Referenced by copyObjectImpl().

1018 {
1020 
1021  /*
1022  * copy node superclass fields
1023  */
1024  CopySortFields((const Sort *) from, (Sort *) newnode);
1025 
1026  /*
1027  * copy remainder of node
1028  */
1029  COPY_SCALAR_FIELD(nPresortedCols);
1030 
1031  return newnode;
1032 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopySortFields(const Sort *from, Sort *newnode)
Definition: copyfuncs.c:985
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 3001 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3002 {
3003  IndexElem *newnode = makeNode(IndexElem);
3004 
3006  COPY_NODE_FIELD(expr);
3007  COPY_STRING_FIELD(indexcolname);
3008  COPY_NODE_FIELD(collation);
3009  COPY_NODE_FIELD(opclass);
3010  COPY_NODE_FIELD(opclassopts);
3011  COPY_SCALAR_FIELD(ordering);
3012  COPY_SCALAR_FIELD(nulls_ordering);
3013 
3014  return newnode;
3015 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 503 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

504 {
506 
507  /*
508  * copy node superclass fields
509  */
510  CopyScanFields((const Scan *) from, (Scan *) newnode);
511 
512  /*
513  * copy remainder of node
514  */
515  COPY_SCALAR_FIELD(indexid);
516  COPY_NODE_FIELD(indexqual);
517  COPY_NODE_FIELD(indexorderby);
518  COPY_NODE_FIELD(indextlist);
519  COPY_SCALAR_FIELD(indexorderdir);
520 
521  return newnode;
522 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 476 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

477 {
478  IndexScan *newnode = makeNode(IndexScan);
479 
480  /*
481  * copy node superclass fields
482  */
483  CopyScanFields((const Scan *) from, (Scan *) newnode);
484 
485  /*
486  * copy remainder of node
487  */
488  COPY_SCALAR_FIELD(indexid);
489  COPY_NODE_FIELD(indexqual);
490  COPY_NODE_FIELD(indexqualorig);
491  COPY_NODE_FIELD(indexorderby);
492  COPY_NODE_FIELD(indexorderbyorig);
493  COPY_NODE_FIELD(indexorderbyops);
494  COPY_SCALAR_FIELD(indexorderdir);
495 
496  return newnode;
497 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:412
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3630 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3631 {
3632  IndexStmt *newnode = makeNode(IndexStmt);
3633 
3634  COPY_STRING_FIELD(idxname);
3635  COPY_NODE_FIELD(relation);
3636  COPY_STRING_FIELD(accessMethod);
3637  COPY_STRING_FIELD(tableSpace);
3638  COPY_NODE_FIELD(indexParams);
3639  COPY_NODE_FIELD(indexIncludingParams);
3641  COPY_NODE_FIELD(whereClause);
3642  COPY_NODE_FIELD(excludeOpNames);
3643  COPY_STRING_FIELD(idxcomment);
3644  COPY_SCALAR_FIELD(indexOid);
3645  COPY_SCALAR_FIELD(oldNode);
3646  COPY_SCALAR_FIELD(oldCreateSubid);
3647  COPY_SCALAR_FIELD(oldFirstRelfilenodeSubid);
3648  COPY_SCALAR_FIELD(unique);
3649  COPY_SCALAR_FIELD(primary);
3650  COPY_SCALAR_FIELD(isconstraint);
3651  COPY_SCALAR_FIELD(deferrable);
3652  COPY_SCALAR_FIELD(initdeferred);
3653  COPY_SCALAR_FIELD(transformed);
3654  COPY_SCALAR_FIELD(concurrent);
3655  COPY_SCALAR_FIELD(if_not_exists);
3656  COPY_SCALAR_FIELD(reset_default_tblspc);
3657 
3658  return newnode;
3659 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2621 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2622 {
2623  InferClause *newnode = makeNode(InferClause);
2624 
2625  COPY_NODE_FIELD(indexElems);
2626  COPY_NODE_FIELD(whereClause);
2627  COPY_STRING_FIELD(conname);
2628  COPY_LOCATION_FIELD(location);
2629 
2630  return newnode;
2631 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2206 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2207 {
2208  InferenceElem *newnode = makeNode(InferenceElem);
2209 
2210  COPY_NODE_FIELD(expr);
2211  COPY_SCALAR_FIELD(infercollid);
2212  COPY_SCALAR_FIELD(inferopclass);
2213 
2214  return newnode;
2215 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3216 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3217 {
3218  InsertStmt *newnode = makeNode(InsertStmt);
3219 
3220  COPY_NODE_FIELD(relation);
3221  COPY_NODE_FIELD(cols);
3222  COPY_NODE_FIELD(selectStmt);
3223  COPY_NODE_FIELD(onConflictClause);
3224  COPY_NODE_FIELD(returningList);
3225  COPY_NODE_FIELD(withClause);
3226  COPY_SCALAR_FIELD(override);
3227 
3228  return newnode;
3229 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1421 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1422 {
1423  IntoClause *newnode = makeNode(IntoClause);
1424 
1425  COPY_NODE_FIELD(rel);
1426  COPY_NODE_FIELD(colNames);
1427  COPY_STRING_FIELD(accessMethod);
1429  COPY_SCALAR_FIELD(onCommit);
1430  COPY_STRING_FIELD(tableSpaceName);
1431  COPY_NODE_FIELD(viewQuery);
1432  COPY_SCALAR_FIELD(skipData);
1433 
1434  return newnode;
1435 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 843 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

844 {
845  Join *newnode = makeNode(Join);
846 
847  /*
848  * copy node superclass fields
849  */
850  CopyJoinFields(from, newnode);
851 
852  return newnode;
853 }
static void CopyJoinFields(const Join *from, Join *newnode)
Definition: copyfuncs.c:829
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2253 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2254 {
2255  JoinExpr *newnode = makeNode(JoinExpr);
2256 
2257  COPY_SCALAR_FIELD(jointype);
2258  COPY_SCALAR_FIELD(isNatural);
2259  COPY_NODE_FIELD(larg);
2260  COPY_NODE_FIELD(rarg);
2261  COPY_NODE_FIELD(usingClause);
2262  COPY_NODE_FIELD(join_using_alias);
2263  COPY_NODE_FIELD(quals);
2264  COPY_NODE_FIELD(alias);
2265  COPY_SCALAR_FIELD(rtindex);
2266 
2267  return newnode;
2268 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1222 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_POINTER_FIELD, COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1223 {
1224  Limit *newnode = makeNode(Limit);
1225 
1226  /*
1227  * copy node superclass fields
1228  */
1229  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1230 
1231  /*
1232  * copy remainder of node
1233  */
1234  COPY_NODE_FIELD(limitOffset);
1235  COPY_NODE_FIELD(limitCount);
1236  COPY_SCALAR_FIELD(limitOption);
1237  COPY_SCALAR_FIELD(uniqNumCols);
1238  COPY_POINTER_FIELD(uniqColIdx, from->uniqNumCols * sizeof(AttrNumber));
1239  COPY_POINTER_FIELD(uniqOperators, from->uniqNumCols * sizeof(Oid));
1240  COPY_POINTER_FIELD(uniqCollations, from->uniqNumCols * sizeof(Oid));
1241 
1242  return newnode;
1243 }
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587
int16 AttrNumber
Definition: attnum.h:21

◆ _copyListenStmt()

static ListenStmt* _copyListenStmt ( const ListenStmt from)
static

Definition at line 3847 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3848 {
3849  ListenStmt *newnode = makeNode(ListenStmt);
3850