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 void CopySortFields (const Sort *from, Sort *newnode)
 
static Sort_copySort (const Sort *from)
 
static IncrementalSort_copyIncrementalSort (const IncrementalSort *from)
 
static Group_copyGroup (const Group *from)
 
static Agg_copyAgg (const Agg *from)
 
static WindowAgg_copyWindowAgg (const WindowAgg *from)
 
static Unique_copyUnique (const Unique *from)
 
static Hash_copyHash (const Hash *from)
 
static SetOp_copySetOp (const SetOp *from)
 
static LockRows_copyLockRows (const LockRows *from)
 
static Limit_copyLimit (const Limit *from)
 
static NestLoopParam_copyNestLoopParam (const NestLoopParam *from)
 
static PlanRowMark_copyPlanRowMark (const PlanRowMark *from)
 
static PartitionPruneInfo_copyPartitionPruneInfo (const PartitionPruneInfo *from)
 
static PartitionedRelPruneInfo_copyPartitionedRelPruneInfo (const PartitionedRelPruneInfo *from)
 
static PartitionPruneStepOp_copyPartitionPruneStepOp (const PartitionPruneStepOp *from)
 
static PartitionPruneStepCombine_copyPartitionPruneStepCombine (const PartitionPruneStepCombine *from)
 
static PlanInvalItem_copyPlanInvalItem (const PlanInvalItem *from)
 
static Alias_copyAlias (const Alias *from)
 
static RangeVar_copyRangeVar (const RangeVar *from)
 
static TableFunc_copyTableFunc (const TableFunc *from)
 
static IntoClause_copyIntoClause (const IntoClause *from)
 
static Var_copyVar (const Var *from)
 
static Const_copyConst (const Const *from)
 
static Param_copyParam (const Param *from)
 
static Aggref_copyAggref (const Aggref *from)
 
static GroupingFunc_copyGroupingFunc (const GroupingFunc *from)
 
static WindowFunc_copyWindowFunc (const WindowFunc *from)
 
static SubscriptingRef_copySubscriptingRef (const SubscriptingRef *from)
 
static FuncExpr_copyFuncExpr (const FuncExpr *from)
 
static NamedArgExpr_copyNamedArgExpr (const NamedArgExpr *from)
 
static OpExpr_copyOpExpr (const OpExpr *from)
 
static DistinctExpr_copyDistinctExpr (const DistinctExpr *from)
 
static NullIfExpr_copyNullIfExpr (const NullIfExpr *from)
 
static ScalarArrayOpExpr_copyScalarArrayOpExpr (const ScalarArrayOpExpr *from)
 
static BoolExpr_copyBoolExpr (const BoolExpr *from)
 
static SubLink_copySubLink (const SubLink *from)
 
static SubPlan_copySubPlan (const SubPlan *from)
 
static AlternativeSubPlan_copyAlternativeSubPlan (const AlternativeSubPlan *from)
 
static FieldSelect_copyFieldSelect (const FieldSelect *from)
 
static FieldStore_copyFieldStore (const FieldStore *from)
 
static RelabelType_copyRelabelType (const RelabelType *from)
 
static CoerceViaIO_copyCoerceViaIO (const CoerceViaIO *from)
 
static ArrayCoerceExpr_copyArrayCoerceExpr (const ArrayCoerceExpr *from)
 
static ConvertRowtypeExpr_copyConvertRowtypeExpr (const ConvertRowtypeExpr *from)
 
static CollateExpr_copyCollateExpr (const CollateExpr *from)
 
static CaseExpr_copyCaseExpr (const CaseExpr *from)
 
static CaseWhen_copyCaseWhen (const CaseWhen *from)
 
static CaseTestExpr_copyCaseTestExpr (const CaseTestExpr *from)
 
static ArrayExpr_copyArrayExpr (const ArrayExpr *from)
 
static RowExpr_copyRowExpr (const RowExpr *from)
 
static RowCompareExpr_copyRowCompareExpr (const RowCompareExpr *from)
 
static CoalesceExpr_copyCoalesceExpr (const CoalesceExpr *from)
 
static MinMaxExpr_copyMinMaxExpr (const MinMaxExpr *from)
 
static SQLValueFunction_copySQLValueFunction (const SQLValueFunction *from)
 
static XmlExpr_copyXmlExpr (const XmlExpr *from)
 
static NullTest_copyNullTest (const NullTest *from)
 
static BooleanTest_copyBooleanTest (const BooleanTest *from)
 
static CoerceToDomain_copyCoerceToDomain (const CoerceToDomain *from)
 
static CoerceToDomainValue_copyCoerceToDomainValue (const CoerceToDomainValue *from)
 
static SetToDefault_copySetToDefault (const SetToDefault *from)
 
static CurrentOfExpr_copyCurrentOfExpr (const CurrentOfExpr *from)
 
static NextValueExpr_copyNextValueExpr (const NextValueExpr *from)
 
static InferenceElem_copyInferenceElem (const InferenceElem *from)
 
static TargetEntry_copyTargetEntry (const TargetEntry *from)
 
static RangeTblRef_copyRangeTblRef (const RangeTblRef *from)
 
static JoinExpr_copyJoinExpr (const JoinExpr *from)
 
static FromExpr_copyFromExpr (const FromExpr *from)
 
static OnConflictExpr_copyOnConflictExpr (const OnConflictExpr *from)
 
static PathKey_copyPathKey (const PathKey *from)
 
static RestrictInfo_copyRestrictInfo (const RestrictInfo *from)
 
static PlaceHolderVar_copyPlaceHolderVar (const PlaceHolderVar *from)
 
static SpecialJoinInfo_copySpecialJoinInfo (const SpecialJoinInfo *from)
 
static AppendRelInfo_copyAppendRelInfo (const AppendRelInfo *from)
 
static PlaceHolderInfo_copyPlaceHolderInfo (const PlaceHolderInfo *from)
 
static RangeTblEntry_copyRangeTblEntry (const RangeTblEntry *from)
 
static RangeTblFunction_copyRangeTblFunction (const RangeTblFunction *from)
 
static TableSampleClause_copyTableSampleClause (const TableSampleClause *from)
 
static WithCheckOption_copyWithCheckOption (const WithCheckOption *from)
 
static SortGroupClause_copySortGroupClause (const SortGroupClause *from)
 
static GroupingSet_copyGroupingSet (const GroupingSet *from)
 
static WindowClause_copyWindowClause (const WindowClause *from)
 
static RowMarkClause_copyRowMarkClause (const RowMarkClause *from)
 
static WithClause_copyWithClause (const WithClause *from)
 
static InferClause_copyInferClause (const InferClause *from)
 
static OnConflictClause_copyOnConflictClause (const OnConflictClause *from)
 
static 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 AlterDomainStmt_copyAlterDomainStmt (const AlterDomainStmt *from)
 
static GrantStmt_copyGrantStmt (const GrantStmt *from)
 
static ObjectWithArgs_copyObjectWithArgs (const ObjectWithArgs *from)
 
static AccessPriv_copyAccessPriv (const AccessPriv *from)
 
static GrantRoleStmt_copyGrantRoleStmt (const GrantRoleStmt *from)
 
static AlterDefaultPrivilegesStmt_copyAlterDefaultPrivilegesStmt (const AlterDefaultPrivilegesStmt *from)
 
static DeclareCursorStmt_copyDeclareCursorStmt (const DeclareCursorStmt *from)
 
static ClosePortalStmt_copyClosePortalStmt (const ClosePortalStmt *from)
 
static CallStmt_copyCallStmt (const CallStmt *from)
 
static ClusterStmt_copyClusterStmt (const ClusterStmt *from)
 
static CopyStmt_copyCopyStmt (const CopyStmt *from)
 
static void CopyCreateStmtFields (const CreateStmt *from, CreateStmt *newnode)
 
static CreateStmt_copyCreateStmt (const CreateStmt *from)
 
static TableLikeClause_copyTableLikeClause (const TableLikeClause *from)
 
static DefineStmt_copyDefineStmt (const DefineStmt *from)
 
static DropStmt_copyDropStmt (const DropStmt *from)
 
static TruncateStmt_copyTruncateStmt (const TruncateStmt *from)
 
static CommentStmt_copyCommentStmt (const CommentStmt *from)
 
static SecLabelStmt_copySecLabelStmt (const SecLabelStmt *from)
 
static FetchStmt_copyFetchStmt (const FetchStmt *from)
 
static IndexStmt_copyIndexStmt (const IndexStmt *from)
 
static CreateStatsStmt_copyCreateStatsStmt (const CreateStatsStmt *from)
 
static AlterStatsStmt_copyAlterStatsStmt (const AlterStatsStmt *from)
 
static CreateFunctionStmt_copyCreateFunctionStmt (const CreateFunctionStmt *from)
 
static FunctionParameter_copyFunctionParameter (const FunctionParameter *from)
 
static AlterFunctionStmt_copyAlterFunctionStmt (const AlterFunctionStmt *from)
 
static DoStmt_copyDoStmt (const DoStmt *from)
 
static RenameStmt_copyRenameStmt (const RenameStmt *from)
 
static AlterObjectDependsStmt_copyAlterObjectDependsStmt (const AlterObjectDependsStmt *from)
 
static AlterObjectSchemaStmt_copyAlterObjectSchemaStmt (const AlterObjectSchemaStmt *from)
 
static AlterOwnerStmt_copyAlterOwnerStmt (const AlterOwnerStmt *from)
 
static AlterOperatorStmt_copyAlterOperatorStmt (const AlterOperatorStmt *from)
 
static AlterTypeStmt_copyAlterTypeStmt (const AlterTypeStmt *from)
 
static RuleStmt_copyRuleStmt (const RuleStmt *from)
 
static NotifyStmt_copyNotifyStmt (const NotifyStmt *from)
 
static ListenStmt_copyListenStmt (const ListenStmt *from)
 
static UnlistenStmt_copyUnlistenStmt (const UnlistenStmt *from)
 
static TransactionStmt_copyTransactionStmt (const TransactionStmt *from)
 
static CompositeTypeStmt_copyCompositeTypeStmt (const CompositeTypeStmt *from)
 
static CreateEnumStmt_copyCreateEnumStmt (const CreateEnumStmt *from)
 
static CreateRangeStmt_copyCreateRangeStmt (const CreateRangeStmt *from)
 
static AlterEnumStmt_copyAlterEnumStmt (const AlterEnumStmt *from)
 
static ViewStmt_copyViewStmt (const ViewStmt *from)
 
static LoadStmt_copyLoadStmt (const LoadStmt *from)
 
static CreateDomainStmt_copyCreateDomainStmt (const CreateDomainStmt *from)
 
static CreateOpClassStmt_copyCreateOpClassStmt (const CreateOpClassStmt *from)
 
static CreateOpClassItem_copyCreateOpClassItem (const CreateOpClassItem *from)
 
static CreateOpFamilyStmt_copyCreateOpFamilyStmt (const CreateOpFamilyStmt *from)
 
static AlterOpFamilyStmt_copyAlterOpFamilyStmt (const AlterOpFamilyStmt *from)
 
static CreatedbStmt_copyCreatedbStmt (const CreatedbStmt *from)
 
static AlterDatabaseStmt_copyAlterDatabaseStmt (const AlterDatabaseStmt *from)
 
static AlterDatabaseSetStmt_copyAlterDatabaseSetStmt (const AlterDatabaseSetStmt *from)
 
static DropdbStmt_copyDropdbStmt (const DropdbStmt *from)
 
static VacuumStmt_copyVacuumStmt (const VacuumStmt *from)
 
static VacuumRelation_copyVacuumRelation (const VacuumRelation *from)
 
static ExplainStmt_copyExplainStmt (const ExplainStmt *from)
 
static CreateTableAsStmt_copyCreateTableAsStmt (const CreateTableAsStmt *from)
 
static RefreshMatViewStmt_copyRefreshMatViewStmt (const RefreshMatViewStmt *from)
 
static ReplicaIdentityStmt_copyReplicaIdentityStmt (const ReplicaIdentityStmt *from)
 
static AlterSystemStmt_copyAlterSystemStmt (const AlterSystemStmt *from)
 
static CreateSeqStmt_copyCreateSeqStmt (const CreateSeqStmt *from)
 
static AlterSeqStmt_copyAlterSeqStmt (const AlterSeqStmt *from)
 
static VariableSetStmt_copyVariableSetStmt (const VariableSetStmt *from)
 
static VariableShowStmt_copyVariableShowStmt (const VariableShowStmt *from)
 
static DiscardStmt_copyDiscardStmt (const DiscardStmt *from)
 
static CreateTableSpaceStmt_copyCreateTableSpaceStmt (const CreateTableSpaceStmt *from)
 
static DropTableSpaceStmt_copyDropTableSpaceStmt (const DropTableSpaceStmt *from)
 
static AlterTableSpaceOptionsStmt_copyAlterTableSpaceOptionsStmt (const AlterTableSpaceOptionsStmt *from)
 
static AlterTableMoveAllStmt_copyAlterTableMoveAllStmt (const AlterTableMoveAllStmt *from)
 
static CreateExtensionStmt_copyCreateExtensionStmt (const CreateExtensionStmt *from)
 
static AlterExtensionStmt_copyAlterExtensionStmt (const AlterExtensionStmt *from)
 
static AlterExtensionContentsStmt_copyAlterExtensionContentsStmt (const AlterExtensionContentsStmt *from)
 
static CreateFdwStmt_copyCreateFdwStmt (const CreateFdwStmt *from)
 
static AlterFdwStmt_copyAlterFdwStmt (const AlterFdwStmt *from)
 
static CreateForeignServerStmt_copyCreateForeignServerStmt (const CreateForeignServerStmt *from)
 
static AlterForeignServerStmt_copyAlterForeignServerStmt (const AlterForeignServerStmt *from)
 
static CreateUserMappingStmt_copyCreateUserMappingStmt (const CreateUserMappingStmt *from)
 
static AlterUserMappingStmt_copyAlterUserMappingStmt (const AlterUserMappingStmt *from)
 
static DropUserMappingStmt_copyDropUserMappingStmt (const DropUserMappingStmt *from)
 
static CreateForeignTableStmt_copyCreateForeignTableStmt (const CreateForeignTableStmt *from)
 
static ImportForeignSchemaStmt_copyImportForeignSchemaStmt (const ImportForeignSchemaStmt *from)
 
static CreateTransformStmt_copyCreateTransformStmt (const CreateTransformStmt *from)
 
static CreateAmStmt_copyCreateAmStmt (const CreateAmStmt *from)
 
static CreateTrigStmt_copyCreateTrigStmt (const CreateTrigStmt *from)
 
static CreateEventTrigStmt_copyCreateEventTrigStmt (const CreateEventTrigStmt *from)
 
static AlterEventTrigStmt_copyAlterEventTrigStmt (const AlterEventTrigStmt *from)
 
static CreatePLangStmt_copyCreatePLangStmt (const CreatePLangStmt *from)
 
static CreateRoleStmt_copyCreateRoleStmt (const CreateRoleStmt *from)
 
static AlterRoleStmt_copyAlterRoleStmt (const AlterRoleStmt *from)
 
static AlterRoleSetStmt_copyAlterRoleSetStmt (const AlterRoleSetStmt *from)
 
static DropRoleStmt_copyDropRoleStmt (const DropRoleStmt *from)
 
static LockStmt_copyLockStmt (const LockStmt *from)
 
static ConstraintsSetStmt_copyConstraintsSetStmt (const ConstraintsSetStmt *from)
 
static ReindexStmt_copyReindexStmt (const ReindexStmt *from)
 
static CreateSchemaStmt_copyCreateSchemaStmt (const CreateSchemaStmt *from)
 
static CreateConversionStmt_copyCreateConversionStmt (const CreateConversionStmt *from)
 
static CreateCastStmt_copyCreateCastStmt (const CreateCastStmt *from)
 
static PrepareStmt_copyPrepareStmt (const PrepareStmt *from)
 
static ExecuteStmt_copyExecuteStmt (const ExecuteStmt *from)
 
static DeallocateStmt_copyDeallocateStmt (const DeallocateStmt *from)
 
static DropOwnedStmt_copyDropOwnedStmt (const DropOwnedStmt *from)
 
static ReassignOwnedStmt_copyReassignOwnedStmt (const ReassignOwnedStmt *from)
 
static AlterTSDictionaryStmt_copyAlterTSDictionaryStmt (const AlterTSDictionaryStmt *from)
 
static AlterTSConfigurationStmt_copyAlterTSConfigurationStmt (const AlterTSConfigurationStmt *from)
 
static CreatePolicyStmt_copyCreatePolicyStmt (const CreatePolicyStmt *from)
 
static AlterPolicyStmt_copyAlterPolicyStmt (const AlterPolicyStmt *from)
 
static PartitionElem_copyPartitionElem (const PartitionElem *from)
 
static PartitionSpec_copyPartitionSpec (const PartitionSpec *from)
 
static PartitionBoundSpec_copyPartitionBoundSpec (const PartitionBoundSpec *from)
 
static PartitionRangeDatum_copyPartitionRangeDatum (const PartitionRangeDatum *from)
 
static PartitionCmd_copyPartitionCmd (const PartitionCmd *from)
 
static CreatePublicationStmt_copyCreatePublicationStmt (const CreatePublicationStmt *from)
 
static AlterPublicationStmt_copyAlterPublicationStmt (const AlterPublicationStmt *from)
 
static CreateSubscriptionStmt_copyCreateSubscriptionStmt (const CreateSubscriptionStmt *from)
 
static AlterSubscriptionStmt_copyAlterSubscriptionStmt (const AlterSubscriptionStmt *from)
 
static DropSubscriptionStmt_copyDropSubscriptionStmt (const DropSubscriptionStmt *from)
 
static ExtensibleNode_copyExtensibleNode (const ExtensibleNode *from)
 
static Value_copyValue (const Value *from)
 
static ForeignKeyCacheInfo_copyForeignKeyCacheInfo (const ForeignKeyCacheInfo *from)
 
void * copyObjectImpl (const void *from)
 

Macro Definition Documentation

◆ COPY_BITMAPSET_FIELD

◆ COPY_LOCATION_FIELD

◆ COPY_NODE_FIELD

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

Definition at line 45 of file copyfuncs.c.

Referenced by _copyA_ArrayExpr(), _copyA_Indirection(), _copyAccessPriv(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlias(), _copyAlterDatabaseSetStmt(), _copyAlterDatabaseStmt(), _copyAlterDefaultPrivilegesStmt(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterExtensionContentsStmt(), _copyAlterExtensionStmt(), _copyAlterFdwStmt(), _copyAlterForeignServerStmt(), _copyAlterFunctionStmt(), _copyAlternativeSubPlan(), _copyAlterObjectDependsStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOperatorStmt(), _copyAlterOpFamilyStmt(), _copyAlterOwnerStmt(), _copyAlterPolicyStmt(), _copyAlterPublicationStmt(), _copyAlterRoleSetStmt(), _copyAlterRoleStmt(), _copyAlterSeqStmt(), _copyAlterStatsStmt(), _copyAlterSubscriptionStmt(), _copyAlterSystemStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterTableStmt(), _copyAlterTSConfigurationStmt(), _copyAlterTSDictionaryStmt(), _copyAlterTypeStmt(), _copyAlterUserMappingStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyBitmapAnd(), _copyBitmapHeapScan(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCallStmt(), _copyCaseExpr(), _copyCaseWhen(), _copyClusterStmt(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceViaIO(), _copyCollateClause(), _copyCollateExpr(), _copyColumnDef(), _copyColumnRef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyCompositeTypeStmt(), _copyConstraint(), _copyConstraintsSetStmt(), _copyConvertRowtypeExpr(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateCastStmt(), _copyCreateConversionStmt(), _copyCreatedbStmt(), _copyCreateDomainStmt(), _copyCreateEnumStmt(), _copyCreateEventTrigStmt(), _copyCreateExtensionStmt(), _copyCreateFdwStmt(), _copyCreateForeignServerStmt(), _copyCreateForeignTableStmt(), _copyCreateFunctionStmt(), _copyCreateOpClassItem(), _copyCreateOpClassStmt(), _copyCreateOpFamilyStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRangeStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateSeqStmt(), _copyCreateStatsStmt(), _copyCreateSubscriptionStmt(), _copyCreateTableAsStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _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:950

Definition at line 57 of file copyfuncs.c.

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

◆ COPY_SCALAR_FIELD

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

Definition at line 41 of file copyfuncs.c.

Referenced by _copyAConst(), _copyAExpr(), _copyAgg(), _copyAggref(), _copyAIndices(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterEventTrigStmt(), _copyAlterExtensionContentsStmt(), _copyAlterForeignServerStmt(), _copyAlterFunctionStmt(), _copyAlterObjectDependsStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOpFamilyStmt(), _copyAlterOwnerStmt(), _copyAlterPublicationStmt(), _copyAlterRoleStmt(), _copyAlterSeqStmt(), _copyAlterStatsStmt(), _copyAlterSubscriptionStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterTableStmt(), _copyAlterTSConfigurationStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCaseExpr(), _copyCaseTestExpr(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceToDomainValue(), _copyCoerceViaIO(), _copyCollateExpr(), _copyColumnDef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyConst(), _copyConstraint(), _copyConstraintsSetStmt(), _copyConvertRowtypeExpr(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateCastStmt(), _copyCreateConversionStmt(), _copyCreateExtensionStmt(), _copyCreateForeignServerStmt(), _copyCreateFunctionStmt(), _copyCreateOpClassItem(), _copyCreateOpClassStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateSeqStmt(), _copyCreateStatsStmt(), _copyCreateTableAsStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _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(), _copyIncrementalSort(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoinExpr(), _copyLimit(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoopParam(), _copyNextValueExpr(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyParam(), _copyParamRef(), _copyPartitionBoundSpec(), _copyPartitionedRelPruneInfo(), _copyPartitionPruneStepCombine(), _copyPartitionPruneStepOp(), _copyPartitionRangeDatum(), _copyPathKey(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlanInvalItem(), _copyPlannedStmt(), _copyPlanRowMark(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeTblRef(), _copyRangeVar(), _copyRawStmt(), _copyRecursiveUnion(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyReplicaIdentityStmt(), _copyRestrictInfo(), _copyRoleSpec(), _copyRowCompareExpr(), _copyRowExpr(), _copyRowMarkClause(), _copyRuleStmt(), _copyScalarArrayOpExpr(), _copySecLabelStmt(), _copySelectStmt(), _copySetOp(), _copySetOperationStmt(), _copySetToDefault(), _copySortBy(), _copySortGroupClause(), _copySpecialJoinInfo(), _copySQLValueFunction(), _copySubLink(), _copySubPlan(), _copySubscriptingRef(), _copyTableFunc(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _copyTransactionStmt(), _copyTriggerTransition(), _copyTruncateStmt(), _copyTypeName(), _copyUnique(), _copyVacuumRelation(), _copyVacuumStmt(), _copyValue(), _copyVar(), _copyVariableSetStmt(), _copyViewStmt(), _copyWindowAgg(), _copyWindowClause(), _copyWindowDef(), _copyWindowFunc(), _copyWithCheckOption(), _copyWithClause(), _copyWorkTableScan(), _copyXmlExpr(), _copyXmlSerialize(), CopyCreateStmtFields(), CopyJoinFields(), CopyPlanFields(), CopyScanFields(), and CopySortFields().

◆ COPY_STRING_FIELD

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

Definition at line 53 of file copyfuncs.c.

Referenced by _copyAccessPriv(), _copyAConst(), _copyAlias(), _copyAlterDatabaseSetStmt(), _copyAlterDatabaseStmt(), _copyAlterDomainStmt(), _copyAlterEnumStmt(), _copyAlterEventTrigStmt(), _copyAlterExtensionContentsStmt(), _copyAlterExtensionStmt(), _copyAlterFdwStmt(), _copyAlterForeignServerStmt(), _copyAlterObjectSchemaStmt(), _copyAlterOpFamilyStmt(), _copyAlterPolicyStmt(), _copyAlterPublicationStmt(), _copyAlterRoleSetStmt(), _copyAlterSubscriptionStmt(), _copyAlterTableCmd(), _copyAlterTableMoveAllStmt(), _copyAlterTableSpaceOptionsStmt(), _copyAlterUserMappingStmt(), _copyClosePortalStmt(), _copyClusterStmt(), _copyColumnDef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyConstraint(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateConversionStmt(), _copyCreatedbStmt(), _copyCreateEventTrigStmt(), _copyCreateExtensionStmt(), _copyCreateFdwStmt(), _copyCreateForeignServerStmt(), _copyCreateForeignTableStmt(), _copyCreateOpClassStmt(), _copyCreateOpFamilyStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateStatsStmt(), _copyCreateSubscriptionStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _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 2730 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2731 {
2732  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2733 
2734  COPY_NODE_FIELD(elements);
2735  COPY_LOCATION_FIELD(location);
2736 
2737  return newnode;
2738 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2719 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2720 {
2721  A_Indirection *newnode = makeNode(A_Indirection);
2722 
2724  COPY_NODE_FIELD(indirection);
2725 
2726  return newnode;
2727 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575
void * arg

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3276 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3277 {
3278  AccessPriv *newnode = makeNode(AccessPriv);
3279 
3280  COPY_STRING_FIELD(priv_name);
3281  COPY_NODE_FIELD(cols);
3282 
3283  return newnode;
3284 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAConst()

static A_Const* _copyAConst ( const A_Const from)
static

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

2649 {
2650  A_Const *newnode = makeNode(A_Const);
2651 
2652  /* This part must duplicate _copyValue */
2653  COPY_SCALAR_FIELD(val.type);
2654  switch (from->val.type)
2655  {
2656  case T_Integer:
2657  COPY_SCALAR_FIELD(val.val.ival);
2658  break;
2659  case T_Float:
2660  case T_String:
2661  case T_BitString:
2662  COPY_STRING_FIELD(val.val.str);
2663  break;
2664  case T_Null:
2665  /* nothing to do */
2666  break;
2667  default:
2668  elog(ERROR, "unrecognized node type: %d",
2669  (int) from->val.type);
2670  break;
2671  }
2672 
2673  COPY_LOCATION_FIELD(location);
2674 
2675  return newnode;
2676 }
#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:575
Definition: nodes.h:293
Definition: nodes.h:290
#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 2612 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2613 {
2614  A_Expr *newnode = makeNode(A_Expr);
2615 
2616  COPY_SCALAR_FIELD(kind);
2618  COPY_NODE_FIELD(lexpr);
2619  COPY_NODE_FIELD(rexpr);
2620  COPY_LOCATION_FIELD(location);
2621 
2622  return newnode;
2623 }
#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:575
const char * name
Definition: encode.c:561

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 1007 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1008 {
1009  Agg *newnode = makeNode(Agg);
1010 
1011  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1012 
1013  COPY_SCALAR_FIELD(aggstrategy);
1014  COPY_SCALAR_FIELD(aggsplit);
1015  COPY_SCALAR_FIELD(numCols);
1016  if (from->numCols > 0)
1017  {
1018  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
1019  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
1020  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
1021  }
1022  COPY_SCALAR_FIELD(numGroups);
1023  COPY_SCALAR_FIELD(transitionSpace);
1024  COPY_BITMAPSET_FIELD(aggParams);
1025  COPY_NODE_FIELD(groupingSets);
1026  COPY_NODE_FIELD(chain);
1027 
1028  return newnode;
1029 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:575
Definition: plannodes.h:816
int16 AttrNumber
Definition: attnum.h:21

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1475 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1476 {
1477  Aggref *newnode = makeNode(Aggref);
1478 
1479  COPY_SCALAR_FIELD(aggfnoid);
1480  COPY_SCALAR_FIELD(aggtype);
1481  COPY_SCALAR_FIELD(aggcollid);
1482  COPY_SCALAR_FIELD(inputcollid);
1483  COPY_SCALAR_FIELD(aggtranstype);
1484  COPY_NODE_FIELD(aggargtypes);
1485  COPY_NODE_FIELD(aggdirectargs);
1487  COPY_NODE_FIELD(aggorder);
1488  COPY_NODE_FIELD(aggdistinct);
1489  COPY_NODE_FIELD(aggfilter);
1490  COPY_SCALAR_FIELD(aggstar);
1491  COPY_SCALAR_FIELD(aggvariadic);
1492  COPY_SCALAR_FIELD(aggkind);
1493  COPY_SCALAR_FIELD(agglevelsup);
1494  COPY_SCALAR_FIELD(aggsplit);
1495  COPY_SCALAR_FIELD(aggno);
1496  COPY_SCALAR_FIELD(aggtransno);
1497  COPY_LOCATION_FIELD(location);
1498 
1499  return newnode;
1500 }
#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:575

◆ _copyAIndices()

static A_Indices* _copyAIndices ( const A_Indices from)
static

Definition at line 2707 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2708 {
2709  A_Indices *newnode = makeNode(A_Indices);
2710 
2711  COPY_SCALAR_FIELD(is_slice);
2712  COPY_NODE_FIELD(lidx);
2713  COPY_NODE_FIELD(uidx);
2714 
2715  return newnode;
2716 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1313 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1314 {
1315  Alias *newnode = makeNode(Alias);
1316 
1317  COPY_STRING_FIELD(aliasname);
1318  COPY_NODE_FIELD(colnames);
1319 
1320  return newnode;
1321 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 3912 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3913 {
3915 
3917  COPY_NODE_FIELD(setstmt);
3918 
3919  return newnode;
3920 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 3901 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3902 {
3904 
3907 
3908  return newnode;
3909 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3302 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3303 {
3305 
3308 
3309  return newnode;
3310 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3232 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3233 {
3235 
3236  COPY_SCALAR_FIELD(subtype);
3237  COPY_NODE_FIELD(typeName);
3239  COPY_NODE_FIELD(def);
3240  COPY_SCALAR_FIELD(behavior);
3241  COPY_SCALAR_FIELD(missing_ok);
3242 
3243  return newnode;
3244 }
#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:575
const char * name
Definition: encode.c:561

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3783 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3784 {
3785  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3786 
3787  COPY_NODE_FIELD(typeName);
3788  COPY_STRING_FIELD(oldVal);
3789  COPY_STRING_FIELD(newVal);
3790  COPY_STRING_FIELD(newValNeighbor);
3791  COPY_SCALAR_FIELD(newValIsAfter);
3792  COPY_SCALAR_FIELD(skipIfNewValExists);
3793 
3794  return newnode;
3795 }
#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:575

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4343 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4344 {
4346 
4347  COPY_STRING_FIELD(trigname);
4348  COPY_SCALAR_FIELD(tgenabled);
4349 
4350  return newnode;
4351 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4150 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4151 {
4153 
4154  COPY_STRING_FIELD(extname);
4156  COPY_SCALAR_FIELD(objtype);
4157  COPY_NODE_FIELD(object);
4158 
4159  return newnode;
4160 }
#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:575

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4139 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4140 {
4142 
4143  COPY_STRING_FIELD(extname);
4145 
4146  return newnode;
4147 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4175 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4176 {
4177  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4178 
4179  COPY_STRING_FIELD(fdwname);
4180  COPY_NODE_FIELD(func_options);
4182 
4183  return newnode;
4184 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4202 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4203 {
4205 
4206  COPY_STRING_FIELD(servername);
4207  COPY_STRING_FIELD(version);
4209  COPY_SCALAR_FIELD(has_version);
4210 
4211  return newnode;
4212 }
#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:575

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3587 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3588 {
3590 
3591  COPY_SCALAR_FIELD(objtype);
3592  COPY_NODE_FIELD(func);
3593  COPY_NODE_FIELD(actions);
3594 
3595  return newnode;
3596 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1741 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1742 {
1744 
1745  COPY_NODE_FIELD(subplans);
1746 
1747  return newnode;
1748 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3626 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3627 {
3629 
3630  COPY_SCALAR_FIELD(objectType);
3631  COPY_NODE_FIELD(relation);
3632  COPY_NODE_FIELD(object);
3633  COPY_NODE_FIELD(extname);
3634  COPY_SCALAR_FIELD(remove);
3635 
3636  return newnode;
3637 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3640 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3641 {
3643 
3644  COPY_SCALAR_FIELD(objectType);
3645  COPY_NODE_FIELD(relation);
3646  COPY_NODE_FIELD(object);
3647  COPY_STRING_FIELD(newschema);
3648  COPY_SCALAR_FIELD(missing_ok);
3649 
3650  return newnode;
3651 }
#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:575

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3667 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3668 {
3670 
3671  COPY_NODE_FIELD(opername);
3673 
3674  return newnode;
3675 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 3877 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3878 {
3880 
3881  COPY_NODE_FIELD(opfamilyname);
3882  COPY_STRING_FIELD(amname);
3883  COPY_SCALAR_FIELD(isDrop);
3884  COPY_NODE_FIELD(items);
3885 
3886  return newnode;
3887 }
#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:575

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3654 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3655 {
3657 
3658  COPY_SCALAR_FIELD(objectType);
3659  COPY_NODE_FIELD(relation);
3660  COPY_NODE_FIELD(object);
3661  COPY_NODE_FIELD(newowner);
3662 
3663  return newnode;
3664 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4591 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4592 {
4594 
4595  COPY_STRING_FIELD(policy_name);
4596  COPY_NODE_FIELD(table);
4597  COPY_NODE_FIELD(roles);
4598  COPY_NODE_FIELD(qual);
4599  COPY_NODE_FIELD(with_check);
4600 
4601  return newnode;
4602 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4684 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4685 {
4687 
4688  COPY_STRING_FIELD(pubname);
4690  COPY_NODE_FIELD(tables);
4691  COPY_SCALAR_FIELD(for_all_tables);
4692  COPY_SCALAR_FIELD(tableAction);
4693 
4694  return newnode;
4695 }
#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:575

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4393 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4394 {
4396 
4397  COPY_NODE_FIELD(role);
4398  COPY_STRING_FIELD(database);
4399  COPY_NODE_FIELD(setstmt);
4400 
4401  return newnode;
4402 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4381 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4382 {
4383  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4384 
4385  COPY_NODE_FIELD(role);
4388 
4389  return newnode;
4390 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 4031 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4032 {
4033  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
4034 
4035  COPY_NODE_FIELD(sequence);
4037  COPY_SCALAR_FIELD(for_identity);
4038  COPY_SCALAR_FIELD(missing_ok);
4039 
4040  return newnode;
4041 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterStatsStmt()

static AlterStatsStmt* _copyAlterStatsStmt ( const AlterStatsStmt from)
static

Definition at line 3547 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3548 {
3550 
3551  COPY_NODE_FIELD(defnames);
3552  COPY_SCALAR_FIELD(stxstattarget);
3553  COPY_SCALAR_FIELD(missing_ok);
3554 
3555  return newnode;
3556 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4711 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4712 {
4714 
4715  COPY_SCALAR_FIELD(kind);
4717  COPY_STRING_FIELD(conninfo);
4718  COPY_NODE_FIELD(publication);
4720 
4721  return newnode;
4722 }
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:575

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 4007 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4008 {
4010 
4011  COPY_NODE_FIELD(setstmt);
4012 
4013  return newnode;
4014 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3215 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3216 {
3217  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3218 
3219  COPY_SCALAR_FIELD(subtype);
3221  COPY_NODE_FIELD(object);
3222  COPY_SCALAR_FIELD(num);
3223  COPY_NODE_FIELD(newowner);
3224  COPY_NODE_FIELD(def);
3225  COPY_SCALAR_FIELD(behavior);
3226  COPY_SCALAR_FIELD(missing_ok);
3227 
3228  return newnode;
3229 }
#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:575
const char * name
Definition: encode.c:561

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4113 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4114 {
4116 
4117  COPY_STRING_FIELD(orig_tablespacename);
4118  COPY_SCALAR_FIELD(objtype);
4119  COPY_NODE_FIELD(roles);
4120  COPY_STRING_FIELD(new_tablespacename);
4121  COPY_SCALAR_FIELD(nowait);
4122 
4123  return newnode;
4124 }
#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:575

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 4101 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4102 {
4104 
4105  COPY_STRING_FIELD(tablespacename);
4107  COPY_SCALAR_FIELD(isReset);
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:575

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3202 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3203 {
3205 
3206  COPY_NODE_FIELD(relation);
3207  COPY_NODE_FIELD(cmds);
3208  COPY_SCALAR_FIELD(objtype);
3209  COPY_SCALAR_FIELD(missing_ok);
3210 
3211  return newnode;
3212 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4559 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4560 {
4562 
4563  COPY_SCALAR_FIELD(kind);
4564  COPY_NODE_FIELD(cfgname);
4565  COPY_NODE_FIELD(tokentype);
4566  COPY_NODE_FIELD(dicts);
4567  COPY_SCALAR_FIELD(override);
4568  COPY_SCALAR_FIELD(replace);
4569  COPY_SCALAR_FIELD(missing_ok);
4570 
4571  return newnode;
4572 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4548 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4549 {
4551 
4552  COPY_NODE_FIELD(dictname);
4554 
4555  return newnode;
4556 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterTypeStmt()

static AlterTypeStmt* _copyAlterTypeStmt ( const AlterTypeStmt from)
static

Definition at line 3678 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3679 {
3680  AlterTypeStmt *newnode = makeNode(AlterTypeStmt);
3681 
3682  COPY_NODE_FIELD(typeName);
3684 
3685  return newnode;
3686 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4228 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4229 {
4231 
4233  COPY_STRING_FIELD(servername);
4235 
4236  return newnode;
4237 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
static char * user
Definition: pg_regress.c:95

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 230 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2364 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2365 {
2366  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2367 
2368  COPY_SCALAR_FIELD(parent_relid);
2369  COPY_SCALAR_FIELD(child_relid);
2370  COPY_SCALAR_FIELD(parent_reltype);
2371  COPY_SCALAR_FIELD(child_reltype);
2372  COPY_NODE_FIELD(translated_vars);
2373  COPY_SCALAR_FIELD(num_child_cols);
2374  COPY_POINTER_FIELD(parent_colnos, from->num_child_cols * sizeof(AttrNumber));
2375  COPY_SCALAR_FIELD(parent_reloid);
2376 
2377  return newnode;
2378 }
int num_child_cols
Definition: pathnodes.h:2274
#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:575
int16 AttrNumber
Definition: attnum.h:21

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1822 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1823 {
1825 
1827  COPY_NODE_FIELD(elemexpr);
1828  COPY_SCALAR_FIELD(resulttype);
1829  COPY_SCALAR_FIELD(resulttypmod);
1830  COPY_SCALAR_FIELD(resultcollid);
1831  COPY_SCALAR_FIELD(coerceformat);
1832  COPY_LOCATION_FIELD(location);
1833 
1834  return newnode;
1835 }
#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:575
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1920 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1921 {
1922  ArrayExpr *newnode = makeNode(ArrayExpr);
1923 
1924  COPY_SCALAR_FIELD(array_typeid);
1925  COPY_SCALAR_FIELD(array_collid);
1926  COPY_SCALAR_FIELD(element_typeid);
1927  COPY_NODE_FIELD(elements);
1928  COPY_SCALAR_FIELD(multidims);
1929  COPY_LOCATION_FIELD(location);
1930 
1931  return newnode;
1932 }
#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:575

◆ _copyAStar()

static A_Star* _copyAStar ( const A_Star from)
static

Definition at line 2699 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2700 {
2701  A_Star *newnode = makeNode(A_Star);
2702 
2703  return newnode;
2704 }
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 311 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 550 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 526 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 332 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 2060 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2061 {
2062  BooleanTest *newnode = makeNode(BooleanTest);
2063 
2065  COPY_SCALAR_FIELD(booltesttype);
2066  COPY_LOCATION_FIELD(location);
2067 
2068  return newnode;
2069 }
#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:575
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1680 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1681 {
1682  BoolExpr *newnode = makeNode(BoolExpr);
1683 
1686  COPY_LOCATION_FIELD(location);
1687 
1688  return newnode;
1689 }
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:575

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3335 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3336 {
3337  CallStmt *newnode = makeNode(CallStmt);
3338 
3339  COPY_NODE_FIELD(funccall);
3340  COPY_NODE_FIELD(funcexpr);
3341 
3342  return newnode;
3343 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1872 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1873 {
1874  CaseExpr *newnode = makeNode(CaseExpr);
1875 
1876  COPY_SCALAR_FIELD(casetype);
1877  COPY_SCALAR_FIELD(casecollid);
1880  COPY_NODE_FIELD(defresult);
1881  COPY_LOCATION_FIELD(location);
1882 
1883  return newnode;
1884 }
#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:575
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1905 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1906 {
1907  CaseTestExpr *newnode = makeNode(CaseTestExpr);
1908 
1909  COPY_SCALAR_FIELD(typeId);
1910  COPY_SCALAR_FIELD(typeMod);
1911  COPY_SCALAR_FIELD(collation);
1912 
1913  return newnode;
1914 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1890 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1891 {
1892  CaseWhen *newnode = makeNode(CaseWhen);
1893 
1894  COPY_NODE_FIELD(expr);
1895  COPY_NODE_FIELD(result);
1896  COPY_LOCATION_FIELD(location);
1897 
1898  return newnode;
1899 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3325 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3326 {
3328 
3329  COPY_STRING_FIELD(portalname);
3330 
3331  return newnode;
3332 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3346 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3347 {
3348  ClusterStmt *newnode = makeNode(ClusterStmt);
3349 
3350  COPY_NODE_FIELD(relation);
3351  COPY_STRING_FIELD(indexname);
3352  COPY_NODE_FIELD(params);
3353 
3354  return newnode;
3355 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 1973 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1974 {
1975  CoalesceExpr *newnode = makeNode(CoalesceExpr);
1976 
1977  COPY_SCALAR_FIELD(coalescetype);
1978  COPY_SCALAR_FIELD(coalescecollid);
1980  COPY_LOCATION_FIELD(location);
1981 
1982  return newnode;
1983 }
#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:575

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 2075 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2076 {
2078 
2080  COPY_SCALAR_FIELD(resulttype);
2081  COPY_SCALAR_FIELD(resulttypmod);
2082  COPY_SCALAR_FIELD(resultcollid);
2083  COPY_SCALAR_FIELD(coercionformat);
2084  COPY_LOCATION_FIELD(location);
2085 
2086  return newnode;
2087 }
#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:575
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 2093 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2094 {
2096 
2097  COPY_SCALAR_FIELD(typeId);
2098  COPY_SCALAR_FIELD(typeMod);
2099  COPY_SCALAR_FIELD(collation);
2100  COPY_LOCATION_FIELD(location);
2101 
2102  return newnode;
2103 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1805 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1806 {
1807  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1808 
1810  COPY_SCALAR_FIELD(resulttype);
1811  COPY_SCALAR_FIELD(resultcollid);
1812  COPY_SCALAR_FIELD(coerceformat);
1813  COPY_LOCATION_FIELD(location);
1814 
1815  return newnode;
1816 }
#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:575
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2899 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2900 {
2901  CollateClause *newnode = makeNode(CollateClause);
2902 
2904  COPY_NODE_FIELD(collname);
2905  COPY_LOCATION_FIELD(location);
2906 
2907  return newnode;
2908 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:575
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1857 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1858 {
1859  CollateExpr *newnode = makeNode(CollateExpr);
1860 
1862  COPY_SCALAR_FIELD(collOid);
1863  COPY_LOCATION_FIELD(location);
1864 
1865  return newnode;
1866 }
#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:575
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 2928 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2929 {
2930  ColumnDef *newnode = makeNode(ColumnDef);
2931 
2932  COPY_STRING_FIELD(colname);
2933  COPY_NODE_FIELD(typeName);
2934  COPY_SCALAR_FIELD(inhcount);
2935  COPY_SCALAR_FIELD(is_local);
2936  COPY_SCALAR_FIELD(is_not_null);
2937  COPY_SCALAR_FIELD(is_from_type);
2938  COPY_SCALAR_FIELD(storage);
2939  COPY_NODE_FIELD(raw_default);
2940  COPY_NODE_FIELD(cooked_default);
2941  COPY_SCALAR_FIELD(identity);
2942  COPY_NODE_FIELD(identitySequence);
2943  COPY_SCALAR_FIELD(generated);
2944  COPY_NODE_FIELD(collClause);
2945  COPY_SCALAR_FIELD(collOid);
2946  COPY_NODE_FIELD(constraints);
2947  COPY_NODE_FIELD(fdwoptions);
2948  COPY_LOCATION_FIELD(location);
2949 
2950  return newnode;
2951 }
#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:575

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2626 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2627 {
2628  ColumnRef *newnode = makeNode(ColumnRef);
2629 
2630  COPY_NODE_FIELD(fields);
2631  COPY_LOCATION_FIELD(location);
2632 
2633  return newnode;
2634 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3462 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3463 {
3464  CommentStmt *newnode = makeNode(CommentStmt);
3465 
3466  COPY_SCALAR_FIELD(objtype);
3467  COPY_NODE_FIELD(object);
3468  COPY_STRING_FIELD(comment);
3469 
3470  return newnode;
3471 }
#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:575

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2592 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2593 {
2595 
2596  COPY_STRING_FIELD(ctename);
2597  COPY_NODE_FIELD(aliascolnames);
2598  COPY_SCALAR_FIELD(ctematerialized);
2599  COPY_NODE_FIELD(ctequery);
2600  COPY_LOCATION_FIELD(location);
2601  COPY_SCALAR_FIELD(cterecursive);
2602  COPY_SCALAR_FIELD(cterefcount);
2603  COPY_NODE_FIELD(ctecolnames);
2604  COPY_NODE_FIELD(ctecoltypes);
2605  COPY_NODE_FIELD(ctecoltypmods);
2606  COPY_NODE_FIELD(ctecolcollations);
2607 
2608  return newnode;
2609 }
#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:575

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3750 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3751 {
3753 
3754  COPY_NODE_FIELD(typevar);
3755  COPY_NODE_FIELD(coldeflist);
3756 
3757  return newnode;
3758 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

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

1420 {
1421  Const *newnode = makeNode(Const);
1422 
1423  COPY_SCALAR_FIELD(consttype);
1424  COPY_SCALAR_FIELD(consttypmod);
1425  COPY_SCALAR_FIELD(constcollid);
1426  COPY_SCALAR_FIELD(constlen);
1427 
1428  if (from->constbyval || from->constisnull)
1429  {
1430  /*
1431  * passed by value so just copy the datum. Also, don't try to copy
1432  * struct when value is null!
1433  */
1434  newnode->constvalue = from->constvalue;
1435  }
1436  else
1437  {
1438  /*
1439  * passed by reference. We need a palloc'd copy.
1440  */
1441  newnode->constvalue = datumCopy(from->constvalue,
1442  from->constbyval,
1443  from->constlen);
1444  }
1445 
1446  COPY_SCALAR_FIELD(constisnull);
1447  COPY_SCALAR_FIELD(constbyval);
1448  COPY_LOCATION_FIELD(location);
1449 
1450  return newnode;
1451 }
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:131
#define makeNode(_type_)
Definition: nodes.h:575
bool constisnull
Definition: primnodes.h:215

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 2954 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2955 {
2956  Constraint *newnode = makeNode(Constraint);
2957 
2958  COPY_SCALAR_FIELD(contype);
2959  COPY_STRING_FIELD(conname);
2960  COPY_SCALAR_FIELD(deferrable);
2961  COPY_SCALAR_FIELD(initdeferred);
2962  COPY_LOCATION_FIELD(location);
2963  COPY_SCALAR_FIELD(is_no_inherit);
2964  COPY_NODE_FIELD(raw_expr);
2965  COPY_STRING_FIELD(cooked_expr);
2966  COPY_SCALAR_FIELD(generated_when);
2967  COPY_NODE_FIELD(keys);
2968  COPY_NODE_FIELD(including);
2969  COPY_NODE_FIELD(exclusions);
2971  COPY_STRING_FIELD(indexname);
2972  COPY_STRING_FIELD(indexspace);
2973  COPY_SCALAR_FIELD(reset_default_tblspc);
2974  COPY_STRING_FIELD(access_method);
2975  COPY_NODE_FIELD(where_clause);
2976  COPY_NODE_FIELD(pktable);
2977  COPY_NODE_FIELD(fk_attrs);
2978  COPY_NODE_FIELD(pk_attrs);
2979  COPY_SCALAR_FIELD(fk_matchtype);
2980  COPY_SCALAR_FIELD(fk_upd_action);
2981  COPY_SCALAR_FIELD(fk_del_action);
2982  COPY_NODE_FIELD(old_conpfeqop);
2983  COPY_SCALAR_FIELD(old_pktable_oid);
2984  COPY_SCALAR_FIELD(skip_validation);
2985  COPY_SCALAR_FIELD(initially_valid);
2986 
2987  return newnode;
2988 }
#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:575

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4428 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4429 {
4431 
4432  COPY_NODE_FIELD(constraints);
4433  COPY_SCALAR_FIELD(deferred);
4434 
4435  return newnode;
4436 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1841 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1842 {
1844 
1846  COPY_SCALAR_FIELD(resulttype);
1847  COPY_SCALAR_FIELD(convertformat);
1848  COPY_LOCATION_FIELD(location);
1849 
1850  return newnode;
1851 }
#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:575
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3358 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3359 {
3360  CopyStmt *newnode = makeNode(CopyStmt);
3361 
3362  COPY_NODE_FIELD(relation);
3363  COPY_NODE_FIELD(query);
3364  COPY_NODE_FIELD(attlist);
3365  COPY_SCALAR_FIELD(is_from);
3366  COPY_SCALAR_FIELD(is_program);
3369  COPY_NODE_FIELD(whereClause);
3370 
3371  return newnode;
3372 }
#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:575
static char * filename
Definition: pg_dumpall.c:91

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4294 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4295 {
4296  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4297 
4298  COPY_STRING_FIELD(amname);
4299  COPY_NODE_FIELD(handler_name);
4300  COPY_SCALAR_FIELD(amtype);
4301 
4302  return newnode;
4303 }
#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:575

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4479 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4480 {
4482 
4483  COPY_NODE_FIELD(sourcetype);
4484  COPY_NODE_FIELD(targettype);
4485  COPY_NODE_FIELD(func);
4486  COPY_SCALAR_FIELD(context);
4487  COPY_SCALAR_FIELD(inout);
4488 
4489  return newnode;
4490 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4465 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4466 {
4468 
4469  COPY_NODE_FIELD(conversion_name);
4470  COPY_STRING_FIELD(for_encoding_name);
4471  COPY_STRING_FIELD(to_encoding_name);
4472  COPY_NODE_FIELD(func_name);
4473  COPY_SCALAR_FIELD(def);
4474 
4475  return newnode;
4476 }
#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:575

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 3890 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3891 {
3892  CreatedbStmt *newnode = makeNode(CreatedbStmt);
3893 
3896 
3897  return newnode;
3898 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
char * dbname
Definition: streamutil.c:51

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3823 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3824 {
3826 
3827  COPY_NODE_FIELD(domainname);
3828  COPY_NODE_FIELD(typeName);
3829  COPY_NODE_FIELD(collClause);
3830  COPY_NODE_FIELD(constraints);
3831 
3832  return newnode;
3833 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3761 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3762 {
3764 
3765  COPY_NODE_FIELD(typeName);
3766  COPY_NODE_FIELD(vals);
3767 
3768  return newnode;
3769 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4330 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4331 {
4333 
4334  COPY_STRING_FIELD(trigname);
4335  COPY_STRING_FIELD(eventname);
4336  COPY_NODE_FIELD(whenclause);
4337  COPY_NODE_FIELD(funcname);
4338 
4339  return newnode;
4340 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4127 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4128 {
4130 
4131  COPY_STRING_FIELD(extname);
4132  COPY_SCALAR_FIELD(if_not_exists);
4134 
4135  return newnode;
4136 }
#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:575

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4163 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4164 {
4165  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4166 
4167  COPY_STRING_FIELD(fdwname);
4168  COPY_NODE_FIELD(func_options);
4170 
4171  return newnode;
4172 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4187 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4188 {
4190 
4191  COPY_STRING_FIELD(servername);
4192  COPY_STRING_FIELD(servertype);
4193  COPY_STRING_FIELD(version);
4194  COPY_STRING_FIELD(fdwname);
4195  COPY_SCALAR_FIELD(if_not_exists);
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:575

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4252 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4253 {
4255 
4256  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4257 
4258  COPY_STRING_FIELD(servername);
4260 
4261  return newnode;
4262 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3381
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3559 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3560 {
3562 
3563  COPY_SCALAR_FIELD(is_procedure);
3564  COPY_SCALAR_FIELD(replace);
3565  COPY_NODE_FIELD(funcname);
3566  COPY_NODE_FIELD(parameters);
3567  COPY_NODE_FIELD(returnType);
3569 
3570  return newnode;
3571 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3851 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3852 {
3854 
3855  COPY_SCALAR_FIELD(itemtype);
3857  COPY_SCALAR_FIELD(number);
3858  COPY_NODE_FIELD(order_family);
3859  COPY_NODE_FIELD(class_args);
3860  COPY_NODE_FIELD(storedtype);
3861 
3862  return newnode;
3863 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575
const char * name
Definition: encode.c:561

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3836 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3837 {
3839 
3840  COPY_NODE_FIELD(opclassname);
3841  COPY_NODE_FIELD(opfamilyname);
3842  COPY_STRING_FIELD(amname);
3843  COPY_NODE_FIELD(datatype);
3844  COPY_NODE_FIELD(items);
3845  COPY_SCALAR_FIELD(isDefault);
3846 
3847  return newnode;
3848 }
#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:575

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3866 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3867 {
3869 
3870  COPY_NODE_FIELD(opfamilyname);
3871  COPY_STRING_FIELD(amname);
3872 
3873  return newnode;
3874 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4354 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4355 {
4357 
4358  COPY_SCALAR_FIELD(replace);
4359  COPY_STRING_FIELD(plname);
4360  COPY_NODE_FIELD(plhandler);
4361  COPY_NODE_FIELD(plinline);
4362  COPY_NODE_FIELD(plvalidator);
4363  COPY_SCALAR_FIELD(pltrusted);
4364 
4365  return newnode;
4366 }
#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:575

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4575 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4576 {
4578 
4579  COPY_STRING_FIELD(policy_name);
4580  COPY_NODE_FIELD(table);
4581  COPY_STRING_FIELD(cmd_name);
4582  COPY_SCALAR_FIELD(permissive);
4583  COPY_NODE_FIELD(roles);
4584  COPY_NODE_FIELD(qual);
4585  COPY_NODE_FIELD(with_check);
4586 
4587  return newnode;
4588 }
#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:575

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4671 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4672 {
4674 
4675  COPY_STRING_FIELD(pubname);
4677  COPY_NODE_FIELD(tables);
4678  COPY_SCALAR_FIELD(for_all_tables);
4679 
4680  return newnode;
4681 }
#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:575

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3772 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3773 {
3775 
3776  COPY_NODE_FIELD(typeName);
3777  COPY_NODE_FIELD(params);
3778 
3779  return newnode;
3780 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4369 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4370 {
4372 
4373  COPY_SCALAR_FIELD(stmt_type);
4374  COPY_STRING_FIELD(role);
4376 
4377  return newnode;
4378 }
#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:575

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4452 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4453 {
4455 
4456  COPY_STRING_FIELD(schemaname);
4457  COPY_NODE_FIELD(authrole);
4458  COPY_NODE_FIELD(schemaElts);
4459  COPY_SCALAR_FIELD(if_not_exists);
4460 
4461  return newnode;
4462 }
#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:575

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 4017 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4018 {
4019  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
4020 
4021  COPY_NODE_FIELD(sequence);
4023  COPY_SCALAR_FIELD(ownerId);
4024  COPY_SCALAR_FIELD(for_identity);
4025  COPY_SCALAR_FIELD(if_not_exists);
4026 
4027  return newnode;
4028 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3532 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3533 {
3535 
3536  COPY_NODE_FIELD(defnames);
3537  COPY_NODE_FIELD(stat_types);
3538  COPY_NODE_FIELD(exprs);
3539  COPY_NODE_FIELD(relations);
3540  COPY_STRING_FIELD(stxcomment);
3541  COPY_SCALAR_FIELD(if_not_exists);
3542 
3543  return newnode;
3544 }
#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:575

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3398 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3399 {
3400  CreateStmt *newnode = makeNode(CreateStmt);
3401 
3402  CopyCreateStmtFields(from, newnode);
3403 
3404  return newnode;
3405 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3381
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4698 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4699 {
4701 
4703  COPY_STRING_FIELD(conninfo);
4704  COPY_NODE_FIELD(publication);
4706 
4707  return newnode;
4708 }
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:575

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 3970 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3971 {
3973 
3974  COPY_NODE_FIELD(query);
3975  COPY_NODE_FIELD(into);
3976  COPY_SCALAR_FIELD(objtype);
3977  COPY_SCALAR_FIELD(is_select_into);
3978  COPY_SCALAR_FIELD(if_not_exists);
3979 
3980  return newnode;
3981 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4077 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4078 {
4080 
4081  COPY_STRING_FIELD(tablespacename);
4082  COPY_NODE_FIELD(owner);
4083  COPY_STRING_FIELD(location);
4085 
4086  return newnode;
4087 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4280 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4281 {
4283 
4284  COPY_SCALAR_FIELD(replace);
4285  COPY_NODE_FIELD(type_name);
4286  COPY_STRING_FIELD(lang);
4287  COPY_NODE_FIELD(fromsql);
4288  COPY_NODE_FIELD(tosql);
4289 
4290  return newnode;
4291 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4306 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4307 {
4309 
4310  COPY_SCALAR_FIELD(replace);
4311  COPY_SCALAR_FIELD(isconstraint);
4312  COPY_STRING_FIELD(trigname);
4313  COPY_NODE_FIELD(relation);
4314  COPY_NODE_FIELD(funcname);
4316  COPY_SCALAR_FIELD(row);
4317  COPY_SCALAR_FIELD(timing);
4318  COPY_SCALAR_FIELD(events);
4319  COPY_NODE_FIELD(columns);
4320  COPY_NODE_FIELD(whenClause);
4321  COPY_NODE_FIELD(transitionRels);
4322  COPY_SCALAR_FIELD(deferrable);
4323  COPY_SCALAR_FIELD(initdeferred);
4324  COPY_NODE_FIELD(constrrel);
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:575

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4215 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4216 {
4218 
4220  COPY_STRING_FIELD(servername);
4221  COPY_SCALAR_FIELD(if_not_exists);
4223 
4224  return newnode;
4225 }
#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:575
static char * user
Definition: pg_regress.c:95

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 677 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2125 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2126 {
2127  CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
2128 
2129  COPY_SCALAR_FIELD(cvarno);
2130  COPY_STRING_FIELD(cursor_name);
2131  COPY_SCALAR_FIELD(cursor_param);
2132 
2133  return newnode;
2134 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 770 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4516 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4517 {
4519 
4521 
4522  return newnode;
4523 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
const char * name
Definition: encode.c:561

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3313 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3314 {
3316 
3317  COPY_STRING_FIELD(portalname);
3319  COPY_NODE_FIELD(query);
3320 
3321  return newnode;
3322 }
#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:575

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 2991 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2992 {
2993  DefElem *newnode = makeNode(DefElem);
2994 
2995  COPY_STRING_FIELD(defnamespace);
2996  COPY_STRING_FIELD(defname);
2998  COPY_SCALAR_FIELD(defaction);
2999  COPY_LOCATION_FIELD(location);
3000 
3001  return newnode;
3002 }
#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:575
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3420 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3421 {
3422  DefineStmt *newnode = makeNode(DefineStmt);
3423 
3424  COPY_SCALAR_FIELD(kind);
3425  COPY_SCALAR_FIELD(oldstyle);
3426  COPY_NODE_FIELD(defnames);
3428  COPY_NODE_FIELD(definition);
3429  COPY_SCALAR_FIELD(if_not_exists);
3430  COPY_SCALAR_FIELD(replace);
3431 
3432  return newnode;
3433 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3128 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3129 {
3130  DeleteStmt *newnode = makeNode(DeleteStmt);
3131 
3132  COPY_NODE_FIELD(relation);
3133  COPY_NODE_FIELD(usingClause);
3134  COPY_NODE_FIELD(whereClause);
3135  COPY_NODE_FIELD(returningList);
3136  COPY_NODE_FIELD(withClause);
3137 
3138  return newnode;
3139 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 4067 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4068 {
4069  DiscardStmt *newnode = makeNode(DiscardStmt);
4070 
4071  COPY_SCALAR_FIELD(target);
4072 
4073  return newnode;
4074 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1622 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1623 {
1624  DistinctExpr *newnode = makeNode(DistinctExpr);
1625 
1626  COPY_SCALAR_FIELD(opno);
1627  COPY_SCALAR_FIELD(opfuncid);
1628  COPY_SCALAR_FIELD(opresulttype);
1629  COPY_SCALAR_FIELD(opretset);
1630  COPY_SCALAR_FIELD(opcollid);
1631  COPY_SCALAR_FIELD(inputcollid);
1633  COPY_LOCATION_FIELD(location);
1634 
1635  return newnode;
1636 }
#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:575

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3599 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3600 {
3601  DoStmt *newnode = makeNode(DoStmt);
3602 
3604 
3605  return newnode;
3606 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 3923 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3924 {
3925  DropdbStmt *newnode = makeNode(DropdbStmt);
3926 
3928  COPY_SCALAR_FIELD(missing_ok);
3930 
3931  return newnode;
3932 }
#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:575
char * dbname
Definition: streamutil.c:51

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4526 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4527 {
4528  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4529 
4530  COPY_NODE_FIELD(roles);
4531  COPY_SCALAR_FIELD(behavior);
4532 
4533  return newnode;
4534 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4405 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4406 {
4407  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4408 
4409  COPY_NODE_FIELD(roles);
4410  COPY_SCALAR_FIELD(missing_ok);
4411 
4412  return newnode;
4413 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3436 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3437 {
3438  DropStmt *newnode = makeNode(DropStmt);
3439 
3440  COPY_NODE_FIELD(objects);
3441  COPY_SCALAR_FIELD(removeType);
3442  COPY_SCALAR_FIELD(behavior);
3443  COPY_SCALAR_FIELD(missing_ok);
3444  COPY_SCALAR_FIELD(concurrent);
3445 
3446  return newnode;
3447 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4725 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4726 {
4728 
4730  COPY_SCALAR_FIELD(missing_ok);
4731  COPY_SCALAR_FIELD(behavior);
4732 
4733  return newnode;
4734 }
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:575

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4090 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4091 {
4093 
4094  COPY_STRING_FIELD(tablespacename);
4095  COPY_SCALAR_FIELD(missing_ok);
4096 
4097  return newnode;
4098 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4240 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4241 {
4243 
4245  COPY_STRING_FIELD(servername);
4246  COPY_SCALAR_FIELD(missing_ok);
4247 
4248  return newnode;
4249 }
#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:575
static char * user
Definition: pg_regress.c:95

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4505 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4506 {
4507  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4508 
4510  COPY_NODE_FIELD(params);
4511 
4512  return newnode;
4513 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
const char * name
Definition: encode.c:561

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 3959 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3960 {
3961  ExplainStmt *newnode = makeNode(ExplainStmt);
3962 
3963  COPY_NODE_FIELD(query);
3965 
3966  return newnode;
3967 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4741 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4742 {
4743  ExtensibleNode *newnode;
4744  const ExtensibleNodeMethods *methods;
4745 
4746  methods = GetExtensibleNodeMethods(from->extnodename, false);
4747  newnode = (ExtensibleNode *) newNode(methods->node_size,
4749  COPY_STRING_FIELD(extnodename);
4750 
4751  /* copy the private fields */
4752  methods->nodeCopy(newnode, from);
4753 
4754  return newnode;
4755 }
#define newNode(size, tag)
Definition: nodes.h:565
#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 3487 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3488 {
3489  FetchStmt *newnode = makeNode(FetchStmt);
3490 
3491  COPY_SCALAR_FIELD(direction);
3492  COPY_SCALAR_FIELD(howMany);
3493  COPY_STRING_FIELD(portalname);
3494  COPY_SCALAR_FIELD(ismove);
3495 
3496  return newnode;
3497 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1754 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1755 {
1756  FieldSelect *newnode = makeNode(FieldSelect);
1757 
1759  COPY_SCALAR_FIELD(fieldnum);
1760  COPY_SCALAR_FIELD(resulttype);
1761  COPY_SCALAR_FIELD(resulttypmod);
1762  COPY_SCALAR_FIELD(resultcollid);
1763 
1764  return newnode;
1765 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1771 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1772 {
1773  FieldStore *newnode = makeNode(FieldStore);
1774 
1776  COPY_NODE_FIELD(newvals);
1777  COPY_NODE_FIELD(fieldnums);
1778  COPY_SCALAR_FIELD(resulttype);
1779 
1780  return newnode;
1781 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4792 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4793 {
4795 
4796  COPY_SCALAR_FIELD(conoid);
4797  COPY_SCALAR_FIELD(conrelid);
4798  COPY_SCALAR_FIELD(confrelid);
4799  COPY_SCALAR_FIELD(nkeys);
4800  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4801  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4802  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4803  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4804 
4805  return newnode;
4806 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:263
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:575
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:265
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:264

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 741 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2221 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2222 {
2223  FromExpr *newnode = makeNode(FromExpr);
2224 
2225  COPY_NODE_FIELD(fromlist);
2226  COPY_NODE_FIELD(quals);
2227 
2228  return newnode;
2229 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2679 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2680 {
2681  FuncCall *newnode = makeNode(FuncCall);
2682 
2683  COPY_NODE_FIELD(funcname);
2685  COPY_NODE_FIELD(agg_order);
2686  COPY_NODE_FIELD(agg_filter);
2687  COPY_NODE_FIELD(over);
2688  COPY_SCALAR_FIELD(agg_within_group);
2689  COPY_SCALAR_FIELD(agg_star);
2690  COPY_SCALAR_FIELD(agg_distinct);
2691  COPY_SCALAR_FIELD(func_variadic);
2692  COPY_SCALAR_FIELD(funcformat);
2693  COPY_LOCATION_FIELD(location);
2694 
2695  return newnode;
2696 }
#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:575

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1565 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1566 {
1567  FuncExpr *newnode = makeNode(FuncExpr);
1568 
1569  COPY_SCALAR_FIELD(funcid);
1570  COPY_SCALAR_FIELD(funcresulttype);
1571  COPY_SCALAR_FIELD(funcretset);
1572  COPY_SCALAR_FIELD(funcvariadic);
1573  COPY_SCALAR_FIELD(funcformat);
1574  COPY_SCALAR_FIELD(funccollid);
1575  COPY_SCALAR_FIELD(inputcollid);
1577  COPY_LOCATION_FIELD(location);
1578 
1579  return newnode;
1580 }
#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:575

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3574 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3575 {
3577 
3579  COPY_NODE_FIELD(argType);
3581  COPY_NODE_FIELD(defexpr);
3582 
3583  return newnode;
3584 }
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:575
const char * name
Definition: encode.c:561

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 613 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 354 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 379 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3287 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, grantor, and makeNode.

Referenced by copyObjectImpl().

3288 {
3289  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3290 
3291  COPY_NODE_FIELD(granted_roles);
3292  COPY_NODE_FIELD(grantee_roles);
3293  COPY_SCALAR_FIELD(is_grant);
3294  COPY_SCALAR_FIELD(admin_opt);
3296  COPY_SCALAR_FIELD(behavior);
3297 
3298  return newnode;
3299 }
#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:575

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3247 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3248 {
3249  GrantStmt *newnode = makeNode(GrantStmt);
3250 
3251  COPY_SCALAR_FIELD(is_grant);
3252  COPY_SCALAR_FIELD(targtype);
3253  COPY_SCALAR_FIELD(objtype);
3254  COPY_NODE_FIELD(objects);
3255  COPY_NODE_FIELD(privileges);
3256  COPY_NODE_FIELD(grantees);
3257  COPY_SCALAR_FIELD(grant_option);
3258  COPY_SCALAR_FIELD(behavior);
3259 
3260  return newnode;
3261 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 989 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

990 {
991  Group *newnode = makeNode(Group);
992 
993  CopyPlanFields((const Plan *) from, (Plan *) newnode);
994 
995  COPY_SCALAR_FIELD(numCols);
996  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
997  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
998  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
999 
1000  return newnode;
1001 }
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:575
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1506 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1507 {
1508  GroupingFunc *newnode = makeNode(GroupingFunc);
1509 
1511  COPY_NODE_FIELD(refs);
1512  COPY_NODE_FIELD(cols);
1513  COPY_SCALAR_FIELD(agglevelsup);
1514  COPY_LOCATION_FIELD(location);
1515 
1516  return newnode;
1517 }
#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:575

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2505 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2506 {
2507  GroupingSet *newnode = makeNode(GroupingSet);
2508 
2509  COPY_SCALAR_FIELD(kind);
2510  COPY_NODE_FIELD(content);
2511  COPY_LOCATION_FIELD(location);
2512 
2513  return newnode;
2514 }
#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:575

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1096 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1097 {
1098  Hash *newnode = makeNode(Hash);
1099 
1100  /*
1101  * copy node superclass fields
1102  */
1103  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1104 
1105  /*
1106  * copy remainder of node
1107  */
1108  COPY_NODE_FIELD(hashkeys);
1109  COPY_SCALAR_FIELD(skewTable);
1110  COPY_SCALAR_FIELD(skewColumn);
1111  COPY_SCALAR_FIELD(skewInherit);
1112  COPY_SCALAR_FIELD(rows_total);
1113 
1114  return newnode;
1115 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 890 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4265 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4266 {
4268 
4269  COPY_STRING_FIELD(server_name);
4270  COPY_STRING_FIELD(remote_schema);
4271  COPY_STRING_FIELD(local_schema);
4272  COPY_SCALAR_FIELD(list_type);
4273  COPY_NODE_FIELD(table_list);
4275 
4276  return newnode;
4277 }
#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:575

◆ _copyIncrementalSort()

static IncrementalSort* _copyIncrementalSort ( const IncrementalSort from)
static

Definition at line 967 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopySortFields(), and makeNode.

Referenced by copyObjectImpl().

968 {
970 
971  /*
972  * copy node superclass fields
973  */
974  CopySortFields((const Sort *) from, (Sort *) newnode);
975 
976  /*
977  * copy remainder of node
978  */
979  COPY_SCALAR_FIELD(nPresortedCols);
980 
981  return newnode;
982 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopySortFields(const Sort *from, Sort *newnode)
Definition: copyfuncs.c:935
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 2911 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2912 {
2913  IndexElem *newnode = makeNode(IndexElem);
2914 
2916  COPY_NODE_FIELD(expr);
2917  COPY_STRING_FIELD(indexcolname);
2918  COPY_NODE_FIELD(collation);
2919  COPY_NODE_FIELD(opclass);
2920  COPY_NODE_FIELD(opclassopts);
2921  COPY_SCALAR_FIELD(ordering);
2922  COPY_SCALAR_FIELD(nulls_ordering);
2923 
2924  return newnode;
2925 }
#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:575
const char * name
Definition: encode.c:561

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 501 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 474 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3500 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3501 {
3502  IndexStmt *newnode = makeNode(IndexStmt);
3503 
3504  COPY_STRING_FIELD(idxname);
3505  COPY_NODE_FIELD(relation);
3506  COPY_STRING_FIELD(accessMethod);
3507  COPY_STRING_FIELD(tableSpace);
3508  COPY_NODE_FIELD(indexParams);
3509  COPY_NODE_FIELD(indexIncludingParams);
3511  COPY_NODE_FIELD(whereClause);
3512  COPY_NODE_FIELD(excludeOpNames);
3513  COPY_STRING_FIELD(idxcomment);
3514  COPY_SCALAR_FIELD(indexOid);
3515  COPY_SCALAR_FIELD(oldNode);
3516  COPY_SCALAR_FIELD(oldCreateSubid);
3517  COPY_SCALAR_FIELD(oldFirstRelfilenodeSubid);
3518  COPY_SCALAR_FIELD(unique);
3519  COPY_SCALAR_FIELD(primary);
3520  COPY_SCALAR_FIELD(isconstraint);
3521  COPY_SCALAR_FIELD(deferrable);
3522  COPY_SCALAR_FIELD(initdeferred);
3523  COPY_SCALAR_FIELD(transformed);
3524  COPY_SCALAR_FIELD(concurrent);
3525  COPY_SCALAR_FIELD(if_not_exists);
3526  COPY_SCALAR_FIELD(reset_default_tblspc);
3527 
3528  return newnode;
3529 }
#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:575

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2565 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2566 {
2567  InferClause *newnode = makeNode(InferClause);
2568 
2569  COPY_NODE_FIELD(indexElems);
2570  COPY_NODE_FIELD(whereClause);
2571  COPY_STRING_FIELD(conname);
2572  COPY_LOCATION_FIELD(location);
2573 
2574  return newnode;
2575 }
#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:575

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2154 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2155 {
2156  InferenceElem *newnode = makeNode(InferenceElem);
2157 
2158  COPY_NODE_FIELD(expr);
2159  COPY_SCALAR_FIELD(infercollid);
2160  COPY_SCALAR_FIELD(inferopclass);
2161 
2162  return newnode;
2163 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3112 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3113 {
3114  InsertStmt *newnode = makeNode(InsertStmt);
3115 
3116  COPY_NODE_FIELD(relation);
3117  COPY_NODE_FIELD(cols);
3118  COPY_NODE_FIELD(selectStmt);
3119  COPY_NODE_FIELD(onConflictClause);
3120  COPY_NODE_FIELD(returningList);
3121  COPY_NODE_FIELD(withClause);
3122  COPY_SCALAR_FIELD(override);
3123 
3124  return newnode;
3125 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1371 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1372 {
1373  IntoClause *newnode = makeNode(IntoClause);
1374 
1375  COPY_NODE_FIELD(rel);
1376  COPY_NODE_FIELD(colNames);
1377  COPY_STRING_FIELD(accessMethod);
1379  COPY_SCALAR_FIELD(onCommit);
1380  COPY_STRING_FIELD(tableSpaceName);
1381  COPY_NODE_FIELD(viewQuery);
1382  COPY_SCALAR_FIELD(skipData);
1383 
1384  return newnode;
1385 }
#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:575

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 820 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2201 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2202 {
2203  JoinExpr *newnode = makeNode(JoinExpr);
2204 
2205  COPY_SCALAR_FIELD(jointype);
2206  COPY_SCALAR_FIELD(isNatural);
2207  COPY_NODE_FIELD(larg);
2208  COPY_NODE_FIELD(rarg);
2209  COPY_NODE_FIELD(usingClause);
2210  COPY_NODE_FIELD(quals);
2211  COPY_NODE_FIELD(alias);
2212  COPY_SCALAR_FIELD(rtindex);
2213 
2214  return newnode;
2215 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1172 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1173 {
1174  Limit *newnode = makeNode(Limit);
1175 
1176  /*
1177  * copy node superclass fields
1178  */
1179  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1180 
1181  /*
1182  * copy remainder of node
1183  */
1184  COPY_NODE_FIELD(limitOffset);
1185  COPY_NODE_FIELD(limitCount);
1186  COPY_SCALAR_FIELD(limitOption);
1187  COPY_SCALAR_FIELD(uniqNumCols);
1188  COPY_POINTER_FIELD(uniqColIdx, from->uniqNumCols * sizeof(AttrNumber));
1189  COPY_POINTER_FIELD(uniqOperators, from->uniqNumCols * sizeof(Oid));
1190  COPY_POINTER_FIELD(uniqCollations, from->uniqNumCols * sizeof(Oid));
1191 
1192  return newnode;
1193 }
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:575
int16 AttrNumber
Definition: attnum.h:21

◆ _copyListenStmt()

static ListenStmt* _copyListenStmt ( const ListenStmt from)
static

Definition at line 3716 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3717 {
3718  ListenStmt *newnode = makeNode(ListenStmt);
3719 
3720  COPY_STRING_FIELD(conditionname);
3721 
3722  return newnode;
3723 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyLoadStmt()

static LoadStmt* _copyLoadStmt ( const LoadStmt from)
static

Definition at line 3813 of file copyfuncs.c.

References COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3814 {
3815  LoadStmt *newnode = makeNode(LoadStmt);
3816 
3818 
3819  return newnode;
3820 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:575
static char * filename
Definition: pg_dumpall.c:91

◆ _copyLockingClause()

static LockingClause* _copyLockingClause ( const LockingClause from)
static

Definition at line 3005 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3006 {
3007  LockingClause *newnode = makeNode(LockingClause);
3008 
3009  COPY_NODE_FIELD(lockedRels);
3010  COPY_SCALAR_FIELD(strength);
3011  COPY_SCALAR_FIELD(waitPolicy);
3012 
3013  return newnode;
3014 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyLockRows()

static LockRows* _copyLockRows ( const LockRows from)
static

Definition at line 1150 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1151 {
1152  LockRows *newnode = makeNode(LockRows);
1153 
1154  /*
1155  * copy node superclass fields
1156  */
1157  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1158 
1159  /*
1160  * copy remainder of node
1161  */
1162  COPY_NODE_FIELD(rowMarks);
1163  COPY_SCALAR_FIELD(epqParam);
1164 
1165  return newnode;
1166 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:575

◆ _copyLockStmt()

static LockStmt* _copyLockStmt ( const LockStmt from)
static

Definition at line 4416 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and mode.

Referenced by copyObjectImpl().

4417 {
4418  LockStmt *newnode = makeNode(LockStmt);
4419 
4420  COPY_NODE_FIELD(relations);
4422  COPY_SCALAR_FIELD(nowait);
4423 
4424