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

Go to the source code of this file.

Macros

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

Functions

static PlannedStmt_copyPlannedStmt (const PlannedStmt *from)
 
static void CopyPlanFields (const Plan *from, Plan *newnode)
 
static Plan_copyPlan (const Plan *from)
 
static Result_copyResult (const Result *from)
 
static ProjectSet_copyProjectSet (const ProjectSet *from)
 
static ModifyTable_copyModifyTable (const ModifyTable *from)
 
static Append_copyAppend (const Append *from)
 
static MergeAppend_copyMergeAppend (const MergeAppend *from)
 
static RecursiveUnion_copyRecursiveUnion (const RecursiveUnion *from)
 
static BitmapAnd_copyBitmapAnd (const BitmapAnd *from)
 
static BitmapOr_copyBitmapOr (const BitmapOr *from)
 
static Gather_copyGather (const Gather *from)
 
static GatherMerge_copyGatherMerge (const GatherMerge *from)
 
static void CopyScanFields (const Scan *from, Scan *newnode)
 
static Scan_copyScan (const Scan *from)
 
static SeqScan_copySeqScan (const SeqScan *from)
 
static SampleScan_copySampleScan (const SampleScan *from)
 
static IndexScan_copyIndexScan (const IndexScan *from)
 
static IndexOnlyScan_copyIndexOnlyScan (const IndexOnlyScan *from)
 
static BitmapIndexScan_copyBitmapIndexScan (const BitmapIndexScan *from)
 
static BitmapHeapScan_copyBitmapHeapScan (const BitmapHeapScan *from)
 
static TidScan_copyTidScan (const TidScan *from)
 
static SubqueryScan_copySubqueryScan (const SubqueryScan *from)
 
static FunctionScan_copyFunctionScan (const FunctionScan *from)
 
static TableFuncScan_copyTableFuncScan (const TableFuncScan *from)
 
static ValuesScan_copyValuesScan (const ValuesScan *from)
 
static CteScan_copyCteScan (const CteScan *from)
 
static NamedTuplestoreScan_copyNamedTuplestoreScan (const NamedTuplestoreScan *from)
 
static WorkTableScan_copyWorkTableScan (const WorkTableScan *from)
 
static ForeignScan_copyForeignScan (const ForeignScan *from)
 
static CustomScan_copyCustomScan (const CustomScan *from)
 
static void CopyJoinFields (const Join *from, Join *newnode)
 
static Join_copyJoin (const Join *from)
 
static NestLoop_copyNestLoop (const NestLoop *from)
 
static MergeJoin_copyMergeJoin (const MergeJoin *from)
 
static HashJoin_copyHashJoin (const HashJoin *from)
 
static Material_copyMaterial (const Material *from)
 
static Sort_copySort (const Sort *from)
 
static Group_copyGroup (const Group *from)
 
static Agg_copyAgg (const Agg *from)
 
static WindowAgg_copyWindowAgg (const WindowAgg *from)
 
static Unique_copyUnique (const Unique *from)
 
static Hash_copyHash (const Hash *from)
 
static SetOp_copySetOp (const SetOp *from)
 
static LockRows_copyLockRows (const LockRows *from)
 
static Limit_copyLimit (const Limit *from)
 
static NestLoopParam_copyNestLoopParam (const NestLoopParam *from)
 
static PlanRowMark_copyPlanRowMark (const PlanRowMark *from)
 
static 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 ArrayRef_copyArrayRef (const ArrayRef *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 PartitionPruneStepOp_copyPartitionPruneStepOp (const PartitionPruneStepOp *from)
 
static PartitionPruneStepCombine_copyPartitionPruneStepCombine (const PartitionPruneStepCombine *from)
 
static PartitionPruneInfo_copyPartitionPruneInfo (const PartitionPruneInfo *from)
 
static PathKey_copyPathKey (const PathKey *from)
 
static RestrictInfo_copyRestrictInfo (const RestrictInfo *from)
 
static PlaceHolderVar_copyPlaceHolderVar (const PlaceHolderVar *from)
 
static SpecialJoinInfo_copySpecialJoinInfo (const SpecialJoinInfo *from)
 
static AppendRelInfo_copyAppendRelInfo (const AppendRelInfo *from)
 
static PlaceHolderInfo_copyPlaceHolderInfo (const PlaceHolderInfo *from)
 
static RangeTblEntry_copyRangeTblEntry (const RangeTblEntry *from)
 
static RangeTblFunction_copyRangeTblFunction (const RangeTblFunction *from)
 
static TableSampleClause_copyTableSampleClause (const TableSampleClause *from)
 
static WithCheckOption_copyWithCheckOption (const WithCheckOption *from)
 
static SortGroupClause_copySortGroupClause (const SortGroupClause *from)
 
static GroupingSet_copyGroupingSet (const GroupingSet *from)
 
static WindowClause_copyWindowClause (const WindowClause *from)
 
static RowMarkClause_copyRowMarkClause (const RowMarkClause *from)
 
static WithClause_copyWithClause (const WithClause *from)
 
static InferClause_copyInferClause (const InferClause *from)
 
static OnConflictClause_copyOnConflictClause (const OnConflictClause *from)
 
static CommonTableExpr_copyCommonTableExpr (const CommonTableExpr *from)
 
static A_Expr_copyAExpr (const A_Expr *from)
 
static ColumnRef_copyColumnRef (const ColumnRef *from)
 
static ParamRef_copyParamRef (const ParamRef *from)
 
static A_Const_copyAConst (const A_Const *from)
 
static FuncCall_copyFuncCall (const FuncCall *from)
 
static A_Star_copyAStar (const A_Star *from)
 
static A_Indices_copyAIndices (const A_Indices *from)
 
static A_Indirection_copyA_Indirection (const A_Indirection *from)
 
static A_ArrayExpr_copyA_ArrayExpr (const A_ArrayExpr *from)
 
static ResTarget_copyResTarget (const ResTarget *from)
 
static MultiAssignRef_copyMultiAssignRef (const MultiAssignRef *from)
 
static TypeName_copyTypeName (const TypeName *from)
 
static SortBy_copySortBy (const SortBy *from)
 
static WindowDef_copyWindowDef (const WindowDef *from)
 
static RangeSubselect_copyRangeSubselect (const RangeSubselect *from)
 
static RangeFunction_copyRangeFunction (const RangeFunction *from)
 
static RangeTableSample_copyRangeTableSample (const RangeTableSample *from)
 
static RangeTableFunc_copyRangeTableFunc (const RangeTableFunc *from)
 
static RangeTableFuncCol_copyRangeTableFuncCol (const RangeTableFuncCol *from)
 
static TypeCast_copyTypeCast (const TypeCast *from)
 
static CollateClause_copyCollateClause (const CollateClause *from)
 
static IndexElem_copyIndexElem (const IndexElem *from)
 
static ColumnDef_copyColumnDef (const ColumnDef *from)
 
static Constraint_copyConstraint (const Constraint *from)
 
static DefElem_copyDefElem (const DefElem *from)
 
static LockingClause_copyLockingClause (const LockingClause *from)
 
static XmlSerialize_copyXmlSerialize (const XmlSerialize *from)
 
static RoleSpec_copyRoleSpec (const RoleSpec *from)
 
static TriggerTransition_copyTriggerTransition (const TriggerTransition *from)
 
static Query_copyQuery (const Query *from)
 
static RawStmt_copyRawStmt (const RawStmt *from)
 
static InsertStmt_copyInsertStmt (const InsertStmt *from)
 
static DeleteStmt_copyDeleteStmt (const DeleteStmt *from)
 
static UpdateStmt_copyUpdateStmt (const UpdateStmt *from)
 
static SelectStmt_copySelectStmt (const SelectStmt *from)
 
static SetOperationStmt_copySetOperationStmt (const SetOperationStmt *from)
 
static AlterTableStmt_copyAlterTableStmt (const AlterTableStmt *from)
 
static AlterTableCmd_copyAlterTableCmd (const AlterTableCmd *from)
 
static AlterCollationStmt_copyAlterCollationStmt (const AlterCollationStmt *from)
 
static AlterDomainStmt_copyAlterDomainStmt (const AlterDomainStmt *from)
 
static GrantStmt_copyGrantStmt (const GrantStmt *from)
 
static ObjectWithArgs_copyObjectWithArgs (const ObjectWithArgs *from)
 
static AccessPriv_copyAccessPriv (const AccessPriv *from)
 
static GrantRoleStmt_copyGrantRoleStmt (const GrantRoleStmt *from)
 
static AlterDefaultPrivilegesStmt_copyAlterDefaultPrivilegesStmt (const AlterDefaultPrivilegesStmt *from)
 
static DeclareCursorStmt_copyDeclareCursorStmt (const DeclareCursorStmt *from)
 
static ClosePortalStmt_copyClosePortalStmt (const ClosePortalStmt *from)
 
static CallStmt_copyCallStmt (const CallStmt *from)
 
static ClusterStmt_copyClusterStmt (const ClusterStmt *from)
 
static CopyStmt_copyCopyStmt (const CopyStmt *from)
 
static void CopyCreateStmtFields (const CreateStmt *from, CreateStmt *newnode)
 
static CreateStmt_copyCreateStmt (const CreateStmt *from)
 
static TableLikeClause_copyTableLikeClause (const TableLikeClause *from)
 
static DefineStmt_copyDefineStmt (const DefineStmt *from)
 
static DropStmt_copyDropStmt (const DropStmt *from)
 
static TruncateStmt_copyTruncateStmt (const TruncateStmt *from)
 
static CommentStmt_copyCommentStmt (const CommentStmt *from)
 
static SecLabelStmt_copySecLabelStmt (const SecLabelStmt *from)
 
static FetchStmt_copyFetchStmt (const FetchStmt *from)
 
static IndexStmt_copyIndexStmt (const IndexStmt *from)
 
static CreateStatsStmt_copyCreateStatsStmt (const CreateStatsStmt *from)
 
static CreateFunctionStmt_copyCreateFunctionStmt (const CreateFunctionStmt *from)
 
static FunctionParameter_copyFunctionParameter (const FunctionParameter *from)
 
static AlterFunctionStmt_copyAlterFunctionStmt (const AlterFunctionStmt *from)
 
static DoStmt_copyDoStmt (const DoStmt *from)
 
static RenameStmt_copyRenameStmt (const RenameStmt *from)
 
static AlterObjectDependsStmt_copyAlterObjectDependsStmt (const AlterObjectDependsStmt *from)
 
static AlterObjectSchemaStmt_copyAlterObjectSchemaStmt (const AlterObjectSchemaStmt *from)
 
static AlterOwnerStmt_copyAlterOwnerStmt (const AlterOwnerStmt *from)
 
static AlterOperatorStmt_copyAlterOperatorStmt (const AlterOperatorStmt *from)
 
static RuleStmt_copyRuleStmt (const RuleStmt *from)
 
static NotifyStmt_copyNotifyStmt (const NotifyStmt *from)
 
static ListenStmt_copyListenStmt (const ListenStmt *from)
 
static UnlistenStmt_copyUnlistenStmt (const UnlistenStmt *from)
 
static TransactionStmt_copyTransactionStmt (const TransactionStmt *from)
 
static CompositeTypeStmt_copyCompositeTypeStmt (const CompositeTypeStmt *from)
 
static CreateEnumStmt_copyCreateEnumStmt (const CreateEnumStmt *from)
 
static CreateRangeStmt_copyCreateRangeStmt (const CreateRangeStmt *from)
 
static AlterEnumStmt_copyAlterEnumStmt (const AlterEnumStmt *from)
 
static ViewStmt_copyViewStmt (const ViewStmt *from)
 
static LoadStmt_copyLoadStmt (const LoadStmt *from)
 
static CreateDomainStmt_copyCreateDomainStmt (const CreateDomainStmt *from)
 
static CreateOpClassStmt_copyCreateOpClassStmt (const CreateOpClassStmt *from)
 
static CreateOpClassItem_copyCreateOpClassItem (const CreateOpClassItem *from)
 
static CreateOpFamilyStmt_copyCreateOpFamilyStmt (const CreateOpFamilyStmt *from)
 
static AlterOpFamilyStmt_copyAlterOpFamilyStmt (const AlterOpFamilyStmt *from)
 
static CreatedbStmt_copyCreatedbStmt (const CreatedbStmt *from)
 
static AlterDatabaseStmt_copyAlterDatabaseStmt (const AlterDatabaseStmt *from)
 
static AlterDatabaseSetStmt_copyAlterDatabaseSetStmt (const AlterDatabaseSetStmt *from)
 
static DropdbStmt_copyDropdbStmt (const DropdbStmt *from)
 
static VacuumStmt_copyVacuumStmt (const VacuumStmt *from)
 
static VacuumRelation_copyVacuumRelation (const VacuumRelation *from)
 
static ExplainStmt_copyExplainStmt (const ExplainStmt *from)
 
static CreateTableAsStmt_copyCreateTableAsStmt (const CreateTableAsStmt *from)
 
static RefreshMatViewStmt_copyRefreshMatViewStmt (const RefreshMatViewStmt *from)
 
static ReplicaIdentityStmt_copyReplicaIdentityStmt (const ReplicaIdentityStmt *from)
 
static AlterSystemStmt_copyAlterSystemStmt (const AlterSystemStmt *from)
 
static CreateSeqStmt_copyCreateSeqStmt (const CreateSeqStmt *from)
 
static AlterSeqStmt_copyAlterSeqStmt (const AlterSeqStmt *from)
 
static VariableSetStmt_copyVariableSetStmt (const VariableSetStmt *from)
 
static VariableShowStmt_copyVariableShowStmt (const VariableShowStmt *from)
 
static DiscardStmt_copyDiscardStmt (const DiscardStmt *from)
 
static CreateTableSpaceStmt_copyCreateTableSpaceStmt (const CreateTableSpaceStmt *from)
 
static DropTableSpaceStmt_copyDropTableSpaceStmt (const DropTableSpaceStmt *from)
 
static AlterTableSpaceOptionsStmt_copyAlterTableSpaceOptionsStmt (const AlterTableSpaceOptionsStmt *from)
 
static AlterTableMoveAllStmt_copyAlterTableMoveAllStmt (const AlterTableMoveAllStmt *from)
 
static CreateExtensionStmt_copyCreateExtensionStmt (const CreateExtensionStmt *from)
 
static AlterExtensionStmt_copyAlterExtensionStmt (const AlterExtensionStmt *from)
 
static AlterExtensionContentsStmt_copyAlterExtensionContentsStmt (const AlterExtensionContentsStmt *from)
 
static CreateFdwStmt_copyCreateFdwStmt (const CreateFdwStmt *from)
 
static AlterFdwStmt_copyAlterFdwStmt (const AlterFdwStmt *from)
 
static CreateForeignServerStmt_copyCreateForeignServerStmt (const CreateForeignServerStmt *from)
 
static AlterForeignServerStmt_copyAlterForeignServerStmt (const AlterForeignServerStmt *from)
 
static CreateUserMappingStmt_copyCreateUserMappingStmt (const CreateUserMappingStmt *from)
 
static AlterUserMappingStmt_copyAlterUserMappingStmt (const AlterUserMappingStmt *from)
 
static DropUserMappingStmt_copyDropUserMappingStmt (const DropUserMappingStmt *from)
 
static CreateForeignTableStmt_copyCreateForeignTableStmt (const CreateForeignTableStmt *from)
 
static ImportForeignSchemaStmt_copyImportForeignSchemaStmt (const ImportForeignSchemaStmt *from)
 
static CreateTransformStmt_copyCreateTransformStmt (const CreateTransformStmt *from)
 
static CreateAmStmt_copyCreateAmStmt (const CreateAmStmt *from)
 
static CreateTrigStmt_copyCreateTrigStmt (const CreateTrigStmt *from)
 
static CreateEventTrigStmt_copyCreateEventTrigStmt (const CreateEventTrigStmt *from)
 
static AlterEventTrigStmt_copyAlterEventTrigStmt (const AlterEventTrigStmt *from)
 
static CreatePLangStmt_copyCreatePLangStmt (const CreatePLangStmt *from)
 
static CreateRoleStmt_copyCreateRoleStmt (const CreateRoleStmt *from)
 
static AlterRoleStmt_copyAlterRoleStmt (const AlterRoleStmt *from)
 
static AlterRoleSetStmt_copyAlterRoleSetStmt (const AlterRoleSetStmt *from)
 
static DropRoleStmt_copyDropRoleStmt (const DropRoleStmt *from)
 
static LockStmt_copyLockStmt (const LockStmt *from)
 
static ConstraintsSetStmt_copyConstraintsSetStmt (const ConstraintsSetStmt *from)
 
static ReindexStmt_copyReindexStmt (const ReindexStmt *from)
 
static CreateSchemaStmt_copyCreateSchemaStmt (const CreateSchemaStmt *from)
 
static CreateConversionStmt_copyCreateConversionStmt (const CreateConversionStmt *from)
 
static CreateCastStmt_copyCreateCastStmt (const CreateCastStmt *from)
 
static PrepareStmt_copyPrepareStmt (const PrepareStmt *from)
 
static ExecuteStmt_copyExecuteStmt (const ExecuteStmt *from)
 
static DeallocateStmt_copyDeallocateStmt (const DeallocateStmt *from)
 
static DropOwnedStmt_copyDropOwnedStmt (const DropOwnedStmt *from)
 
static ReassignOwnedStmt_copyReassignOwnedStmt (const ReassignOwnedStmt *from)
 
static AlterTSDictionaryStmt_copyAlterTSDictionaryStmt (const AlterTSDictionaryStmt *from)
 
static AlterTSConfigurationStmt_copyAlterTSConfigurationStmt (const AlterTSConfigurationStmt *from)
 
static CreatePolicyStmt_copyCreatePolicyStmt (const CreatePolicyStmt *from)
 
static AlterPolicyStmt_copyAlterPolicyStmt (const AlterPolicyStmt *from)
 
static PartitionElem_copyPartitionElem (const PartitionElem *from)
 
static PartitionSpec_copyPartitionSpec (const PartitionSpec *from)
 
static PartitionBoundSpec_copyPartitionBoundSpec (const PartitionBoundSpec *from)
 
static PartitionRangeDatum_copyPartitionRangeDatum (const PartitionRangeDatum *from)
 
static PartitionCmd_copyPartitionCmd (const PartitionCmd *from)
 
static CreatePublicationStmt_copyCreatePublicationStmt (const CreatePublicationStmt *from)
 
static AlterPublicationStmt_copyAlterPublicationStmt (const AlterPublicationStmt *from)
 
static CreateSubscriptionStmt_copyCreateSubscriptionStmt (const CreateSubscriptionStmt *from)
 
static AlterSubscriptionStmt_copyAlterSubscriptionStmt (const AlterSubscriptionStmt *from)
 
static DropSubscriptionStmt_copyDropSubscriptionStmt (const DropSubscriptionStmt *from)
 
static List_copyList (const List *from)
 
static ExtensibleNode_copyExtensibleNode (const ExtensibleNode *from)
 
static Value_copyValue (const Value *from)
 
static ForeignKeyCacheInfo_copyForeignKeyCacheInfo (const ForeignKeyCacheInfo *from)
 
void * copyObjectImpl (const void *from)
 

Macro Definition Documentation

◆ COPY_BITMAPSET_FIELD

◆ COPY_LOCATION_FIELD

◆ COPY_NODE_CELL

#define COPY_NODE_CELL (   new,
  old 
)
Value:
(new) = (ListCell *) palloc(sizeof(ListCell)); \
lfirst(new) = copyObjectImpl(lfirst(old));
#define lfirst(lc)
Definition: pg_list.h:106
void * palloc(Size size)
Definition: mcxt.c:924
void * copyObjectImpl(const void *from)
Definition: copyfuncs.c:4754

Definition at line 4643 of file copyfuncs.c.

Referenced by _copyList().

◆ COPY_NODE_FIELD

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

Definition at line 45 of file copyfuncs.c.

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

◆ COPY_POINTER_FIELD

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

Definition at line 57 of file copyfuncs.c.

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

◆ COPY_SCALAR_FIELD

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

Definition at line 41 of file copyfuncs.c.

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

◆ COPY_STRING_FIELD

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

Definition at line 53 of file copyfuncs.c.

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

Function Documentation

◆ _copyA_ArrayExpr()

static A_ArrayExpr* _copyA_ArrayExpr ( const A_ArrayExpr from)
static

Definition at line 2656 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2657 {
2658  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2659 
2660  COPY_NODE_FIELD(elements);
2661  COPY_LOCATION_FIELD(location);
2662 
2663  return newnode;
2664 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2645 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2646 {
2647  A_Indirection *newnode = makeNode(A_Indirection);
2648 
2650  COPY_NODE_FIELD(indirection);
2651 
2652  return newnode;
2653 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3207 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3208 {
3209  AccessPriv *newnode = makeNode(AccessPriv);
3210 
3211  COPY_STRING_FIELD(priv_name);
3212  COPY_NODE_FIELD(cols);
3213 
3214  return newnode;
3215 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAConst()

static A_Const* _copyAConst ( const A_Const from)
static

Definition at line 2575 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, elog, ERROR, makeNode, T_BitString, T_Float, T_Integer, T_Null, T_String, Value::type, A_Const::val, and val.

Referenced by copyObjectImpl().

2576 {
2577  A_Const *newnode = makeNode(A_Const);
2578 
2579  /* This part must duplicate _copyValue */
2580  COPY_SCALAR_FIELD(val.type);
2581  switch (from->val.type)
2582  {
2583  case T_Integer:
2584  COPY_SCALAR_FIELD(val.val.ival);
2585  break;
2586  case T_Float:
2587  case T_String:
2588  case T_BitString:
2589  COPY_STRING_FIELD(val.val.str);
2590  break;
2591  case T_Null:
2592  /* nothing to do */
2593  break;
2594  default:
2595  elog(ERROR, "unrecognized node type: %d",
2596  (int) from->val.type);
2597  break;
2598  }
2599 
2600  COPY_LOCATION_FIELD(location);
2601 
2602  return newnode;
2603 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define ERROR
Definition: elog.h:43
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
Definition: nodes.h:291
Definition: nodes.h:288
#define elog
Definition: elog.h:219
Value val
Definition: parsenodes.h:289
long val
Definition: informix.c:689
NodeTag type
Definition: value.h:44

◆ _copyAExpr()

static A_Expr* _copyAExpr ( const A_Expr from)
static

Definition at line 2539 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2540 {
2541  A_Expr *newnode = makeNode(A_Expr);
2542 
2543  COPY_SCALAR_FIELD(kind);
2545  COPY_NODE_FIELD(lexpr);
2546  COPY_NODE_FIELD(rexpr);
2547  COPY_LOCATION_FIELD(location);
2548 
2549  return newnode;
2550 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
const char * name
Definition: encode.c:521

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 969 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

970 {
971  Agg *newnode = makeNode(Agg);
972 
973  CopyPlanFields((const Plan *) from, (Plan *) newnode);
974 
975  COPY_SCALAR_FIELD(aggstrategy);
976  COPY_SCALAR_FIELD(aggsplit);
977  COPY_SCALAR_FIELD(numCols);
978  if (from->numCols > 0)
979  {
980  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
981  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
982  }
983  COPY_SCALAR_FIELD(numGroups);
984  COPY_BITMAPSET_FIELD(aggParams);
985  COPY_NODE_FIELD(groupingSets);
986  COPY_NODE_FIELD(chain);
987 
988  return newnode;
989 }
#define COPY_BITMAPSET_FIELD(fldname)
Definition: copyfuncs.c:49
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:116
#define makeNode(_type_)
Definition: nodes.h:565
Definition: plannodes.h:794
int16 AttrNumber
Definition: attnum.h:21

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1363 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1364 {
1365  Aggref *newnode = makeNode(Aggref);
1366 
1367  COPY_SCALAR_FIELD(aggfnoid);
1368  COPY_SCALAR_FIELD(aggtype);
1369  COPY_SCALAR_FIELD(aggcollid);
1370  COPY_SCALAR_FIELD(inputcollid);
1371  COPY_SCALAR_FIELD(aggtranstype);
1372  COPY_NODE_FIELD(aggargtypes);
1373  COPY_NODE_FIELD(aggdirectargs);
1375  COPY_NODE_FIELD(aggorder);
1376  COPY_NODE_FIELD(aggdistinct);
1377  COPY_NODE_FIELD(aggfilter);
1378  COPY_SCALAR_FIELD(aggstar);
1379  COPY_SCALAR_FIELD(aggvariadic);
1380  COPY_SCALAR_FIELD(aggkind);
1381  COPY_SCALAR_FIELD(agglevelsup);
1382  COPY_SCALAR_FIELD(aggsplit);
1383  COPY_LOCATION_FIELD(location);
1384 
1385  return newnode;
1386 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAIndices()

static A_Indices* _copyAIndices ( const A_Indices from)
static

Definition at line 2633 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2634 {
2635  A_Indices *newnode = makeNode(A_Indices);
2636 
2637  COPY_SCALAR_FIELD(is_slice);
2638  COPY_NODE_FIELD(lidx);
2639  COPY_NODE_FIELD(uidx);
2640 
2641  return newnode;
2642 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1202 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1203 {
1204  Alias *newnode = makeNode(Alias);
1205 
1206  COPY_STRING_FIELD(aliasname);
1207  COPY_NODE_FIELD(colnames);
1208 
1209  return newnode;
1210 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterCollationStmt()

static AlterCollationStmt* _copyAlterCollationStmt ( const AlterCollationStmt from)
static

Definition at line 3153 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3154 {
3156 
3157  COPY_NODE_FIELD(collname);
3158 
3159  return newnode;
3160 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 3812 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3813 {
3815 
3817  COPY_NODE_FIELD(setstmt);
3818 
3819  return newnode;
3820 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 3801 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3802 {
3804 
3807 
3808  return newnode;
3809 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
char * dbname
Definition: streamutil.c:51

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3233 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3234 {
3236 
3239 
3240  return newnode;
3241 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3163 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3164 {
3166 
3167  COPY_SCALAR_FIELD(subtype);
3168  COPY_NODE_FIELD(typeName);
3170  COPY_NODE_FIELD(def);
3171  COPY_SCALAR_FIELD(behavior);
3172  COPY_SCALAR_FIELD(missing_ok);
3173 
3174  return newnode;
3175 }
#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:565
const char * name
Definition: encode.c:521

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3683 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3684 {
3685  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3686 
3687  COPY_NODE_FIELD(typeName);
3688  COPY_STRING_FIELD(oldVal);
3689  COPY_STRING_FIELD(newVal);
3690  COPY_STRING_FIELD(newValNeighbor);
3691  COPY_SCALAR_FIELD(newValIsAfter);
3692  COPY_SCALAR_FIELD(skipIfNewValExists);
3693 
3694  return newnode;
3695 }
#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:565

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4240 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4241 {
4243 
4244  COPY_STRING_FIELD(trigname);
4245  COPY_SCALAR_FIELD(tgenabled);
4246 
4247  return newnode;
4248 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 4048 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4049 {
4051 
4052  COPY_STRING_FIELD(extname);
4054  COPY_SCALAR_FIELD(objtype);
4055  COPY_NODE_FIELD(object);
4056 
4057  return newnode;
4058 }
#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:565

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 4037 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4038 {
4040 
4041  COPY_STRING_FIELD(extname);
4043 
4044  return newnode;
4045 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4073 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4074 {
4075  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4076 
4077  COPY_STRING_FIELD(fdwname);
4078  COPY_NODE_FIELD(func_options);
4080 
4081  return newnode;
4082 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4100 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4101 {
4103 
4104  COPY_STRING_FIELD(servername);
4105  COPY_STRING_FIELD(version);
4107  COPY_SCALAR_FIELD(has_version);
4108 
4109  return newnode;
4110 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3500 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3501 {
3503 
3504  COPY_SCALAR_FIELD(objtype);
3505  COPY_NODE_FIELD(func);
3506  COPY_NODE_FIELD(actions);
3507 
3508  return newnode;
3509 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1627 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1628 {
1630 
1631  COPY_NODE_FIELD(subplans);
1632 
1633  return newnode;
1634 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3539 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3540 {
3542 
3543  COPY_SCALAR_FIELD(objectType);
3544  COPY_NODE_FIELD(relation);
3545  COPY_NODE_FIELD(object);
3546  COPY_NODE_FIELD(extname);
3547 
3548  return newnode;
3549 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3552 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3553 {
3555 
3556  COPY_SCALAR_FIELD(objectType);
3557  COPY_NODE_FIELD(relation);
3558  COPY_NODE_FIELD(object);
3559  COPY_STRING_FIELD(newschema);
3560  COPY_SCALAR_FIELD(missing_ok);
3561 
3562  return newnode;
3563 }
#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:565

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3579 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3580 {
3582 
3583  COPY_NODE_FIELD(opername);
3585 
3586  return newnode;
3587 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 3777 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3778 {
3780 
3781  COPY_NODE_FIELD(opfamilyname);
3782  COPY_STRING_FIELD(amname);
3783  COPY_SCALAR_FIELD(isDrop);
3784  COPY_NODE_FIELD(items);
3785 
3786  return newnode;
3787 }
#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:565

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3566 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4488 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4489 {
4491 
4492  COPY_STRING_FIELD(policy_name);
4493  COPY_NODE_FIELD(table);
4494  COPY_NODE_FIELD(roles);
4495  COPY_NODE_FIELD(qual);
4496  COPY_NODE_FIELD(with_check);
4497 
4498  return newnode;
4499 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4581 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4582 {
4584 
4585  COPY_STRING_FIELD(pubname);
4587  COPY_NODE_FIELD(tables);
4588  COPY_SCALAR_FIELD(for_all_tables);
4589  COPY_SCALAR_FIELD(tableAction);
4590 
4591  return newnode;
4592 }
#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:565

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4290 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4291 {
4293 
4294  COPY_NODE_FIELD(role);
4295  COPY_STRING_FIELD(database);
4296  COPY_NODE_FIELD(setstmt);
4297 
4298  return newnode;
4299 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4278 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4279 {
4280  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4281 
4282  COPY_NODE_FIELD(role);
4285 
4286  return newnode;
4287 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 3929 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3930 {
3931  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
3932 
3933  COPY_NODE_FIELD(sequence);
3935  COPY_SCALAR_FIELD(for_identity);
3936  COPY_SCALAR_FIELD(missing_ok);
3937 
3938  return newnode;
3939 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4608 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4609 {
4611 
4612  COPY_SCALAR_FIELD(kind);
4614  COPY_STRING_FIELD(conninfo);
4615  COPY_NODE_FIELD(publication);
4617 
4618  return newnode;
4619 }
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:565

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 3905 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3906 {
3908 
3909  COPY_NODE_FIELD(setstmt);
3910 
3911  return newnode;
3912 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3137 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3138 {
3139  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3140 
3141  COPY_SCALAR_FIELD(subtype);
3143  COPY_SCALAR_FIELD(num);
3144  COPY_NODE_FIELD(newowner);
3145  COPY_NODE_FIELD(def);
3146  COPY_SCALAR_FIELD(behavior);
3147  COPY_SCALAR_FIELD(missing_ok);
3148 
3149  return newnode;
3150 }
#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:565
const char * name
Definition: encode.c:521

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 4011 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4012 {
4014 
4015  COPY_STRING_FIELD(orig_tablespacename);
4016  COPY_SCALAR_FIELD(objtype);
4017  COPY_NODE_FIELD(roles);
4018  COPY_STRING_FIELD(new_tablespacename);
4019  COPY_SCALAR_FIELD(nowait);
4020 
4021  return newnode;
4022 }
#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:565

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 3999 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4000 {
4002 
4003  COPY_STRING_FIELD(tablespacename);
4005  COPY_SCALAR_FIELD(isReset);
4006 
4007  return newnode;
4008 }
#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:565

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3124 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3125 {
3127 
3128  COPY_NODE_FIELD(relation);
3129  COPY_NODE_FIELD(cmds);
3131  COPY_SCALAR_FIELD(missing_ok);
3132 
3133  return newnode;
3134 }
char relkind
Definition: pg_class.h:51
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4456 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4457 {
4459 
4460  COPY_SCALAR_FIELD(kind);
4461  COPY_NODE_FIELD(cfgname);
4462  COPY_NODE_FIELD(tokentype);
4463  COPY_NODE_FIELD(dicts);
4464  COPY_SCALAR_FIELD(override);
4465  COPY_SCALAR_FIELD(replace);
4466  COPY_SCALAR_FIELD(missing_ok);
4467 
4468  return newnode;
4469 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4445 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4446 {
4448 
4449  COPY_NODE_FIELD(dictname);
4451 
4452  return newnode;
4453 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4126 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4127 {
4129 
4131  COPY_STRING_FIELD(servername);
4133 
4134  return newnode;
4135 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
static char * user
Definition: pg_regress.c:93

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 233 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

234 {
235  Append *newnode = makeNode(Append);
236 
237  /*
238  * copy node superclass fields
239  */
240  CopyPlanFields((const Plan *) from, (Plan *) newnode);
241 
242  /*
243  * copy remainder of node
244  */
245  COPY_NODE_FIELD(partitioned_rels);
246  COPY_NODE_FIELD(appendplans);
247  COPY_SCALAR_FIELD(first_partial_plan);
248  COPY_NODE_FIELD(part_prune_infos);
249 
250  return newnode;
251 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2299 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2300 {
2301  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2302 
2303  COPY_SCALAR_FIELD(parent_relid);
2304  COPY_SCALAR_FIELD(child_relid);
2305  COPY_SCALAR_FIELD(parent_reltype);
2306  COPY_SCALAR_FIELD(child_reltype);
2307  COPY_NODE_FIELD(translated_vars);
2308  COPY_SCALAR_FIELD(parent_reloid);
2309 
2310  return newnode;
2311 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1708 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1709 {
1711 
1713  COPY_NODE_FIELD(elemexpr);
1714  COPY_SCALAR_FIELD(resulttype);
1715  COPY_SCALAR_FIELD(resulttypmod);
1716  COPY_SCALAR_FIELD(resultcollid);
1717  COPY_SCALAR_FIELD(coerceformat);
1718  COPY_LOCATION_FIELD(location);
1719 
1720  return newnode;
1721 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1806 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1807 {
1808  ArrayExpr *newnode = makeNode(ArrayExpr);
1809 
1810  COPY_SCALAR_FIELD(array_typeid);
1811  COPY_SCALAR_FIELD(array_collid);
1812  COPY_SCALAR_FIELD(element_typeid);
1813  COPY_NODE_FIELD(elements);
1814  COPY_SCALAR_FIELD(multidims);
1815  COPY_LOCATION_FIELD(location);
1816 
1817  return newnode;
1818 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyArrayRef()

static ArrayRef* _copyArrayRef ( const ArrayRef from)
static

Definition at line 1431 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1432 {
1433  ArrayRef *newnode = makeNode(ArrayRef);
1434 
1435  COPY_SCALAR_FIELD(refarraytype);
1436  COPY_SCALAR_FIELD(refelemtype);
1437  COPY_SCALAR_FIELD(reftypmod);
1438  COPY_SCALAR_FIELD(refcollid);
1439  COPY_NODE_FIELD(refupperindexpr);
1440  COPY_NODE_FIELD(reflowerindexpr);
1441  COPY_NODE_FIELD(refexpr);
1442  COPY_NODE_FIELD(refassgnexpr);
1443 
1444  return newnode;
1445 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyAStar()

static A_Star* _copyAStar ( const A_Star from)
static

Definition at line 2625 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2626 {
2627  A_Star *newnode = makeNode(A_Star);
2628 
2629  return newnode;
2630 }
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 312 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 551 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 527 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 333 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

334 {
335  BitmapOr *newnode = makeNode(BitmapOr);
336 
337  /*
338  * copy node superclass fields
339  */
340  CopyPlanFields((const Plan *) from, (Plan *) newnode);
341 
342  /*
343  * copy remainder of node
344  */
345  COPY_SCALAR_FIELD(isshared);
346  COPY_NODE_FIELD(bitmapplans);
347 
348  return newnode;
349 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 1946 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1947 {
1948  BooleanTest *newnode = makeNode(BooleanTest);
1949 
1951  COPY_SCALAR_FIELD(booltesttype);
1952  COPY_LOCATION_FIELD(location);
1953 
1954  return newnode;
1955 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1566 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1567 {
1568  BoolExpr *newnode = makeNode(BoolExpr);
1569 
1572  COPY_LOCATION_FIELD(location);
1573 
1574  return newnode;
1575 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:420
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3266 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3267 {
3268  CallStmt *newnode = makeNode(CallStmt);
3269 
3270  COPY_NODE_FIELD(funccall);
3271  COPY_NODE_FIELD(funcexpr);
3272 
3273  return newnode;
3274 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1758 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1759 {
1760  CaseExpr *newnode = makeNode(CaseExpr);
1761 
1762  COPY_SCALAR_FIELD(casetype);
1763  COPY_SCALAR_FIELD(casecollid);
1766  COPY_NODE_FIELD(defresult);
1767  COPY_LOCATION_FIELD(location);
1768 
1769  return newnode;
1770 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1791 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1792 {
1793  CaseTestExpr *newnode = makeNode(CaseTestExpr);
1794 
1795  COPY_SCALAR_FIELD(typeId);
1796  COPY_SCALAR_FIELD(typeMod);
1797  COPY_SCALAR_FIELD(collation);
1798 
1799  return newnode;
1800 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1776 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1777 {
1778  CaseWhen *newnode = makeNode(CaseWhen);
1779 
1780  COPY_NODE_FIELD(expr);
1781  COPY_NODE_FIELD(result);
1782  COPY_LOCATION_FIELD(location);
1783 
1784  return newnode;
1785 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3256 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3257 {
3259 
3260  COPY_STRING_FIELD(portalname);
3261 
3262  return newnode;
3263 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3277 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3278 {
3279  ClusterStmt *newnode = makeNode(ClusterStmt);
3280 
3281  COPY_NODE_FIELD(relation);
3282  COPY_STRING_FIELD(indexname);
3284 
3285  return newnode;
3286 }
#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
static int verbose
Definition: pg_basebackup.c:88
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 1859 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1860 {
1861  CoalesceExpr *newnode = makeNode(CoalesceExpr);
1862 
1863  COPY_SCALAR_FIELD(coalescetype);
1864  COPY_SCALAR_FIELD(coalescecollid);
1866  COPY_LOCATION_FIELD(location);
1867 
1868  return newnode;
1869 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 1961 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1962 {
1964 
1966  COPY_SCALAR_FIELD(resulttype);
1967  COPY_SCALAR_FIELD(resulttypmod);
1968  COPY_SCALAR_FIELD(resultcollid);
1969  COPY_SCALAR_FIELD(coercionformat);
1970  COPY_LOCATION_FIELD(location);
1971 
1972  return newnode;
1973 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 1979 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1980 {
1982 
1983  COPY_SCALAR_FIELD(typeId);
1984  COPY_SCALAR_FIELD(typeMod);
1985  COPY_SCALAR_FIELD(collation);
1986  COPY_LOCATION_FIELD(location);
1987 
1988  return newnode;
1989 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1691 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1692 {
1693  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1694 
1696  COPY_SCALAR_FIELD(resulttype);
1697  COPY_SCALAR_FIELD(resultcollid);
1698  COPY_SCALAR_FIELD(coerceformat);
1699  COPY_LOCATION_FIELD(location);
1700 
1701  return newnode;
1702 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2825 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2826 {
2827  CollateClause *newnode = makeNode(CollateClause);
2828 
2830  COPY_NODE_FIELD(collname);
2831  COPY_LOCATION_FIELD(location);
2832 
2833  return newnode;
2834 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1743 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1744 {
1745  CollateExpr *newnode = makeNode(CollateExpr);
1746 
1748  COPY_SCALAR_FIELD(collOid);
1749  COPY_LOCATION_FIELD(location);
1750 
1751  return newnode;
1752 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 2853 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2854 {
2855  ColumnDef *newnode = makeNode(ColumnDef);
2856 
2857  COPY_STRING_FIELD(colname);
2858  COPY_NODE_FIELD(typeName);
2859  COPY_SCALAR_FIELD(inhcount);
2860  COPY_SCALAR_FIELD(is_local);
2861  COPY_SCALAR_FIELD(is_not_null);
2862  COPY_SCALAR_FIELD(is_from_type);
2863  COPY_SCALAR_FIELD(is_from_parent);
2864  COPY_SCALAR_FIELD(storage);
2865  COPY_NODE_FIELD(raw_default);
2866  COPY_NODE_FIELD(cooked_default);
2867  COPY_SCALAR_FIELD(identity);
2868  COPY_NODE_FIELD(identitySequence);
2869  COPY_NODE_FIELD(collClause);
2870  COPY_SCALAR_FIELD(collOid);
2871  COPY_NODE_FIELD(constraints);
2872  COPY_NODE_FIELD(fdwoptions);
2873  COPY_LOCATION_FIELD(location);
2874 
2875  return newnode;
2876 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2553 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2554 {
2555  ColumnRef *newnode = makeNode(ColumnRef);
2556 
2557  COPY_NODE_FIELD(fields);
2558  COPY_LOCATION_FIELD(location);
2559 
2560  return newnode;
2561 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3389 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3390 {
3391  CommentStmt *newnode = makeNode(CommentStmt);
3392 
3393  COPY_SCALAR_FIELD(objtype);
3394  COPY_NODE_FIELD(object);
3395  COPY_STRING_FIELD(comment);
3396 
3397  return newnode;
3398 }
#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:565

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2520 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2521 {
2523 
2524  COPY_STRING_FIELD(ctename);
2525  COPY_NODE_FIELD(aliascolnames);
2526  COPY_NODE_FIELD(ctequery);
2527  COPY_LOCATION_FIELD(location);
2528  COPY_SCALAR_FIELD(cterecursive);
2529  COPY_SCALAR_FIELD(cterefcount);
2530  COPY_NODE_FIELD(ctecolnames);
2531  COPY_NODE_FIELD(ctecoltypes);
2532  COPY_NODE_FIELD(ctecoltypmods);
2533  COPY_NODE_FIELD(ctecolcollations);
2534 
2535  return newnode;
2536 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3650 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3651 {
3653 
3654  COPY_NODE_FIELD(typevar);
3655  COPY_NODE_FIELD(coldeflist);
3656 
3657  return newnode;
3658 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

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

1308 {
1309  Const *newnode = makeNode(Const);
1310 
1311  COPY_SCALAR_FIELD(consttype);
1312  COPY_SCALAR_FIELD(consttypmod);
1313  COPY_SCALAR_FIELD(constcollid);
1314  COPY_SCALAR_FIELD(constlen);
1315 
1316  if (from->constbyval || from->constisnull)
1317  {
1318  /*
1319  * passed by value so just copy the datum. Also, don't try to copy
1320  * struct when value is null!
1321  */
1322  newnode->constvalue = from->constvalue;
1323  }
1324  else
1325  {
1326  /*
1327  * passed by reference. We need a palloc'd copy.
1328  */
1329  newnode->constvalue = datumCopy(from->constvalue,
1330  from->constbyval,
1331  from->constlen);
1332  }
1333 
1334  COPY_SCALAR_FIELD(constisnull);
1335  COPY_SCALAR_FIELD(constbyval);
1336  COPY_LOCATION_FIELD(location);
1337 
1338  return newnode;
1339 }
Datum constvalue
Definition: primnodes.h:197
bool constbyval
Definition: primnodes.h:200
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
int constlen
Definition: primnodes.h:196
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
Datum datumCopy(Datum value, bool typByVal, int typLen)
Definition: datum.c:128
#define makeNode(_type_)
Definition: nodes.h:565
bool constisnull
Definition: primnodes.h:198

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 2879 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2880 {
2881  Constraint *newnode = makeNode(Constraint);
2882 
2883  COPY_SCALAR_FIELD(contype);
2884  COPY_STRING_FIELD(conname);
2885  COPY_SCALAR_FIELD(deferrable);
2886  COPY_SCALAR_FIELD(initdeferred);
2887  COPY_LOCATION_FIELD(location);
2888  COPY_SCALAR_FIELD(is_no_inherit);
2889  COPY_NODE_FIELD(raw_expr);
2890  COPY_STRING_FIELD(cooked_expr);
2891  COPY_SCALAR_FIELD(generated_when);
2892  COPY_NODE_FIELD(keys);
2893  COPY_NODE_FIELD(including);
2894  COPY_NODE_FIELD(exclusions);
2896  COPY_STRING_FIELD(indexname);
2897  COPY_STRING_FIELD(indexspace);
2898  COPY_STRING_FIELD(access_method);
2899  COPY_NODE_FIELD(where_clause);
2900  COPY_NODE_FIELD(pktable);
2901  COPY_NODE_FIELD(fk_attrs);
2902  COPY_NODE_FIELD(pk_attrs);
2903  COPY_SCALAR_FIELD(fk_matchtype);
2904  COPY_SCALAR_FIELD(fk_upd_action);
2905  COPY_SCALAR_FIELD(fk_del_action);
2906  COPY_NODE_FIELD(old_conpfeqop);
2907  COPY_SCALAR_FIELD(old_pktable_oid);
2908  COPY_SCALAR_FIELD(skip_validation);
2909  COPY_SCALAR_FIELD(initially_valid);
2910 
2911  return newnode;
2912 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4325 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4326 {
4328 
4329  COPY_NODE_FIELD(constraints);
4330  COPY_SCALAR_FIELD(deferred);
4331 
4332  return newnode;
4333 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1727 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1728 {
1730 
1732  COPY_SCALAR_FIELD(resulttype);
1733  COPY_SCALAR_FIELD(convertformat);
1734  COPY_LOCATION_FIELD(location);
1735 
1736  return newnode;
1737 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3289 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3290 {
3291  CopyStmt *newnode = makeNode(CopyStmt);
3292 
3293  COPY_NODE_FIELD(relation);
3294  COPY_NODE_FIELD(query);
3295  COPY_NODE_FIELD(attlist);
3296  COPY_SCALAR_FIELD(is_from);
3297  COPY_SCALAR_FIELD(is_program);
3300 
3301  return newnode;
3302 }
#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:565
static char * filename
Definition: pg_dumpall.c:87

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4192 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4193 {
4194  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4195 
4196  COPY_STRING_FIELD(amname);
4197  COPY_NODE_FIELD(handler_name);
4198  COPY_SCALAR_FIELD(amtype);
4199 
4200  return newnode;
4201 }
#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:565

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4376 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4377 {
4379 
4380  COPY_NODE_FIELD(sourcetype);
4381  COPY_NODE_FIELD(targettype);
4382  COPY_NODE_FIELD(func);
4383  COPY_SCALAR_FIELD(context);
4384  COPY_SCALAR_FIELD(inout);
4385 
4386  return newnode;
4387 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4362 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4363 {
4365 
4366  COPY_NODE_FIELD(conversion_name);
4367  COPY_STRING_FIELD(for_encoding_name);
4368  COPY_STRING_FIELD(to_encoding_name);
4369  COPY_NODE_FIELD(func_name);
4370  COPY_SCALAR_FIELD(def);
4371 
4372  return newnode;
4373 }
#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:565

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 3790 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3791 {
3792  CreatedbStmt *newnode = makeNode(CreatedbStmt);
3793 
3796 
3797  return newnode;
3798 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
char * dbname
Definition: streamutil.c:51

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3723 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3724 {
3726 
3727  COPY_NODE_FIELD(domainname);
3728  COPY_NODE_FIELD(typeName);
3729  COPY_NODE_FIELD(collClause);
3730  COPY_NODE_FIELD(constraints);
3731 
3732  return newnode;
3733 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3661 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3662 {
3664 
3665  COPY_NODE_FIELD(typeName);
3666  COPY_NODE_FIELD(vals);
3667 
3668  return newnode;
3669 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4227 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4228 {
4230 
4231  COPY_STRING_FIELD(trigname);
4232  COPY_STRING_FIELD(eventname);
4233  COPY_NODE_FIELD(whenclause);
4234  COPY_NODE_FIELD(funcname);
4235 
4236  return newnode;
4237 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 4025 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4026 {
4028 
4029  COPY_STRING_FIELD(extname);
4030  COPY_SCALAR_FIELD(if_not_exists);
4032 
4033  return newnode;
4034 }
#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:565

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4061 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4062 {
4063  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4064 
4065  COPY_STRING_FIELD(fdwname);
4066  COPY_NODE_FIELD(func_options);
4068 
4069  return newnode;
4070 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4085 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4086 {
4088 
4089  COPY_STRING_FIELD(servername);
4090  COPY_STRING_FIELD(servertype);
4091  COPY_STRING_FIELD(version);
4092  COPY_STRING_FIELD(fdwname);
4093  COPY_SCALAR_FIELD(if_not_exists);
4095 
4096  return newnode;
4097 }
#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:565

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4150 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4151 {
4153 
4154  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4155 
4156  COPY_STRING_FIELD(servername);
4158 
4159  return newnode;
4160 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3311
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3472 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3473 {
3475 
3476  COPY_SCALAR_FIELD(is_procedure);
3477  COPY_SCALAR_FIELD(replace);
3478  COPY_NODE_FIELD(funcname);
3479  COPY_NODE_FIELD(parameters);
3480  COPY_NODE_FIELD(returnType);
3482 
3483  return newnode;
3484 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3751 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3752 {
3754 
3755  COPY_SCALAR_FIELD(itemtype);
3757  COPY_SCALAR_FIELD(number);
3758  COPY_NODE_FIELD(order_family);
3759  COPY_NODE_FIELD(class_args);
3760  COPY_NODE_FIELD(storedtype);
3761 
3762  return newnode;
3763 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565
const char * name
Definition: encode.c:521

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3736 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3737 {
3739 
3740  COPY_NODE_FIELD(opclassname);
3741  COPY_NODE_FIELD(opfamilyname);
3742  COPY_STRING_FIELD(amname);
3743  COPY_NODE_FIELD(datatype);
3744  COPY_NODE_FIELD(items);
3745  COPY_SCALAR_FIELD(isDefault);
3746 
3747  return newnode;
3748 }
#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:565

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3766 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3767 {
3769 
3770  COPY_NODE_FIELD(opfamilyname);
3771  COPY_STRING_FIELD(amname);
3772 
3773  return newnode;
3774 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4251 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4252 {
4254 
4255  COPY_SCALAR_FIELD(replace);
4256  COPY_STRING_FIELD(plname);
4257  COPY_NODE_FIELD(plhandler);
4258  COPY_NODE_FIELD(plinline);
4259  COPY_NODE_FIELD(plvalidator);
4260  COPY_SCALAR_FIELD(pltrusted);
4261 
4262  return newnode;
4263 }
#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:565

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4472 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4473 {
4475 
4476  COPY_STRING_FIELD(policy_name);
4477  COPY_NODE_FIELD(table);
4478  COPY_STRING_FIELD(cmd_name);
4479  COPY_SCALAR_FIELD(permissive);
4480  COPY_NODE_FIELD(roles);
4481  COPY_NODE_FIELD(qual);
4482  COPY_NODE_FIELD(with_check);
4483 
4484  return newnode;
4485 }
#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:565

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4568 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4569 {
4571 
4572  COPY_STRING_FIELD(pubname);
4574  COPY_NODE_FIELD(tables);
4575  COPY_SCALAR_FIELD(for_all_tables);
4576 
4577  return newnode;
4578 }
#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:565

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3672 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3673 {
3675 
3676  COPY_NODE_FIELD(typeName);
3677  COPY_NODE_FIELD(params);
3678 
3679  return newnode;
3680 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4266 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4267 {
4269 
4270  COPY_SCALAR_FIELD(stmt_type);
4271  COPY_STRING_FIELD(role);
4273 
4274  return newnode;
4275 }
#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:565

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4349 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4350 {
4352 
4353  COPY_STRING_FIELD(schemaname);
4354  COPY_NODE_FIELD(authrole);
4355  COPY_NODE_FIELD(schemaElts);
4356  COPY_SCALAR_FIELD(if_not_exists);
4357 
4358  return newnode;
4359 }
#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:565

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 3915 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3916 {
3917  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
3918 
3919  COPY_NODE_FIELD(sequence);
3921  COPY_SCALAR_FIELD(ownerId);
3922  COPY_SCALAR_FIELD(for_identity);
3923  COPY_SCALAR_FIELD(if_not_exists);
3924 
3925  return newnode;
3926 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3457 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3458 {
3460 
3461  COPY_NODE_FIELD(defnames);
3462  COPY_NODE_FIELD(stat_types);
3463  COPY_NODE_FIELD(exprs);
3464  COPY_NODE_FIELD(relations);
3465  COPY_STRING_FIELD(stxcomment);
3466  COPY_SCALAR_FIELD(if_not_exists);
3467 
3468  return newnode;
3469 }
#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:565

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3327 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3328 {
3329  CreateStmt *newnode = makeNode(CreateStmt);
3330 
3331  CopyCreateStmtFields(from, newnode);
3332 
3333  return newnode;
3334 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3311
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4595 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4596 {
4598 
4600  COPY_STRING_FIELD(conninfo);
4601  COPY_NODE_FIELD(publication);
4603 
4604  return newnode;
4605 }
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:565

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 3868 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and relkind.

Referenced by copyObjectImpl().

3869 {
3871 
3872  COPY_NODE_FIELD(query);
3873  COPY_NODE_FIELD(into);
3875  COPY_SCALAR_FIELD(is_select_into);
3876  COPY_SCALAR_FIELD(if_not_exists);
3877 
3878  return newnode;
3879 }
char relkind
Definition: pg_class.h:51
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 3975 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3976 {
3978 
3979  COPY_STRING_FIELD(tablespacename);
3980  COPY_NODE_FIELD(owner);
3981  COPY_STRING_FIELD(location);
3983 
3984  return newnode;
3985 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4178 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4179 {
4181 
4182  COPY_SCALAR_FIELD(replace);
4183  COPY_NODE_FIELD(type_name);
4184  COPY_STRING_FIELD(lang);
4185  COPY_NODE_FIELD(fromsql);
4186  COPY_NODE_FIELD(tosql);
4187 
4188  return newnode;
4189 }
#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:565

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4204 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4205 {
4207 
4208  COPY_STRING_FIELD(trigname);
4209  COPY_NODE_FIELD(relation);
4210  COPY_NODE_FIELD(funcname);
4212  COPY_SCALAR_FIELD(row);
4213  COPY_SCALAR_FIELD(timing);
4214  COPY_SCALAR_FIELD(events);
4215  COPY_NODE_FIELD(columns);
4216  COPY_NODE_FIELD(whenClause);
4217  COPY_SCALAR_FIELD(isconstraint);
4218  COPY_NODE_FIELD(transitionRels);
4219  COPY_SCALAR_FIELD(deferrable);
4220  COPY_SCALAR_FIELD(initdeferred);
4221  COPY_NODE_FIELD(constrrel);
4222 
4223  return newnode;
4224 }
#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:565

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4113 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4114 {
4116 
4118  COPY_STRING_FIELD(servername);
4119  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 COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
static char * user
Definition: pg_regress.c:93

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 678 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2011 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2012 {
2013  CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
2014 
2015  COPY_SCALAR_FIELD(cvarno);
2016  COPY_STRING_FIELD(cursor_name);
2017  COPY_SCALAR_FIELD(cursor_param);
2018 
2019  return newnode;
2020 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 770 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4413 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4414 {
4416 
4418 
4419  return newnode;
4420 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
const char * name
Definition: encode.c:521

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3244 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3245 {
3247 
3248  COPY_STRING_FIELD(portalname);
3250  COPY_NODE_FIELD(query);
3251 
3252  return newnode;
3253 }
#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:565

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 2915 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2916 {
2917  DefElem *newnode = makeNode(DefElem);
2918 
2919  COPY_STRING_FIELD(defnamespace);
2920  COPY_STRING_FIELD(defname);
2922  COPY_SCALAR_FIELD(defaction);
2923  COPY_LOCATION_FIELD(location);
2924 
2925  return newnode;
2926 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3348 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3349 {
3350  DefineStmt *newnode = makeNode(DefineStmt);
3351 
3352  COPY_SCALAR_FIELD(kind);
3353  COPY_SCALAR_FIELD(oldstyle);
3354  COPY_NODE_FIELD(defnames);
3356  COPY_NODE_FIELD(definition);
3357  COPY_SCALAR_FIELD(if_not_exists);
3358 
3359  return newnode;
3360 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3051 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3052 {
3053  DeleteStmt *newnode = makeNode(DeleteStmt);
3054 
3055  COPY_NODE_FIELD(relation);
3056  COPY_NODE_FIELD(usingClause);
3057  COPY_NODE_FIELD(whereClause);
3058  COPY_NODE_FIELD(returningList);
3059  COPY_NODE_FIELD(withClause);
3060 
3061  return newnode;
3062 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 3965 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3966 {
3967  DiscardStmt *newnode = makeNode(DiscardStmt);
3968 
3969  COPY_SCALAR_FIELD(target);
3970 
3971  return newnode;
3972 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1508 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1509 {
1510  DistinctExpr *newnode = makeNode(DistinctExpr);
1511 
1512  COPY_SCALAR_FIELD(opno);
1513  COPY_SCALAR_FIELD(opfuncid);
1514  COPY_SCALAR_FIELD(opresulttype);
1515  COPY_SCALAR_FIELD(opretset);
1516  COPY_SCALAR_FIELD(opcollid);
1517  COPY_SCALAR_FIELD(inputcollid);
1519  COPY_LOCATION_FIELD(location);
1520 
1521  return newnode;
1522 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3512 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3513 {
3514  DoStmt *newnode = makeNode(DoStmt);
3515 
3517 
3518  return newnode;
3519 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 3823 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3824 {
3825  DropdbStmt *newnode = makeNode(DropdbStmt);
3826 
3828  COPY_SCALAR_FIELD(missing_ok);
3829 
3830  return newnode;
3831 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
char * dbname
Definition: streamutil.c:51

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4423 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4424 {
4425  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4426 
4427  COPY_NODE_FIELD(roles);
4428  COPY_SCALAR_FIELD(behavior);
4429 
4430  return newnode;
4431 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4302 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4303 {
4304  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4305 
4306  COPY_NODE_FIELD(roles);
4307  COPY_SCALAR_FIELD(missing_ok);
4308 
4309  return newnode;
4310 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3363 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3364 {
3365  DropStmt *newnode = makeNode(DropStmt);
3366 
3367  COPY_NODE_FIELD(objects);
3368  COPY_SCALAR_FIELD(removeType);
3369  COPY_SCALAR_FIELD(behavior);
3370  COPY_SCALAR_FIELD(missing_ok);
3371  COPY_SCALAR_FIELD(concurrent);
3372 
3373  return newnode;
3374 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4622 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, makeNode, and subname.

Referenced by copyObjectImpl().

4623 {
4625 
4627  COPY_SCALAR_FIELD(missing_ok);
4628  COPY_SCALAR_FIELD(behavior);
4629 
4630  return newnode;
4631 }
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:565

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 3988 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3989 {
3991 
3992  COPY_STRING_FIELD(tablespacename);
3993  COPY_SCALAR_FIELD(missing_ok);
3994 
3995  return newnode;
3996 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4138 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4139 {
4141 
4143  COPY_STRING_FIELD(servername);
4144  COPY_SCALAR_FIELD(missing_ok);
4145 
4146  return newnode;
4147 }
#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:565
static char * user
Definition: pg_regress.c:93

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4402 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4403 {
4404  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4405 
4407  COPY_NODE_FIELD(params);
4408 
4409  return newnode;
4410 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
const char * name
Definition: encode.c:521

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 3857 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3858 {
3859  ExplainStmt *newnode = makeNode(ExplainStmt);
3860 
3861  COPY_NODE_FIELD(query);
3863 
3864  return newnode;
3865 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4680 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4681 {
4682  ExtensibleNode *newnode;
4683  const ExtensibleNodeMethods *methods;
4684 
4685  methods = GetExtensibleNodeMethods(from->extnodename, false);
4686  newnode = (ExtensibleNode *) newNode(methods->node_size,
4688  COPY_STRING_FIELD(extnodename);
4689 
4690  /* copy the private fields */
4691  methods->nodeCopy(newnode, from);
4692 
4693  return newnode;
4694 }
#define newNode(size, tag)
Definition: nodes.h:555
#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 3414 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3415 {
3416  FetchStmt *newnode = makeNode(FetchStmt);
3417 
3418  COPY_SCALAR_FIELD(direction);
3419  COPY_SCALAR_FIELD(howMany);
3420  COPY_STRING_FIELD(portalname);
3421  COPY_SCALAR_FIELD(ismove);
3422 
3423  return newnode;
3424 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1640 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1641 {
1642  FieldSelect *newnode = makeNode(FieldSelect);
1643 
1645  COPY_SCALAR_FIELD(fieldnum);
1646  COPY_SCALAR_FIELD(resulttype);
1647  COPY_SCALAR_FIELD(resulttypmod);
1648  COPY_SCALAR_FIELD(resultcollid);
1649 
1650  return newnode;
1651 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1657 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1658 {
1659  FieldStore *newnode = makeNode(FieldStore);
1660 
1662  COPY_NODE_FIELD(newvals);
1663  COPY_NODE_FIELD(fieldnums);
1664  COPY_SCALAR_FIELD(resulttype);
1665 
1666  return newnode;
1667 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4731 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4732 {
4734 
4735  COPY_SCALAR_FIELD(conrelid);
4736  COPY_SCALAR_FIELD(confrelid);
4737  COPY_SCALAR_FIELD(nkeys);
4738  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4739  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4740  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4741  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4742 
4743  return newnode;
4744 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:215
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:565
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:217
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:216

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 742 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2107 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2108 {
2109  FromExpr *newnode = makeNode(FromExpr);
2110 
2111  COPY_NODE_FIELD(fromlist);
2112  COPY_NODE_FIELD(quals);
2113 
2114  return newnode;
2115 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2606 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2607 {
2608  FuncCall *newnode = makeNode(FuncCall);
2609 
2610  COPY_NODE_FIELD(funcname);
2612  COPY_NODE_FIELD(agg_order);
2613  COPY_NODE_FIELD(agg_filter);
2614  COPY_SCALAR_FIELD(agg_within_group);
2615  COPY_SCALAR_FIELD(agg_star);
2616  COPY_SCALAR_FIELD(agg_distinct);
2617  COPY_SCALAR_FIELD(func_variadic);
2618  COPY_NODE_FIELD(over);
2619  COPY_LOCATION_FIELD(location);
2620 
2621  return newnode;
2622 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1451 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1452 {
1453  FuncExpr *newnode = makeNode(FuncExpr);
1454 
1455  COPY_SCALAR_FIELD(funcid);
1456  COPY_SCALAR_FIELD(funcresulttype);
1457  COPY_SCALAR_FIELD(funcretset);
1458  COPY_SCALAR_FIELD(funcvariadic);
1459  COPY_SCALAR_FIELD(funcformat);
1460  COPY_SCALAR_FIELD(funccollid);
1461  COPY_SCALAR_FIELD(inputcollid);
1463  COPY_LOCATION_FIELD(location);
1464 
1465  return newnode;
1466 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3487 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3488 {
3490 
3492  COPY_NODE_FIELD(argType);
3493  COPY_SCALAR_FIELD(mode);
3494  COPY_NODE_FIELD(defexpr);
3495 
3496  return newnode;
3497 }
#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:565
const char * name
Definition: encode.c:521

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 614 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 355 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

356 {
357  Gather *newnode = makeNode(Gather);
358 
359  /*
360  * copy node superclass fields
361  */
362  CopyPlanFields((const Plan *) from, (Plan *) newnode);
363 
364  /*
365  * copy remainder of node
366  */
367  COPY_SCALAR_FIELD(num_workers);
368  COPY_SCALAR_FIELD(rescan_param);
369  COPY_SCALAR_FIELD(single_copy);
370  COPY_SCALAR_FIELD(invisible);
371  COPY_BITMAPSET_FIELD(initParam);
372 
373  return newnode;
374 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 380 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3218 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, grantor, and makeNode.

Referenced by copyObjectImpl().

3219 {
3220  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3221 
3222  COPY_NODE_FIELD(granted_roles);
3223  COPY_NODE_FIELD(grantee_roles);
3224  COPY_SCALAR_FIELD(is_grant);
3225  COPY_SCALAR_FIELD(admin_opt);
3227  COPY_SCALAR_FIELD(behavior);
3228 
3229  return newnode;
3230 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
Oid grantor
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3178 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3179 {
3180  GrantStmt *newnode = makeNode(GrantStmt);
3181 
3182  COPY_SCALAR_FIELD(is_grant);
3183  COPY_SCALAR_FIELD(targtype);
3184  COPY_SCALAR_FIELD(objtype);
3185  COPY_NODE_FIELD(objects);
3186  COPY_NODE_FIELD(privileges);
3187  COPY_NODE_FIELD(grantees);
3188  COPY_SCALAR_FIELD(grant_option);
3189  COPY_SCALAR_FIELD(behavior);
3190 
3191  return newnode;
3192 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 952 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

953 {
954  Group *newnode = makeNode(Group);
955 
956  CopyPlanFields((const Plan *) from, (Plan *) newnode);
957 
958  COPY_SCALAR_FIELD(numCols);
959  COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
960  COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
961 
962  return newnode;
963 }
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:116
#define makeNode(_type_)
Definition: nodes.h:565
int16 AttrNumber
Definition: attnum.h:21

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1392 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1393 {
1394  GroupingFunc *newnode = makeNode(GroupingFunc);
1395 
1397  COPY_NODE_FIELD(refs);
1398  COPY_NODE_FIELD(cols);
1399  COPY_SCALAR_FIELD(agglevelsup);
1400  COPY_LOCATION_FIELD(location);
1401 
1402  return newnode;
1403 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2433 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2434 {
2435  GroupingSet *newnode = makeNode(GroupingSet);
2436 
2437  COPY_SCALAR_FIELD(kind);
2438  COPY_NODE_FIELD(content);
2439  COPY_LOCATION_FIELD(location);
2440 
2441  return newnode;
2442 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1053 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1054 {
1055  Hash *newnode = makeNode(Hash);
1056 
1057  /*
1058  * copy node superclass fields
1059  */
1060  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1061 
1062  /*
1063  * copy remainder of node
1064  */
1065  COPY_SCALAR_FIELD(skewTable);
1066  COPY_SCALAR_FIELD(skewColumn);
1067  COPY_SCALAR_FIELD(skewInherit);
1068  COPY_SCALAR_FIELD(rows_total);
1069 
1070  return newnode;
1071 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:116
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 890 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4163 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4164 {
4166 
4167  COPY_STRING_FIELD(server_name);
4168  COPY_STRING_FIELD(remote_schema);
4169  COPY_STRING_FIELD(local_schema);
4170  COPY_SCALAR_FIELD(list_type);
4171  COPY_NODE_FIELD(table_list);
4173 
4174  return newnode;
4175 }
#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:565

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 2837 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2838 {
2839  IndexElem *newnode = makeNode(IndexElem);
2840 
2842  COPY_NODE_FIELD(expr);
2843  COPY_STRING_FIELD(indexcolname);
2844  COPY_NODE_FIELD(collation);
2845  COPY_NODE_FIELD(opclass);
2846  COPY_SCALAR_FIELD(ordering);
2847  COPY_SCALAR_FIELD(nulls_ordering);
2848 
2849  return newnode;
2850 }
#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:565
const char * name
Definition: encode.c:521

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 502 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 475 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3427 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3428 {
3429  IndexStmt *newnode = makeNode(IndexStmt);
3430 
3431  COPY_STRING_FIELD(idxname);
3432  COPY_NODE_FIELD(relation);
3433  COPY_SCALAR_FIELD(relationId);
3434  COPY_STRING_FIELD(accessMethod);
3435  COPY_STRING_FIELD(tableSpace);
3436  COPY_NODE_FIELD(indexParams);
3437  COPY_NODE_FIELD(indexIncludingParams);
3439  COPY_NODE_FIELD(whereClause);
3440  COPY_NODE_FIELD(excludeOpNames);
3441  COPY_STRING_FIELD(idxcomment);
3442  COPY_SCALAR_FIELD(indexOid);
3443  COPY_SCALAR_FIELD(oldNode);
3444  COPY_SCALAR_FIELD(unique);
3445  COPY_SCALAR_FIELD(primary);
3446  COPY_SCALAR_FIELD(isconstraint);
3447  COPY_SCALAR_FIELD(deferrable);
3448  COPY_SCALAR_FIELD(initdeferred);
3449  COPY_SCALAR_FIELD(transformed);
3450  COPY_SCALAR_FIELD(concurrent);
3451  COPY_SCALAR_FIELD(if_not_exists);
3452 
3453  return newnode;
3454 }
#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:565

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2493 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2494 {
2495  InferClause *newnode = makeNode(InferClause);
2496 
2497  COPY_NODE_FIELD(indexElems);
2498  COPY_NODE_FIELD(whereClause);
2499  COPY_STRING_FIELD(conname);
2500  COPY_LOCATION_FIELD(location);
2501 
2502  return newnode;
2503 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2040 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2041 {
2042  InferenceElem *newnode = makeNode(InferenceElem);
2043 
2044  COPY_NODE_FIELD(expr);
2045  COPY_SCALAR_FIELD(infercollid);
2046  COPY_SCALAR_FIELD(inferopclass);
2047 
2048  return newnode;
2049 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 3035 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3036 {
3037  InsertStmt *newnode = makeNode(InsertStmt);
3038 
3039  COPY_NODE_FIELD(relation);
3040  COPY_NODE_FIELD(cols);
3041  COPY_NODE_FIELD(selectStmt);
3042  COPY_NODE_FIELD(onConflictClause);
3043  COPY_NODE_FIELD(returningList);
3044  COPY_NODE_FIELD(withClause);
3045  COPY_SCALAR_FIELD(override);
3046 
3047  return newnode;
3048 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1260 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1261 {
1262  IntoClause *newnode = makeNode(IntoClause);
1263 
1264  COPY_NODE_FIELD(rel);
1265  COPY_NODE_FIELD(colNames);
1267  COPY_SCALAR_FIELD(onCommit);
1268  COPY_STRING_FIELD(tableSpaceName);
1269  COPY_NODE_FIELD(viewQuery);
1270  COPY_SCALAR_FIELD(skipData);
1271 
1272  return newnode;
1273 }
#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:565

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 820 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2087 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2088 {
2089  JoinExpr *newnode = makeNode(JoinExpr);
2090 
2091  COPY_SCALAR_FIELD(jointype);
2092  COPY_SCALAR_FIELD(isNatural);
2093  COPY_NODE_FIELD(larg);
2094  COPY_NODE_FIELD(rarg);
2095  COPY_NODE_FIELD(usingClause);
2096  COPY_NODE_FIELD(quals);
2097  COPY_NODE_FIELD(alias);
2098  COPY_SCALAR_FIELD(rtindex);
2099 
2100  return newnode;
2101 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1127 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1128 {
1129  Limit *newnode = makeNode(Limit);
1130 
1131  /*
1132  * copy node superclass fields
1133  */
1134  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1135 
1136  /*
1137  * copy remainder of node
1138  */
1139  COPY_NODE_FIELD(limitOffset);
1140  COPY_NODE_FIELD(limitCount);
1141 
1142  return newnode;
1143 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:116
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyList()

static List* _copyList ( const List from)
static

Definition at line 4648 of file copyfuncs.c.

References Assert, COPY_NODE_CELL, List::head, List::length, list_length(), lnext, makeNode, and ListCell::next.

Referenced by copyObjectImpl().

4649 {
4650  List *new;
4651  ListCell *curr_old;
4652  ListCell *prev_new;
4653 
4654  Assert(list_length(from) >= 1);
4655 
4656  new = makeNode(List);
4657  new->length = from->length;
4658 
4659  COPY_NODE_CELL(new->head, from->head);
4660  prev_new = new->head;
4661  curr_old = lnext(from->head);
4662 
4663  while (curr_old)
4664  {
4665  COPY_NODE_CELL(prev_new->next, curr_old);
4666  prev_new = prev_new->next;
4667  curr_old = curr_old->next;
4668  }
4669  prev_new->next = NULL;
4670  new->tail = prev_new;
4671 
4672  return new;
4673 }
#define lnext(lc)
Definition: pg_list.h:105
#define COPY_NODE_CELL(new, old)
Definition: copyfuncs.c:4643
#define makeNode(_type_)
Definition: nodes.h:565
ListCell * next
Definition: pg_list.h:61
#define Assert(condition)
Definition: c.h:699
static int list_length(const List *l)
Definition: pg_list.h:89
int length
Definition: pg_list.h:48
ListCell * head
Definition: pg_list.h:49
Definition: pg_list.h:45

◆ _copyListenStmt()

static ListenStmt* _copyListenStmt ( const ListenStmt from)
static

Definition at line 3617 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3618 {
3619  ListenStmt *newnode = makeNode(ListenStmt);
3620 
3621  COPY_STRING_FIELD(conditionname);
3622 
3623  return newnode;
3624 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyLoadStmt()

static LoadStmt* _copyLoadStmt ( const LoadStmt from)
static

Definition at line 3713 of file copyfuncs.c.

References COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3714 {
3715  LoadStmt *newnode = makeNode(LoadStmt);
3716 
3718 
3719  return newnode;
3720 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:565
static char * filename
Definition: pg_dumpall.c:87

◆ _copyLockingClause()

static LockingClause* _copyLockingClause ( const LockingClause from)
static

Definition at line 2929 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2930 {
2931  LockingClause *newnode = makeNode(LockingClause);
2932 
2933  COPY_NODE_FIELD(lockedRels);
2934  COPY_SCALAR_FIELD(strength);
2935  COPY_SCALAR_FIELD(waitPolicy);
2936 
2937  return newnode;
2938 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyLockRows()

static LockRows* _copyLockRows ( const LockRows from)
static

Definition at line 1105 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1106 {
1107  LockRows *newnode = makeNode(LockRows);
1108 
1109  /*
1110  * copy node superclass fields
1111  */
1112  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1113 
1114  /*
1115  * copy remainder of node
1116  */
1117  COPY_NODE_FIELD(rowMarks);
1118  COPY_SCALAR_FIELD(epqParam);
1119 
1120  return newnode;
1121 }
#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:116
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyLockStmt()

static LockStmt* _copyLockStmt ( const LockStmt from)
static

Definition at line 4313 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4314 {
4315  LockStmt *newnode = makeNode(LockStmt);
4316 
4317  COPY_NODE_FIELD(relations);
4318  COPY_SCALAR_FIELD(mode);
4319  COPY_SCALAR_FIELD(nowait);
4320 
4321  return newnode;
4322 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:565

◆ _copyMaterial()

static Material* _copyMaterial ( const Material from)
static

Definition at line 912 of file copyfuncs.c.

References CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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