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

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ COPY_BITMAPSET_FIELD

◆ COPY_LOCATION_FIELD

◆ COPY_NODE_FIELD

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

Definition at line 45 of file copyfuncs.c.

Referenced by _copyA_ArrayExpr(), _copyA_Expr(), _copyA_Indices(), _copyA_Indirection(), _copyAccessPriv(), _copyAgg(), _copyAggref(), _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(), _copyAlterTypeStmt(), _copyAlterUserMappingStmt(), _copyAppend(), _copyAppendRelInfo(), _copyArrayCoerceExpr(), _copyArrayExpr(), _copyBitmapAnd(), _copyBitmapHeapScan(), _copyBitmapIndexScan(), _copyBitmapOr(), _copyBooleanTest(), _copyBoolExpr(), _copyCallStmt(), _copyCaseExpr(), _copyCaseWhen(), _copyClusterStmt(), _copyCoalesceExpr(), _copyCoerceToDomain(), _copyCoerceViaIO(), _copyCollateClause(), _copyCollateExpr(), _copyColumnDef(), _copyColumnRef(), _copyCommentStmt(), _copyCommonTableExpr(), _copyCompositeTypeStmt(), _copyConstraint(), _copyConstraintsSetStmt(), _copyConvertRowtypeExpr(), _copyCopyStmt(), _copyCreateAmStmt(), _copyCreateCastStmt(), _copyCreateConversionStmt(), _copyCreatedbStmt(), _copyCreateDomainStmt(), _copyCreateEnumStmt(), _copyCreateEventTrigStmt(), _copyCreateExtensionStmt(), _copyCreateFdwStmt(), _copyCreateForeignServerStmt(), _copyCreateForeignTableStmt(), _copyCreateFunctionStmt(), _copyCreateOpClassItem(), _copyCreateOpClassStmt(), _copyCreateOpFamilyStmt(), _copyCreatePLangStmt(), _copyCreatePolicyStmt(), _copyCreatePublicationStmt(), _copyCreateRangeStmt(), _copyCreateRoleStmt(), _copyCreateSchemaStmt(), _copyCreateSeqStmt(), _copyCreateStatsStmt(), _copyCreateSubscriptionStmt(), _copyCreateTableAsStmt(), _copyCreateTableSpaceStmt(), _copyCreateTransformStmt(), _copyCreateTrigStmt(), _copyCreateUserMappingStmt(), _copyCTECycleClause(), _copyCTESearchClause(), _copyCustomScan(), _copyDeclareCursorStmt(), _copyDefElem(), _copyDefineStmt(), _copyDeleteStmt(), _copyDistinctExpr(), _copyDoStmt(), _copyDropdbStmt(), _copyDropOwnedStmt(), _copyDropRoleStmt(), _copyDropStmt(), _copyDropUserMappingStmt(), _copyExecuteStmt(), _copyExplainStmt(), _copyFieldSelect(), _copyFieldStore(), _copyForeignScan(), _copyFromExpr(), _copyFuncCall(), _copyFuncExpr(), _copyFunctionParameter(), _copyFunctionScan(), _copyGrantRoleStmt(), _copyGrantStmt(), _copyGroupingFunc(), _copyGroupingSet(), _copyHash(), _copyHashJoin(), _copyImportForeignSchemaStmt(), _copyIndexElem(), _copyIndexOnlyScan(), _copyIndexScan(), _copyIndexStmt(), _copyInferClause(), _copyInferenceElem(), _copyInsertStmt(), _copyIntoClause(), _copyJoinExpr(), _copyLimit(), _copyLockingClause(), _copyLockRows(), _copyLockStmt(), _copyMemoize(), _copyMergeAppend(), _copyMergeJoin(), _copyMinMaxExpr(), _copyModifyTable(), _copyMultiAssignRef(), _copyNamedArgExpr(), _copyNestLoop(), _copyNestLoopParam(), _copyNullIfExpr(), _copyNullTest(), _copyObjectWithArgs(), _copyOnConflictClause(), _copyOnConflictExpr(), _copyOpExpr(), _copyPartitionBoundSpec(), _copyPartitionCmd(), _copyPartitionedRelPruneInfo(), _copyPartitionElem(), _copyPartitionPruneInfo(), _copyPartitionPruneStepCombine(), _copyPartitionPruneStepOp(), _copyPartitionRangeDatum(), _copyPartitionSpec(), _copyPlaceHolderInfo(), _copyPlaceHolderVar(), _copyPlannedStmt(), _copyPLAssignStmt(), _copyPrepareStmt(), _copyQuery(), _copyRangeFunction(), _copyRangeSubselect(), _copyRangeTableFunc(), _copyRangeTableFuncCol(), _copyRangeTableSample(), _copyRangeTblEntry(), _copyRangeTblFunction(), _copyRangeVar(), _copyRawStmt(), _copyReassignOwnedStmt(), _copyRefreshMatViewStmt(), _copyReindexStmt(), _copyRelabelType(), _copyRenameStmt(), _copyResTarget(), _copyRestrictInfo(), _copyResult(), _copyReturnStmt(), _copyRowCompareExpr(), _copyRowExpr(), _copyRuleStmt(), _copySampleScan(), _copyScalarArrayOpExpr(), _copySecLabelStmt(), _copySelectStmt(), _copySetOperationStmt(), _copySortBy(), _copySpecialJoinInfo(), _copyStatsElem(), _copySubLink(), _copySubPlan(), _copySubqueryScan(), _copySubscriptingRef(), _copyTableFunc(), _copyTableFuncScan(), _copyTableLikeClause(), _copyTableSampleClause(), _copyTargetEntry(), _copyTidRangeScan(), _copyTidScan(), _copyTransactionStmt(), _copyTruncateStmt(), _copyTypeCast(), _copyTypeName(), _copyUpdateStmt(), _copyVacuumRelation(), _copyVacuumStmt(), _copyValuesScan(), _copyVariableSetStmt(), _copyViewStmt(), _copyWindowAgg(), _copyWindowClause(), _copyWindowDef(), _copyWindowFunc(), _copyWithCheckOption(), _copyWithClause(), _copyXmlExpr(), _copyXmlSerialize(), CopyCreateStmtFields(), CopyJoinFields(), and CopyPlanFields().

◆ COPY_POINTER_FIELD

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

Definition at line 57 of file copyfuncs.c.

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

◆ COPY_SCALAR_FIELD

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

Definition at line 41 of file copyfuncs.c.

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

◆ COPY_STRING_FIELD

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

Definition at line 53 of file copyfuncs.c.

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

Function Documentation

◆ _copyA_ArrayExpr()

static A_ArrayExpr* _copyA_ArrayExpr ( const A_ArrayExpr from)
static

Definition at line 2822 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyA_Const()

static A_Const* _copyA_Const ( const A_Const from)
static

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

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

◆ _copyA_Expr()

static A_Expr* _copyA_Expr ( const A_Expr from)
static

Definition at line 2704 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyA_Indices()

static A_Indices* _copyA_Indices ( const A_Indices from)
static

Definition at line 2799 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2811 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyA_Star()

static A_Star* _copyA_Star ( const A_Star from)
static

Definition at line 2791 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3418 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3419 {
3420  AccessPriv *newnode = makeNode(AccessPriv);
3421 
3422  COPY_STRING_FIELD(priv_name);
3423  COPY_NODE_FIELD(cols);
3424 
3425  return newnode;
3426 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 1058 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1526 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1364 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterCollationStmt()

static AlterCollationStmt* _copyAlterCollationStmt ( const AlterCollationStmt from)
static

Definition at line 3362 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3363 {
3365 
3366  COPY_NODE_FIELD(collname);
3367 
3368  return newnode;
3369 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 4057 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4058 {
4060 
4062  COPY_NODE_FIELD(setstmt);
4063 
4064  return newnode;
4065 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 4046 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4047 {
4049 
4052 
4053  return newnode;
4054 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3444 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3445 {
3447 
3450 
3451  return newnode;
3452 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3372 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3373 {
3375 
3376  COPY_SCALAR_FIELD(subtype);
3377  COPY_NODE_FIELD(typeName);
3379  COPY_NODE_FIELD(def);
3380  COPY_SCALAR_FIELD(behavior);
3381  COPY_SCALAR_FIELD(missing_ok);
3382 
3383  return newnode;
3384 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3928 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3929 {
3930  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3931 
3932  COPY_NODE_FIELD(typeName);
3933  COPY_STRING_FIELD(oldVal);
3934  COPY_STRING_FIELD(newVal);
3935  COPY_STRING_FIELD(newValNeighbor);
3936  COPY_SCALAR_FIELD(newValIsAfter);
3937  COPY_SCALAR_FIELD(skipIfNewValExists);
3938 
3939  return newnode;
3940 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4488 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4489 {
4491 
4492  COPY_STRING_FIELD(trigname);
4493  COPY_SCALAR_FIELD(tgenabled);
4494 
4495  return newnode;
4496 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4295 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4296 {
4298 
4299  COPY_STRING_FIELD(extname);
4301  COPY_SCALAR_FIELD(objtype);
4302  COPY_NODE_FIELD(object);
4303 
4304  return newnode;
4305 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4284 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4285 {
4287 
4288  COPY_STRING_FIELD(extname);
4290 
4291  return newnode;
4292 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4320 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4321 {
4322  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4323 
4324  COPY_STRING_FIELD(fdwname);
4325  COPY_NODE_FIELD(func_options);
4327 
4328  return newnode;
4329 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4347 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4348 {
4350 
4351  COPY_STRING_FIELD(servername);
4352  COPY_STRING_FIELD(version);
4354  COPY_SCALAR_FIELD(has_version);
4355 
4356  return newnode;
4357 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3732 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3733 {
3735 
3736  COPY_SCALAR_FIELD(objtype);
3737  COPY_NODE_FIELD(func);
3738  COPY_NODE_FIELD(actions);
3739 
3740  return newnode;
3741 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1795 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3771 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3785 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3812 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3813 {
3815 
3816  COPY_NODE_FIELD(opername);
3818 
3819  return newnode;
3820 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 4022 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4023 {
4025 
4026  COPY_NODE_FIELD(opfamilyname);
4027  COPY_STRING_FIELD(amname);
4028  COPY_SCALAR_FIELD(isDrop);
4029  COPY_NODE_FIELD(items);
4030 
4031  return newnode;
4032 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3799 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3800 {
3802 
3803  COPY_SCALAR_FIELD(objectType);
3804  COPY_NODE_FIELD(relation);
3805  COPY_NODE_FIELD(object);
3806  COPY_NODE_FIELD(newowner);
3807 
3808  return newnode;
3809 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4736 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4737 {
4739 
4740  COPY_STRING_FIELD(policy_name);
4741  COPY_NODE_FIELD(table);
4742  COPY_NODE_FIELD(roles);
4743  COPY_NODE_FIELD(qual);
4744  COPY_NODE_FIELD(with_check);
4745 
4746  return newnode;
4747 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4830 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4831 {
4833 
4834  COPY_STRING_FIELD(pubname);
4836  COPY_NODE_FIELD(tables);
4837  COPY_SCALAR_FIELD(for_all_tables);
4838  COPY_SCALAR_FIELD(tableAction);
4839 
4840  return newnode;
4841 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4538 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4539 {
4541 
4542  COPY_NODE_FIELD(role);
4543  COPY_STRING_FIELD(database);
4544  COPY_NODE_FIELD(setstmt);
4545 
4546  return newnode;
4547 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4526 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4527 {
4528  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4529 
4530  COPY_NODE_FIELD(role);
4533 
4534  return newnode;
4535 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 4176 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4177 {
4178  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
4179 
4180  COPY_NODE_FIELD(sequence);
4182  COPY_SCALAR_FIELD(for_identity);
4183  COPY_SCALAR_FIELD(missing_ok);
4184 
4185  return newnode;
4186 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterStatsStmt()

static AlterStatsStmt* _copyAlterStatsStmt ( const AlterStatsStmt from)
static

Definition at line 3691 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3692 {
3694 
3695  COPY_NODE_FIELD(defnames);
3696  COPY_SCALAR_FIELD(stxstattarget);
3697  COPY_SCALAR_FIELD(missing_ok);
3698 
3699  return newnode;
3700 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4857 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4858 {
4860 
4861  COPY_SCALAR_FIELD(kind);
4863  COPY_STRING_FIELD(conninfo);
4864  COPY_NODE_FIELD(publication);
4866 
4867  return newnode;
4868 }
NameData subname
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 4152 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4153 {
4155 
4156  COPY_NODE_FIELD(setstmt);
4157 
4158  return newnode;
4159 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3346 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4258 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4259 {
4261 
4262  COPY_STRING_FIELD(orig_tablespacename);
4263  COPY_SCALAR_FIELD(objtype);
4264  COPY_NODE_FIELD(roles);
4265  COPY_STRING_FIELD(new_tablespacename);
4266  COPY_SCALAR_FIELD(nowait);
4267 
4268  return newnode;
4269 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 4246 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4247 {
4249 
4250  COPY_STRING_FIELD(tablespacename);
4252  COPY_SCALAR_FIELD(isReset);
4253 
4254  return newnode;
4255 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3333 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4704 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4705 {
4707 
4708  COPY_SCALAR_FIELD(kind);
4709  COPY_NODE_FIELD(cfgname);
4710  COPY_NODE_FIELD(tokentype);
4711  COPY_NODE_FIELD(dicts);
4712  COPY_SCALAR_FIELD(override);
4713  COPY_SCALAR_FIELD(replace);
4714  COPY_SCALAR_FIELD(missing_ok);
4715 
4716  return newnode;
4717 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4693 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4694 {
4696 
4697  COPY_NODE_FIELD(dictname);
4699 
4700  return newnode;
4701 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterTypeStmt()

static AlterTypeStmt* _copyAlterTypeStmt ( const AlterTypeStmt from)
static

Definition at line 3823 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3824 {
3825  AlterTypeStmt *newnode = makeNode(AlterTypeStmt);
3826 
3827  COPY_NODE_FIELD(typeName);
3829 
3830  return newnode;
3831 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4373 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

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

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 232 of file copyfuncs.c.

References COPY_BITMAPSET_FIELD, 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_BITMAPSET_FIELD(apprelids);
245  COPY_NODE_FIELD(appendplans);
246  COPY_SCALAR_FIELD(nasyncplans);
247  COPY_SCALAR_FIELD(first_partial_plan);
248  COPY_NODE_FIELD(part_prune_info);
249 
250  return newnode;
251 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2421 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1876 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1877 {
1879 
1881  COPY_NODE_FIELD(elemexpr);
1882  COPY_SCALAR_FIELD(resulttype);
1883  COPY_SCALAR_FIELD(resulttypmod);
1884  COPY_SCALAR_FIELD(resultcollid);
1885  COPY_SCALAR_FIELD(coerceformat);
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:587
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1974 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 314 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 553 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 529 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 335 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 2114 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1734 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3477 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3478 {
3479  CallStmt *newnode = makeNode(CallStmt);
3480 
3481  COPY_NODE_FIELD(funccall);
3482  COPY_NODE_FIELD(funcexpr);
3483  COPY_NODE_FIELD(outargs);
3484 
3485  return newnode;
3486 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1926 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1959 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1944 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3467 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3468 {
3470 
3471  COPY_STRING_FIELD(portalname);
3472 
3473  return newnode;
3474 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3489 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3490 {
3491  ClusterStmt *newnode = makeNode(ClusterStmt);
3492 
3493  COPY_NODE_FIELD(relation);
3494  COPY_STRING_FIELD(indexname);
3495  COPY_NODE_FIELD(params);
3496 
3497  return newnode;
3498 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 2027 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 2129 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 2147 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1859 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2991 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1911 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 3031 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2718 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3605 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3606 {
3607  CommentStmt *newnode = makeNode(CommentStmt);
3608 
3609  COPY_SCALAR_FIELD(objtype);
3610  COPY_NODE_FIELD(object);
3611  COPY_STRING_FIELD(comment);
3612 
3613  return newnode;
3614 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2682 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3895 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3896 {
3898 
3899  COPY_NODE_FIELD(typevar);
3900  COPY_NODE_FIELD(coldeflist);
3901 
3902  return newnode;
3903 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

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

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

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 3058 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4573 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4574 {
4576 
4577  COPY_NODE_FIELD(constraints);
4578  COPY_SCALAR_FIELD(deferred);
4579 
4580  return newnode;
4581 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1895 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3501 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3502 {
3503  CopyStmt *newnode = makeNode(CopyStmt);
3504 
3505  COPY_NODE_FIELD(relation);
3506  COPY_NODE_FIELD(query);
3507  COPY_NODE_FIELD(attlist);
3508  COPY_SCALAR_FIELD(is_from);
3509  COPY_SCALAR_FIELD(is_program);
3512  COPY_NODE_FIELD(whereClause);
3513 
3514  return newnode;
3515 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * filename
Definition: pg_dumpall.c:92

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4439 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4440 {
4441  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4442 
4443  COPY_STRING_FIELD(amname);
4444  COPY_NODE_FIELD(handler_name);
4445  COPY_SCALAR_FIELD(amtype);
4446 
4447  return newnode;
4448 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4624 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4625 {
4627 
4628  COPY_NODE_FIELD(sourcetype);
4629  COPY_NODE_FIELD(targettype);
4630  COPY_NODE_FIELD(func);
4631  COPY_SCALAR_FIELD(context);
4632  COPY_SCALAR_FIELD(inout);
4633 
4634  return newnode;
4635 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4610 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4611 {
4613 
4614  COPY_NODE_FIELD(conversion_name);
4615  COPY_STRING_FIELD(for_encoding_name);
4616  COPY_STRING_FIELD(to_encoding_name);
4617  COPY_NODE_FIELD(func_name);
4618  COPY_SCALAR_FIELD(def);
4619 
4620  return newnode;
4621 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 4035 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4036 {
4037  CreatedbStmt *newnode = makeNode(CreatedbStmt);
4038 
4041 
4042  return newnode;
4043 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
char * dbname
Definition: streamutil.c:51

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3968 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3969 {
3971 
3972  COPY_NODE_FIELD(domainname);
3973  COPY_NODE_FIELD(typeName);
3974  COPY_NODE_FIELD(collClause);
3975  COPY_NODE_FIELD(constraints);
3976 
3977  return newnode;
3978 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3906 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3907 {
3909 
3910  COPY_NODE_FIELD(typeName);
3911  COPY_NODE_FIELD(vals);
3912 
3913  return newnode;
3914 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4475 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4476 {
4478 
4479  COPY_STRING_FIELD(trigname);
4480  COPY_STRING_FIELD(eventname);
4481  COPY_NODE_FIELD(whenclause);
4482  COPY_NODE_FIELD(funcname);
4483 
4484  return newnode;
4485 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4272 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4273 {
4275 
4276  COPY_STRING_FIELD(extname);
4277  COPY_SCALAR_FIELD(if_not_exists);
4279 
4280  return newnode;
4281 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4308 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4332 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4333 {
4335 
4336  COPY_STRING_FIELD(servername);
4337  COPY_STRING_FIELD(servertype);
4338  COPY_STRING_FIELD(version);
4339  COPY_STRING_FIELD(fdwname);
4340  COPY_SCALAR_FIELD(if_not_exists);
4342 
4343  return newnode;
4344 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4397 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4398 {
4400 
4401  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4402 
4403  COPY_STRING_FIELD(servername);
4405 
4406  return newnode;
4407 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3524
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3703 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3704 {
3706 
3707  COPY_SCALAR_FIELD(is_procedure);
3708  COPY_SCALAR_FIELD(replace);
3709  COPY_NODE_FIELD(funcname);
3710  COPY_NODE_FIELD(parameters);
3711  COPY_NODE_FIELD(returnType);
3713  COPY_NODE_FIELD(sql_body);
3714 
3715  return newnode;
3716 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3996 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3997 {
3999 
4000  COPY_SCALAR_FIELD(itemtype);
4002  COPY_SCALAR_FIELD(number);
4003  COPY_NODE_FIELD(order_family);
4004  COPY_NODE_FIELD(class_args);
4005  COPY_NODE_FIELD(storedtype);
4006 
4007  return newnode;
4008 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3981 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3982 {
3984 
3985  COPY_NODE_FIELD(opclassname);
3986  COPY_NODE_FIELD(opfamilyname);
3987  COPY_STRING_FIELD(amname);
3988  COPY_NODE_FIELD(datatype);
3989  COPY_NODE_FIELD(items);
3990  COPY_SCALAR_FIELD(isDefault);
3991 
3992  return newnode;
3993 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 4011 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4499 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4500 {
4502 
4503  COPY_SCALAR_FIELD(replace);
4504  COPY_STRING_FIELD(plname);
4505  COPY_NODE_FIELD(plhandler);
4506  COPY_NODE_FIELD(plinline);
4507  COPY_NODE_FIELD(plvalidator);
4508  COPY_SCALAR_FIELD(pltrusted);
4509 
4510  return newnode;
4511 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4720 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4817 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3917 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3918 {
3920 
3921  COPY_NODE_FIELD(typeName);
3922  COPY_NODE_FIELD(params);
3923 
3924  return newnode;
3925 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4514 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4515 {
4517 
4518  COPY_SCALAR_FIELD(stmt_type);
4519  COPY_STRING_FIELD(role);
4521 
4522  return newnode;
4523 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4597 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4598 {
4600 
4601  COPY_STRING_FIELD(schemaname);
4602  COPY_NODE_FIELD(authrole);
4603  COPY_NODE_FIELD(schemaElts);
4604  COPY_SCALAR_FIELD(if_not_exists);
4605 
4606  return newnode;
4607 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 4162 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3675 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3676 {
3678 
3679  COPY_NODE_FIELD(defnames);
3680  COPY_NODE_FIELD(stat_types);
3681  COPY_NODE_FIELD(exprs);
3682  COPY_NODE_FIELD(relations);
3683  COPY_STRING_FIELD(stxcomment);
3684  COPY_SCALAR_FIELD(transformed);
3685  COPY_SCALAR_FIELD(if_not_exists);
3686 
3687  return newnode;
3688 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3541 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3542 {
3543  CreateStmt *newnode = makeNode(CreateStmt);
3544 
3545  CopyCreateStmtFields(from, newnode);
3546 
3547  return newnode;
3548 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3524
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4844 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

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

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 4115 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4116 {
4118 
4119  COPY_NODE_FIELD(query);
4120  COPY_NODE_FIELD(into);
4121  COPY_SCALAR_FIELD(objtype);
4122  COPY_SCALAR_FIELD(is_select_into);
4123  COPY_SCALAR_FIELD(if_not_exists);
4124 
4125  return newnode;
4126 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4222 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4223 {
4225 
4226  COPY_STRING_FIELD(tablespacename);
4227  COPY_NODE_FIELD(owner);
4228  COPY_STRING_FIELD(location);
4230 
4231  return newnode;
4232 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4425 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4426 {
4428 
4429  COPY_SCALAR_FIELD(replace);
4430  COPY_NODE_FIELD(type_name);
4431  COPY_STRING_FIELD(lang);
4432  COPY_NODE_FIELD(fromsql);
4433  COPY_NODE_FIELD(tosql);
4434 
4435  return newnode;
4436 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4451 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4452 {
4454 
4455  COPY_SCALAR_FIELD(replace);
4456  COPY_SCALAR_FIELD(isconstraint);
4457  COPY_STRING_FIELD(trigname);
4458  COPY_NODE_FIELD(relation);
4459  COPY_NODE_FIELD(funcname);
4461  COPY_SCALAR_FIELD(row);
4462  COPY_SCALAR_FIELD(timing);
4463  COPY_SCALAR_FIELD(events);
4464  COPY_NODE_FIELD(columns);
4465  COPY_NODE_FIELD(whenClause);
4466  COPY_NODE_FIELD(transitionRels);
4467  COPY_SCALAR_FIELD(deferrable);
4468  COPY_SCALAR_FIELD(initdeferred);
4469  COPY_NODE_FIELD(constrrel);
4470 
4471  return newnode;
4472 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4360 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4361 {
4363 
4365  COPY_STRING_FIELD(servername);
4366  COPY_SCALAR_FIELD(if_not_exists);
4368 
4369  return newnode;
4370 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * user
Definition: pg_regress.c:95

◆ _copyCTECycleClause()

static CTECycleClause* _copyCTECycleClause ( const CTECycleClause from)
static

Definition at line 2663 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 701 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCTESearchClause()

static CTESearchClause* _copyCTESearchClause ( const CTESearchClause from)
static

Definition at line 2650 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2179 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 794 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4661 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4662 {
4664 
4666 
4667  return newnode;
4668 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3455 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3456 {
3458 
3459  COPY_STRING_FIELD(portalname);
3461  COPY_NODE_FIELD(query);
3462 
3463  return newnode;
3464 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 3095 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3563 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3564 {
3565  DefineStmt *newnode = makeNode(DefineStmt);
3566 
3567  COPY_SCALAR_FIELD(kind);
3568  COPY_SCALAR_FIELD(oldstyle);
3569  COPY_NODE_FIELD(defnames);
3571  COPY_NODE_FIELD(definition);
3572  COPY_SCALAR_FIELD(if_not_exists);
3573  COPY_SCALAR_FIELD(replace);
3574 
3575  return newnode;
3576 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3234 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 4212 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4213 {
4214  DiscardStmt *newnode = makeNode(DiscardStmt);
4215 
4216  COPY_SCALAR_FIELD(target);
4217 
4218  return newnode;
4219 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1674 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3744 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3745 {
3746  DoStmt *newnode = makeNode(DoStmt);
3747 
3749 
3750  return newnode;
3751 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 4068 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4069 {
4070  DropdbStmt *newnode = makeNode(DropdbStmt);
4071 
4073  COPY_SCALAR_FIELD(missing_ok);
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:587
char * dbname
Definition: streamutil.c:51

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4671 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4672 {
4673  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4674 
4675  COPY_NODE_FIELD(roles);
4676  COPY_SCALAR_FIELD(behavior);
4677 
4678  return newnode;
4679 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4550 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4551 {
4552  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4553 
4554  COPY_NODE_FIELD(roles);
4555  COPY_SCALAR_FIELD(missing_ok);
4556 
4557  return newnode;
4558 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3579 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3580 {
3581  DropStmt *newnode = makeNode(DropStmt);
3582 
3583  COPY_NODE_FIELD(objects);
3584  COPY_SCALAR_FIELD(removeType);
3585  COPY_SCALAR_FIELD(behavior);
3586  COPY_SCALAR_FIELD(missing_ok);
3587  COPY_SCALAR_FIELD(concurrent);
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:587

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4871 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4872 {
4874 
4876  COPY_SCALAR_FIELD(missing_ok);
4877  COPY_SCALAR_FIELD(behavior);
4878 
4879  return newnode;
4880 }
NameData subname
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4235 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4236 {
4238 
4239  COPY_STRING_FIELD(tablespacename);
4240  COPY_SCALAR_FIELD(missing_ok);
4241 
4242  return newnode;
4243 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4385 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4386 {
4388 
4390  COPY_STRING_FIELD(servername);
4391  COPY_SCALAR_FIELD(missing_ok);
4392 
4393  return newnode;
4394 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
static char * user
Definition: pg_regress.c:95

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4650 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4651 {
4652  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4653 
4655  COPY_NODE_FIELD(params);
4656 
4657  return newnode;
4658 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 4104 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4105 {
4106  ExplainStmt *newnode = makeNode(ExplainStmt);
4107 
4108  COPY_NODE_FIELD(query);
4110 
4111  return newnode;
4112 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4887 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4888 {
4889  ExtensibleNode *newnode;
4890  const ExtensibleNodeMethods *methods;
4891 
4892  methods = GetExtensibleNodeMethods(from->extnodename, false);
4893  newnode = (ExtensibleNode *) newNode(methods->node_size,
4895  COPY_STRING_FIELD(extnodename);
4896 
4897  /* copy the private fields */
4898  methods->nodeCopy(newnode, from);
4899 
4900  return newnode;
4901 }
#define newNode(size, tag)
Definition: nodes.h:577
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
void(* nodeCopy)(struct ExtensibleNode *newnode, const struct ExtensibleNode *oldnode)
Definition: extensible.h:64
const char * extnodename
Definition: extensible.h:35
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _copyFetchStmt()

static FetchStmt* _copyFetchStmt ( const FetchStmt from)
static

Definition at line 3630 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3631 {
3632  FetchStmt *newnode = makeNode(FetchStmt);
3633 
3634  COPY_SCALAR_FIELD(direction);
3635  COPY_SCALAR_FIELD(howMany);
3636  COPY_STRING_FIELD(portalname);
3637  COPY_SCALAR_FIELD(ismove);
3638 
3639  return newnode;
3640 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1808 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1825 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4938 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4939 {
4941 
4942  COPY_SCALAR_FIELD(conoid);
4943  COPY_SCALAR_FIELD(conrelid);
4944  COPY_SCALAR_FIELD(confrelid);
4945  COPY_SCALAR_FIELD(nkeys);
4946  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4947  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4948  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4949  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4950 
4951  return newnode;
4952 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:275
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:587
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:277
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:276

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 765 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2276 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2771 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1617 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3719 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3720 {
3722 
3724  COPY_NODE_FIELD(argType);
3726  COPY_NODE_FIELD(defexpr);
3727 
3728  return newnode;
3729 }
static PgChecksumMode mode
Definition: pg_checksums.c:65
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587
const char * name
Definition: encode.c:515

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 637 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 357 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 382 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3429 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3430 {
3431  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3432 
3433  COPY_NODE_FIELD(granted_roles);
3434  COPY_NODE_FIELD(grantee_roles);
3435  COPY_SCALAR_FIELD(is_grant);
3436  COPY_SCALAR_FIELD(admin_opt);
3437  COPY_NODE_FIELD(grantor);
3438  COPY_SCALAR_FIELD(behavior);
3439 
3440  return newnode;
3441 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3387 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3388 {
3389  GrantStmt *newnode = makeNode(GrantStmt);
3390 
3391  COPY_SCALAR_FIELD(is_grant);
3392  COPY_SCALAR_FIELD(targtype);
3393  COPY_SCALAR_FIELD(objtype);
3394  COPY_NODE_FIELD(objects);
3395  COPY_NODE_FIELD(privileges);
3396  COPY_NODE_FIELD(grantees);
3397  COPY_SCALAR_FIELD(grant_option);
3398  COPY_NODE_FIELD(grantor);
3399  COPY_SCALAR_FIELD(behavior);
3400 
3401  return newnode;
3402 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 1040 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1557 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2563 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1147 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 914 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4410 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4411 {
4413 
4414  COPY_STRING_FIELD(server_name);
4415  COPY_STRING_FIELD(remote_schema);
4416  COPY_STRING_FIELD(local_schema);
4417  COPY_SCALAR_FIELD(list_type);
4418  COPY_NODE_FIELD(table_list);
4420 
4421  return newnode;
4422 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyIncrementalSort()

static IncrementalSort* _copyIncrementalSort ( const IncrementalSort from)
static

Definition at line 1018 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopySortFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 3003 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 504 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 477 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3643 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3644 {
3645  IndexStmt *newnode = makeNode(IndexStmt);
3646 
3647  COPY_STRING_FIELD(idxname);
3648  COPY_NODE_FIELD(relation);
3649  COPY_STRING_FIELD(accessMethod);
3650  COPY_STRING_FIELD(tableSpace);
3651  COPY_NODE_FIELD(indexParams);
3652  COPY_NODE_FIELD(indexIncludingParams);
3654  COPY_NODE_FIELD(whereClause);
3655  COPY_NODE_FIELD(excludeOpNames);
3656  COPY_STRING_FIELD(idxcomment);
3657  COPY_SCALAR_FIELD(indexOid);
3658  COPY_SCALAR_FIELD(oldNode);
3659  COPY_SCALAR_FIELD(oldCreateSubid);
3660  COPY_SCALAR_FIELD(oldFirstRelfilenodeSubid);
3661  COPY_SCALAR_FIELD(unique);
3662  COPY_SCALAR_FIELD(primary);
3663  COPY_SCALAR_FIELD(isconstraint);
3664  COPY_SCALAR_FIELD(deferrable);
3665  COPY_SCALAR_FIELD(initdeferred);
3666  COPY_SCALAR_FIELD(transformed);
3667  COPY_SCALAR_FIELD(concurrent);
3668  COPY_SCALAR_FIELD(if_not_exists);
3669  COPY_SCALAR_FIELD(reset_default_tblspc);
3670 
3671  return newnode;
3672 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:587

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2623 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2208 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3218 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1422 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 844 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2255 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1223 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1224 {
1225  Limit *newnode = makeNode(Limit);
1226 
1227  /*
1228  * copy node superclass fields
1229  */
1230  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1231 
1232  /*
1233  * copy remainder of node
1234  */
1235  COPY_NODE_FIELD(limitOffset);
1236  COPY_NODE_FIELD(limitCount);
1237  COPY_SCALAR_FIELD(limitOption);
1238  COPY_SCALAR_FIELD(uniqNumCols);
1239  COPY_POINTER_FIELD(uniqColIdx, from->uniqNumCols * sizeof(AttrNumber));
1240  COPY_POINTER_FIELD(uniqOperators, from->uniqNumCols * sizeof(Oid));
1241  COPY_POINTER_FIELD(uniqCollations, from->uniqNumCols * sizeof(Oid));
1242 
1243  return newnode;
1244 }
unsigned int Oid
Def