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

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ COPY_BITMAPSET_FIELD

◆ COPY_LOCATION_FIELD

◆ COPY_NODE_FIELD

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

Definition at line 45 of file copyfuncs.c.

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

◆ COPY_POINTER_FIELD

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

Definition at line 57 of file copyfuncs.c.

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

◆ COPY_SCALAR_FIELD

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

Definition at line 41 of file copyfuncs.c.

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

◆ COPY_STRING_FIELD

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

Definition at line 53 of file copyfuncs.c.

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

Function Documentation

◆ _copyA_ArrayExpr()

static A_ArrayExpr* _copyA_ArrayExpr ( const A_ArrayExpr from)
static

Definition at line 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:573

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

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

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

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

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

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 3854 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3855 {
3857 
3859  COPY_NODE_FIELD(setstmt);
3860 
3861  return newnode;
3862 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c:52

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 3843 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3844 {
3846 
3849 
3850  return newnode;
3851 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c: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:573

◆ _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:573
const char * name
Definition: encode.c:521

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3725 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3726 {
3727  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3728 
3729  COPY_NODE_FIELD(typeName);
3730  COPY_STRING_FIELD(oldVal);
3731  COPY_STRING_FIELD(newVal);
3732  COPY_STRING_FIELD(newValNeighbor);
3733  COPY_SCALAR_FIELD(newValIsAfter);
3734  COPY_SCALAR_FIELD(skipIfNewValExists);
3735 
3736  return newnode;
3737 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4283 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4284 {
4286 
4287  COPY_STRING_FIELD(trigname);
4288  COPY_SCALAR_FIELD(tgenabled);
4289 
4290  return newnode;
4291 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4091 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4092 {
4094 
4095  COPY_STRING_FIELD(extname);
4097  COPY_SCALAR_FIELD(objtype);
4098  COPY_NODE_FIELD(object);
4099 
4100  return newnode;
4101 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4080 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4081 {
4083 
4084  COPY_STRING_FIELD(extname);
4086 
4087  return newnode;
4088 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4116 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4117 {
4118  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4119 
4120  COPY_STRING_FIELD(fdwname);
4121  COPY_NODE_FIELD(func_options);
4123 
4124  return newnode;
4125 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4143 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4144 {
4146 
4147  COPY_STRING_FIELD(servername);
4148  COPY_STRING_FIELD(version);
4150  COPY_SCALAR_FIELD(has_version);
4151 
4152  return newnode;
4153 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3541 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3542 {
3544 
3545  COPY_SCALAR_FIELD(objtype);
3546  COPY_NODE_FIELD(func);
3547  COPY_NODE_FIELD(actions);
3548 
3549  return newnode;
3550 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 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:573

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3580 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3581 {
3583 
3584  COPY_SCALAR_FIELD(objectType);
3585  COPY_NODE_FIELD(relation);
3586  COPY_NODE_FIELD(object);
3587  COPY_NODE_FIELD(extname);
3588 
3589  return newnode;
3590 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3593 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3594 {
3596 
3597  COPY_SCALAR_FIELD(objectType);
3598  COPY_NODE_FIELD(relation);
3599  COPY_NODE_FIELD(object);
3600  COPY_STRING_FIELD(newschema);
3601  COPY_SCALAR_FIELD(missing_ok);
3602 
3603  return newnode;
3604 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3620 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3621 {
3623 
3624  COPY_NODE_FIELD(opername);
3626 
3627  return newnode;
3628 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 3819 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3820 {
3822 
3823  COPY_NODE_FIELD(opfamilyname);
3824  COPY_STRING_FIELD(amname);
3825  COPY_SCALAR_FIELD(isDrop);
3826  COPY_NODE_FIELD(items);
3827 
3828  return newnode;
3829 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3607 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3608 {
3610 
3611  COPY_SCALAR_FIELD(objectType);
3612  COPY_NODE_FIELD(relation);
3613  COPY_NODE_FIELD(object);
3614  COPY_NODE_FIELD(newowner);
3615 
3616  return newnode;
3617 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4532 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4533 {
4535 
4536  COPY_STRING_FIELD(policy_name);
4537  COPY_NODE_FIELD(table);
4538  COPY_NODE_FIELD(roles);
4539  COPY_NODE_FIELD(qual);
4540  COPY_NODE_FIELD(with_check);
4541 
4542  return newnode;
4543 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4625 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4626 {
4628 
4629  COPY_STRING_FIELD(pubname);
4631  COPY_NODE_FIELD(tables);
4632  COPY_SCALAR_FIELD(for_all_tables);
4633  COPY_SCALAR_FIELD(tableAction);
4634 
4635  return newnode;
4636 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4333 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4334 {
4336 
4337  COPY_NODE_FIELD(role);
4338  COPY_STRING_FIELD(database);
4339  COPY_NODE_FIELD(setstmt);
4340 
4341  return newnode;
4342 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4321 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4322 {
4323  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4324 
4325  COPY_NODE_FIELD(role);
4328 
4329  return newnode;
4330 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 3972 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3973 {
3974  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
3975 
3976  COPY_NODE_FIELD(sequence);
3978  COPY_SCALAR_FIELD(for_identity);
3979  COPY_SCALAR_FIELD(missing_ok);
3980 
3981  return newnode;
3982 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterStatsStmt()

static AlterStatsStmt* _copyAlterStatsStmt ( const AlterStatsStmt from)
static

Definition at line 3501 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3502 {
3504 
3505  COPY_NODE_FIELD(defnames);
3506  COPY_SCALAR_FIELD(stxstattarget);
3507  COPY_SCALAR_FIELD(missing_ok);
3508 
3509  return newnode;
3510 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4652 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4653 {
4655 
4656  COPY_SCALAR_FIELD(kind);
4658  COPY_STRING_FIELD(conninfo);
4659  COPY_NODE_FIELD(publication);
4661 
4662  return newnode;
4663 }
NameData subname
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 3948 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3949 {
3951 
3952  COPY_NODE_FIELD(setstmt);
3953 
3954  return newnode;
3955 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 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:573
const char * name
Definition: encode.c:521

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4054 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4055 {
4057 
4058  COPY_STRING_FIELD(orig_tablespacename);
4059  COPY_SCALAR_FIELD(objtype);
4060  COPY_NODE_FIELD(roles);
4061  COPY_STRING_FIELD(new_tablespacename);
4062  COPY_SCALAR_FIELD(nowait);
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:573

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt 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(tablespacename);
4048  COPY_SCALAR_FIELD(isReset);
4049 
4050  return newnode;
4051 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 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:573

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4500 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4501 {
4503 
4504  COPY_SCALAR_FIELD(kind);
4505  COPY_NODE_FIELD(cfgname);
4506  COPY_NODE_FIELD(tokentype);
4507  COPY_NODE_FIELD(dicts);
4508  COPY_SCALAR_FIELD(override);
4509  COPY_SCALAR_FIELD(replace);
4510  COPY_SCALAR_FIELD(missing_ok);
4511 
4512  return newnode;
4513 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4489 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4490 {
4492 
4493  COPY_NODE_FIELD(dictname);
4495 
4496  return newnode;
4497 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4169 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4170 {
4172 
4174  COPY_STRING_FIELD(servername);
4176 
4177  return newnode;
4178 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
static char * user
Definition: pg_regress.c: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:573

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3692 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3693 {
3695 
3696  COPY_NODE_FIELD(typevar);
3697  COPY_NODE_FIELD(coldeflist);
3698 
3699  return newnode;
3700 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

Definition at line 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:573
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:573

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4368 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4369 {
4371 
4372  COPY_NODE_FIELD(constraints);
4373  COPY_SCALAR_FIELD(deferred);
4374 
4375  return newnode;
4376 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 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:573
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:573
static char * filename
Definition: pg_dumpall.c:91

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4235 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4236 {
4237  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4238 
4239  COPY_STRING_FIELD(amname);
4240  COPY_NODE_FIELD(handler_name);
4241  COPY_SCALAR_FIELD(amtype);
4242 
4243  return newnode;
4244 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4420 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4421 {
4423 
4424  COPY_NODE_FIELD(sourcetype);
4425  COPY_NODE_FIELD(targettype);
4426  COPY_NODE_FIELD(func);
4427  COPY_SCALAR_FIELD(context);
4428  COPY_SCALAR_FIELD(inout);
4429 
4430  return newnode;
4431 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4406 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4407 {
4409 
4410  COPY_NODE_FIELD(conversion_name);
4411  COPY_STRING_FIELD(for_encoding_name);
4412  COPY_STRING_FIELD(to_encoding_name);
4413  COPY_NODE_FIELD(func_name);
4414  COPY_SCALAR_FIELD(def);
4415 
4416  return newnode;
4417 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 3832 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3833 {
3834  CreatedbStmt *newnode = makeNode(CreatedbStmt);
3835 
3838 
3839  return newnode;
3840 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c:52

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3765 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3766 {
3768 
3769  COPY_NODE_FIELD(domainname);
3770  COPY_NODE_FIELD(typeName);
3771  COPY_NODE_FIELD(collClause);
3772  COPY_NODE_FIELD(constraints);
3773 
3774  return newnode;
3775 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3703 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3704 {
3706 
3707  COPY_NODE_FIELD(typeName);
3708  COPY_NODE_FIELD(vals);
3709 
3710  return newnode;
3711 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4270 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4271 {
4273 
4274  COPY_STRING_FIELD(trigname);
4275  COPY_STRING_FIELD(eventname);
4276  COPY_NODE_FIELD(whenclause);
4277  COPY_NODE_FIELD(funcname);
4278 
4279  return newnode;
4280 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4068 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4069 {
4071 
4072  COPY_STRING_FIELD(extname);
4073  COPY_SCALAR_FIELD(if_not_exists);
4075 
4076  return newnode;
4077 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4104 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4105 {
4106  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
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:573

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4128 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4129 {
4131 
4132  COPY_STRING_FIELD(servername);
4133  COPY_STRING_FIELD(servertype);
4134  COPY_STRING_FIELD(version);
4135  COPY_STRING_FIELD(fdwname);
4136  COPY_SCALAR_FIELD(if_not_exists);
4138 
4139  return newnode;
4140 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4193 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4194 {
4196 
4197  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4198 
4199  COPY_STRING_FIELD(servername);
4201 
4202  return newnode;
4203 }
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:573

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3513 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3514 {
3516 
3517  COPY_SCALAR_FIELD(is_procedure);
3518  COPY_SCALAR_FIELD(replace);
3519  COPY_NODE_FIELD(funcname);
3520  COPY_NODE_FIELD(parameters);
3521  COPY_NODE_FIELD(returnType);
3523 
3524  return newnode;
3525 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3793 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3794 {
3796 
3797  COPY_SCALAR_FIELD(itemtype);
3799  COPY_SCALAR_FIELD(number);
3800  COPY_NODE_FIELD(order_family);
3801  COPY_NODE_FIELD(class_args);
3802  COPY_NODE_FIELD(storedtype);
3803 
3804  return newnode;
3805 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3778 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3779 {
3781 
3782  COPY_NODE_FIELD(opclassname);
3783  COPY_NODE_FIELD(opfamilyname);
3784  COPY_STRING_FIELD(amname);
3785  COPY_NODE_FIELD(datatype);
3786  COPY_NODE_FIELD(items);
3787  COPY_SCALAR_FIELD(isDefault);
3788 
3789  return newnode;
3790 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3808 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3809 {
3811 
3812  COPY_NODE_FIELD(opfamilyname);
3813  COPY_STRING_FIELD(amname);
3814 
3815  return newnode;
3816 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4294 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4295 {
4297 
4298  COPY_SCALAR_FIELD(replace);
4299  COPY_STRING_FIELD(plname);
4300  COPY_NODE_FIELD(plhandler);
4301  COPY_NODE_FIELD(plinline);
4302  COPY_NODE_FIELD(plvalidator);
4303  COPY_SCALAR_FIELD(pltrusted);
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:573

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4516 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4517 {
4519 
4520  COPY_STRING_FIELD(policy_name);
4521  COPY_NODE_FIELD(table);
4522  COPY_STRING_FIELD(cmd_name);
4523  COPY_SCALAR_FIELD(permissive);
4524  COPY_NODE_FIELD(roles);
4525  COPY_NODE_FIELD(qual);
4526  COPY_NODE_FIELD(with_check);
4527 
4528  return newnode;
4529 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4612 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4613 {
4615 
4616  COPY_STRING_FIELD(pubname);
4618  COPY_NODE_FIELD(tables);
4619  COPY_SCALAR_FIELD(for_all_tables);
4620 
4621  return newnode;
4622 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3714 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3715 {
3717 
3718  COPY_NODE_FIELD(typeName);
3719  COPY_NODE_FIELD(params);
3720 
3721  return newnode;
3722 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4309 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4310 {
4312 
4313  COPY_SCALAR_FIELD(stmt_type);
4314  COPY_STRING_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 COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4393 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4394 {
4396 
4397  COPY_STRING_FIELD(schemaname);
4398  COPY_NODE_FIELD(authrole);
4399  COPY_NODE_FIELD(schemaElts);
4400  COPY_SCALAR_FIELD(if_not_exists);
4401 
4402  return newnode;
4403 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 3958 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3959 {
3960  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
3961 
3962  COPY_NODE_FIELD(sequence);
3964  COPY_SCALAR_FIELD(ownerId);
3965  COPY_SCALAR_FIELD(for_identity);
3966  COPY_SCALAR_FIELD(if_not_exists);
3967 
3968  return newnode;
3969 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 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:573

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

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4639 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4640 {
4642 
4644  COPY_STRING_FIELD(conninfo);
4645  COPY_NODE_FIELD(publication);
4647 
4648  return newnode;
4649 }
NameData subname
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 3911 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3912 {
3914 
3915  COPY_NODE_FIELD(query);
3916  COPY_NODE_FIELD(into);
3918  COPY_SCALAR_FIELD(is_select_into);
3919  COPY_SCALAR_FIELD(if_not_exists);
3920 
3921  return newnode;
3922 }
char relkind
Definition: pg_class.h:81
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4018 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4019 {
4021 
4022  COPY_STRING_FIELD(tablespacename);
4023  COPY_NODE_FIELD(owner);
4024  COPY_STRING_FIELD(location);
4026 
4027  return newnode;
4028 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4221 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4222 {
4224 
4225  COPY_SCALAR_FIELD(replace);
4226  COPY_NODE_FIELD(type_name);
4227  COPY_STRING_FIELD(lang);
4228  COPY_NODE_FIELD(fromsql);
4229  COPY_NODE_FIELD(tosql);
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:573

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4247 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4248 {
4250 
4251  COPY_STRING_FIELD(trigname);
4252  COPY_NODE_FIELD(relation);
4253  COPY_NODE_FIELD(funcname);
4255  COPY_SCALAR_FIELD(row);
4256  COPY_SCALAR_FIELD(timing);
4257  COPY_SCALAR_FIELD(events);
4258  COPY_NODE_FIELD(columns);
4259  COPY_NODE_FIELD(whenClause);
4260  COPY_SCALAR_FIELD(isconstraint);
4261  COPY_NODE_FIELD(transitionRels);
4262  COPY_SCALAR_FIELD(deferrable);
4263  COPY_SCALAR_FIELD(initdeferred);
4264  COPY_NODE_FIELD(constrrel);
4265 
4266  return newnode;
4267 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4156 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4157 {
4159 
4161  COPY_STRING_FIELD(servername);
4162  COPY_SCALAR_FIELD(if_not_exists);
4164 
4165  return newnode;
4166 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
static char * user
Definition: pg_regress.c: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:573

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

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

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4457 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4458 {
4460 
4462 
4463  return newnode;
4464 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 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:573

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

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

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 4008 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4009 {
4010  DiscardStmt *newnode = makeNode(DiscardStmt);
4011 
4012  COPY_SCALAR_FIELD(target);
4013 
4014  return newnode;
4015 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 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:573

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3553 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3554 {
3555  DoStmt *newnode = makeNode(DoStmt);
3556 
3558 
3559  return newnode;
3560 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 3865 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3866 {
3867  DropdbStmt *newnode = makeNode(DropdbStmt);
3868 
3870  COPY_SCALAR_FIELD(missing_ok);
3871 
3872  return newnode;
3873 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
char * dbname
Definition: streamutil.c:52

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4467 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4468 {
4469  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4470 
4471  COPY_NODE_FIELD(roles);
4472  COPY_SCALAR_FIELD(behavior);
4473 
4474  return newnode;
4475 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4345 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4346 {
4347  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4348 
4349  COPY_NODE_FIELD(roles);
4350  COPY_SCALAR_FIELD(missing_ok);
4351 
4352  return newnode;
4353 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 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:573

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4666 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4667 {
4669 
4671  COPY_SCALAR_FIELD(missing_ok);
4672  COPY_SCALAR_FIELD(behavior);
4673 
4674  return newnode;
4675 }
NameData subname
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4031 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4032 {
4034 
4035  COPY_STRING_FIELD(tablespacename);
4036  COPY_SCALAR_FIELD(missing_ok);
4037 
4038  return newnode;
4039 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4181 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4182 {
4184 
4186  COPY_STRING_FIELD(servername);
4187  COPY_SCALAR_FIELD(missing_ok);
4188 
4189  return newnode;
4190 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
static char * user
Definition: pg_regress.c:95

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4446 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4447 {
4448  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4449 
4451  COPY_NODE_FIELD(params);
4452 
4453  return newnode;
4454 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 3900 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3901 {
3902  ExplainStmt *newnode = makeNode(ExplainStmt);
3903 
3904  COPY_NODE_FIELD(query);
3906 
3907  return newnode;
3908 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4682 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4683 {
4684  ExtensibleNode *newnode;
4685  const ExtensibleNodeMethods *methods;
4686 
4687  methods = GetExtensibleNodeMethods(from->extnodename, false);
4688  newnode = (ExtensibleNode *) newNode(methods->node_size,
4690  COPY_STRING_FIELD(extnodename);
4691 
4692  /* copy the private fields */
4693  methods->nodeCopy(newnode, from);
4694 
4695  return newnode;
4696 }
#define newNode(size, tag)
Definition: nodes.h:563
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
void(* nodeCopy)(struct ExtensibleNode *newnode, const struct ExtensibleNode *oldnode)
Definition: extensible.h:64
const char * extnodename
Definition: extensible.h:35
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _copyFetchStmt()

static FetchStmt* _copyFetchStmt ( const FetchStmt from)
static

Definition at line 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:573

◆ _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:573
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:573
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4733 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4734 {
4736 
4737  COPY_SCALAR_FIELD(conoid);
4738  COPY_SCALAR_FIELD(conrelid);
4739  COPY_SCALAR_FIELD(confrelid);
4740  COPY_SCALAR_FIELD(nkeys);
4741  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4742  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4743  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4744  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4745 
4746  return newnode;
4747 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:230
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:573
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:573

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

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

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

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3528 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3529 {
3531 
3533  COPY_NODE_FIELD(argType);
3535  COPY_NODE_FIELD(defexpr);
3536 
3537  return newnode;
3538 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
const char * name
Definition: encode.c:521

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 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:573
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:573

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

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

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

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

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

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4206 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4207 {
4209 
4210  COPY_STRING_FIELD(server_name);
4211  COPY_STRING_FIELD(remote_schema);
4212  COPY_STRING_FIELD(local_schema);
4213  COPY_SCALAR_FIELD(list_type);
4214  COPY_NODE_FIELD(table_list);
4216 
4217  return newnode;
4218 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 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:573
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:573

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

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

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

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

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

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

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

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

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

◆ _copyListenStmt()

static ListenStmt* _copyListenStmt ( const ListenStmt from)
static

Definition at line 3658 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3659 {
3660  ListenStmt *newnode = makeNode(ListenStmt);
3661 
3662  COPY_STRING_FIELD(conditionname);
3663 
3664  return newnode;
3665 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyLoadStmt()

static LoadStmt* _copyLoadStmt ( const LoadStmt from)
static

Definition at line 3755 of file copyfuncs.c.

References COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3756 {
3757  LoadStmt *newnode = makeNode(LoadStmt);
3758 
3760 
3761  return newnode;
3762 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:573
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:573

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

◆ _copyLockStmt()

static LockStmt* _copyLockStmt ( const LockStmt from)
static

Definition at line 4356 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and mode.

Referenced by copyObjectImpl().

4357 {
4358  LockStmt *newnode = makeNode(LockStmt);
4359 
4360  COPY_NODE_FIELD(relations);
4362  COPY_SCALAR_FIELD(nowait);
4363 
4364  return newnode;
4365 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:573

◆ _copyMaterial()

static Material* _copyMaterial ( const Material from)
static

Definition at line 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:573

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