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 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 Sort_copySort (const Sort *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 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 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 AlterTableStmt_copyAlterTableStmt (const AlterTableStmt *from)
 
static AlterTableCmd_copyAlterTableCmd (const AlterTableCmd *from)
 
static AlterCollationStmt_copyAlterCollationStmt (const AlterCollationStmt *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 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(), _copyAlterCollationStmt(), _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(), _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(), _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(), _copyPrepareStmt(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _copyRangeTableSample(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeVar(), _copyRawStmt(), _copyReassignOwnedStmt(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyResTarget(), _copyRestrictInfo(), _copyResult(), _copyRowCompareExpr(), _copyRowExpr(), _copyRuleStmt(), _copySampleScan(), _copyScalarArrayOpExpr(), _copySecLabelStmt(), _copySelectStmt(), _copySetOperationStmt(), _copySortBy(), _copySpecialJoinInfo(), _copySubLink(), _copySubPlan(), _copySubqueryScan(), _copySubscriptingRef(), _copyTableFunc(), _copyTableFuncScan(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _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:949

Definition at line 57 of file copyfuncs.c.

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

◆ 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(), _copyClusterStmt(), _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(), _copyCteScan(), _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(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoinExpr(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoopParam(), _copyNextValueExpr(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionedRelPruneInfo(), _copyPartitionPruneStepCombine(), _copyPartitionPruneStepOp(), _copyPartitionRangeDatum(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeTblRef(), _copyRangeVar(), _copyRecursiveUnion(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyRestrictInfo(), _copyRoleSpec(), _copyRowCompareExpr(), _copyRowExpr(), _copyRowMarkClause(), _copyRuleStmt(), _copyScalarArrayOpExpr(), _copySecLabelStmt(), _copySelectStmt(), _copySetOp(), _copySetOperationStmt(), _copySetToDefault(), _copySort(), _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(), and CopyScanFields().

◆ 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(), _copyCurrentOfExpr(), _copyDeallocateStmt(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDropdbStmt(), _copyDropSubscriptionStmt(), _copyDropTableSpaceStmt(), _copyDropUserMappingStmt(), _copyExecuteStmt(), _copyExtensibleNode(), _copyFetchStmt(), _copyFunctionParameter(), _copyImportForeignSchemaStmt(), _copyIndexElem(), _copyIndexStmt(), _copyInferClause(), _copyIntoClause(), _copyListenStmt(), _copyLoadStmt(), _copyNamedArgExpr(), _copyNamedTuplestoreScan(), _copyNotifyStmt(), _copyPartitionElem(), _copyPartitionSpec(), _copyPrepareStmt(), _copyRangeTableFuncCol(), _copyRangeTblEntry(), _copyRangeVar(), _copyReindexStmt(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyResTarget(), _copyRoleSpec(), _copyRuleStmt(), _copySecLabelStmt(), _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 2689 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2690 {
2691  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2692 
2693  COPY_NODE_FIELD(elements);
2694  COPY_LOCATION_FIELD(location);
2695 
2696  return newnode;
2697 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2678 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2679 {
2680  A_Indirection *newnode = makeNode(A_Indirection);
2681 
2683  COPY_NODE_FIELD(indirection);
2684 
2685  return newnode;
2686 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573
void * arg

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3241 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3242 {
3243  AccessPriv *newnode = makeNode(AccessPriv);
3244 
3245  COPY_STRING_FIELD(priv_name);
3246  COPY_NODE_FIELD(cols);
3247 
3248  return newnode;
3249 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAConst()

static A_Const* _copyAConst ( const A_Const from)
static

Definition at line 2608 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().

2609 {
2610  A_Const *newnode = makeNode(A_Const);
2611 
2612  /* This part must duplicate _copyValue */
2613  COPY_SCALAR_FIELD(val.type);
2614  switch (from->val.type)
2615  {
2616  case T_Integer:
2617  COPY_SCALAR_FIELD(val.val.ival);
2618  break;
2619  case T_Float:
2620  case T_String:
2621  case T_BitString:
2622  COPY_STRING_FIELD(val.val.str);
2623  break;
2624  case T_Null:
2625  /* nothing to do */
2626  break;
2627  default:
2628  elog(ERROR, "unrecognized node type: %d",
2629  (int) from->val.type);
2630  break;
2631  }
2632 
2633  COPY_LOCATION_FIELD(location);
2634 
2635  return newnode;
2636 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define ERROR
Definition: elog.h:43
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:573
Definition: nodes.h:292
Definition: nodes.h:289
#define elog(elevel,...)
Definition: elog.h:228
Value val
Definition: parsenodes.h:288
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 2572 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2573 {
2574  A_Expr *newnode = makeNode(A_Expr);
2575 
2576  COPY_SCALAR_FIELD(kind);
2578  COPY_NODE_FIELD(lexpr);
2579  COPY_NODE_FIELD(rexpr);
2580  COPY_LOCATION_FIELD(location);
2581 
2582  return newnode;
2583 }
#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:573
const char * name
Definition: encode.c:521

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 975 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

976 {
977  Agg *newnode = makeNode(Agg);
978 
979  CopyPlanFields((const Plan *) from, (Plan *) newnode);
980 
981  COPY_SCALAR_FIELD(aggstrategy);
982  COPY_SCALAR_FIELD(aggsplit);
983  COPY_SCALAR_FIELD(numCols);
984  if (from->numCols > 0)
985  {
986  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
987  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
988  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
989  }
990  COPY_SCALAR_FIELD(numGroups);
991  COPY_BITMAPSET_FIELD(aggParams);
992  COPY_NODE_FIELD(groupingSets);
993  COPY_NODE_FIELD(chain);
994 
995  return newnode;
996 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573
Definition: plannodes.h:806
int16 AttrNumber
Definition: attnum.h:21

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1437 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1438 {
1439  Aggref *newnode = makeNode(Aggref);
1440 
1441  COPY_SCALAR_FIELD(aggfnoid);
1442  COPY_SCALAR_FIELD(aggtype);
1443  COPY_SCALAR_FIELD(aggcollid);
1444  COPY_SCALAR_FIELD(inputcollid);
1445  COPY_SCALAR_FIELD(aggtranstype);
1446  COPY_NODE_FIELD(aggargtypes);
1447  COPY_NODE_FIELD(aggdirectargs);
1449  COPY_NODE_FIELD(aggorder);
1450  COPY_NODE_FIELD(aggdistinct);
1451  COPY_NODE_FIELD(aggfilter);
1452  COPY_SCALAR_FIELD(aggstar);
1453  COPY_SCALAR_FIELD(aggvariadic);
1454  COPY_SCALAR_FIELD(aggkind);
1455  COPY_SCALAR_FIELD(agglevelsup);
1456  COPY_SCALAR_FIELD(aggsplit);
1457  COPY_LOCATION_FIELD(location);
1458 
1459  return newnode;
1460 }
#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:573

◆ _copyAIndices()

static A_Indices* _copyAIndices ( const A_Indices from)
static

Definition at line 2666 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2667 {
2668  A_Indices *newnode = makeNode(A_Indices);
2669 
2670  COPY_SCALAR_FIELD(is_slice);
2671  COPY_NODE_FIELD(lidx);
2672  COPY_NODE_FIELD(uidx);
2673 
2674  return newnode;
2675 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1275 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1276 {
1277  Alias *newnode = makeNode(Alias);
1278 
1279  COPY_STRING_FIELD(aliasname);
1280  COPY_NODE_FIELD(colnames);
1281 
1282  return newnode;
1283 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterCollationStmt()

static AlterCollationStmt* _copyAlterCollationStmt ( const AlterCollationStmt from)
static

Definition at line 3187 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3188 {
3190 
3191  COPY_NODE_FIELD(collname);
3192 
3193  return newnode;
3194 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 3862 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3863 {
3865 
3867  COPY_NODE_FIELD(setstmt);
3868 
3869  return newnode;
3870 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c:50

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 3851 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3852 {
3854 
3857 
3858  return newnode;
3859 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c:50

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3267 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3268 {
3270 
3273 
3274  return newnode;
3275 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3197 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3198 {
3200 
3201  COPY_SCALAR_FIELD(subtype);
3202  COPY_NODE_FIELD(typeName);
3204  COPY_NODE_FIELD(def);
3205  COPY_SCALAR_FIELD(behavior);
3206  COPY_SCALAR_FIELD(missing_ok);
3207 
3208  return newnode;
3209 }
#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:573
const char * name
Definition: encode.c:521

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3733 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3734 {
3735  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3736 
3737  COPY_NODE_FIELD(typeName);
3738  COPY_STRING_FIELD(oldVal);
3739  COPY_STRING_FIELD(newVal);
3740  COPY_STRING_FIELD(newValNeighbor);
3741  COPY_SCALAR_FIELD(newValIsAfter);
3742  COPY_SCALAR_FIELD(skipIfNewValExists);
3743 
3744  return newnode;
3745 }
#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:573

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4292 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4293 {
4295 
4296  COPY_STRING_FIELD(trigname);
4297  COPY_SCALAR_FIELD(tgenabled);
4298 
4299  return newnode;
4300 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4100 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4101 {
4103 
4104  COPY_STRING_FIELD(extname);
4106  COPY_SCALAR_FIELD(objtype);
4107  COPY_NODE_FIELD(object);
4108 
4109  return newnode;
4110 }
#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:573

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4089 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4090 {
4092 
4093  COPY_STRING_FIELD(extname);
4095 
4096  return newnode;
4097 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4125 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4126 {
4127  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4128 
4129  COPY_STRING_FIELD(fdwname);
4130  COPY_NODE_FIELD(func_options);
4132 
4133  return newnode;
4134 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4152 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4153 {
4155 
4156  COPY_STRING_FIELD(servername);
4157  COPY_STRING_FIELD(version);
4159  COPY_SCALAR_FIELD(has_version);
4160 
4161  return newnode;
4162 }
#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:573

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3549 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3550 {
3552 
3553  COPY_SCALAR_FIELD(objtype);
3554  COPY_NODE_FIELD(func);
3555  COPY_NODE_FIELD(actions);
3556 
3557  return newnode;
3558 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1701 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1702 {
1704 
1705  COPY_NODE_FIELD(subplans);
1706 
1707  return newnode;
1708 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3588 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3589 {
3591 
3592  COPY_SCALAR_FIELD(objectType);
3593  COPY_NODE_FIELD(relation);
3594  COPY_NODE_FIELD(object);
3595  COPY_NODE_FIELD(extname);
3596 
3597  return newnode;
3598 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3601 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3602 {
3604 
3605  COPY_SCALAR_FIELD(objectType);
3606  COPY_NODE_FIELD(relation);
3607  COPY_NODE_FIELD(object);
3608  COPY_STRING_FIELD(newschema);
3609  COPY_SCALAR_FIELD(missing_ok);
3610 
3611  return newnode;
3612 }
#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:573

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3628 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3629 {
3631 
3632  COPY_NODE_FIELD(opername);
3634 
3635  return newnode;
3636 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 3827 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3828 {
3830 
3831  COPY_NODE_FIELD(opfamilyname);
3832  COPY_STRING_FIELD(amname);
3833  COPY_SCALAR_FIELD(isDrop);
3834  COPY_NODE_FIELD(items);
3835 
3836  return newnode;
3837 }
#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:573

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3615 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3616 {
3618 
3619  COPY_SCALAR_FIELD(objectType);
3620  COPY_NODE_FIELD(relation);
3621  COPY_NODE_FIELD(object);
3622  COPY_NODE_FIELD(newowner);
3623 
3624  return newnode;
3625 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4541 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4542 {
4544 
4545  COPY_STRING_FIELD(policy_name);
4546  COPY_NODE_FIELD(table);
4547  COPY_NODE_FIELD(roles);
4548  COPY_NODE_FIELD(qual);
4549  COPY_NODE_FIELD(with_check);
4550 
4551  return newnode;
4552 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4634 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4635 {
4637 
4638  COPY_STRING_FIELD(pubname);
4640  COPY_NODE_FIELD(tables);
4641  COPY_SCALAR_FIELD(for_all_tables);
4642  COPY_SCALAR_FIELD(tableAction);
4643 
4644  return newnode;
4645 }
#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:573

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4342 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4343 {
4345 
4346  COPY_NODE_FIELD(role);
4347  COPY_STRING_FIELD(database);
4348  COPY_NODE_FIELD(setstmt);
4349 
4350  return newnode;
4351 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4330 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4331 {
4332  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4333 
4334  COPY_NODE_FIELD(role);
4337 
4338  return newnode;
4339 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 3981 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3982 {
3983  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
3984 
3985  COPY_NODE_FIELD(sequence);
3987  COPY_SCALAR_FIELD(for_identity);
3988  COPY_SCALAR_FIELD(missing_ok);
3989 
3990  return newnode;
3991 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterStatsStmt()

static AlterStatsStmt* _copyAlterStatsStmt ( const AlterStatsStmt from)
static

Definition at line 3509 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3510 {
3512 
3513  COPY_NODE_FIELD(defnames);
3514  COPY_SCALAR_FIELD(stxstattarget);
3515  COPY_SCALAR_FIELD(missing_ok);
3516 
3517  return newnode;
3518 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4661 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4662 {
4664 
4665  COPY_SCALAR_FIELD(kind);
4667  COPY_STRING_FIELD(conninfo);
4668  COPY_NODE_FIELD(publication);
4670 
4671  return newnode;
4672 }
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:573

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 3957 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3958 {
3960 
3961  COPY_NODE_FIELD(setstmt);
3962 
3963  return newnode;
3964 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3171 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3172 {
3173  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3174 
3175  COPY_SCALAR_FIELD(subtype);
3177  COPY_SCALAR_FIELD(num);
3178  COPY_NODE_FIELD(newowner);
3179  COPY_NODE_FIELD(def);
3180  COPY_SCALAR_FIELD(behavior);
3181  COPY_SCALAR_FIELD(missing_ok);
3182 
3183  return newnode;
3184 }
#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:573
const char * name
Definition: encode.c:521

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4063 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4064 {
4066 
4067  COPY_STRING_FIELD(orig_tablespacename);
4068  COPY_SCALAR_FIELD(objtype);
4069  COPY_NODE_FIELD(roles);
4070  COPY_STRING_FIELD(new_tablespacename);
4071  COPY_SCALAR_FIELD(nowait);
4072 
4073  return newnode;
4074 }
#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:573

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 4051 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4052 {
4054 
4055  COPY_STRING_FIELD(tablespacename);
4057  COPY_SCALAR_FIELD(isReset);
4058 
4059  return newnode;
4060 }
#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:573

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3158 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3159 {
3161 
3162  COPY_NODE_FIELD(relation);
3163  COPY_NODE_FIELD(cmds);
3165  COPY_SCALAR_FIELD(missing_ok);
3166 
3167  return newnode;
3168 }
char relkind
Definition: pg_class.h:81
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4509 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4510 {
4512 
4513  COPY_SCALAR_FIELD(kind);
4514  COPY_NODE_FIELD(cfgname);
4515  COPY_NODE_FIELD(tokentype);
4516  COPY_NODE_FIELD(dicts);
4517  COPY_SCALAR_FIELD(override);
4518  COPY_SCALAR_FIELD(replace);
4519  COPY_SCALAR_FIELD(missing_ok);
4520 
4521  return newnode;
4522 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4498 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4499 {
4501 
4502  COPY_NODE_FIELD(dictname);
4504 
4505  return newnode;
4506 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4178 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4179 {
4181 
4183  COPY_STRING_FIELD(servername);
4185 
4186  return newnode;
4187 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
static char * user
Definition: pg_regress.c:94

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 233 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

234 {
235  Append *newnode = makeNode(Append);
236 
237  /*
238  * copy node superclass fields
239  */
240  CopyPlanFields((const Plan *) from, (Plan *) newnode);
241 
242  /*
243  * copy remainder of node
244  */
245  COPY_BITMAPSET_FIELD(apprelids);
246  COPY_NODE_FIELD(appendplans);
247  COPY_SCALAR_FIELD(first_partial_plan);
248  COPY_NODE_FIELD(part_prune_info);
249 
250  return newnode;
251 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2324 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2325 {
2326  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2327 
2328  COPY_SCALAR_FIELD(parent_relid);
2329  COPY_SCALAR_FIELD(child_relid);
2330  COPY_SCALAR_FIELD(parent_reltype);
2331  COPY_SCALAR_FIELD(child_reltype);
2332  COPY_NODE_FIELD(translated_vars);
2333  COPY_SCALAR_FIELD(num_child_cols);
2334  COPY_POINTER_FIELD(parent_colnos, from->num_child_cols * sizeof(AttrNumber));
2335  COPY_SCALAR_FIELD(parent_reloid);
2336 
2337  return newnode;
2338 }
int num_child_cols
Definition: pathnodes.h:2225
#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:573
int16 AttrNumber
Definition: attnum.h:21

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1782 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1783 {
1785 
1787  COPY_NODE_FIELD(elemexpr);
1788  COPY_SCALAR_FIELD(resulttype);
1789  COPY_SCALAR_FIELD(resulttypmod);
1790  COPY_SCALAR_FIELD(resultcollid);
1791  COPY_SCALAR_FIELD(coerceformat);
1792  COPY_LOCATION_FIELD(location);
1793 
1794  return newnode;
1795 }
#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:573
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1880 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1881 {
1882  ArrayExpr *newnode = makeNode(ArrayExpr);
1883 
1884  COPY_SCALAR_FIELD(array_typeid);
1885  COPY_SCALAR_FIELD(array_collid);
1886  COPY_SCALAR_FIELD(element_typeid);
1887  COPY_NODE_FIELD(elements);
1888  COPY_SCALAR_FIELD(multidims);
1889  COPY_LOCATION_FIELD(location);
1890 
1891  return newnode;
1892 }
#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:573

◆ _copyAStar()

static A_Star* _copyAStar ( const A_Star from)
static

Definition at line 2658 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2659 {
2660  A_Star *newnode = makeNode(A_Star);
2661 
2662  return newnode;
2663 }
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 314 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 553 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 529 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 335 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

336 {
337  BitmapOr *newnode = makeNode(BitmapOr);
338 
339  /*
340  * copy node superclass fields
341  */
342  CopyPlanFields((const Plan *) from, (Plan *) newnode);
343 
344  /*
345  * copy remainder of node
346  */
347  COPY_SCALAR_FIELD(isshared);
348  COPY_NODE_FIELD(bitmapplans);
349 
350  return newnode;
351 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 2020 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2021 {
2022  BooleanTest *newnode = makeNode(BooleanTest);
2023 
2025  COPY_SCALAR_FIELD(booltesttype);
2026  COPY_LOCATION_FIELD(location);
2027 
2028  return newnode;
2029 }
#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:573
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1640 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1641 {
1642  BoolExpr *newnode = makeNode(BoolExpr);
1643 
1646  COPY_LOCATION_FIELD(location);
1647 
1648  return newnode;
1649 }
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:573

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3300 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3301 {
3302  CallStmt *newnode = makeNode(CallStmt);
3303 
3304  COPY_NODE_FIELD(funccall);
3305  COPY_NODE_FIELD(funcexpr);
3306 
3307  return newnode;
3308 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1832 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1833 {
1834  CaseExpr *newnode = makeNode(CaseExpr);
1835 
1836  COPY_SCALAR_FIELD(casetype);
1837  COPY_SCALAR_FIELD(casecollid);
1840  COPY_NODE_FIELD(defresult);
1841  COPY_LOCATION_FIELD(location);
1842 
1843  return newnode;
1844 }
#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:573
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1865 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1866 {
1867  CaseTestExpr *newnode = makeNode(CaseTestExpr);
1868 
1869  COPY_SCALAR_FIELD(typeId);
1870  COPY_SCALAR_FIELD(typeMod);
1871  COPY_SCALAR_FIELD(collation);
1872 
1873  return newnode;
1874 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1850 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1851 {
1852  CaseWhen *newnode = makeNode(CaseWhen);
1853 
1854  COPY_NODE_FIELD(expr);
1855  COPY_NODE_FIELD(result);
1856  COPY_LOCATION_FIELD(location);
1857 
1858  return newnode;
1859 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3290 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3291 {
3293 
3294  COPY_STRING_FIELD(portalname);
3295 
3296  return newnode;
3297 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3311 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3312 {
3313  ClusterStmt *newnode = makeNode(ClusterStmt);
3314 
3315  COPY_NODE_FIELD(relation);
3316  COPY_STRING_FIELD(indexname);
3318 
3319  return newnode;
3320 }
#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:573

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 1933 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1934 {
1935  CoalesceExpr *newnode = makeNode(CoalesceExpr);
1936 
1937  COPY_SCALAR_FIELD(coalescetype);
1938  COPY_SCALAR_FIELD(coalescecollid);
1940  COPY_LOCATION_FIELD(location);
1941 
1942  return newnode;
1943 }
#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:573

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 2035 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2036 {
2038 
2040  COPY_SCALAR_FIELD(resulttype);
2041  COPY_SCALAR_FIELD(resulttypmod);
2042  COPY_SCALAR_FIELD(resultcollid);
2043  COPY_SCALAR_FIELD(coercionformat);
2044  COPY_LOCATION_FIELD(location);
2045 
2046  return newnode;
2047 }
#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:573
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 2053 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2054 {
2056 
2057  COPY_SCALAR_FIELD(typeId);
2058  COPY_SCALAR_FIELD(typeMod);
2059  COPY_SCALAR_FIELD(collation);
2060  COPY_LOCATION_FIELD(location);
2061 
2062  return newnode;
2063 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1765 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1766 {
1767  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1768 
1770  COPY_SCALAR_FIELD(resulttype);
1771  COPY_SCALAR_FIELD(resultcollid);
1772  COPY_SCALAR_FIELD(coerceformat);
1773  COPY_LOCATION_FIELD(location);
1774 
1775  return newnode;
1776 }
#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:573
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2858 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2859 {
2860  CollateClause *newnode = makeNode(CollateClause);
2861 
2863  COPY_NODE_FIELD(collname);
2864  COPY_LOCATION_FIELD(location);
2865 
2866  return newnode;
2867 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:573
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1817 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1818 {
1819  CollateExpr *newnode = makeNode(CollateExpr);
1820 
1822  COPY_SCALAR_FIELD(collOid);
1823  COPY_LOCATION_FIELD(location);
1824 
1825  return newnode;
1826 }
#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:573
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 2886 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2887 {
2888  ColumnDef *newnode = makeNode(ColumnDef);
2889 
2890  COPY_STRING_FIELD(colname);
2891  COPY_NODE_FIELD(typeName);
2892  COPY_SCALAR_FIELD(inhcount);
2893  COPY_SCALAR_FIELD(is_local);
2894  COPY_SCALAR_FIELD(is_not_null);
2895  COPY_SCALAR_FIELD(is_from_type);
2896  COPY_SCALAR_FIELD(storage);
2897  COPY_NODE_FIELD(raw_default);
2898  COPY_NODE_FIELD(cooked_default);
2899  COPY_SCALAR_FIELD(identity);
2900  COPY_NODE_FIELD(identitySequence);
2901  COPY_SCALAR_FIELD(generated);
2902  COPY_NODE_FIELD(collClause);
2903  COPY_SCALAR_FIELD(collOid);
2904  COPY_NODE_FIELD(constraints);
2905  COPY_NODE_FIELD(fdwoptions);
2906  COPY_LOCATION_FIELD(location);
2907 
2908  return newnode;
2909 }
#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:573

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2586 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2587 {
2588  ColumnRef *newnode = makeNode(ColumnRef);
2589 
2590  COPY_NODE_FIELD(fields);
2591  COPY_LOCATION_FIELD(location);
2592 
2593  return newnode;
2594 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3426 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3427 {
3428  CommentStmt *newnode = makeNode(CommentStmt);
3429 
3430  COPY_SCALAR_FIELD(objtype);
3431  COPY_NODE_FIELD(object);
3432  COPY_STRING_FIELD(comment);
3433 
3434  return newnode;
3435 }
#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:573

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2552 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2553 {
2555 
2556  COPY_STRING_FIELD(ctename);
2557  COPY_NODE_FIELD(aliascolnames);
2558  COPY_SCALAR_FIELD(ctematerialized);
2559  COPY_NODE_FIELD(ctequery);
2560  COPY_LOCATION_FIELD(location);
2561  COPY_SCALAR_FIELD(cterecursive);
2562  COPY_SCALAR_FIELD(cterefcount);
2563  COPY_NODE_FIELD(ctecolnames);
2564  COPY_NODE_FIELD(ctecoltypes);
2565  COPY_NODE_FIELD(ctecoltypmods);
2566  COPY_NODE_FIELD(ctecolcollations);
2567 
2568  return newnode;
2569 }
#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:573

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3700 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3701 {
3703 
3704  COPY_NODE_FIELD(typevar);
3705  COPY_NODE_FIELD(coldeflist);
3706 
3707  return newnode;
3708 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

Definition at line 1381 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().

1382 {
1383  Const *newnode = makeNode(Const);
1384 
1385  COPY_SCALAR_FIELD(consttype);
1386  COPY_SCALAR_FIELD(consttypmod);
1387  COPY_SCALAR_FIELD(constcollid);
1388  COPY_SCALAR_FIELD(constlen);
1389 
1390  if (from->constbyval || from->constisnull)
1391  {
1392  /*
1393  * passed by value so just copy the datum. Also, don't try to copy
1394  * struct when value is null!
1395  */
1396  newnode->constvalue = from->constvalue;
1397  }
1398  else
1399  {
1400  /*
1401  * passed by reference. We need a palloc'd copy.
1402  */
1403  newnode->constvalue = datumCopy(from->constvalue,
1404  from->constbyval,
1405  from->constlen);
1406  }
1407 
1408  COPY_SCALAR_FIELD(constisnull);
1409  COPY_SCALAR_FIELD(constbyval);
1410  COPY_LOCATION_FIELD(location);
1411 
1412  return newnode;
1413 }
Datum constvalue
Definition: primnodes.h:214
bool constbyval
Definition: primnodes.h:217
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
int constlen
Definition: primnodes.h:213
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
Datum datumCopy(Datum value, bool typByVal, int typLen)
Definition: datum.c:130
#define makeNode(_type_)
Definition: nodes.h:573
bool constisnull
Definition: primnodes.h:215

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 2912 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2913 {
2914  Constraint *newnode = makeNode(Constraint);
2915 
2916  COPY_SCALAR_FIELD(contype);
2917  COPY_STRING_FIELD(conname);
2918  COPY_SCALAR_FIELD(deferrable);
2919  COPY_SCALAR_FIELD(initdeferred);
2920  COPY_LOCATION_FIELD(location);
2921  COPY_SCALAR_FIELD(is_no_inherit);
2922  COPY_NODE_FIELD(raw_expr);
2923  COPY_STRING_FIELD(cooked_expr);
2924  COPY_SCALAR_FIELD(generated_when);
2925  COPY_NODE_FIELD(keys);
2926  COPY_NODE_FIELD(including);
2927  COPY_NODE_FIELD(exclusions);
2929  COPY_STRING_FIELD(indexname);
2930  COPY_STRING_FIELD(indexspace);
2931  COPY_SCALAR_FIELD(reset_default_tblspc);
2932  COPY_STRING_FIELD(access_method);
2933  COPY_NODE_FIELD(where_clause);
2934  COPY_NODE_FIELD(pktable);
2935  COPY_NODE_FIELD(fk_attrs);
2936  COPY_NODE_FIELD(pk_attrs);
2937  COPY_SCALAR_FIELD(fk_matchtype);
2938  COPY_SCALAR_FIELD(fk_upd_action);
2939  COPY_SCALAR_FIELD(fk_del_action);
2940  COPY_NODE_FIELD(old_conpfeqop);
2941  COPY_SCALAR_FIELD(old_pktable_oid);
2942  COPY_SCALAR_FIELD(skip_validation);
2943  COPY_SCALAR_FIELD(initially_valid);
2944 
2945  return newnode;
2946 }
#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:573

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4377 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4378 {
4380 
4381  COPY_NODE_FIELD(constraints);
4382  COPY_SCALAR_FIELD(deferred);
4383 
4384  return newnode;
4385 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1801 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1802 {
1804 
1806  COPY_SCALAR_FIELD(resulttype);
1807  COPY_SCALAR_FIELD(convertformat);
1808  COPY_LOCATION_FIELD(location);
1809 
1810  return newnode;
1811 }
#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:573
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3323 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3324 {
3325  CopyStmt *newnode = makeNode(CopyStmt);
3326 
3327  COPY_NODE_FIELD(relation);
3328  COPY_NODE_FIELD(query);
3329  COPY_NODE_FIELD(attlist);
3330  COPY_SCALAR_FIELD(is_from);
3331  COPY_SCALAR_FIELD(is_program);
3334  COPY_NODE_FIELD(whereClause);
3335 
3336  return newnode;
3337 }
#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:573
static char * filename
Definition: pg_dumpall.c:90

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt 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 {
4246  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4247 
4248  COPY_STRING_FIELD(amname);
4249  COPY_NODE_FIELD(handler_name);
4250  COPY_SCALAR_FIELD(amtype);
4251 
4252  return newnode;
4253 }
#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:573

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4429 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4430 {
4432 
4433  COPY_NODE_FIELD(sourcetype);
4434  COPY_NODE_FIELD(targettype);
4435  COPY_NODE_FIELD(func);
4436  COPY_SCALAR_FIELD(context);
4437  COPY_SCALAR_FIELD(inout);
4438 
4439  return newnode;
4440 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4415 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4416 {
4418 
4419  COPY_NODE_FIELD(conversion_name);
4420  COPY_STRING_FIELD(for_encoding_name);
4421  COPY_STRING_FIELD(to_encoding_name);
4422  COPY_NODE_FIELD(func_name);
4423  COPY_SCALAR_FIELD(def);
4424 
4425  return newnode;
4426 }
#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:573

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 3840 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3841 {
3842  CreatedbStmt *newnode = makeNode(CreatedbStmt);
3843 
3846 
3847  return newnode;
3848 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c:50

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3773 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3774 {
3776 
3777  COPY_NODE_FIELD(domainname);
3778  COPY_NODE_FIELD(typeName);
3779  COPY_NODE_FIELD(collClause);
3780  COPY_NODE_FIELD(constraints);
3781 
3782  return newnode;
3783 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3711 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3712 {
3714 
3715  COPY_NODE_FIELD(typeName);
3716  COPY_NODE_FIELD(vals);
3717 
3718  return newnode;
3719 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4279 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4280 {
4282 
4283  COPY_STRING_FIELD(trigname);
4284  COPY_STRING_FIELD(eventname);
4285  COPY_NODE_FIELD(whenclause);
4286  COPY_NODE_FIELD(funcname);
4287 
4288  return newnode;
4289 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4077 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4078 {
4080 
4081  COPY_STRING_FIELD(extname);
4082  COPY_SCALAR_FIELD(if_not_exists);
4084 
4085  return newnode;
4086 }
#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:573

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4113 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4114 {
4115  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4116 
4117  COPY_STRING_FIELD(fdwname);
4118  COPY_NODE_FIELD(func_options);
4120 
4121  return newnode;
4122 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4137 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4138 {
4140 
4141  COPY_STRING_FIELD(servername);
4142  COPY_STRING_FIELD(servertype);
4143  COPY_STRING_FIELD(version);
4144  COPY_STRING_FIELD(fdwname);
4145  COPY_SCALAR_FIELD(if_not_exists);
4147 
4148  return newnode;
4149 }
#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:573

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4202 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4203 {
4205 
4206  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4207 
4208  COPY_STRING_FIELD(servername);
4210 
4211  return newnode;
4212 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3346
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3521 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3522 {
3524 
3525  COPY_SCALAR_FIELD(is_procedure);
3526  COPY_SCALAR_FIELD(replace);
3527  COPY_NODE_FIELD(funcname);
3528  COPY_NODE_FIELD(parameters);
3529  COPY_NODE_FIELD(returnType);
3531 
3532  return newnode;
3533 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3801 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3802 {
3804 
3805  COPY_SCALAR_FIELD(itemtype);
3807  COPY_SCALAR_FIELD(number);
3808  COPY_NODE_FIELD(order_family);
3809  COPY_NODE_FIELD(class_args);
3810  COPY_NODE_FIELD(storedtype);
3811 
3812  return newnode;
3813 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3786 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3787 {
3789 
3790  COPY_NODE_FIELD(opclassname);
3791  COPY_NODE_FIELD(opfamilyname);
3792  COPY_STRING_FIELD(amname);
3793  COPY_NODE_FIELD(datatype);
3794  COPY_NODE_FIELD(items);
3795  COPY_SCALAR_FIELD(isDefault);
3796 
3797  return newnode;
3798 }
#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:573

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3816 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3817 {
3819 
3820  COPY_NODE_FIELD(opfamilyname);
3821  COPY_STRING_FIELD(amname);
3822 
3823  return newnode;
3824 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4303 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4304 {
4306 
4307  COPY_SCALAR_FIELD(replace);
4308  COPY_STRING_FIELD(plname);
4309  COPY_NODE_FIELD(plhandler);
4310  COPY_NODE_FIELD(plinline);
4311  COPY_NODE_FIELD(plvalidator);
4312  COPY_SCALAR_FIELD(pltrusted);
4313 
4314  return newnode;
4315 }
#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:573

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4525 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4526 {
4528 
4529  COPY_STRING_FIELD(policy_name);
4530  COPY_NODE_FIELD(table);
4531  COPY_STRING_FIELD(cmd_name);
4532  COPY_SCALAR_FIELD(permissive);
4533  COPY_NODE_FIELD(roles);
4534  COPY_NODE_FIELD(qual);
4535  COPY_NODE_FIELD(with_check);
4536 
4537  return newnode;
4538 }
#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:573

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4621 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4622 {
4624 
4625  COPY_STRING_FIELD(pubname);
4627  COPY_NODE_FIELD(tables);
4628  COPY_SCALAR_FIELD(for_all_tables);
4629 
4630  return newnode;
4631 }
#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:573

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3722 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3723 {
3725 
3726  COPY_NODE_FIELD(typeName);
3727  COPY_NODE_FIELD(params);
3728 
3729  return newnode;
3730 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt 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_SCALAR_FIELD(stmt_type);
4323  COPY_STRING_FIELD(role);
4325 
4326  return newnode;
4327 }
#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:573

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4402 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4403 {
4405 
4406  COPY_STRING_FIELD(schemaname);
4407  COPY_NODE_FIELD(authrole);
4408  COPY_NODE_FIELD(schemaElts);
4409  COPY_SCALAR_FIELD(if_not_exists);
4410 
4411  return newnode;
4412 }
#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:573

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 3967 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3968 {
3969  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
3970 
3971  COPY_NODE_FIELD(sequence);
3973  COPY_SCALAR_FIELD(ownerId);
3974  COPY_SCALAR_FIELD(for_identity);
3975  COPY_SCALAR_FIELD(if_not_exists);
3976 
3977  return newnode;
3978 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3494 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3495 {
3497 
3498  COPY_NODE_FIELD(defnames);
3499  COPY_NODE_FIELD(stat_types);
3500  COPY_NODE_FIELD(exprs);
3501  COPY_NODE_FIELD(relations);
3502  COPY_STRING_FIELD(stxcomment);
3503  COPY_SCALAR_FIELD(if_not_exists);
3504 
3505  return newnode;
3506 }
#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:573

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3363 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3364 {
3365  CreateStmt *newnode = makeNode(CreateStmt);
3366 
3367  CopyCreateStmtFields(from, newnode);
3368 
3369  return newnode;
3370 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3346
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4648 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4649 {
4651 
4653  COPY_STRING_FIELD(conninfo);
4654  COPY_NODE_FIELD(publication);
4656 
4657  return newnode;
4658 }
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:573

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 3920 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3921 {
3923 
3924  COPY_NODE_FIELD(query);
3925  COPY_NODE_FIELD(into);
3927  COPY_SCALAR_FIELD(is_select_into);
3928  COPY_SCALAR_FIELD(if_not_exists);
3929 
3930  return newnode;
3931 }
char relkind
Definition: pg_class.h:81
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4027 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4028 {
4030 
4031  COPY_STRING_FIELD(tablespacename);
4032  COPY_NODE_FIELD(owner);
4033  COPY_STRING_FIELD(location);
4035 
4036  return newnode;
4037 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4230 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4231 {
4233 
4234  COPY_SCALAR_FIELD(replace);
4235  COPY_NODE_FIELD(type_name);
4236  COPY_STRING_FIELD(lang);
4237  COPY_NODE_FIELD(fromsql);
4238  COPY_NODE_FIELD(tosql);
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:573

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4256 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4257 {
4259 
4260  COPY_STRING_FIELD(trigname);
4261  COPY_NODE_FIELD(relation);
4262  COPY_NODE_FIELD(funcname);
4264  COPY_SCALAR_FIELD(row);
4265  COPY_SCALAR_FIELD(timing);
4266  COPY_SCALAR_FIELD(events);
4267  COPY_NODE_FIELD(columns);
4268  COPY_NODE_FIELD(whenClause);
4269  COPY_SCALAR_FIELD(isconstraint);
4270  COPY_NODE_FIELD(transitionRels);
4271  COPY_SCALAR_FIELD(deferrable);
4272  COPY_SCALAR_FIELD(initdeferred);
4273  COPY_NODE_FIELD(constrrel);
4274 
4275  return newnode;
4276 }
#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:573

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4165 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4166 {
4168 
4170  COPY_STRING_FIELD(servername);
4171  COPY_SCALAR_FIELD(if_not_exists);
4173 
4174  return newnode;
4175 }
#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:573
static char * user
Definition: pg_regress.c:94

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 680 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

681 {
682  CteScan *newnode = makeNode(CteScan);
683 
684  /*
685  * copy node superclass fields
686  */
687  CopyScanFields((const Scan *) from, (Scan *) newnode);
688 
689  /*
690  * copy remainder of node
691  */
692  COPY_SCALAR_FIELD(ctePlanId);
693  COPY_SCALAR_FIELD(cteParam);
694 
695  return newnode;
696 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:413
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2085 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2086 {
2087  CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
2088 
2089  COPY_SCALAR_FIELD(cvarno);
2090  COPY_STRING_FIELD(cursor_name);
2091  COPY_SCALAR_FIELD(cursor_param);
2092 
2093  return newnode;
2094 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 772 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

773 {
774  CustomScan *newnode = makeNode(CustomScan);
775 
776  /*
777  * copy node superclass fields
778  */
779  CopyScanFields((const Scan *) from, (Scan *) newnode);
780 
781  /*
782  * copy remainder of node
783  */
784  COPY_SCALAR_FIELD(flags);
785  COPY_NODE_FIELD(custom_plans);
786  COPY_NODE_FIELD(custom_exprs);
787  COPY_NODE_FIELD(custom_private);
788  COPY_NODE_FIELD(custom_scan_tlist);
789  COPY_BITMAPSET_FIELD(custom_relids);
790 
791  /*
792  * NOTE: The method field of CustomScan is required to be a pointer to a
793  * static table of callback functions. So we don't copy the table itself,
794  * just reference the original one.
795  */
796  COPY_SCALAR_FIELD(methods);
797 
798  return newnode;
799 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:413
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4466 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4467 {
4469 
4471 
4472  return newnode;
4473 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3278 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3279 {
3281 
3282  COPY_STRING_FIELD(portalname);
3284  COPY_NODE_FIELD(query);
3285 
3286  return newnode;
3287 }
#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:573

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 2949 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2950 {
2951  DefElem *newnode = makeNode(DefElem);
2952 
2953  COPY_STRING_FIELD(defnamespace);
2954  COPY_STRING_FIELD(defname);
2956  COPY_SCALAR_FIELD(defaction);
2957  COPY_LOCATION_FIELD(location);
2958 
2959  return newnode;
2960 }
#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:573
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3384 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3385 {
3386  DefineStmt *newnode = makeNode(DefineStmt);
3387 
3388  COPY_SCALAR_FIELD(kind);
3389  COPY_SCALAR_FIELD(oldstyle);
3390  COPY_NODE_FIELD(defnames);
3392  COPY_NODE_FIELD(definition);
3393  COPY_SCALAR_FIELD(if_not_exists);
3394  COPY_SCALAR_FIELD(replace);
3395 
3396  return newnode;
3397 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3085 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3086 {
3087  DeleteStmt *newnode = makeNode(DeleteStmt);
3088 
3089  COPY_NODE_FIELD(relation);
3090  COPY_NODE_FIELD(usingClause);
3091  COPY_NODE_FIELD(whereClause);
3092  COPY_NODE_FIELD(returningList);
3093  COPY_NODE_FIELD(withClause);
3094 
3095  return newnode;
3096 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 4017 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4018 {
4019  DiscardStmt *newnode = makeNode(DiscardStmt);
4020 
4021  COPY_SCALAR_FIELD(target);
4022 
4023  return newnode;
4024 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1582 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1583 {
1584  DistinctExpr *newnode = makeNode(DistinctExpr);
1585 
1586  COPY_SCALAR_FIELD(opno);
1587  COPY_SCALAR_FIELD(opfuncid);
1588  COPY_SCALAR_FIELD(opresulttype);
1589  COPY_SCALAR_FIELD(opretset);
1590  COPY_SCALAR_FIELD(opcollid);
1591  COPY_SCALAR_FIELD(inputcollid);
1593  COPY_LOCATION_FIELD(location);
1594 
1595  return newnode;
1596 }
#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:573

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3561 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3562 {
3563  DoStmt *newnode = makeNode(DoStmt);
3564 
3566 
3567  return newnode;
3568 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 3873 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3874 {
3875  DropdbStmt *newnode = makeNode(DropdbStmt);
3876 
3878  COPY_SCALAR_FIELD(missing_ok);
3880 
3881  return newnode;
3882 }
#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:573
char * dbname
Definition: streamutil.c:50

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4476 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4477 {
4478  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4479 
4480  COPY_NODE_FIELD(roles);
4481  COPY_SCALAR_FIELD(behavior);
4482 
4483  return newnode;
4484 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4354 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4355 {
4356  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4357 
4358  COPY_NODE_FIELD(roles);
4359  COPY_SCALAR_FIELD(missing_ok);
4360 
4361  return newnode;
4362 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3400 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3401 {
3402  DropStmt *newnode = makeNode(DropStmt);
3403 
3404  COPY_NODE_FIELD(objects);
3405  COPY_SCALAR_FIELD(removeType);
3406  COPY_SCALAR_FIELD(behavior);
3407  COPY_SCALAR_FIELD(missing_ok);
3408  COPY_SCALAR_FIELD(concurrent);
3409 
3410  return newnode;
3411 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4675 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4676 {
4678 
4680  COPY_SCALAR_FIELD(missing_ok);
4681  COPY_SCALAR_FIELD(behavior);
4682 
4683  return newnode;
4684 }
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:573

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4040 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4041 {
4043 
4044  COPY_STRING_FIELD(tablespacename);
4045  COPY_SCALAR_FIELD(missing_ok);
4046 
4047  return newnode;
4048 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4190 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4191 {
4193 
4195  COPY_STRING_FIELD(servername);
4196  COPY_SCALAR_FIELD(missing_ok);
4197 
4198  return newnode;
4199 }
#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:573
static char * user
Definition: pg_regress.c:94

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4455 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4456 {
4457  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4458 
4460  COPY_NODE_FIELD(params);
4461 
4462  return newnode;
4463 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 3909 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3910 {
3911  ExplainStmt *newnode = makeNode(ExplainStmt);
3912 
3913  COPY_NODE_FIELD(query);
3915 
3916  return newnode;
3917 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4691 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4692 {
4693  ExtensibleNode *newnode;
4694  const ExtensibleNodeMethods *methods;
4695 
4696  methods = GetExtensibleNodeMethods(from->extnodename, false);
4697  newnode = (ExtensibleNode *) newNode(methods->node_size,
4699  COPY_STRING_FIELD(extnodename);
4700 
4701  /* copy the private fields */
4702  methods->nodeCopy(newnode, from);
4703 
4704  return newnode;
4705 }
#define newNode(size, tag)
Definition: nodes.h:563
#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 3451 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3452 {
3453  FetchStmt *newnode = makeNode(FetchStmt);
3454 
3455  COPY_SCALAR_FIELD(direction);
3456  COPY_SCALAR_FIELD(howMany);
3457  COPY_STRING_FIELD(portalname);
3458  COPY_SCALAR_FIELD(ismove);
3459 
3460  return newnode;
3461 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1714 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1715 {
1716  FieldSelect *newnode = makeNode(FieldSelect);
1717 
1719  COPY_SCALAR_FIELD(fieldnum);
1720  COPY_SCALAR_FIELD(resulttype);
1721  COPY_SCALAR_FIELD(resulttypmod);
1722  COPY_SCALAR_FIELD(resultcollid);
1723 
1724  return newnode;
1725 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1731 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1732 {
1733  FieldStore *newnode = makeNode(FieldStore);
1734 
1736  COPY_NODE_FIELD(newvals);
1737  COPY_NODE_FIELD(fieldnums);
1738  COPY_SCALAR_FIELD(resulttype);
1739 
1740  return newnode;
1741 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4742 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4743 {
4745 
4746  COPY_SCALAR_FIELD(conoid);
4747  COPY_SCALAR_FIELD(conrelid);
4748  COPY_SCALAR_FIELD(confrelid);
4749  COPY_SCALAR_FIELD(nkeys);
4750  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4751  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4752  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4753  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4754 
4755  return newnode;
4756 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:236
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:573
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:238
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:237

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 744 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

745 {
746  ForeignScan *newnode = makeNode(ForeignScan);
747 
748  /*
749  * copy node superclass fields
750  */
751  CopyScanFields((const Scan *) from, (Scan *) newnode);
752 
753  /*
754  * copy remainder of node
755  */
756  COPY_SCALAR_FIELD(operation);
757  COPY_SCALAR_FIELD(fs_server);
758  COPY_NODE_FIELD(fdw_exprs);
759  COPY_NODE_FIELD(fdw_private);
760  COPY_NODE_FIELD(fdw_scan_tlist);
761  COPY_NODE_FIELD(fdw_recheck_quals);
762  COPY_BITMAPSET_FIELD(fs_relids);
763  COPY_SCALAR_FIELD(fsSystemCol);
764 
765  return newnode;
766 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:413
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2181 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2182 {
2183  FromExpr *newnode = makeNode(FromExpr);
2184 
2185  COPY_NODE_FIELD(fromlist);
2186  COPY_NODE_FIELD(quals);
2187 
2188  return newnode;
2189 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2639 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2640 {
2641  FuncCall *newnode = makeNode(FuncCall);
2642 
2643  COPY_NODE_FIELD(funcname);
2645  COPY_NODE_FIELD(agg_order);
2646  COPY_NODE_FIELD(agg_filter);
2647  COPY_SCALAR_FIELD(agg_within_group);
2648  COPY_SCALAR_FIELD(agg_star);
2649  COPY_SCALAR_FIELD(agg_distinct);
2650  COPY_SCALAR_FIELD(func_variadic);
2651  COPY_NODE_FIELD(over);
2652  COPY_LOCATION_FIELD(location);
2653 
2654  return newnode;
2655 }
#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:573

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr 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  FuncExpr *newnode = makeNode(FuncExpr);
1528 
1529  COPY_SCALAR_FIELD(funcid);
1530  COPY_SCALAR_FIELD(funcresulttype);
1531  COPY_SCALAR_FIELD(funcretset);
1532  COPY_SCALAR_FIELD(funcvariadic);
1533  COPY_SCALAR_FIELD(funcformat);
1534  COPY_SCALAR_FIELD(funccollid);
1535  COPY_SCALAR_FIELD(inputcollid);
1537  COPY_LOCATION_FIELD(location);
1538 
1539  return newnode;
1540 }
#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:573

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3536 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3537 {
3539 
3541  COPY_NODE_FIELD(argType);
3543  COPY_NODE_FIELD(defexpr);
3544 
3545  return newnode;
3546 }
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:573
const char * name
Definition: encode.c:521

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 616 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

617 {
618  FunctionScan *newnode = makeNode(FunctionScan);
619 
620  /*
621  * copy node superclass fields
622  */
623  CopyScanFields((const Scan *) from, (Scan *) newnode);
624 
625  /*
626  * copy remainder of node
627  */
629  COPY_SCALAR_FIELD(funcordinality);
630 
631  return newnode;
632 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:413
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573
static const struct fns functions
Definition: regcomp.c:298

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 357 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

358 {
359  Gather *newnode = makeNode(Gather);
360 
361  /*
362  * copy node superclass fields
363  */
364  CopyPlanFields((const Plan *) from, (Plan *) newnode);
365 
366  /*
367  * copy remainder of node
368  */
369  COPY_SCALAR_FIELD(num_workers);
370  COPY_SCALAR_FIELD(rescan_param);
371  COPY_SCALAR_FIELD(single_copy);
372  COPY_SCALAR_FIELD(invisible);
373  COPY_BITMAPSET_FIELD(initParam);
374 
375  return newnode;
376 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 382 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

383 {
384  GatherMerge *newnode = makeNode(GatherMerge);
385 
386  /*
387  * copy node superclass fields
388  */
389  CopyPlanFields((const Plan *) from, (Plan *) newnode);
390 
391  /*
392  * copy remainder of node
393  */
394  COPY_SCALAR_FIELD(num_workers);
395  COPY_SCALAR_FIELD(rescan_param);
396  COPY_SCALAR_FIELD(numCols);
397  COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
398  COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
399  COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
400  COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
401  COPY_BITMAPSET_FIELD(initParam);
402 
403  return newnode;
404 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3252 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, grantor, and makeNode.

Referenced by copyObjectImpl().

3253 {
3254  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3255 
3256  COPY_NODE_FIELD(granted_roles);
3257  COPY_NODE_FIELD(grantee_roles);
3258  COPY_SCALAR_FIELD(is_grant);
3259  COPY_SCALAR_FIELD(admin_opt);
3261  COPY_SCALAR_FIELD(behavior);
3262 
3263  return newnode;
3264 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
Oid grantor
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3212 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3213 {
3214  GrantStmt *newnode = makeNode(GrantStmt);
3215 
3216  COPY_SCALAR_FIELD(is_grant);
3217  COPY_SCALAR_FIELD(targtype);
3218  COPY_SCALAR_FIELD(objtype);
3219  COPY_NODE_FIELD(objects);
3220  COPY_NODE_FIELD(privileges);
3221  COPY_NODE_FIELD(grantees);
3222  COPY_SCALAR_FIELD(grant_option);
3223  COPY_SCALAR_FIELD(behavior);
3224 
3225  return newnode;
3226 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 957 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

958 {
959  Group *newnode = makeNode(Group);
960 
961  CopyPlanFields((const Plan *) from, (Plan *) newnode);
962 
963  COPY_SCALAR_FIELD(numCols);
964  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
965  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
966  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
967 
968  return newnode;
969 }
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:116
#define makeNode(_type_)
Definition: nodes.h:573
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1466 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1467 {
1468  GroupingFunc *newnode = makeNode(GroupingFunc);
1469 
1471  COPY_NODE_FIELD(refs);
1472  COPY_NODE_FIELD(cols);
1473  COPY_SCALAR_FIELD(agglevelsup);
1474  COPY_LOCATION_FIELD(location);
1475 
1476  return newnode;
1477 }
#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:573

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2465 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2466 {
2467  GroupingSet *newnode = makeNode(GroupingSet);
2468 
2469  COPY_SCALAR_FIELD(kind);
2470  COPY_NODE_FIELD(content);
2471  COPY_LOCATION_FIELD(location);
2472 
2473  return newnode;
2474 }
#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:573

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1063 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1064 {
1065  Hash *newnode = makeNode(Hash);
1066 
1067  /*
1068  * copy node superclass fields
1069  */
1070  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1071 
1072  /*
1073  * copy remainder of node
1074  */
1075  COPY_NODE_FIELD(hashkeys);
1076  COPY_SCALAR_FIELD(skewTable);
1077  COPY_SCALAR_FIELD(skewColumn);
1078  COPY_SCALAR_FIELD(skewInherit);
1079  COPY_SCALAR_FIELD(rows_total);
1080 
1081  return newnode;
1082 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 892 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

893 {
894  HashJoin *newnode = makeNode(HashJoin);
895 
896  /*
897  * copy node superclass fields
898  */
899  CopyJoinFields((const Join *) from, (Join *) newnode);
900 
901  /*
902  * copy remainder of node
903  */
904  COPY_NODE_FIELD(hashclauses);
905  COPY_NODE_FIELD(hashoperators);
906  COPY_NODE_FIELD(hashcollations);
907  COPY_NODE_FIELD(hashkeys);
908 
909  return newnode;
910 }
static void CopyJoinFields(const Join *from, Join *newnode)
Definition: copyfuncs.c:808
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4215 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4216 {
4218 
4219  COPY_STRING_FIELD(server_name);
4220  COPY_STRING_FIELD(remote_schema);
4221  COPY_STRING_FIELD(local_schema);
4222  COPY_SCALAR_FIELD(list_type);
4223  COPY_NODE_FIELD(table_list);
4225 
4226  return newnode;
4227 }
#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:573

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 2870 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2871 {
2872  IndexElem *newnode = makeNode(IndexElem);
2873 
2875  COPY_NODE_FIELD(expr);
2876  COPY_STRING_FIELD(indexcolname);
2877  COPY_NODE_FIELD(collation);
2878  COPY_NODE_FIELD(opclass);
2879  COPY_SCALAR_FIELD(ordering);
2880  COPY_SCALAR_FIELD(nulls_ordering);
2881 
2882  return newnode;
2883 }
#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:573
const char * name
Definition: encode.c:521

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 504 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 477 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3464 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3465 {
3466  IndexStmt *newnode = makeNode(IndexStmt);
3467 
3468  COPY_STRING_FIELD(idxname);
3469  COPY_NODE_FIELD(relation);
3470  COPY_STRING_FIELD(accessMethod);
3471  COPY_STRING_FIELD(tableSpace);
3472  COPY_NODE_FIELD(indexParams);
3473  COPY_NODE_FIELD(indexIncludingParams);
3475  COPY_NODE_FIELD(whereClause);
3476  COPY_NODE_FIELD(excludeOpNames);
3477  COPY_STRING_FIELD(idxcomment);
3478  COPY_SCALAR_FIELD(indexOid);
3479  COPY_SCALAR_FIELD(oldNode);
3480  COPY_SCALAR_FIELD(unique);
3481  COPY_SCALAR_FIELD(primary);
3482  COPY_SCALAR_FIELD(isconstraint);
3483  COPY_SCALAR_FIELD(deferrable);
3484  COPY_SCALAR_FIELD(initdeferred);
3485  COPY_SCALAR_FIELD(transformed);
3486  COPY_SCALAR_FIELD(concurrent);
3487  COPY_SCALAR_FIELD(if_not_exists);
3488  COPY_SCALAR_FIELD(reset_default_tblspc);
3489 
3490  return newnode;
3491 }
#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:573

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2525 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2526 {
2527  InferClause *newnode = makeNode(InferClause);
2528 
2529  COPY_NODE_FIELD(indexElems);
2530  COPY_NODE_FIELD(whereClause);
2531  COPY_STRING_FIELD(conname);
2532  COPY_LOCATION_FIELD(location);
2533 
2534  return newnode;
2535 }
#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:573

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2114 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2115 {
2116  InferenceElem *newnode = makeNode(InferenceElem);
2117 
2118  COPY_NODE_FIELD(expr);
2119  COPY_SCALAR_FIELD(infercollid);
2120  COPY_SCALAR_FIELD(inferopclass);
2121 
2122  return newnode;
2123 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3069 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3070 {
3071  InsertStmt *newnode = makeNode(InsertStmt);
3072 
3073  COPY_NODE_FIELD(relation);
3074  COPY_NODE_FIELD(cols);
3075  COPY_NODE_FIELD(selectStmt);
3076  COPY_NODE_FIELD(onConflictClause);
3077  COPY_NODE_FIELD(returningList);
3078  COPY_NODE_FIELD(withClause);
3079  COPY_SCALAR_FIELD(override);
3080 
3081  return newnode;
3082 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1333 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1334 {
1335  IntoClause *newnode = makeNode(IntoClause);
1336 
1337  COPY_NODE_FIELD(rel);
1338  COPY_NODE_FIELD(colNames);
1339  COPY_STRING_FIELD(accessMethod);
1341  COPY_SCALAR_FIELD(onCommit);
1342  COPY_STRING_FIELD(tableSpaceName);
1343  COPY_NODE_FIELD(viewQuery);
1344  COPY_SCALAR_FIELD(skipData);
1345 
1346  return newnode;
1347 }
#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:573

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 822 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

823 {
824  Join *newnode = makeNode(Join);
825 
826  /*
827  * copy node superclass fields
828  */
829  CopyJoinFields(from, newnode);
830 
831  return newnode;
832 }
static void CopyJoinFields(const Join *from, Join *newnode)
Definition: copyfuncs.c:808
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2161 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2162 {
2163  JoinExpr *newnode = makeNode(JoinExpr);
2164 
2165  COPY_SCALAR_FIELD(jointype);
2166  COPY_SCALAR_FIELD(isNatural);
2167  COPY_NODE_FIELD(larg);
2168  COPY_NODE_FIELD(rarg);
2169  COPY_NODE_FIELD(usingClause);
2170  COPY_NODE_FIELD(quals);
2171  COPY_NODE_FIELD(alias);
2172  COPY_SCALAR_FIELD(rtindex);
2173 
2174  return newnode;
2175 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1139 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1140 {
1141  Limit *newnode = makeNode(Limit);
1142 
1143  /*
1144  * copy node superclass fields
1145  */
1146  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1147 
1148  /*
1149  * copy remainder of node
1150  */
1151  COPY_NODE_FIELD(limitOffset);
1152  COPY_NODE_FIELD(limitCount);
1153 
1154  return newnode;
1155 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyListenStmt()

static ListenStmt* _copyListenStmt ( const ListenStmt from)
static

Definition at line 3666 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3667 {
3668  ListenStmt *newnode = makeNode(ListenStmt);
3669 
3670  COPY_STRING_FIELD(conditionname);
3671 
3672  return newnode;
3673 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyLoadStmt()

static LoadStmt* _copyLoadStmt ( const LoadStmt from)
static

Definition at line 3763 of file copyfuncs.c.

References COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3764 {
3765  LoadStmt *newnode = makeNode(LoadStmt);
3766 
3768 
3769  return newnode;
3770 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
static char * filename
Definition: pg_dumpall.c:90

◆ _copyLockingClause()

static LockingClause* _copyLockingClause ( const LockingClause from)
static

Definition at line 2963 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2964 {
2965  LockingClause *newnode = makeNode(LockingClause);
2966 
2967  COPY_NODE_FIELD(lockedRels);
2968  COPY_SCALAR_FIELD(strength);
2969  COPY_SCALAR_FIELD(waitPolicy);
2970 
2971  return newnode;
2972 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyLockRows()

static LockRows* _copyLockRows ( const LockRows from)
static

Definition at line 1117 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1118 {
1119  LockRows *newnode = makeNode(LockRows);
1120 
1121  /*
1122  * copy node superclass fields
1123  */
1124  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1125 
1126  /*
1127  * copy remainder of node
1128  */
1129  COPY_NODE_FIELD(rowMarks);
1130  COPY_SCALAR_FIELD(epqParam);
1131 
1132  return newnode;
1133 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyLockStmt()

static LockStmt* _copyLockStmt ( const LockStmt from)
static

Definition at line 4365 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and mode.

Referenced by copyObjectImpl().

4366 {
4367  LockStmt *newnode = makeNode(LockStmt);
4368 
4369  COPY_NODE_FIELD(relations);
4371  COPY_SCALAR_FIELD(nowait);
4372 
4373  return newnode;
4374 }
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 makeNode(_type_)
Definition: nodes.h:573

◆ _copyMaterial()

static Material* _copyMaterial ( const Material from)
static

Definition at line 917 of file copyfuncs.c.

References CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

918 {
919  Material *newnode = makeNode(Material);
920 
921  /*
922  * copy node superclass fields
923  */
924  CopyPlanFields((const Plan *) from, (Plan *) newnode);
925 
926  return newnode;
927 }
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:116
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyMergeAppend()

static MergeAppend* _copyMergeAppend ( const MergeAppend from)
static

Definition at line 257 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

258 {
259  MergeAppend *newnode = makeNode(MergeAppend);
260 
261  /*
262  * copy node superclass fields
263  */
264  CopyPlanFields((const Plan *) from, (Plan *) newnode);
265 
266  /*
267  * copy remainder of node
268  */
269  COPY_BITMAPSET_FIELD(apprelids);
270  COPY_NODE_FIELD(mergeplans);
271  COPY_SCALAR_FIELD(numCols);
272  COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
273  COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(