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_ARRAY_FIELD(fldname)   memcpy(newnode->fldname, from->fldname, sizeof(newnode->fldname))
 
#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 PublicationTable_copyPublicationTable (const PublicationTable *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 Integer_copyInteger (const Integer *from)
 
static Float_copyFloat (const Float *from)
 
static String_copyString (const String *from)
 
static BitString_copyBitString (const BitString *from)
 
static ForeignKeyCacheInfo_copyForeignKeyCacheInfo (const ForeignKeyCacheInfo *from)
 
void * copyObjectImpl (const void *from)
 

Macro Definition Documentation

◆ COPY_ARRAY_FIELD

#define COPY_ARRAY_FIELD (   fldname)    memcpy(newnode->fldname, from->fldname, sizeof(newnode->fldname))

Definition at line 57 of file copyfuncs.c.

Referenced by _copyForeignKeyCacheInfo().

◆ 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(), _copyPublicationTable(), _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); \
if (_size > 0) \
{ \
newnode->fldname = palloc(_size); \
memcpy(newnode->fldname, from->fldname, _size); \
} \
} while (0)
void * palloc(Size size)
Definition: mcxt.c:1062

Definition at line 61 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(), _copyInteger(), _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(), _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(), _copyBitString(), _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(), _copyFloat(), _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(), _copyString(), _copySubPlan(), _copyTargetEntry(), _copyTransactionStmt(), _copyTriggerTransition(), _copyUnlistenStmt(), _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 2819 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2820 {
2821  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2822 
2823  COPY_NODE_FIELD(elements);
2824  COPY_LOCATION_FIELD(location);
2825 
2826  return newnode;
2827 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyA_Const()

static A_Const* _copyA_Const ( const A_Const from)
static

Definition at line 2732 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, elog, ERROR, A_Const::isnull, makeNode, nodeTag, T_BitString, T_Float, T_Integer, T_String, A_Const::val, and val.

Referenced by copyObjectImpl().

2733 {
2734  A_Const *newnode = makeNode(A_Const);
2735 
2736  COPY_SCALAR_FIELD(isnull);
2737  if (!from->isnull)
2738  {
2739  /* This part must duplicate other _copy*() functions. */
2740  COPY_SCALAR_FIELD(val.node.type);
2741  switch (nodeTag(&from->val))
2742  {
2743  case T_Integer:
2744  COPY_SCALAR_FIELD(val.ival.val);
2745  break;
2746  case T_Float:
2747  COPY_STRING_FIELD(val.fval.val);
2748  break;
2749  case T_String:
2750  COPY_STRING_FIELD(val.sval.val);
2751  break;
2752  case T_BitString:
2753  COPY_STRING_FIELD(val.bsval.val);
2754  break;
2755  default:
2756  elog(ERROR, "unrecognized node type: %d",
2757  (int) nodeTag(&from->val));
2758  break;
2759  }
2760  }
2761 
2762  COPY_LOCATION_FIELD(location);
2763 
2764  return newnode;
2765 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
bool isnull
Definition: parsenodes.h:310
#define ERROR
Definition: elog.h:46
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
union A_Const::ValUnion val
#define makeNode(_type_)
Definition: nodes.h:585
#define nodeTag(nodeptr)
Definition: nodes.h:542
Definition: nodes.h:294
#define elog(elevel,...)
Definition: elog.h:232
long val
Definition: informix.c:664

◆ _copyA_Expr()

static A_Expr* _copyA_Expr ( const A_Expr from)
static

Definition at line 2696 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2697 {
2698  A_Expr *newnode = makeNode(A_Expr);
2699 
2700  COPY_SCALAR_FIELD(kind);
2702  COPY_NODE_FIELD(lexpr);
2703  COPY_NODE_FIELD(rexpr);
2704  COPY_LOCATION_FIELD(location);
2705 
2706  return newnode;
2707 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
const char * name
Definition: encode.c:561

◆ _copyA_Indices()

static A_Indices* _copyA_Indices ( const A_Indices from)
static

Definition at line 2796 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2808 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2809 {
2810  A_Indirection *newnode = makeNode(A_Indirection);
2811 
2813  COPY_NODE_FIELD(indirection);
2814 
2815  return newnode;
2816 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyA_Star()

static A_Star* _copyA_Star ( const A_Star from)
static

Definition at line 2788 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2789 {
2790  A_Star *newnode = makeNode(A_Star);
2791 
2792  return newnode;
2793 }
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3415 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 1059 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1060 {
1061  Agg *newnode = makeNode(Agg);
1062 
1063  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1064 
1065  COPY_SCALAR_FIELD(aggstrategy);
1066  COPY_SCALAR_FIELD(aggsplit);
1067  COPY_SCALAR_FIELD(numCols);
1068  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
1069  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
1070  COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
1071  COPY_SCALAR_FIELD(numGroups);
1072  COPY_SCALAR_FIELD(transitionSpace);
1073  COPY_BITMAPSET_FIELD(aggParams);
1074  COPY_NODE_FIELD(groupingSets);
1075  COPY_NODE_FIELD(chain);
1076 
1077  return newnode;
1078 }
#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:61
#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:122
#define makeNode(_type_)
Definition: nodes.h:585
Definition: plannodes.h:860
int16 AttrNumber
Definition: attnum.h:21

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1518 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1519 {
1520  Aggref *newnode = makeNode(Aggref);
1521 
1522  COPY_SCALAR_FIELD(aggfnoid);
1523  COPY_SCALAR_FIELD(aggtype);
1524  COPY_SCALAR_FIELD(aggcollid);
1525  COPY_SCALAR_FIELD(inputcollid);
1526  COPY_SCALAR_FIELD(aggtranstype);
1527  COPY_NODE_FIELD(aggargtypes);
1528  COPY_NODE_FIELD(aggdirectargs);
1530  COPY_NODE_FIELD(aggorder);
1531  COPY_NODE_FIELD(aggdistinct);
1532  COPY_NODE_FIELD(aggfilter);
1533  COPY_SCALAR_FIELD(aggstar);
1534  COPY_SCALAR_FIELD(aggvariadic);
1535  COPY_SCALAR_FIELD(aggkind);
1536  COPY_SCALAR_FIELD(agglevelsup);
1537  COPY_SCALAR_FIELD(aggsplit);
1538  COPY_SCALAR_FIELD(aggno);
1539  COPY_SCALAR_FIELD(aggtransno);
1540  COPY_LOCATION_FIELD(location);
1541 
1542  return newnode;
1543 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1356 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1357 {
1358  Alias *newnode = makeNode(Alias);
1359 
1360  COPY_STRING_FIELD(aliasname);
1361  COPY_NODE_FIELD(colnames);
1362 
1363  return newnode;
1364 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterCollationStmt()

static AlterCollationStmt* _copyAlterCollationStmt ( const AlterCollationStmt from)
static

Definition at line 3359 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3360 {
3362 
3363  COPY_NODE_FIELD(collname);
3364 
3365  return newnode;
3366 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 4054 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4055 {
4057 
4059  COPY_NODE_FIELD(setstmt);
4060 
4061  return newnode;
4062 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 4043 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4044 {
4046 
4049 
4050  return newnode;
4051 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3441 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3442 {
3444 
3447 
3448  return newnode;
3449 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3369 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3370 {
3372 
3373  COPY_SCALAR_FIELD(subtype);
3374  COPY_NODE_FIELD(typeName);
3376  COPY_NODE_FIELD(def);
3377  COPY_SCALAR_FIELD(behavior);
3378  COPY_SCALAR_FIELD(missing_ok);
3379 
3380  return newnode;
3381 }
#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:585
const char * name
Definition: encode.c:561

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3925 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3926 {
3927  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3928 
3929  COPY_NODE_FIELD(typeName);
3930  COPY_STRING_FIELD(oldVal);
3931  COPY_STRING_FIELD(newVal);
3932  COPY_STRING_FIELD(newValNeighbor);
3933  COPY_SCALAR_FIELD(newValIsAfter);
3934  COPY_SCALAR_FIELD(skipIfNewValExists);
3935 
3936  return newnode;
3937 }
#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:585

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4485 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4486 {
4488 
4489  COPY_STRING_FIELD(trigname);
4490  COPY_SCALAR_FIELD(tgenabled);
4491 
4492  return newnode;
4493 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4292 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4293 {
4295 
4296  COPY_STRING_FIELD(extname);
4298  COPY_SCALAR_FIELD(objtype);
4299  COPY_NODE_FIELD(object);
4300 
4301  return newnode;
4302 }
#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:585

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4281 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4282 {
4284 
4285  COPY_STRING_FIELD(extname);
4287 
4288  return newnode;
4289 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4317 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4318 {
4319  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4320 
4321  COPY_STRING_FIELD(fdwname);
4322  COPY_NODE_FIELD(func_options);
4324 
4325  return newnode;
4326 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4344 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4345 {
4347 
4348  COPY_STRING_FIELD(servername);
4349  COPY_STRING_FIELD(version);
4351  COPY_SCALAR_FIELD(has_version);
4352 
4353  return newnode;
4354 }
#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:585

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3729 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3730 {
3732 
3733  COPY_SCALAR_FIELD(objtype);
3734  COPY_NODE_FIELD(func);
3735  COPY_NODE_FIELD(actions);
3736 
3737  return newnode;
3738 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1787 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1788 {
1790 
1791  COPY_NODE_FIELD(subplans);
1792 
1793  return newnode;
1794 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3768 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3782 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3783 {
3785 
3786  COPY_SCALAR_FIELD(objectType);
3787  COPY_NODE_FIELD(relation);
3788  COPY_NODE_FIELD(object);
3789  COPY_STRING_FIELD(newschema);
3790  COPY_SCALAR_FIELD(missing_ok);
3791 
3792  return newnode;
3793 }
#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:585

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3809 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3810 {
3812 
3813  COPY_NODE_FIELD(opername);
3815 
3816  return newnode;
3817 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 4019 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4020 {
4022 
4023  COPY_NODE_FIELD(opfamilyname);
4024  COPY_STRING_FIELD(amname);
4025  COPY_SCALAR_FIELD(isDrop);
4026  COPY_NODE_FIELD(items);
4027 
4028  return newnode;
4029 }
#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:585

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3796 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4733 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4837 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4838 {
4840 
4841  COPY_STRING_FIELD(pubname);
4843  COPY_NODE_FIELD(tables);
4844  COPY_SCALAR_FIELD(for_all_tables);
4845  COPY_SCALAR_FIELD(tableAction);
4846 
4847  return newnode;
4848 }
#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:585

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4535 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4536 {
4538 
4539  COPY_NODE_FIELD(role);
4540  COPY_STRING_FIELD(database);
4541  COPY_NODE_FIELD(setstmt);
4542 
4543  return newnode;
4544 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4523 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4524 {
4525  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4526 
4527  COPY_NODE_FIELD(role);
4530 
4531  return newnode;
4532 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 4173 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4174 {
4175  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
4176 
4177  COPY_NODE_FIELD(sequence);
4179  COPY_SCALAR_FIELD(for_identity);
4180  COPY_SCALAR_FIELD(missing_ok);
4181 
4182  return newnode;
4183 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterStatsStmt()

static AlterStatsStmt* _copyAlterStatsStmt ( const AlterStatsStmt from)
static

Definition at line 3688 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3689 {
3691 
3692  COPY_NODE_FIELD(defnames);
3693  COPY_SCALAR_FIELD(stxstattarget);
3694  COPY_SCALAR_FIELD(missing_ok);
3695 
3696  return newnode;
3697 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4864 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4865 {
4867 
4868  COPY_SCALAR_FIELD(kind);
4870  COPY_STRING_FIELD(conninfo);
4871  COPY_NODE_FIELD(publication);
4873 
4874  return newnode;
4875 }
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:585

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 4149 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4150 {
4152 
4153  COPY_NODE_FIELD(setstmt);
4154 
4155  return newnode;
4156 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3343 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3344 {
3345  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3346 
3347  COPY_SCALAR_FIELD(subtype);
3349  COPY_SCALAR_FIELD(num);
3350  COPY_NODE_FIELD(newowner);
3351  COPY_NODE_FIELD(def);
3352  COPY_SCALAR_FIELD(behavior);
3353  COPY_SCALAR_FIELD(missing_ok);
3354 
3355  return newnode;
3356 }
#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:585
const char * name
Definition: encode.c:561

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4255 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4256 {
4258 
4259  COPY_STRING_FIELD(orig_tablespacename);
4260  COPY_SCALAR_FIELD(objtype);
4261  COPY_NODE_FIELD(roles);
4262  COPY_STRING_FIELD(new_tablespacename);
4263  COPY_SCALAR_FIELD(nowait);
4264 
4265  return newnode;
4266 }
#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:585

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 4243 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4244 {
4246 
4247  COPY_STRING_FIELD(tablespacename);
4249  COPY_SCALAR_FIELD(isReset);
4250 
4251  return newnode;
4252 }
#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:585

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3330 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4701 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4690 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4691 {
4693 
4694  COPY_NODE_FIELD(dictname);
4696 
4697  return newnode;
4698 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterTypeStmt()

static AlterTypeStmt* _copyAlterTypeStmt ( const AlterTypeStmt from)
static

Definition at line 3820 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3821 {
3822  AlterTypeStmt *newnode = makeNode(AlterTypeStmt);
3823 
3824  COPY_NODE_FIELD(typeName);
3826 
3827  return newnode;
3828 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4370 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4371 {
4373 
4375  COPY_STRING_FIELD(servername);
4377 
4378  return newnode;
4379 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
static char * user
Definition: pg_regress.c:95

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 239 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

240 {
241  Append *newnode = makeNode(Append);
242 
243  /*
244  * copy node superclass fields
245  */
246  CopyPlanFields((const Plan *) from, (Plan *) newnode);
247 
248  /*
249  * copy remainder of node
250  */
251  COPY_BITMAPSET_FIELD(apprelids);
252  COPY_NODE_FIELD(appendplans);
253  COPY_SCALAR_FIELD(nasyncplans);
254  COPY_SCALAR_FIELD(first_partial_plan);
255  COPY_NODE_FIELD(part_prune_info);
256 
257  return newnode;
258 }
#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:122
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2413 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2414 {
2415  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2416 
2417  COPY_SCALAR_FIELD(parent_relid);
2418  COPY_SCALAR_FIELD(child_relid);
2419  COPY_SCALAR_FIELD(parent_reltype);
2420  COPY_SCALAR_FIELD(child_reltype);
2421  COPY_NODE_FIELD(translated_vars);
2422  COPY_SCALAR_FIELD(num_child_cols);
2423  COPY_POINTER_FIELD(parent_colnos, from->num_child_cols * sizeof(AttrNumber));
2424  COPY_SCALAR_FIELD(parent_reloid);
2425 
2426  return newnode;
2427 }
int num_child_cols
Definition: pathnodes.h:2342
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:61
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585
int16 AttrNumber
Definition: attnum.h:21

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1868 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1869 {
1871 
1873  COPY_NODE_FIELD(elemexpr);
1874  COPY_SCALAR_FIELD(resulttype);
1875  COPY_SCALAR_FIELD(resulttypmod);
1876  COPY_SCALAR_FIELD(resultcollid);
1877  COPY_SCALAR_FIELD(coerceformat);
1878  COPY_LOCATION_FIELD(location);
1879 
1880  return newnode;
1881 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1966 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1967 {
1968  ArrayExpr *newnode = makeNode(ArrayExpr);
1969 
1970  COPY_SCALAR_FIELD(array_typeid);
1971  COPY_SCALAR_FIELD(array_collid);
1972  COPY_SCALAR_FIELD(element_typeid);
1973  COPY_NODE_FIELD(elements);
1974  COPY_SCALAR_FIELD(multidims);
1975  COPY_LOCATION_FIELD(location);
1976 
1977  return newnode;
1978 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 318 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 557 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

558 {
560 
561  /*
562  * copy node superclass fields
563  */
564  CopyScanFields((const Scan *) from, (Scan *) newnode);
565 
566  /*
567  * copy remainder of node
568  */
569  COPY_NODE_FIELD(bitmapqualorig);
570 
571  return newnode;
572 }
static void CopyScanFields(const Scan *from, Scan *newnode)
Definition: copyfuncs.c:417
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 533 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 339 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitString()

static BitString* _copyBitString ( const BitString from)
static

Definition at line 4945 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and val.

Referenced by copyObjectImpl().

4946 {
4947  BitString *newnode = makeNode(BitString);
4948 
4950 
4951  return newnode;
4952 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
long val
Definition: informix.c:664

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 2106 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2107 {
2108  BooleanTest *newnode = makeNode(BooleanTest);
2109 
2111  COPY_SCALAR_FIELD(booltesttype);
2112  COPY_LOCATION_FIELD(location);
2113 
2114  return newnode;
2115 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1726 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1727 {
1728  BoolExpr *newnode = makeNode(BoolExpr);
1729 
1732  COPY_LOCATION_FIELD(location);
1733 
1734  return newnode;
1735 }
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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3474 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1918 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1919 {
1920  CaseExpr *newnode = makeNode(CaseExpr);
1921 
1922  COPY_SCALAR_FIELD(casetype);
1923  COPY_SCALAR_FIELD(casecollid);
1926  COPY_NODE_FIELD(defresult);
1927  COPY_LOCATION_FIELD(location);
1928 
1929  return newnode;
1930 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1951 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1952 {
1953  CaseTestExpr *newnode = makeNode(CaseTestExpr);
1954 
1955  COPY_SCALAR_FIELD(typeId);
1956  COPY_SCALAR_FIELD(typeMod);
1957  COPY_SCALAR_FIELD(collation);
1958 
1959  return newnode;
1960 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1936 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1937 {
1938  CaseWhen *newnode = makeNode(CaseWhen);
1939 
1940  COPY_NODE_FIELD(expr);
1941  COPY_NODE_FIELD(result);
1942  COPY_LOCATION_FIELD(location);
1943 
1944  return newnode;
1945 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3464 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3465 {
3467 
3468  COPY_STRING_FIELD(portalname);
3469 
3470  return newnode;
3471 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3486 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 2019 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2020 {
2021  CoalesceExpr *newnode = makeNode(CoalesceExpr);
2022 
2023  COPY_SCALAR_FIELD(coalescetype);
2024  COPY_SCALAR_FIELD(coalescecollid);
2026  COPY_LOCATION_FIELD(location);
2027 
2028  return newnode;
2029 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 2121 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2122 {
2124 
2126  COPY_SCALAR_FIELD(resulttype);
2127  COPY_SCALAR_FIELD(resulttypmod);
2128  COPY_SCALAR_FIELD(resultcollid);
2129  COPY_SCALAR_FIELD(coercionformat);
2130  COPY_LOCATION_FIELD(location);
2131 
2132  return newnode;
2133 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 2139 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2140 {
2142 
2143  COPY_SCALAR_FIELD(typeId);
2144  COPY_SCALAR_FIELD(typeMod);
2145  COPY_SCALAR_FIELD(collation);
2146  COPY_LOCATION_FIELD(location);
2147 
2148  return newnode;
2149 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1851 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1852 {
1853  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1854 
1856  COPY_SCALAR_FIELD(resulttype);
1857  COPY_SCALAR_FIELD(resultcollid);
1858  COPY_SCALAR_FIELD(coerceformat);
1859  COPY_LOCATION_FIELD(location);
1860 
1861  return newnode;
1862 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2988 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2989 {
2990  CollateClause *newnode = makeNode(CollateClause);
2991 
2993  COPY_NODE_FIELD(collname);
2994  COPY_LOCATION_FIELD(location);
2995 
2996  return newnode;
2997 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1903 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1904 {
1905  CollateExpr *newnode = makeNode(CollateExpr);
1906 
1908  COPY_SCALAR_FIELD(collOid);
1909  COPY_LOCATION_FIELD(location);
1910 
1911  return newnode;
1912 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 3028 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3029 {
3030  ColumnDef *newnode = makeNode(ColumnDef);
3031 
3032  COPY_STRING_FIELD(colname);
3033  COPY_NODE_FIELD(typeName);
3034  COPY_STRING_FIELD(compression);
3035  COPY_SCALAR_FIELD(inhcount);
3036  COPY_SCALAR_FIELD(is_local);
3037  COPY_SCALAR_FIELD(is_not_null);
3038  COPY_SCALAR_FIELD(is_from_type);
3039  COPY_SCALAR_FIELD(storage);
3040  COPY_NODE_FIELD(raw_default);
3041  COPY_NODE_FIELD(cooked_default);
3042  COPY_SCALAR_FIELD(identity);
3043  COPY_NODE_FIELD(identitySequence);
3044  COPY_SCALAR_FIELD(generated);
3045  COPY_NODE_FIELD(collClause);
3046  COPY_SCALAR_FIELD(collOid);
3047  COPY_NODE_FIELD(constraints);
3048  COPY_NODE_FIELD(fdwoptions);
3049  COPY_LOCATION_FIELD(location);
3050 
3051  return newnode;
3052 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2710 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2711 {
2712  ColumnRef *newnode = makeNode(ColumnRef);
2713 
2714  COPY_NODE_FIELD(fields);
2715  COPY_LOCATION_FIELD(location);
2716 
2717  return newnode;
2718 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3602 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3603 {
3604  CommentStmt *newnode = makeNode(CommentStmt);
3605 
3606  COPY_SCALAR_FIELD(objtype);
3607  COPY_NODE_FIELD(object);
3608  COPY_STRING_FIELD(comment);
3609 
3610  return newnode;
3611 }
#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:585

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2674 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2675 {
2677 
2678  COPY_STRING_FIELD(ctename);
2679  COPY_NODE_FIELD(aliascolnames);
2680  COPY_SCALAR_FIELD(ctematerialized);
2681  COPY_NODE_FIELD(ctequery);
2682  COPY_NODE_FIELD(search_clause);
2683  COPY_NODE_FIELD(cycle_clause);
2684  COPY_LOCATION_FIELD(location);
2685  COPY_SCALAR_FIELD(cterecursive);
2686  COPY_SCALAR_FIELD(cterefcount);
2687  COPY_NODE_FIELD(ctecolnames);
2688  COPY_NODE_FIELD(ctecoltypes);
2689  COPY_NODE_FIELD(ctecoltypmods);
2690  COPY_NODE_FIELD(ctecolcollations);
2691 
2692  return newnode;
2693 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3892 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3893 {
3895 
3896  COPY_NODE_FIELD(typevar);
3897  COPY_NODE_FIELD(coldeflist);
3898 
3899  return newnode;
3900 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

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

1463 {
1464  Const *newnode = makeNode(Const);
1465 
1466  COPY_SCALAR_FIELD(consttype);
1467  COPY_SCALAR_FIELD(consttypmod);
1468  COPY_SCALAR_FIELD(constcollid);
1469  COPY_SCALAR_FIELD(constlen);
1470 
1471  if (from->constbyval || from->constisnull)
1472  {
1473  /*
1474  * passed by value so just copy the datum. Also, don't try to copy
1475  * struct when value is null!
1476  */
1477  newnode->constvalue = from->constvalue;
1478  }
1479  else
1480  {
1481  /*
1482  * passed by reference. We need a palloc'd copy.
1483  */
1484  newnode->constvalue = datumCopy(from->constvalue,
1485  from->constbyval,
1486  from->constlen);
1487  }
1488 
1489  COPY_SCALAR_FIELD(constisnull);
1490  COPY_SCALAR_FIELD(constbyval);
1491  COPY_LOCATION_FIELD(location);
1492 
1493  return newnode;
1494 }
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:72
Datum datumCopy(Datum value, bool typByVal, int typLen)
Definition: datum.c:131
#define makeNode(_type_)
Definition: nodes.h:585
bool constisnull
Definition: primnodes.h:220

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 3055 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3056 {
3057  Constraint *newnode = makeNode(Constraint);
3058 
3059  COPY_SCALAR_FIELD(contype);
3060  COPY_STRING_FIELD(conname);
3061  COPY_SCALAR_FIELD(deferrable);
3062  COPY_SCALAR_FIELD(initdeferred);
3063  COPY_LOCATION_FIELD(location);
3064  COPY_SCALAR_FIELD(is_no_inherit);
3065  COPY_NODE_FIELD(raw_expr);
3066  COPY_STRING_FIELD(cooked_expr);
3067  COPY_SCALAR_FIELD(generated_when);
3068  COPY_NODE_FIELD(keys);
3069  COPY_NODE_FIELD(including);
3070  COPY_NODE_FIELD(exclusions);
3072  COPY_STRING_FIELD(indexname);
3073  COPY_STRING_FIELD(indexspace);
3074  COPY_SCALAR_FIELD(reset_default_tblspc);
3075  COPY_STRING_FIELD(access_method);
3076  COPY_NODE_FIELD(where_clause);
3077  COPY_NODE_FIELD(pktable);
3078  COPY_NODE_FIELD(fk_attrs);
3079  COPY_NODE_FIELD(pk_attrs);
3080  COPY_SCALAR_FIELD(fk_matchtype);
3081  COPY_SCALAR_FIELD(fk_upd_action);
3082  COPY_SCALAR_FIELD(fk_del_action);
3083  COPY_NODE_FIELD(old_conpfeqop);
3084  COPY_SCALAR_FIELD(old_pktable_oid);
3085  COPY_SCALAR_FIELD(skip_validation);
3086  COPY_SCALAR_FIELD(initially_valid);
3087 
3088  return newnode;
3089 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4570 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4571 {
4573 
4574  COPY_NODE_FIELD(constraints);
4575  COPY_SCALAR_FIELD(deferred);
4576 
4577  return newnode;
4578 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1887 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1888 {
1890 
1892  COPY_SCALAR_FIELD(resulttype);
1893  COPY_SCALAR_FIELD(convertformat);
1894  COPY_LOCATION_FIELD(location);
1895 
1896  return newnode;
1897 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3498 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3499 {
3500  CopyStmt *newnode = makeNode(CopyStmt);
3501 
3502  COPY_NODE_FIELD(relation);
3503  COPY_NODE_FIELD(query);
3504  COPY_NODE_FIELD(attlist);
3505  COPY_SCALAR_FIELD(is_from);
3506  COPY_SCALAR_FIELD(is_program);
3509  COPY_NODE_FIELD(whereClause);
3510 
3511  return newnode;
3512 }
#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:585
static char * filename
Definition: pg_dumpall.c:92

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4436 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4437 {
4438  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4439 
4440  COPY_STRING_FIELD(amname);
4441  COPY_NODE_FIELD(handler_name);
4442  COPY_SCALAR_FIELD(amtype);
4443 
4444  return newnode;
4445 }
#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:585

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4621 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4607 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4608 {
4610 
4611  COPY_NODE_FIELD(conversion_name);
4612  COPY_STRING_FIELD(for_encoding_name);
4613  COPY_STRING_FIELD(to_encoding_name);
4614  COPY_NODE_FIELD(func_name);
4615  COPY_SCALAR_FIELD(def);
4616 
4617  return newnode;
4618 }
#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:585

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 4032 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

4033 {
4034  CreatedbStmt *newnode = makeNode(CreatedbStmt);
4035 
4038 
4039  return newnode;
4040 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
char * dbname
Definition: streamutil.c:51

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3965 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3966 {
3968 
3969  COPY_NODE_FIELD(domainname);
3970  COPY_NODE_FIELD(typeName);
3971  COPY_NODE_FIELD(collClause);
3972  COPY_NODE_FIELD(constraints);
3973 
3974  return newnode;
3975 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3903 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3904 {
3906 
3907  COPY_NODE_FIELD(typeName);
3908  COPY_NODE_FIELD(vals);
3909 
3910  return newnode;
3911 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4472 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4269 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4270 {
4272 
4273  COPY_STRING_FIELD(extname);
4274  COPY_SCALAR_FIELD(if_not_exists);
4276 
4277  return newnode;
4278 }
#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:585

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4305 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4306 {
4307  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4308 
4309  COPY_STRING_FIELD(fdwname);
4310  COPY_NODE_FIELD(func_options);
4312 
4313  return newnode;
4314 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4329 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4330 {
4332 
4333  COPY_STRING_FIELD(servername);
4334  COPY_STRING_FIELD(servertype);
4335  COPY_STRING_FIELD(version);
4336  COPY_STRING_FIELD(fdwname);
4337  COPY_SCALAR_FIELD(if_not_exists);
4339 
4340  return newnode;
4341 }
#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:585

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4394 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4395 {
4397 
4398  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4399 
4400  COPY_STRING_FIELD(servername);
4402 
4403  return newnode;
4404 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3521
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3700 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3701 {
3703 
3704  COPY_SCALAR_FIELD(is_procedure);
3705  COPY_SCALAR_FIELD(replace);
3706  COPY_NODE_FIELD(funcname);
3707  COPY_NODE_FIELD(parameters);
3708  COPY_NODE_FIELD(returnType);
3710  COPY_NODE_FIELD(sql_body);
3711 
3712  return newnode;
3713 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3993 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

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

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3978 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3979 {
3981 
3982  COPY_NODE_FIELD(opclassname);
3983  COPY_NODE_FIELD(opfamilyname);
3984  COPY_STRING_FIELD(amname);
3985  COPY_NODE_FIELD(datatype);
3986  COPY_NODE_FIELD(items);
3987  COPY_SCALAR_FIELD(isDefault);
3988 
3989  return newnode;
3990 }
#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:585

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 4008 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4009 {
4011 
4012  COPY_NODE_FIELD(opfamilyname);
4013  COPY_STRING_FIELD(amname);
4014 
4015  return newnode;
4016 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4496 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4497 {
4499 
4500  COPY_SCALAR_FIELD(replace);
4501  COPY_STRING_FIELD(plname);
4502  COPY_NODE_FIELD(plhandler);
4503  COPY_NODE_FIELD(plinline);
4504  COPY_NODE_FIELD(plvalidator);
4505  COPY_SCALAR_FIELD(pltrusted);
4506 
4507  return newnode;
4508 }
#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:585

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4717 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4718 {
4720 
4721  COPY_STRING_FIELD(policy_name);
4722  COPY_NODE_FIELD(table);
4723  COPY_STRING_FIELD(cmd_name);
4724  COPY_SCALAR_FIELD(permissive);
4725  COPY_NODE_FIELD(roles);
4726  COPY_NODE_FIELD(qual);
4727  COPY_NODE_FIELD(with_check);
4728 
4729  return newnode;
4730 }
#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:585

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4824 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4825 {
4827 
4828  COPY_STRING_FIELD(pubname);
4830  COPY_NODE_FIELD(tables);
4831  COPY_SCALAR_FIELD(for_all_tables);
4832 
4833  return newnode;
4834 }
#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:585

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3914 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3915 {
3917 
3918  COPY_NODE_FIELD(typeName);
3919  COPY_NODE_FIELD(params);
3920 
3921  return newnode;
3922 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4511 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4512 {
4514 
4515  COPY_SCALAR_FIELD(stmt_type);
4516  COPY_STRING_FIELD(role);
4518 
4519  return newnode;
4520 }
#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:585

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4594 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4595 {
4597 
4598  COPY_STRING_FIELD(schemaname);
4599  COPY_NODE_FIELD(authrole);
4600  COPY_NODE_FIELD(schemaElts);
4601  COPY_SCALAR_FIELD(if_not_exists);
4602 
4603  return newnode;
4604 }
#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:585

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 4159 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4160 {
4161  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
4162 
4163  COPY_NODE_FIELD(sequence);
4165  COPY_SCALAR_FIELD(ownerId);
4166  COPY_SCALAR_FIELD(for_identity);
4167  COPY_SCALAR_FIELD(if_not_exists);
4168 
4169  return newnode;
4170 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3672 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3673 {
3675 
3676  COPY_NODE_FIELD(defnames);
3677  COPY_NODE_FIELD(stat_types);
3678  COPY_NODE_FIELD(exprs);
3679  COPY_NODE_FIELD(relations);
3680  COPY_STRING_FIELD(stxcomment);
3681  COPY_SCALAR_FIELD(transformed);
3682  COPY_SCALAR_FIELD(if_not_exists);
3683 
3684  return newnode;
3685 }
#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:585

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3538 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3539 {
3540  CreateStmt *newnode = makeNode(CreateStmt);
3541 
3542  CopyCreateStmtFields(from, newnode);
3543 
3544  return newnode;
3545 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3521
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4851 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4852 {
4854 
4856  COPY_STRING_FIELD(conninfo);
4857  COPY_NODE_FIELD(publication);
4859 
4860  return newnode;
4861 }
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:585

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 4112 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 4219 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4220 {
4222 
4223  COPY_STRING_FIELD(tablespacename);
4224  COPY_NODE_FIELD(owner);
4225  COPY_STRING_FIELD(location);
4227 
4228  return newnode;
4229 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4422 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4423 {
4425 
4426  COPY_SCALAR_FIELD(replace);
4427  COPY_NODE_FIELD(type_name);
4428  COPY_STRING_FIELD(lang);
4429  COPY_NODE_FIELD(fromsql);
4430  COPY_NODE_FIELD(tosql);
4431 
4432  return newnode;
4433 }
#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:585

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4448 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4449 {
4451 
4452  COPY_SCALAR_FIELD(replace);
4453  COPY_SCALAR_FIELD(isconstraint);
4454  COPY_STRING_FIELD(trigname);
4455  COPY_NODE_FIELD(relation);
4456  COPY_NODE_FIELD(funcname);
4458  COPY_SCALAR_FIELD(row);
4459  COPY_SCALAR_FIELD(timing);
4460  COPY_SCALAR_FIELD(events);
4461  COPY_NODE_FIELD(columns);
4462  COPY_NODE_FIELD(whenClause);
4463  COPY_NODE_FIELD(transitionRels);
4464  COPY_SCALAR_FIELD(deferrable);
4465  COPY_SCALAR_FIELD(initdeferred);
4466  COPY_NODE_FIELD(constrrel);
4467 
4468  return newnode;
4469 }
#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:585

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4357 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4358 {
4360 
4362  COPY_STRING_FIELD(servername);
4363  COPY_SCALAR_FIELD(if_not_exists);
4365 
4366  return newnode;
4367 }
#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:585
static char * user
Definition: pg_regress.c:95

◆ _copyCTECycleClause()

static CTECycleClause* _copyCTECycleClause ( const CTECycleClause from)
static

Definition at line 2655 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2656 {
2658 
2659  COPY_NODE_FIELD(cycle_col_list);
2660  COPY_STRING_FIELD(cycle_mark_column);
2661  COPY_NODE_FIELD(cycle_mark_value);
2662  COPY_NODE_FIELD(cycle_mark_default);
2663  COPY_STRING_FIELD(cycle_path_column);
2664  COPY_LOCATION_FIELD(location);
2665  COPY_SCALAR_FIELD(cycle_mark_type);
2666  COPY_SCALAR_FIELD(cycle_mark_typmod);
2667  COPY_SCALAR_FIELD(cycle_mark_collation);
2668  COPY_SCALAR_FIELD(cycle_mark_neop);
2669 
2670  return newnode;
2671 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 705 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCTESearchClause()

static CTESearchClause* _copyCTESearchClause ( const CTESearchClause from)
static

Definition at line 2642 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2643 {
2645 
2646  COPY_NODE_FIELD(search_col_list);
2647  COPY_SCALAR_FIELD(search_breadth_first);
2648  COPY_STRING_FIELD(search_seq_column);
2649  COPY_LOCATION_FIELD(location);
2650 
2651  return newnode;
2652 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2171 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2172 {
2173  CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
2174 
2175  COPY_SCALAR_FIELD(cvarno);
2176  COPY_STRING_FIELD(cursor_name);
2177  COPY_SCALAR_FIELD(cursor_param);
2178 
2179  return newnode;
2180 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 798 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4658 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4659 {
4661 
4663 
4664  return newnode;
4665 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
const char * name
Definition: encode.c:561

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3452 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3453 {
3455 
3456  COPY_STRING_FIELD(portalname);
3458  COPY_NODE_FIELD(query);
3459 
3460  return newnode;
3461 }
#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:585

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 3092 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3093 {
3094  DefElem *newnode = makeNode(DefElem);
3095 
3096  COPY_STRING_FIELD(defnamespace);
3097  COPY_STRING_FIELD(defname);
3099  COPY_SCALAR_FIELD(defaction);
3100  COPY_LOCATION_FIELD(location);
3101 
3102  return newnode;
3103 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3560 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3231 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 4209 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4210 {
4211  DiscardStmt *newnode = makeNode(DiscardStmt);
4212 
4213  COPY_SCALAR_FIELD(target);
4214 
4215  return newnode;
4216 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1666 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1667 {
1668  DistinctExpr *newnode = makeNode(DistinctExpr);
1669 
1670  COPY_SCALAR_FIELD(opno);
1671  COPY_SCALAR_FIELD(opfuncid);
1672  COPY_SCALAR_FIELD(opresulttype);
1673  COPY_SCALAR_FIELD(opretset);
1674  COPY_SCALAR_FIELD(opcollid);
1675  COPY_SCALAR_FIELD(inputcollid);
1677  COPY_LOCATION_FIELD(location);
1678 
1679  return newnode;
1680 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3741 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3742 {
3743  DoStmt *newnode = makeNode(DoStmt);
3744 
3746 
3747  return newnode;
3748 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 4065 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4066 {
4067  DropdbStmt *newnode = makeNode(DropdbStmt);
4068 
4070  COPY_SCALAR_FIELD(missing_ok);
4072 
4073  return newnode;
4074 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
char * dbname
Definition: streamutil.c:51

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4668 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4547 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3576 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3577 {
3578  DropStmt *newnode = makeNode(DropStmt);
3579 
3580  COPY_NODE_FIELD(objects);
3581  COPY_SCALAR_FIELD(removeType);
3582  COPY_SCALAR_FIELD(behavior);
3583  COPY_SCALAR_FIELD(missing_ok);
3584  COPY_SCALAR_FIELD(concurrent);
3585 
3586  return newnode;
3587 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4878 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4879 {
4881 
4883  COPY_SCALAR_FIELD(missing_ok);
4884  COPY_SCALAR_FIELD(behavior);
4885 
4886  return newnode;
4887 }
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:585

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 4232 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4233 {
4235 
4236  COPY_STRING_FIELD(tablespacename);
4237  COPY_SCALAR_FIELD(missing_ok);
4238 
4239  return newnode;
4240 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4382 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4383 {
4385 
4387  COPY_STRING_FIELD(servername);
4388  COPY_SCALAR_FIELD(missing_ok);
4389 
4390  return newnode;
4391 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
static char * user
Definition: pg_regress.c:95

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4647 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4648 {
4649  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4650 
4652  COPY_NODE_FIELD(params);
4653 
4654  return newnode;
4655 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:585
const char * name
Definition: encode.c:561

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 4101 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4102 {
4103  ExplainStmt *newnode = makeNode(ExplainStmt);
4104 
4105  COPY_NODE_FIELD(query);
4107 
4108  return newnode;
4109 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4894 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4895 {
4896  ExtensibleNode *newnode;
4897  const ExtensibleNodeMethods *methods;
4898 
4899  methods = GetExtensibleNodeMethods(from->extnodename, false);
4900  newnode = (ExtensibleNode *) newNode(methods->node_size,
4902  COPY_STRING_FIELD(extnodename);
4903 
4904  /* copy the private fields */
4905  methods->nodeCopy(newnode, from);
4906 
4907  return newnode;
4908 }
#define newNode(size, tag)
Definition: nodes.h:575
#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 3627 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1800 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1801 {
1802  FieldSelect *newnode = makeNode(FieldSelect);
1803 
1805  COPY_SCALAR_FIELD(fieldnum);
1806  COPY_SCALAR_FIELD(resulttype);
1807  COPY_SCALAR_FIELD(resulttypmod);
1808  COPY_SCALAR_FIELD(resultcollid);
1809 
1810  return newnode;
1811 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1817 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1818 {
1819  FieldStore *newnode = makeNode(FieldStore);
1820 
1822  COPY_NODE_FIELD(newvals);
1823  COPY_NODE_FIELD(fieldnums);
1824  COPY_SCALAR_FIELD(resulttype);
1825 
1826  return newnode;
1827 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585
void * arg

◆ _copyFloat()

static Float* _copyFloat ( const Float from)
static

Definition at line 4925 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and val.

Referenced by copyObjectImpl().

4926 {
4927  Float *newnode = makeNode(Float);
4928 
4930 
4931  return newnode;
4932 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
Definition: value.h:45
#define makeNode(_type_)
Definition: nodes.h:585
long val
Definition: informix.c:664

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4956 of file copyfuncs.c.

References COPY_ARRAY_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4957 {
4959 
4960  COPY_SCALAR_FIELD(conoid);
4961  COPY_SCALAR_FIELD(conrelid);
4962  COPY_SCALAR_FIELD(confrelid);
4963  COPY_SCALAR_FIELD(nkeys);
4964  COPY_ARRAY_FIELD(conkey);
4965  COPY_ARRAY_FIELD(confkey);
4966  COPY_ARRAY_FIELD(conpfeqop);
4967 
4968  return newnode;
4969 }
#define COPY_ARRAY_FIELD(fldname)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 769 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2268 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2269 {
2270  FromExpr *newnode = makeNode(FromExpr);
2271 
2272  COPY_NODE_FIELD(fromlist);
2273  COPY_NODE_FIELD(quals);
2274 
2275  return newnode;
2276 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2768 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2769 {
2770  FuncCall *newnode = makeNode(FuncCall);
2771 
2772  COPY_NODE_FIELD(funcname);
2774  COPY_NODE_FIELD(agg_order);
2775  COPY_NODE_FIELD(agg_filter);
2776  COPY_NODE_FIELD(over);
2777  COPY_SCALAR_FIELD(agg_within_group);
2778  COPY_SCALAR_FIELD(agg_star);
2779  COPY_SCALAR_FIELD(agg_distinct);
2780  COPY_SCALAR_FIELD(func_variadic);
2781  COPY_SCALAR_FIELD(funcformat);
2782  COPY_LOCATION_FIELD(location);
2783 
2784  return newnode;
2785 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1609 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1610 {
1611  FuncExpr *newnode = makeNode(FuncExpr);
1612 
1613  COPY_SCALAR_FIELD(funcid);
1614  COPY_SCALAR_FIELD(funcresulttype);
1615  COPY_SCALAR_FIELD(funcretset);
1616  COPY_SCALAR_FIELD(funcvariadic);
1617  COPY_SCALAR_FIELD(funcformat);
1618  COPY_SCALAR_FIELD(funccollid);
1619  COPY_SCALAR_FIELD(inputcollid);
1621  COPY_LOCATION_FIELD(location);
1622 
1623  return newnode;
1624 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3716 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3717 {
3719 
3721  COPY_NODE_FIELD(argType);
3723  COPY_NODE_FIELD(defexpr);
3724 
3725  return newnode;
3726 }
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:585
const char * name
Definition: encode.c:561

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 641 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 361 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 386 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

387 {
388  GatherMerge *newnode = makeNode(GatherMerge);
389 
390  /*
391  * copy node superclass fields
392  */
393  CopyPlanFields((const Plan *) from, (Plan *) newnode);
394 
395  /*
396  * copy remainder of node
397  */
398  COPY_SCALAR_FIELD(num_workers);
399  COPY_SCALAR_FIELD(rescan_param);
400  COPY_SCALAR_FIELD(numCols);
401  COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
402  COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
403  COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
404  COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
405  COPY_BITMAPSET_FIELD(initParam);
406 
407  return newnode;
408 }
#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:61
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:122
#define makeNode(_type_)
Definition: nodes.h:585
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3426 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3384 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 1041 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1549 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1550 {
1551  GroupingFunc *newnode = makeNode(GroupingFunc);
1552 
1554  COPY_NODE_FIELD(refs);
1555  COPY_NODE_FIELD(cols);
1556  COPY_SCALAR_FIELD(agglevelsup);
1557  COPY_LOCATION_FIELD(location);
1558 
1559  return newnode;
1560 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2555 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2556 {
2557  GroupingSet *newnode = makeNode(GroupingSet);
2558 
2559  COPY_SCALAR_FIELD(kind);
2560  COPY_NODE_FIELD(content);
2561  COPY_LOCATION_FIELD(location);
2562 
2563  return newnode;
2564 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1139 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1140 {
1141  Hash *newnode = makeNode(Hash);
1142 
1143  /*
1144  * copy node superclass fields
1145  */
1146  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1147 
1148  /*
1149  * copy remainder of node
1150  */
1151  COPY_NODE_FIELD(hashkeys);
1152  COPY_SCALAR_FIELD(skewTable);
1153  COPY_SCALAR_FIELD(skewColumn);
1154  COPY_SCALAR_FIELD(skewInherit);
1155  COPY_SCALAR_FIELD(rows_total);
1156 
1157  return newnode;
1158 }
#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:122
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 915 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4407 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4408 {
4410 
4411  COPY_STRING_FIELD(server_name);
4412  COPY_STRING_FIELD(remote_schema);
4413  COPY_STRING_FIELD(local_schema);
4414  COPY_SCALAR_FIELD(list_type);
4415  COPY_NODE_FIELD(table_list);
4417 
4418  return newnode;
4419 }
#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:585

◆ _copyIncrementalSort()

static IncrementalSort* _copyIncrementalSort ( const IncrementalSort from)
static

Definition at line 1019 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopySortFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 3000 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3001 {
3002  IndexElem *newnode = makeNode(IndexElem);
3003 
3005  COPY_NODE_FIELD(expr);
3006  COPY_STRING_FIELD(indexcolname);
3007  COPY_NODE_FIELD(collation);
3008  COPY_NODE_FIELD(opclass);
3009  COPY_NODE_FIELD(opclassopts);
3010  COPY_SCALAR_FIELD(ordering);
3011  COPY_SCALAR_FIELD(nulls_ordering);
3012 
3013  return newnode;
3014 }
#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:585
const char * name
Definition: encode.c:561

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 508 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 481 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3640 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3641 {
3642  IndexStmt *newnode = makeNode(IndexStmt);
3643 
3644  COPY_STRING_FIELD(idxname);
3645  COPY_NODE_FIELD(relation);
3646  COPY_STRING_FIELD(accessMethod);
3647  COPY_STRING_FIELD(tableSpace);
3648  COPY_NODE_FIELD(indexParams);
3649  COPY_NODE_FIELD(indexIncludingParams);
3651  COPY_NODE_FIELD(whereClause);
3652  COPY_NODE_FIELD(excludeOpNames);
3653  COPY_STRING_FIELD(idxcomment);
3654  COPY_SCALAR_FIELD(indexOid);
3655  COPY_SCALAR_FIELD(oldNode);
3656  COPY_SCALAR_FIELD(oldCreateSubid);
3657  COPY_SCALAR_FIELD(oldFirstRelfilenodeSubid);
3658  COPY_SCALAR_FIELD(unique);
3659  COPY_SCALAR_FIELD(primary);
3660  COPY_SCALAR_FIELD(isconstraint);
3661  COPY_SCALAR_FIELD(deferrable);
3662  COPY_SCALAR_FIELD(initdeferred);
3663  COPY_SCALAR_FIELD(transformed);
3664  COPY_SCALAR_FIELD(concurrent);
3665  COPY_SCALAR_FIELD(if_not_exists);
3666  COPY_SCALAR_FIELD(reset_default_tblspc);
3667 
3668  return newnode;
3669 }
#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:585

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2615 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2616 {
2617  InferClause *newnode = makeNode(InferClause);
2618 
2619  COPY_NODE_FIELD(indexElems);
2620  COPY_NODE_FIELD(whereClause);
2621  COPY_STRING_FIELD(conname);
2622  COPY_LOCATION_FIELD(location);
2623 
2624  return newnode;
2625 }
#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:72
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2200 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2201 {
2202  InferenceElem *newnode = makeNode(InferenceElem);
2203 
2204  COPY_NODE_FIELD(expr);
2205  COPY_SCALAR_FIELD(infercollid);
2206  COPY_SCALAR_FIELD(inferopclass);
2207 
2208  return newnode;
2209 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:585

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3215 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyInteger()

static Integer* _copyInteger ( const Integer from)
static

Definition at line 4915 of file copyfuncs.c.

References COPY_SCALAR_FIELD, makeNode, and val.

Referenced by copyObjectImpl().

4916 {
4917  Integer *newnode = makeNode(Integer);
4918 
4920 
4921  return newnode;
4922 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
Definition: value.h:28
#define makeNode(_type_)
Definition: nodes.h:585
long val
Definition: informix.c:664

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1414 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1415 {
1416  IntoClause *newnode = makeNode(IntoClause);
1417 
1418  COPY_NODE_FIELD(rel);
1419  COPY_NODE_FIELD(colNames);
1420  COPY_STRING_FIELD(accessMethod);
1422  COPY_SCALAR_FIELD(onCommit);
1423  COPY_STRING_FIELD(tableSpaceName);
1424  COPY_NODE_FIELD(viewQuery);
1425  COPY_SCALAR_FIELD(skipData);
1426 
1427  return newnode;
1428 }
#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:585

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 848 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.