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

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ COPY_BITMAPSET_FIELD

◆ COPY_LOCATION_FIELD

◆ COPY_NODE_FIELD

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

Definition at line 45 of file copyfuncs.c.

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

Definition at line 57 of file copyfuncs.c.

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

◆ COPY_SCALAR_FIELD

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

Definition at line 41 of file copyfuncs.c.

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

◆ COPY_STRING_FIELD

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

Definition at line 53 of file copyfuncs.c.

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

Function Documentation

◆ _copyA_ArrayExpr()

static A_ArrayExpr* _copyA_ArrayExpr ( const A_ArrayExpr from)
static

Definition at line 2681 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2682 {
2683  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2684 
2685  COPY_NODE_FIELD(elements);
2686  COPY_LOCATION_FIELD(location);
2687 
2688  return newnode;
2689 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2670 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2671 {
2672  A_Indirection *newnode = makeNode(A_Indirection);
2673 
2675  COPY_NODE_FIELD(indirection);
2676 
2677  return newnode;
2678 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572
void * arg

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3233 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3234 {
3235  AccessPriv *newnode = makeNode(AccessPriv);
3236 
3237  COPY_STRING_FIELD(priv_name);
3238  COPY_NODE_FIELD(cols);
3239 
3240  return newnode;
3241 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAConst()

static A_Const* _copyAConst ( const A_Const from)
static

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

2601 {
2602  A_Const *newnode = makeNode(A_Const);
2603 
2604  /* This part must duplicate _copyValue */
2605  COPY_SCALAR_FIELD(val.type);
2606  switch (from->val.type)
2607  {
2608  case T_Integer:
2609  COPY_SCALAR_FIELD(val.val.ival);
2610  break;
2611  case T_Float:
2612  case T_String:
2613  case T_BitString:
2614  COPY_STRING_FIELD(val.val.str);
2615  break;
2616  case T_Null:
2617  /* nothing to do */
2618  break;
2619  default:
2620  elog(ERROR, "unrecognized node type: %d",
2621  (int) from->val.type);
2622  break;
2623  }
2624 
2625  COPY_LOCATION_FIELD(location);
2626 
2627  return newnode;
2628 }
#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:572
Definition: nodes.h:292
Definition: nodes.h:289
#define elog(elevel,...)
Definition: elog.h:226
Value val
Definition: parsenodes.h:288
long val
Definition: informix.c:684
NodeTag type
Definition: value.h:44

◆ _copyAExpr()

static A_Expr* _copyAExpr ( const A_Expr from)
static

Definition at line 2564 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2565 {
2566  A_Expr *newnode = makeNode(A_Expr);
2567 
2568  COPY_SCALAR_FIELD(kind);
2570  COPY_NODE_FIELD(lexpr);
2571  COPY_NODE_FIELD(rexpr);
2572  COPY_LOCATION_FIELD(location);
2573 
2574  return newnode;
2575 }
#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:572
const char * name
Definition: encode.c:521

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 972 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1434 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAIndices()

static A_Indices* _copyAIndices ( const A_Indices from)
static

Definition at line 2658 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2659 {
2660  A_Indices *newnode = makeNode(A_Indices);
2661 
2662  COPY_SCALAR_FIELD(is_slice);
2663  COPY_NODE_FIELD(lidx);
2664  COPY_NODE_FIELD(uidx);
2665 
2666  return newnode;
2667 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1272 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterCollationStmt()

static AlterCollationStmt* _copyAlterCollationStmt ( const AlterCollationStmt from)
static

Definition at line 3179 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3180 {
3182 
3183  COPY_NODE_FIELD(collname);
3184 
3185  return newnode;
3186 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 3842 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3843 {
3845 
3847  COPY_NODE_FIELD(setstmt);
3848 
3849  return newnode;
3850 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
char * dbname
Definition: streamutil.c:52

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 3831 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3832 {
3834 
3837 
3838  return newnode;
3839 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
char * dbname
Definition: streamutil.c:52

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3259 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3260 {
3262 
3265 
3266  return newnode;
3267 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3189 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3190 {
3192 
3193  COPY_SCALAR_FIELD(subtype);
3194  COPY_NODE_FIELD(typeName);
3196  COPY_NODE_FIELD(def);
3197  COPY_SCALAR_FIELD(behavior);
3198  COPY_SCALAR_FIELD(missing_ok);
3199 
3200  return newnode;
3201 }
#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:572
const char * name
Definition: encode.c:521

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3713 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3714 {
3715  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3716 
3717  COPY_NODE_FIELD(typeName);
3718  COPY_STRING_FIELD(oldVal);
3719  COPY_STRING_FIELD(newVal);
3720  COPY_STRING_FIELD(newValNeighbor);
3721  COPY_SCALAR_FIELD(newValIsAfter);
3722  COPY_SCALAR_FIELD(skipIfNewValExists);
3723 
3724  return newnode;
3725 }
#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:572

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4271 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4272 {
4274 
4275  COPY_STRING_FIELD(trigname);
4276  COPY_SCALAR_FIELD(tgenabled);
4277 
4278  return newnode;
4279 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4079 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4080 {
4082 
4083  COPY_STRING_FIELD(extname);
4085  COPY_SCALAR_FIELD(objtype);
4086  COPY_NODE_FIELD(object);
4087 
4088  return newnode;
4089 }
#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:572

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4068 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4069 {
4071 
4072  COPY_STRING_FIELD(extname);
4074 
4075  return newnode;
4076 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4104 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4105 {
4106  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4107 
4108  COPY_STRING_FIELD(fdwname);
4109  COPY_NODE_FIELD(func_options);
4111 
4112  return newnode;
4113 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4131 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4132 {
4134 
4135  COPY_STRING_FIELD(servername);
4136  COPY_STRING_FIELD(version);
4138  COPY_SCALAR_FIELD(has_version);
4139 
4140  return newnode;
4141 }
#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:572

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3529 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3530 {
3532 
3533  COPY_SCALAR_FIELD(objtype);
3534  COPY_NODE_FIELD(func);
3535  COPY_NODE_FIELD(actions);
3536 
3537  return newnode;
3538 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1698 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1699 {
1701 
1702  COPY_NODE_FIELD(subplans);
1703 
1704  return newnode;
1705 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3568 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3569 {
3571 
3572  COPY_SCALAR_FIELD(objectType);
3573  COPY_NODE_FIELD(relation);
3574  COPY_NODE_FIELD(object);
3575  COPY_NODE_FIELD(extname);
3576 
3577  return newnode;
3578 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3581 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3582 {
3584 
3585  COPY_SCALAR_FIELD(objectType);
3586  COPY_NODE_FIELD(relation);
3587  COPY_NODE_FIELD(object);
3588  COPY_STRING_FIELD(newschema);
3589  COPY_SCALAR_FIELD(missing_ok);
3590 
3591  return newnode;
3592 }
#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:572

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3608 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3609 {
3611 
3612  COPY_NODE_FIELD(opername);
3614 
3615  return newnode;
3616 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 3807 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3808 {
3810 
3811  COPY_NODE_FIELD(opfamilyname);
3812  COPY_STRING_FIELD(amname);
3813  COPY_SCALAR_FIELD(isDrop);
3814  COPY_NODE_FIELD(items);
3815 
3816  return newnode;
3817 }
#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:572

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3595 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3596 {
3598 
3599  COPY_SCALAR_FIELD(objectType);
3600  COPY_NODE_FIELD(relation);
3601  COPY_NODE_FIELD(object);
3602  COPY_NODE_FIELD(newowner);
3603 
3604  return newnode;
3605 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4520 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4521 {
4523 
4524  COPY_STRING_FIELD(policy_name);
4525  COPY_NODE_FIELD(table);
4526  COPY_NODE_FIELD(roles);
4527  COPY_NODE_FIELD(qual);
4528  COPY_NODE_FIELD(with_check);
4529 
4530  return newnode;
4531 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4613 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4614 {
4616 
4617  COPY_STRING_FIELD(pubname);
4619  COPY_NODE_FIELD(tables);
4620  COPY_SCALAR_FIELD(for_all_tables);
4621  COPY_SCALAR_FIELD(tableAction);
4622 
4623  return newnode;
4624 }
#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:572

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4321 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4322 {
4324 
4325  COPY_NODE_FIELD(role);
4326  COPY_STRING_FIELD(database);
4327  COPY_NODE_FIELD(setstmt);
4328 
4329  return newnode;
4330 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4309 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4310 {
4311  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4312 
4313  COPY_NODE_FIELD(role);
4316 
4317  return newnode;
4318 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 3960 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3961 {
3962  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
3963 
3964  COPY_NODE_FIELD(sequence);
3966  COPY_SCALAR_FIELD(for_identity);
3967  COPY_SCALAR_FIELD(missing_ok);
3968 
3969  return newnode;
3970 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4640 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4641 {
4643 
4644  COPY_SCALAR_FIELD(kind);
4646  COPY_STRING_FIELD(conninfo);
4647  COPY_NODE_FIELD(publication);
4649 
4650  return newnode;
4651 }
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:572

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 3936 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3937 {
3939 
3940  COPY_NODE_FIELD(setstmt);
3941 
3942  return newnode;
3943 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3163 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3164 {
3165  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3166 
3167  COPY_SCALAR_FIELD(subtype);
3169  COPY_SCALAR_FIELD(num);
3170  COPY_NODE_FIELD(newowner);
3171  COPY_NODE_FIELD(def);
3172  COPY_SCALAR_FIELD(behavior);
3173  COPY_SCALAR_FIELD(missing_ok);
3174 
3175  return newnode;
3176 }
#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:572
const char * name
Definition: encode.c:521

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4042 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4043 {
4045 
4046  COPY_STRING_FIELD(orig_tablespacename);
4047  COPY_SCALAR_FIELD(objtype);
4048  COPY_NODE_FIELD(roles);
4049  COPY_STRING_FIELD(new_tablespacename);
4050  COPY_SCALAR_FIELD(nowait);
4051 
4052  return newnode;
4053 }
#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:572

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 4030 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4031 {
4033 
4034  COPY_STRING_FIELD(tablespacename);
4036  COPY_SCALAR_FIELD(isReset);
4037 
4038  return newnode;
4039 }
#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:572

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3150 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3151 {
3153 
3154  COPY_NODE_FIELD(relation);
3155  COPY_NODE_FIELD(cmds);
3157  COPY_SCALAR_FIELD(missing_ok);
3158 
3159  return newnode;
3160 }
char relkind
Definition: pg_class.h:81
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4488 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4489 {
4491 
4492  COPY_SCALAR_FIELD(kind);
4493  COPY_NODE_FIELD(cfgname);
4494  COPY_NODE_FIELD(tokentype);
4495  COPY_NODE_FIELD(dicts);
4496  COPY_SCALAR_FIELD(override);
4497  COPY_SCALAR_FIELD(replace);
4498  COPY_SCALAR_FIELD(missing_ok);
4499 
4500  return newnode;
4501 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4477 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4478 {
4480 
4481  COPY_NODE_FIELD(dictname);
4483 
4484  return newnode;
4485 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4157 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4158 {
4160 
4162  COPY_STRING_FIELD(servername);
4164 
4165  return newnode;
4166 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
static char * user
Definition: pg_regress.c:95

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 232 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

233 {
234  Append *newnode = makeNode(Append);
235 
236  /*
237  * copy node superclass fields
238  */
239  CopyPlanFields((const Plan *) from, (Plan *) newnode);
240 
241  /*
242  * copy remainder of node
243  */
244  COPY_NODE_FIELD(appendplans);
245  COPY_SCALAR_FIELD(first_partial_plan);
246  COPY_NODE_FIELD(part_prune_info);
247 
248  return newnode;
249 }
#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:572

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2321 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2322 {
2323  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2324 
2325  COPY_SCALAR_FIELD(parent_relid);
2326  COPY_SCALAR_FIELD(child_relid);
2327  COPY_SCALAR_FIELD(parent_reltype);
2328  COPY_SCALAR_FIELD(child_reltype);
2329  COPY_NODE_FIELD(translated_vars);
2330  COPY_SCALAR_FIELD(parent_reloid);
2331 
2332  return newnode;
2333 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1779 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1780 {
1782 
1784  COPY_NODE_FIELD(elemexpr);
1785  COPY_SCALAR_FIELD(resulttype);
1786  COPY_SCALAR_FIELD(resulttypmod);
1787  COPY_SCALAR_FIELD(resultcollid);
1788  COPY_SCALAR_FIELD(coerceformat);
1789  COPY_LOCATION_FIELD(location);
1790 
1791  return newnode;
1792 }
#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:572
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1877 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAStar()

static A_Star* _copyAStar ( const A_Star from)
static

Definition at line 2650 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2651 {
2652  A_Star *newnode = makeNode(A_Star);
2653 
2654  return newnode;
2655 }
#define makeNode(_type_)
Definition: nodes.h:572

◆ _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:572

◆ _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:572

◆ _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:572

◆ _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:572

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 2017 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2018 {
2019  BooleanTest *newnode = makeNode(BooleanTest);
2020 
2022  COPY_SCALAR_FIELD(booltesttype);
2023  COPY_LOCATION_FIELD(location);
2024 
2025  return newnode;
2026 }
#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:572
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1637 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1638 {
1639  BoolExpr *newnode = makeNode(BoolExpr);
1640 
1643  COPY_LOCATION_FIELD(location);
1644 
1645  return newnode;
1646 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:420
#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:572

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3292 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3293 {
3294  CallStmt *newnode = makeNode(CallStmt);
3295 
3296  COPY_NODE_FIELD(funccall);
3297  COPY_NODE_FIELD(funcexpr);
3298 
3299  return newnode;
3300 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1829 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1830 {
1831  CaseExpr *newnode = makeNode(CaseExpr);
1832 
1833  COPY_SCALAR_FIELD(casetype);
1834  COPY_SCALAR_FIELD(casecollid);
1837  COPY_NODE_FIELD(defresult);
1838  COPY_LOCATION_FIELD(location);
1839 
1840  return newnode;
1841 }
#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:572
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1862 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1847 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3282 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3283 {
3285 
3286  COPY_STRING_FIELD(portalname);
3287 
3288  return newnode;
3289 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3303 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3304 {
3305  ClusterStmt *newnode = makeNode(ClusterStmt);
3306 
3307  COPY_NODE_FIELD(relation);
3308  COPY_STRING_FIELD(indexname);
3310 
3311  return newnode;
3312 }
#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:572

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 1930 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1931 {
1932  CoalesceExpr *newnode = makeNode(CoalesceExpr);
1933 
1934  COPY_SCALAR_FIELD(coalescetype);
1935  COPY_SCALAR_FIELD(coalescecollid);
1937  COPY_LOCATION_FIELD(location);
1938 
1939  return newnode;
1940 }
#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:572

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 2032 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2033 {
2035 
2037  COPY_SCALAR_FIELD(resulttype);
2038  COPY_SCALAR_FIELD(resulttypmod);
2039  COPY_SCALAR_FIELD(resultcollid);
2040  COPY_SCALAR_FIELD(coercionformat);
2041  COPY_LOCATION_FIELD(location);
2042 
2043  return newnode;
2044 }
#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:572
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 2050 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1762 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1763 {
1764  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1765 
1767  COPY_SCALAR_FIELD(resulttype);
1768  COPY_SCALAR_FIELD(resultcollid);
1769  COPY_SCALAR_FIELD(coerceformat);
1770  COPY_LOCATION_FIELD(location);
1771 
1772  return newnode;
1773 }
#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:572
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2850 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2851 {
2852  CollateClause *newnode = makeNode(CollateClause);
2853 
2855  COPY_NODE_FIELD(collname);
2856  COPY_LOCATION_FIELD(location);
2857 
2858  return newnode;
2859 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:572
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1814 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1815 {
1816  CollateExpr *newnode = makeNode(CollateExpr);
1817 
1819  COPY_SCALAR_FIELD(collOid);
1820  COPY_LOCATION_FIELD(location);
1821 
1822  return newnode;
1823 }
#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:572
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 2878 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2879 {
2880  ColumnDef *newnode = makeNode(ColumnDef);
2881 
2882  COPY_STRING_FIELD(colname);
2883  COPY_NODE_FIELD(typeName);
2884  COPY_SCALAR_FIELD(inhcount);
2885  COPY_SCALAR_FIELD(is_local);
2886  COPY_SCALAR_FIELD(is_not_null);
2887  COPY_SCALAR_FIELD(is_from_type);
2888  COPY_SCALAR_FIELD(storage);
2889  COPY_NODE_FIELD(raw_default);
2890  COPY_NODE_FIELD(cooked_default);
2891  COPY_SCALAR_FIELD(identity);
2892  COPY_NODE_FIELD(identitySequence);
2893  COPY_SCALAR_FIELD(generated);
2894  COPY_NODE_FIELD(collClause);
2895  COPY_SCALAR_FIELD(collOid);
2896  COPY_NODE_FIELD(constraints);
2897  COPY_NODE_FIELD(fdwoptions);
2898  COPY_LOCATION_FIELD(location);
2899 
2900  return newnode;
2901 }
#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:572

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2578 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2579 {
2580  ColumnRef *newnode = makeNode(ColumnRef);
2581 
2582  COPY_NODE_FIELD(fields);
2583  COPY_LOCATION_FIELD(location);
2584 
2585  return newnode;
2586 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3418 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3419 {
3420  CommentStmt *newnode = makeNode(CommentStmt);
3421 
3422  COPY_SCALAR_FIELD(objtype);
3423  COPY_NODE_FIELD(object);
3424  COPY_STRING_FIELD(comment);
3425 
3426  return newnode;
3427 }
#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:572

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2544 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2545 {
2547 
2548  COPY_STRING_FIELD(ctename);
2549  COPY_NODE_FIELD(aliascolnames);
2550  COPY_SCALAR_FIELD(ctematerialized);
2551  COPY_NODE_FIELD(ctequery);
2552  COPY_LOCATION_FIELD(location);
2553  COPY_SCALAR_FIELD(cterecursive);
2554  COPY_SCALAR_FIELD(cterefcount);
2555  COPY_NODE_FIELD(ctecolnames);
2556  COPY_NODE_FIELD(ctecoltypes);
2557  COPY_NODE_FIELD(ctecoltypmods);
2558  COPY_NODE_FIELD(ctecolcollations);
2559 
2560  return newnode;
2561 }
#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:572

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3680 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3681 {
3683 
3684  COPY_NODE_FIELD(typevar);
3685  COPY_NODE_FIELD(coldeflist);
3686 
3687  return newnode;
3688 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

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

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

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 2904 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2905 {
2906  Constraint *newnode = makeNode(Constraint);
2907 
2908  COPY_SCALAR_FIELD(contype);
2909  COPY_STRING_FIELD(conname);
2910  COPY_SCALAR_FIELD(deferrable);
2911  COPY_SCALAR_FIELD(initdeferred);
2912  COPY_LOCATION_FIELD(location);
2913  COPY_SCALAR_FIELD(is_no_inherit);
2914  COPY_NODE_FIELD(raw_expr);
2915  COPY_STRING_FIELD(cooked_expr);
2916  COPY_SCALAR_FIELD(generated_when);
2917  COPY_NODE_FIELD(keys);
2918  COPY_NODE_FIELD(including);
2919  COPY_NODE_FIELD(exclusions);
2921  COPY_STRING_FIELD(indexname);
2922  COPY_STRING_FIELD(indexspace);
2923  COPY_SCALAR_FIELD(reset_default_tblspc);
2924  COPY_STRING_FIELD(access_method);
2925  COPY_NODE_FIELD(where_clause);
2926  COPY_NODE_FIELD(pktable);
2927  COPY_NODE_FIELD(fk_attrs);
2928  COPY_NODE_FIELD(pk_attrs);
2929  COPY_SCALAR_FIELD(fk_matchtype);
2930  COPY_SCALAR_FIELD(fk_upd_action);
2931  COPY_SCALAR_FIELD(fk_del_action);
2932  COPY_NODE_FIELD(old_conpfeqop);
2933  COPY_SCALAR_FIELD(old_pktable_oid);
2934  COPY_SCALAR_FIELD(skip_validation);
2935  COPY_SCALAR_FIELD(initially_valid);
2936 
2937  return newnode;
2938 }
#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:572

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4356 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4357 {
4359 
4360  COPY_NODE_FIELD(constraints);
4361  COPY_SCALAR_FIELD(deferred);
4362 
4363  return newnode;
4364 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1798 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1799 {
1801 
1803  COPY_SCALAR_FIELD(resulttype);
1804  COPY_SCALAR_FIELD(convertformat);
1805  COPY_LOCATION_FIELD(location);
1806 
1807  return newnode;
1808 }
#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:572
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3315 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3316 {
3317  CopyStmt *newnode = makeNode(CopyStmt);
3318 
3319  COPY_NODE_FIELD(relation);
3320  COPY_NODE_FIELD(query);
3321  COPY_NODE_FIELD(attlist);
3322  COPY_SCALAR_FIELD(is_from);
3323  COPY_SCALAR_FIELD(is_program);
3326  COPY_NODE_FIELD(whereClause);
3327 
3328  return newnode;
3329 }
#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:572
static char * filename
Definition: pg_dumpall.c:91

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4223 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4224 {
4225  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4226 
4227  COPY_STRING_FIELD(amname);
4228  COPY_NODE_FIELD(handler_name);
4229  COPY_SCALAR_FIELD(amtype);
4230 
4231  return newnode;
4232 }
#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:572

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4408 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4409 {
4411 
4412  COPY_NODE_FIELD(sourcetype);
4413  COPY_NODE_FIELD(targettype);
4414  COPY_NODE_FIELD(func);
4415  COPY_SCALAR_FIELD(context);
4416  COPY_SCALAR_FIELD(inout);
4417 
4418  return newnode;
4419 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4394 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4395 {
4397 
4398  COPY_NODE_FIELD(conversion_name);
4399  COPY_STRING_FIELD(for_encoding_name);
4400  COPY_STRING_FIELD(to_encoding_name);
4401  COPY_NODE_FIELD(func_name);
4402  COPY_SCALAR_FIELD(def);
4403 
4404  return newnode;
4405 }
#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:572

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 3820 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3821 {
3822  CreatedbStmt *newnode = makeNode(CreatedbStmt);
3823 
3826 
3827  return newnode;
3828 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
char * dbname
Definition: streamutil.c:52

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3753 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3754 {
3756 
3757  COPY_NODE_FIELD(domainname);
3758  COPY_NODE_FIELD(typeName);
3759  COPY_NODE_FIELD(collClause);
3760  COPY_NODE_FIELD(constraints);
3761 
3762  return newnode;
3763 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3691 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3692 {
3694 
3695  COPY_NODE_FIELD(typeName);
3696  COPY_NODE_FIELD(vals);
3697 
3698  return newnode;
3699 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4258 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4259 {
4261 
4262  COPY_STRING_FIELD(trigname);
4263  COPY_STRING_FIELD(eventname);
4264  COPY_NODE_FIELD(whenclause);
4265  COPY_NODE_FIELD(funcname);
4266 
4267  return newnode;
4268 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4056 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4057 {
4059 
4060  COPY_STRING_FIELD(extname);
4061  COPY_SCALAR_FIELD(if_not_exists);
4063 
4064  return newnode;
4065 }
#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:572

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4092 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4093 {
4094  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4095 
4096  COPY_STRING_FIELD(fdwname);
4097  COPY_NODE_FIELD(func_options);
4099 
4100  return newnode;
4101 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4116 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4117 {
4119 
4120  COPY_STRING_FIELD(servername);
4121  COPY_STRING_FIELD(servertype);
4122  COPY_STRING_FIELD(version);
4123  COPY_STRING_FIELD(fdwname);
4124  COPY_SCALAR_FIELD(if_not_exists);
4126 
4127  return newnode;
4128 }
#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:572

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4181 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4182 {
4184 
4185  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4186 
4187  COPY_STRING_FIELD(servername);
4189 
4190  return newnode;
4191 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3338
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3501 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3502 {
3504 
3505  COPY_SCALAR_FIELD(is_procedure);
3506  COPY_SCALAR_FIELD(replace);
3507  COPY_NODE_FIELD(funcname);
3508  COPY_NODE_FIELD(parameters);
3509  COPY_NODE_FIELD(returnType);
3511 
3512  return newnode;
3513 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3781 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3782 {
3784 
3785  COPY_SCALAR_FIELD(itemtype);
3787  COPY_SCALAR_FIELD(number);
3788  COPY_NODE_FIELD(order_family);
3789  COPY_NODE_FIELD(class_args);
3790  COPY_NODE_FIELD(storedtype);
3791 
3792  return newnode;
3793 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572
const char * name
Definition: encode.c:521

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3766 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3767 {
3769 
3770  COPY_NODE_FIELD(opclassname);
3771  COPY_NODE_FIELD(opfamilyname);
3772  COPY_STRING_FIELD(amname);
3773  COPY_NODE_FIELD(datatype);
3774  COPY_NODE_FIELD(items);
3775  COPY_SCALAR_FIELD(isDefault);
3776 
3777  return newnode;
3778 }
#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:572

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3796 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3797 {
3799 
3800  COPY_NODE_FIELD(opfamilyname);
3801  COPY_STRING_FIELD(amname);
3802 
3803  return newnode;
3804 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4282 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4283 {
4285 
4286  COPY_SCALAR_FIELD(replace);
4287  COPY_STRING_FIELD(plname);
4288  COPY_NODE_FIELD(plhandler);
4289  COPY_NODE_FIELD(plinline);
4290  COPY_NODE_FIELD(plvalidator);
4291  COPY_SCALAR_FIELD(pltrusted);
4292 
4293  return newnode;
4294 }
#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:572

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4504 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4505 {
4507 
4508  COPY_STRING_FIELD(policy_name);
4509  COPY_NODE_FIELD(table);
4510  COPY_STRING_FIELD(cmd_name);
4511  COPY_SCALAR_FIELD(permissive);
4512  COPY_NODE_FIELD(roles);
4513  COPY_NODE_FIELD(qual);
4514  COPY_NODE_FIELD(with_check);
4515 
4516  return newnode;
4517 }
#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:572

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4600 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4601 {
4603 
4604  COPY_STRING_FIELD(pubname);
4606  COPY_NODE_FIELD(tables);
4607  COPY_SCALAR_FIELD(for_all_tables);
4608 
4609  return newnode;
4610 }
#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:572

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3702 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3703 {
3705 
3706  COPY_NODE_FIELD(typeName);
3707  COPY_NODE_FIELD(params);
3708 
3709  return newnode;
3710 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4297 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4298 {
4300 
4301  COPY_SCALAR_FIELD(stmt_type);
4302  COPY_STRING_FIELD(role);
4304 
4305  return newnode;
4306 }
#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:572

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4381 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4382 {
4384 
4385  COPY_STRING_FIELD(schemaname);
4386  COPY_NODE_FIELD(authrole);
4387  COPY_NODE_FIELD(schemaElts);
4388  COPY_SCALAR_FIELD(if_not_exists);
4389 
4390  return newnode;
4391 }
#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:572

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 3946 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3947 {
3948  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
3949 
3950  COPY_NODE_FIELD(sequence);
3952  COPY_SCALAR_FIELD(ownerId);
3953  COPY_SCALAR_FIELD(for_identity);
3954  COPY_SCALAR_FIELD(if_not_exists);
3955 
3956  return newnode;
3957 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3486 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3487 {
3489 
3490  COPY_NODE_FIELD(defnames);
3491  COPY_NODE_FIELD(stat_types);
3492  COPY_NODE_FIELD(exprs);
3493  COPY_NODE_FIELD(relations);
3494  COPY_STRING_FIELD(stxcomment);
3495  COPY_SCALAR_FIELD(if_not_exists);
3496 
3497  return newnode;
3498 }
#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:572

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3355 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3356 {
3357  CreateStmt *newnode = makeNode(CreateStmt);
3358 
3359  CopyCreateStmtFields(from, newnode);
3360 
3361  return newnode;
3362 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3338
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4627 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4628 {
4630 
4632  COPY_STRING_FIELD(conninfo);
4633  COPY_NODE_FIELD(publication);
4635 
4636  return newnode;
4637 }
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:572

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 3899 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3900 {
3902 
3903  COPY_NODE_FIELD(query);
3904  COPY_NODE_FIELD(into);
3906  COPY_SCALAR_FIELD(is_select_into);
3907  COPY_SCALAR_FIELD(if_not_exists);
3908 
3909  return newnode;
3910 }
char relkind
Definition: pg_class.h:81
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4006 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4007 {
4009 
4010  COPY_STRING_FIELD(tablespacename);
4011  COPY_NODE_FIELD(owner);
4012  COPY_STRING_FIELD(location);
4014 
4015  return newnode;
4016 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4209 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4210 {
4212 
4213  COPY_SCALAR_FIELD(replace);
4214  COPY_NODE_FIELD(type_name);
4215  COPY_STRING_FIELD(lang);
4216  COPY_NODE_FIELD(fromsql);
4217  COPY_NODE_FIELD(tosql);
4218 
4219  return newnode;
4220 }
#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:572

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4235 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4236 {
4238 
4239  COPY_STRING_FIELD(trigname);
4240  COPY_NODE_FIELD(relation);
4241  COPY_NODE_FIELD(funcname);
4243  COPY_SCALAR_FIELD(row);
4244  COPY_SCALAR_FIELD(timing);
4245  COPY_SCALAR_FIELD(events);
4246  COPY_NODE_FIELD(columns);
4247  COPY_NODE_FIELD(whenClause);
4248  COPY_SCALAR_FIELD(isconstraint);
4249  COPY_NODE_FIELD(transitionRels);
4250  COPY_SCALAR_FIELD(deferrable);
4251  COPY_SCALAR_FIELD(initdeferred);
4252  COPY_NODE_FIELD(constrrel);
4253 
4254  return newnode;
4255 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4144 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4145 {
4147 
4149  COPY_STRING_FIELD(servername);
4150  COPY_SCALAR_FIELD(if_not_exists);
4152 
4153  return newnode;
4154 }
#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:572
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:572

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2082 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 769 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

770 {
771  CustomScan *newnode = makeNode(CustomScan);
772 
773  /*
774  * copy node superclass fields
775  */
776  CopyScanFields((const Scan *) from, (Scan *) newnode);
777 
778  /*
779  * copy remainder of node
780  */
781  COPY_SCALAR_FIELD(flags);
782  COPY_NODE_FIELD(custom_plans);
783  COPY_NODE_FIELD(custom_exprs);
784  COPY_NODE_FIELD(custom_private);
785  COPY_NODE_FIELD(custom_scan_tlist);
786  COPY_BITMAPSET_FIELD(custom_relids);
787 
788  /*
789  * NOTE: The method field of CustomScan is required to be a pointer to a
790  * static table of callback functions. So we don't copy the table itself,
791  * just reference the original one.
792  */
793  COPY_SCALAR_FIELD(methods);
794 
795  return newnode;
796 }
#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:572

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4445 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4446 {
4448 
4450 
4451  return newnode;
4452 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
const char * name
Definition: encode.c:521

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3270 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3271 {
3273 
3274  COPY_STRING_FIELD(portalname);
3276  COPY_NODE_FIELD(query);
3277 
3278  return newnode;
3279 }
#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:572

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 2941 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2942 {
2943  DefElem *newnode = makeNode(DefElem);
2944 
2945  COPY_STRING_FIELD(defnamespace);
2946  COPY_STRING_FIELD(defname);
2948  COPY_SCALAR_FIELD(defaction);
2949  COPY_LOCATION_FIELD(location);
2950 
2951  return newnode;
2952 }
#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:572
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3376 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3377 {
3378  DefineStmt *newnode = makeNode(DefineStmt);
3379 
3380  COPY_SCALAR_FIELD(kind);
3381  COPY_SCALAR_FIELD(oldstyle);
3382  COPY_NODE_FIELD(defnames);
3384  COPY_NODE_FIELD(definition);
3385  COPY_SCALAR_FIELD(if_not_exists);
3386  COPY_SCALAR_FIELD(replace);
3387 
3388  return newnode;
3389 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3077 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3078 {
3079  DeleteStmt *newnode = makeNode(DeleteStmt);
3080 
3081  COPY_NODE_FIELD(relation);
3082  COPY_NODE_FIELD(usingClause);
3083  COPY_NODE_FIELD(whereClause);
3084  COPY_NODE_FIELD(returningList);
3085  COPY_NODE_FIELD(withClause);
3086 
3087  return newnode;
3088 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 3996 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3997 {
3998  DiscardStmt *newnode = makeNode(DiscardStmt);
3999 
4000  COPY_SCALAR_FIELD(target);
4001 
4002  return newnode;
4003 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1579 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1580 {
1581  DistinctExpr *newnode = makeNode(DistinctExpr);
1582 
1583  COPY_SCALAR_FIELD(opno);
1584  COPY_SCALAR_FIELD(opfuncid);
1585  COPY_SCALAR_FIELD(opresulttype);
1586  COPY_SCALAR_FIELD(opretset);
1587  COPY_SCALAR_FIELD(opcollid);
1588  COPY_SCALAR_FIELD(inputcollid);
1590  COPY_LOCATION_FIELD(location);
1591 
1592  return newnode;
1593 }
#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:572

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3541 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3542 {
3543  DoStmt *newnode = makeNode(DoStmt);
3544 
3546 
3547  return newnode;
3548 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 3853 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3854 {
3855  DropdbStmt *newnode = makeNode(DropdbStmt);
3856 
3858  COPY_SCALAR_FIELD(missing_ok);
3859 
3860  return newnode;
3861 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
char * dbname
Definition: streamutil.c:52

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4455 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4456 {
4457  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4458 
4459  COPY_NODE_FIELD(roles);
4460  COPY_SCALAR_FIELD(behavior);
4461 
4462  return newnode;
4463 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4333 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4334 {
4335  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4336 
4337  COPY_NODE_FIELD(roles);
4338  COPY_SCALAR_FIELD(missing_ok);
4339 
4340  return newnode;
4341 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3392 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3393 {
3394  DropStmt *newnode = makeNode(DropStmt);
3395 
3396  COPY_NODE_FIELD(objects);
3397  COPY_SCALAR_FIELD(removeType);
3398  COPY_SCALAR_FIELD(behavior);
3399  COPY_SCALAR_FIELD(missing_ok);
3400  COPY_SCALAR_FIELD(concurrent);
3401 
3402  return newnode;
3403 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4654 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4655 {
4657 
4659  COPY_SCALAR_FIELD(missing_ok);
4660  COPY_SCALAR_FIELD(behavior);
4661 
4662  return newnode;
4663 }
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:572

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4019 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4020 {
4022 
4023  COPY_STRING_FIELD(tablespacename);
4024  COPY_SCALAR_FIELD(missing_ok);
4025 
4026  return newnode;
4027 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4169 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4170 {
4172 
4174  COPY_STRING_FIELD(servername);
4175  COPY_SCALAR_FIELD(missing_ok);
4176 
4177  return newnode;
4178 }
#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:572
static char * user
Definition: pg_regress.c:95

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4434 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4435 {
4436  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4437 
4439  COPY_NODE_FIELD(params);
4440 
4441  return newnode;
4442 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
const char * name
Definition: encode.c:521

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 3888 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3889 {
3890  ExplainStmt *newnode = makeNode(ExplainStmt);
3891 
3892  COPY_NODE_FIELD(query);
3894 
3895  return newnode;
3896 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4670 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4671 {
4672  ExtensibleNode *newnode;
4673  const ExtensibleNodeMethods *methods;
4674 
4675  methods = GetExtensibleNodeMethods(from->extnodename, false);
4676  newnode = (ExtensibleNode *) newNode(methods->node_size,
4678  COPY_STRING_FIELD(extnodename);
4679 
4680  /* copy the private fields */
4681  methods->nodeCopy(newnode, from);
4682 
4683  return newnode;
4684 }
#define newNode(size, tag)
Definition: nodes.h:562
#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 3443 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3444 {
3445  FetchStmt *newnode = makeNode(FetchStmt);
3446 
3447  COPY_SCALAR_FIELD(direction);
3448  COPY_SCALAR_FIELD(howMany);
3449  COPY_STRING_FIELD(portalname);
3450  COPY_SCALAR_FIELD(ismove);
3451 
3452  return newnode;
3453 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1711 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1712 {
1713  FieldSelect *newnode = makeNode(FieldSelect);
1714 
1716  COPY_SCALAR_FIELD(fieldnum);
1717  COPY_SCALAR_FIELD(resulttype);
1718  COPY_SCALAR_FIELD(resulttypmod);
1719  COPY_SCALAR_FIELD(resultcollid);
1720 
1721  return newnode;
1722 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1728 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1729 {
1730  FieldStore *newnode = makeNode(FieldStore);
1731 
1733  COPY_NODE_FIELD(newvals);
1734  COPY_NODE_FIELD(fieldnums);
1735  COPY_SCALAR_FIELD(resulttype);
1736 
1737  return newnode;
1738 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4721 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4722 {
4724 
4725  COPY_SCALAR_FIELD(conoid);
4726  COPY_SCALAR_FIELD(conrelid);
4727  COPY_SCALAR_FIELD(confrelid);
4728  COPY_SCALAR_FIELD(nkeys);
4729  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4730  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4731  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4732  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4733 
4734  return newnode;
4735 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:230
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:572
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:232
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:231

◆ _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 
762  return newnode;
763 }
#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:572

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2178 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2179 {
2180  FromExpr *newnode = makeNode(FromExpr);
2181 
2182  COPY_NODE_FIELD(fromlist);
2183  COPY_NODE_FIELD(quals);
2184 
2185  return newnode;
2186 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2631 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2632 {
2633  FuncCall *newnode = makeNode(FuncCall);
2634 
2635  COPY_NODE_FIELD(funcname);
2637  COPY_NODE_FIELD(agg_order);
2638  COPY_NODE_FIELD(agg_filter);
2639  COPY_SCALAR_FIELD(agg_within_group);
2640  COPY_SCALAR_FIELD(agg_star);
2641  COPY_SCALAR_FIELD(agg_distinct);
2642  COPY_SCALAR_FIELD(func_variadic);
2643  COPY_NODE_FIELD(over);
2644  COPY_LOCATION_FIELD(location);
2645 
2646  return newnode;
2647 }
#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:572

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1522 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1523 {
1524  FuncExpr *newnode = makeNode(FuncExpr);
1525 
1526  COPY_SCALAR_FIELD(funcid);
1527  COPY_SCALAR_FIELD(funcresulttype);
1528  COPY_SCALAR_FIELD(funcretset);
1529  COPY_SCALAR_FIELD(funcvariadic);
1530  COPY_SCALAR_FIELD(funcformat);
1531  COPY_SCALAR_FIELD(funccollid);
1532  COPY_SCALAR_FIELD(inputcollid);
1534  COPY_LOCATION_FIELD(location);
1535 
1536  return newnode;
1537 }
#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:572

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3516 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3517 {
3519 
3521  COPY_NODE_FIELD(argType);
3523  COPY_NODE_FIELD(defexpr);
3524 
3525  return newnode;
3526 }
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:572
const char * name
Definition: encode.c:521

◆ _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:572
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:572

◆ _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:572
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3244 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, grantor, and makeNode.

Referenced by copyObjectImpl().

3245 {
3246  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3247 
3248  COPY_NODE_FIELD(granted_roles);
3249  COPY_NODE_FIELD(grantee_roles);
3250  COPY_SCALAR_FIELD(is_grant);
3251  COPY_SCALAR_FIELD(admin_opt);
3253  COPY_SCALAR_FIELD(behavior);
3254 
3255  return newnode;
3256 }
#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:572

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3204 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3205 {
3206  GrantStmt *newnode = makeNode(GrantStmt);
3207 
3208  COPY_SCALAR_FIELD(is_grant);
3209  COPY_SCALAR_FIELD(targtype);
3210  COPY_SCALAR_FIELD(objtype);
3211  COPY_NODE_FIELD(objects);
3212  COPY_NODE_FIELD(privileges);
3213  COPY_NODE_FIELD(grantees);
3214  COPY_SCALAR_FIELD(grant_option);
3215  COPY_SCALAR_FIELD(behavior);
3216 
3217  return newnode;
3218 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 954 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

955 {
956  Group *newnode = makeNode(Group);
957 
958  CopyPlanFields((const Plan *) from, (Plan *) newnode);
959 
960  COPY_SCALAR_FIELD(numCols);
961  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
962  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
963  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
964 
965  return newnode;
966 }
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:572
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1463 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1464 {
1465  GroupingFunc *newnode = makeNode(GroupingFunc);
1466 
1468  COPY_NODE_FIELD(refs);
1469  COPY_NODE_FIELD(cols);
1470  COPY_SCALAR_FIELD(agglevelsup);
1471  COPY_LOCATION_FIELD(location);
1472 
1473  return newnode;
1474 }
#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:572

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2457 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2458 {
2459  GroupingSet *newnode = makeNode(GroupingSet);
2460 
2461  COPY_SCALAR_FIELD(kind);
2462  COPY_NODE_FIELD(content);
2463  COPY_LOCATION_FIELD(location);
2464 
2465  return newnode;
2466 }
#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:572

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1060 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1061 {
1062  Hash *newnode = makeNode(Hash);
1063 
1064  /*
1065  * copy node superclass fields
1066  */
1067  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1068 
1069  /*
1070  * copy remainder of node
1071  */
1072  COPY_NODE_FIELD(hashkeys);
1073  COPY_SCALAR_FIELD(skewTable);
1074  COPY_SCALAR_FIELD(skewColumn);
1075  COPY_SCALAR_FIELD(skewInherit);
1076  COPY_SCALAR_FIELD(rows_total);
1077 
1078  return newnode;
1079 }
#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:572

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 889 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4194 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4195 {
4197 
4198  COPY_STRING_FIELD(server_name);
4199  COPY_STRING_FIELD(remote_schema);
4200  COPY_STRING_FIELD(local_schema);
4201  COPY_SCALAR_FIELD(list_type);
4202  COPY_NODE_FIELD(table_list);
4204 
4205  return newnode;
4206 }
#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:572

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 2862 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2863 {
2864  IndexElem *newnode = makeNode(IndexElem);
2865 
2867  COPY_NODE_FIELD(expr);
2868  COPY_STRING_FIELD(indexcolname);
2869  COPY_NODE_FIELD(collation);
2870  COPY_NODE_FIELD(opclass);
2871  COPY_SCALAR_FIELD(ordering);
2872  COPY_SCALAR_FIELD(nulls_ordering);
2873 
2874  return newnode;
2875 }
#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:572
const char * name
Definition: encode.c:521

◆ _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:572

◆ _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:572

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3456 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3457 {
3458  IndexStmt *newnode = makeNode(IndexStmt);
3459 
3460  COPY_STRING_FIELD(idxname);
3461  COPY_NODE_FIELD(relation);
3462  COPY_STRING_FIELD(accessMethod);
3463  COPY_STRING_FIELD(tableSpace);
3464  COPY_NODE_FIELD(indexParams);
3465  COPY_NODE_FIELD(indexIncludingParams);
3467  COPY_NODE_FIELD(whereClause);
3468  COPY_NODE_FIELD(excludeOpNames);
3469  COPY_STRING_FIELD(idxcomment);
3470  COPY_SCALAR_FIELD(indexOid);
3471  COPY_SCALAR_FIELD(oldNode);
3472  COPY_SCALAR_FIELD(unique);
3473  COPY_SCALAR_FIELD(primary);
3474  COPY_SCALAR_FIELD(isconstraint);
3475  COPY_SCALAR_FIELD(deferrable);
3476  COPY_SCALAR_FIELD(initdeferred);
3477  COPY_SCALAR_FIELD(transformed);
3478  COPY_SCALAR_FIELD(concurrent);
3479  COPY_SCALAR_FIELD(if_not_exists);
3480  COPY_SCALAR_FIELD(reset_default_tblspc);
3481 
3482  return newnode;
3483 }
#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:572

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2517 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2518 {
2519  InferClause *newnode = makeNode(InferClause);
2520 
2521  COPY_NODE_FIELD(indexElems);
2522  COPY_NODE_FIELD(whereClause);
2523  COPY_STRING_FIELD(conname);
2524  COPY_LOCATION_FIELD(location);
2525 
2526  return newnode;
2527 }
#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:572

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2111 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3061 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3062 {
3063  InsertStmt *newnode = makeNode(InsertStmt);
3064 
3065  COPY_NODE_FIELD(relation);
3066  COPY_NODE_FIELD(cols);
3067  COPY_NODE_FIELD(selectStmt);
3068  COPY_NODE_FIELD(onConflictClause);
3069  COPY_NODE_FIELD(returningList);
3070  COPY_NODE_FIELD(withClause);
3071  COPY_SCALAR_FIELD(override);
3072 
3073  return newnode;
3074 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1330 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 819 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2158 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1136 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1137 {
1138  Limit *newnode = makeNode(Limit);
1139 
1140  /*
1141  * copy node superclass fields
1142  */
1143  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1144 
1145  /*
1146  * copy remainder of node
1147  */
1148  COPY_NODE_FIELD(limitOffset);
1149  COPY_NODE_FIELD(limitCount);
1150 
1151  return newnode;
1152 }
#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:572

◆ _copyListenStmt()

static ListenStmt* _copyListenStmt ( const ListenStmt from)
static

Definition at line 3646 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3647 {
3648  ListenStmt *newnode = makeNode(ListenStmt);
3649 
3650  COPY_STRING_FIELD(conditionname);
3651 
3652  return newnode;
3653 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyLoadStmt()

static LoadStmt* _copyLoadStmt ( const LoadStmt from)
static

Definition at line 3743 of file copyfuncs.c.

References COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3744 {
3745  LoadStmt *newnode = makeNode(LoadStmt);
3746 
3748 
3749  return newnode;
3750 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:572
static char * filename
Definition: pg_dumpall.c:91

◆ _copyLockingClause()

static LockingClause* _copyLockingClause ( const LockingClause from)
static

Definition at line 2955 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2956 {
2957  LockingClause *newnode = makeNode(LockingClause);
2958 
2959  COPY_NODE_FIELD(lockedRels);
2960  COPY_SCALAR_FIELD(strength);
2961  COPY_SCALAR_FIELD(waitPolicy);
2962 
2963  return newnode;
2964 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyLockRows()

static LockRows* _copyLockRows ( const LockRows from)
static

Definition at line 1114 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1115 {
1116  LockRows *newnode = makeNode(LockRows);
1117 
1118  /*
1119  * copy node superclass fields
1120  */
1121  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1122 
1123  /*
1124  * copy remainder of node
1125  */
1126  COPY_NODE_FIELD(rowMarks);
1127  COPY_SCALAR_FIELD(epqParam);
1128 
1129  return newnode;
1130 }
#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:572

◆ _copyLockStmt()

static LockStmt* _copyLockStmt ( const LockStmt from)
static

Definition at line 4344 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and mode.

Referenced by copyObjectImpl().

4345 {
4346  LockStmt *newnode = makeNode(LockStmt);
4347 
4348  COPY_NODE_FIELD(relations);
4350  COPY_SCALAR_FIELD(nowait);
4351 
4352  return newnode;
4353 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:572

◆ _copyMaterial()

static Material* _copyMaterial ( const Material from)
static

Definition at line 914 of file copyfuncs.c.

References CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyMergeAppend()

static MergeAppend* _copyMergeAppend ( const MergeAppend from)
static

Definition at line 255 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

256 {
257  MergeAppend *newnode = makeNode(MergeAppend);
258 
259  /*
260  * copy node superclass fields
261  */
262  CopyPlanFields((const Plan *) from, (Plan *) newnode);
263 
264  /*
265  * copy remainder of node
266  */
267  COPY_NODE_FIELD(mergeplans);
268  COPY_SCALAR_FIELD(numCols);
269  COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
270  COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
271  COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
272  COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
273  COPY_NODE_FIELD(part_prune_info);
274 
275  return newnode;
276 }
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:572
int16 AttrNumber
Definition: attnum.h:21

◆ _copyMergeJoin()

static MergeJoin* _copyMergeJoin ( const MergeJoin from)
static

Definition at line 858 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_POINTER_FIELD, COPY_SCALAR_FIELD, CopyJoinFields(), list_length(), and makeNode.

Referenced by copyObjectImpl().

859 {
860  MergeJoin *newnode = makeNode(MergeJoin);
861  int numCols;
862 
863  /*
864  * copy node superclass fields
865  */
866  CopyJoinFields((const Join *) from, (Join *) newnode);
867 
868  /*
869  * copy remainder of node
870  */
871  COPY_SCALAR_FIELD(skip_mark_restore);
872  COPY_NODE_FIELD(mergeclauses);
873  numCols = list_length(from->mergeclauses);
874  if (numCols > 0)
875  {
876  COPY_POINTER_FIELD(mergeFamilies, numCols * sizeof(Oid));
877  COPY_POINTER_FIELD(mergeCollations, numCols *