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 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 PartitionedChildRelInfo_copyPartitionedChildRelInfo (const PartitionedChildRelInfo *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:835
void * copyObjectImpl(const void *from)
Definition: copyfuncs.c:4699

Definition at line 4588 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(), _copyPartitionedChildRelInfo(), _copyPartitionElem(), _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:835

Definition at line 57 of file copyfuncs.c.

Referenced by _copyAgg(), _copyGatherMerge(), _copyGroup(), _copyMergeAppend(), _copyMergeJoin(), _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(), _copyPartitionedChildRelInfo(), _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(), _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 2607 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2608 {
2609  A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
2610 
2611  COPY_NODE_FIELD(elements);
2612  COPY_LOCATION_FIELD(location);
2613 
2614  return newnode;
2615 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyA_Indirection()

static A_Indirection* _copyA_Indirection ( const A_Indirection from)
static

Definition at line 2596 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2597 {
2598  A_Indirection *newnode = makeNode(A_Indirection);
2599 
2601  COPY_NODE_FIELD(indirection);
2602 
2603  return newnode;
2604 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560
void * arg

◆ _copyAccessPriv()

static AccessPriv* _copyAccessPriv ( const AccessPriv from)
static

Definition at line 3156 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3157 {
3158  AccessPriv *newnode = makeNode(AccessPriv);
3159 
3160  COPY_STRING_FIELD(priv_name);
3161  COPY_NODE_FIELD(cols);
3162 
3163  return newnode;
3164 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAConst()

static A_Const* _copyAConst ( const A_Const from)
static

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

2527 {
2528  A_Const *newnode = makeNode(A_Const);
2529 
2530  /* This part must duplicate _copyValue */
2531  COPY_SCALAR_FIELD(val.type);
2532  switch (from->val.type)
2533  {
2534  case T_Integer:
2535  COPY_SCALAR_FIELD(val.val.ival);
2536  break;
2537  case T_Float:
2538  case T_String:
2539  case T_BitString:
2540  COPY_STRING_FIELD(val.val.str);
2541  break;
2542  case T_Null:
2543  /* nothing to do */
2544  break;
2545  default:
2546  elog(ERROR, "unrecognized node type: %d",
2547  (int) from->val.type);
2548  break;
2549  }
2550 
2551  COPY_LOCATION_FIELD(location);
2552 
2553  return newnode;
2554 }
#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:560
Definition: nodes.h:287
Definition: nodes.h:284
#define elog
Definition: elog.h:219
Value val
Definition: parsenodes.h:287
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 2490 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2491 {
2492  A_Expr *newnode = makeNode(A_Expr);
2493 
2494  COPY_SCALAR_FIELD(kind);
2496  COPY_NODE_FIELD(lexpr);
2497  COPY_NODE_FIELD(rexpr);
2498  COPY_LOCATION_FIELD(location);
2499 
2500  return newnode;
2501 }
#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:560
const char * name
Definition: encode.c:521

◆ _copyAgg()

static Agg* _copyAgg ( const Agg from)
static

Definition at line 966 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyAggref()

static Aggref* _copyAggref ( const Aggref from)
static

Definition at line 1354 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1355 {
1356  Aggref *newnode = makeNode(Aggref);
1357 
1358  COPY_SCALAR_FIELD(aggfnoid);
1359  COPY_SCALAR_FIELD(aggtype);
1360  COPY_SCALAR_FIELD(aggcollid);
1361  COPY_SCALAR_FIELD(inputcollid);
1362  COPY_SCALAR_FIELD(aggtranstype);
1363  COPY_NODE_FIELD(aggargtypes);
1364  COPY_NODE_FIELD(aggdirectargs);
1366  COPY_NODE_FIELD(aggorder);
1367  COPY_NODE_FIELD(aggdistinct);
1368  COPY_NODE_FIELD(aggfilter);
1369  COPY_SCALAR_FIELD(aggstar);
1370  COPY_SCALAR_FIELD(aggvariadic);
1371  COPY_SCALAR_FIELD(aggkind);
1372  COPY_SCALAR_FIELD(agglevelsup);
1373  COPY_SCALAR_FIELD(aggsplit);
1374  COPY_LOCATION_FIELD(location);
1375 
1376  return newnode;
1377 }
#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:560

◆ _copyAIndices()

static A_Indices* _copyAIndices ( const A_Indices from)
static

Definition at line 2584 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2585 {
2586  A_Indices *newnode = makeNode(A_Indices);
2587 
2588  COPY_SCALAR_FIELD(is_slice);
2589  COPY_NODE_FIELD(lidx);
2590  COPY_NODE_FIELD(uidx);
2591 
2592  return newnode;
2593 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlias()

static Alias* _copyAlias ( const Alias from)
static

Definition at line 1193 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1194 {
1195  Alias *newnode = makeNode(Alias);
1196 
1197  COPY_STRING_FIELD(aliasname);
1198  COPY_NODE_FIELD(colnames);
1199 
1200  return newnode;
1201 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterCollationStmt()

static AlterCollationStmt* _copyAlterCollationStmt ( const AlterCollationStmt from)
static

Definition at line 3102 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3103 {
3105 
3106  COPY_NODE_FIELD(collname);
3107 
3108  return newnode;
3109 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterDatabaseSetStmt()

static AlterDatabaseSetStmt* _copyAlterDatabaseSetStmt ( const AlterDatabaseSetStmt from)
static

Definition at line 3757 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3758 {
3760 
3762  COPY_NODE_FIELD(setstmt);
3763 
3764  return newnode;
3765 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
char * dbname
Definition: streamutil.c:42

◆ _copyAlterDatabaseStmt()

static AlterDatabaseStmt* _copyAlterDatabaseStmt ( const AlterDatabaseStmt from)
static

Definition at line 3746 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3747 {
3749 
3752 
3753  return newnode;
3754 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
char * dbname
Definition: streamutil.c:42

◆ _copyAlterDefaultPrivilegesStmt()

static AlterDefaultPrivilegesStmt* _copyAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt from)
static

Definition at line 3182 of file copyfuncs.c.

References generate_unaccent_rules::action, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3183 {
3185 
3188 
3189  return newnode;
3190 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterDomainStmt()

static AlterDomainStmt* _copyAlterDomainStmt ( const AlterDomainStmt from)
static

Definition at line 3112 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3113 {
3115 
3116  COPY_SCALAR_FIELD(subtype);
3117  COPY_NODE_FIELD(typeName);
3119  COPY_NODE_FIELD(def);
3120  COPY_SCALAR_FIELD(behavior);
3121  COPY_SCALAR_FIELD(missing_ok);
3122 
3123  return newnode;
3124 }
#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:560
const char * name
Definition: encode.c:521

◆ _copyAlterEnumStmt()

static AlterEnumStmt* _copyAlterEnumStmt ( const AlterEnumStmt from)
static

Definition at line 3628 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3629 {
3630  AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3631 
3632  COPY_NODE_FIELD(typeName);
3633  COPY_STRING_FIELD(oldVal);
3634  COPY_STRING_FIELD(newVal);
3635  COPY_STRING_FIELD(newValNeighbor);
3636  COPY_SCALAR_FIELD(newValIsAfter);
3637  COPY_SCALAR_FIELD(skipIfNewValExists);
3638 
3639  return newnode;
3640 }
#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:560

◆ _copyAlterEventTrigStmt()

static AlterEventTrigStmt* _copyAlterEventTrigStmt ( const AlterEventTrigStmt from)
static

Definition at line 4185 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4186 {
4188 
4189  COPY_STRING_FIELD(trigname);
4190  COPY_SCALAR_FIELD(tgenabled);
4191 
4192  return newnode;
4193 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterExtensionContentsStmt()

static AlterExtensionContentsStmt* _copyAlterExtensionContentsStmt ( const AlterExtensionContentsStmt from)
static

Definition at line 3993 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3994 {
3996 
3997  COPY_STRING_FIELD(extname);
3999  COPY_SCALAR_FIELD(objtype);
4000  COPY_NODE_FIELD(object);
4001 
4002  return newnode;
4003 }
#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:560

◆ _copyAlterExtensionStmt()

static AlterExtensionStmt* _copyAlterExtensionStmt ( const AlterExtensionStmt from)
static

Definition at line 3982 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3983 {
3985 
3986  COPY_STRING_FIELD(extname);
3988 
3989  return newnode;
3990 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterFdwStmt()

static AlterFdwStmt* _copyAlterFdwStmt ( const AlterFdwStmt from)
static

Definition at line 4018 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4019 {
4020  AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
4021 
4022  COPY_STRING_FIELD(fdwname);
4023  COPY_NODE_FIELD(func_options);
4025 
4026  return newnode;
4027 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterForeignServerStmt()

static AlterForeignServerStmt* _copyAlterForeignServerStmt ( const AlterForeignServerStmt from)
static

Definition at line 4045 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4046 {
4048 
4049  COPY_STRING_FIELD(servername);
4050  COPY_STRING_FIELD(version);
4052  COPY_SCALAR_FIELD(has_version);
4053 
4054  return newnode;
4055 }
#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:560

◆ _copyAlterFunctionStmt()

static AlterFunctionStmt* _copyAlterFunctionStmt ( const AlterFunctionStmt from)
static

Definition at line 3446 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3447 {
3449 
3450  COPY_SCALAR_FIELD(objtype);
3451  COPY_NODE_FIELD(func);
3452  COPY_NODE_FIELD(actions);
3453 
3454  return newnode;
3455 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlternativeSubPlan()

static AlternativeSubPlan* _copyAlternativeSubPlan ( const AlternativeSubPlan from)
static

Definition at line 1618 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1619 {
1621 
1622  COPY_NODE_FIELD(subplans);
1623 
1624  return newnode;
1625 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterObjectDependsStmt()

static AlterObjectDependsStmt* _copyAlterObjectDependsStmt ( const AlterObjectDependsStmt from)
static

Definition at line 3485 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3486 {
3488 
3489  COPY_SCALAR_FIELD(objectType);
3490  COPY_NODE_FIELD(relation);
3491  COPY_NODE_FIELD(object);
3492  COPY_NODE_FIELD(extname);
3493 
3494  return newnode;
3495 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterObjectSchemaStmt()

static AlterObjectSchemaStmt* _copyAlterObjectSchemaStmt ( const AlterObjectSchemaStmt from)
static

Definition at line 3498 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3499 {
3501 
3502  COPY_SCALAR_FIELD(objectType);
3503  COPY_NODE_FIELD(relation);
3504  COPY_NODE_FIELD(object);
3505  COPY_STRING_FIELD(newschema);
3506  COPY_SCALAR_FIELD(missing_ok);
3507 
3508  return newnode;
3509 }
#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:560

◆ _copyAlterOperatorStmt()

static AlterOperatorStmt* _copyAlterOperatorStmt ( const AlterOperatorStmt from)
static

Definition at line 3525 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3526 {
3528 
3529  COPY_NODE_FIELD(opername);
3531 
3532  return newnode;
3533 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterOpFamilyStmt()

static AlterOpFamilyStmt* _copyAlterOpFamilyStmt ( const AlterOpFamilyStmt from)
static

Definition at line 3722 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3723 {
3725 
3726  COPY_NODE_FIELD(opfamilyname);
3727  COPY_STRING_FIELD(amname);
3728  COPY_SCALAR_FIELD(isDrop);
3729  COPY_NODE_FIELD(items);
3730 
3731  return newnode;
3732 }
#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:560

◆ _copyAlterOwnerStmt()

static AlterOwnerStmt* _copyAlterOwnerStmt ( const AlterOwnerStmt from)
static

Definition at line 3512 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3513 {
3515 
3516  COPY_SCALAR_FIELD(objectType);
3517  COPY_NODE_FIELD(relation);
3518  COPY_NODE_FIELD(object);
3519  COPY_NODE_FIELD(newowner);
3520 
3521  return newnode;
3522 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterPolicyStmt()

static AlterPolicyStmt* _copyAlterPolicyStmt ( const AlterPolicyStmt from)
static

Definition at line 4433 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4434 {
4436 
4437  COPY_STRING_FIELD(policy_name);
4438  COPY_NODE_FIELD(table);
4439  COPY_NODE_FIELD(roles);
4440  COPY_NODE_FIELD(qual);
4441  COPY_NODE_FIELD(with_check);
4442 
4443  return newnode;
4444 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterPublicationStmt()

static AlterPublicationStmt* _copyAlterPublicationStmt ( const AlterPublicationStmt from)
static

Definition at line 4526 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4527 {
4529 
4530  COPY_STRING_FIELD(pubname);
4532  COPY_NODE_FIELD(tables);
4533  COPY_SCALAR_FIELD(for_all_tables);
4534  COPY_SCALAR_FIELD(tableAction);
4535 
4536  return newnode;
4537 }
#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:560

◆ _copyAlterRoleSetStmt()

static AlterRoleSetStmt* _copyAlterRoleSetStmt ( const AlterRoleSetStmt from)
static

Definition at line 4235 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4236 {
4238 
4239  COPY_NODE_FIELD(role);
4240  COPY_STRING_FIELD(database);
4241  COPY_NODE_FIELD(setstmt);
4242 
4243  return newnode;
4244 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterRoleStmt()

static AlterRoleStmt* _copyAlterRoleStmt ( const AlterRoleStmt from)
static

Definition at line 4223 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4224 {
4225  AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
4226 
4227  COPY_NODE_FIELD(role);
4230 
4231  return newnode;
4232 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterSeqStmt()

static AlterSeqStmt* _copyAlterSeqStmt ( const AlterSeqStmt from)
static

Definition at line 3874 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3875 {
3876  AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
3877 
3878  COPY_NODE_FIELD(sequence);
3880  COPY_SCALAR_FIELD(for_identity);
3881  COPY_SCALAR_FIELD(missing_ok);
3882 
3883  return newnode;
3884 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterSubscriptionStmt()

static AlterSubscriptionStmt* _copyAlterSubscriptionStmt ( const AlterSubscriptionStmt from)
static

Definition at line 4553 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4554 {
4556 
4557  COPY_SCALAR_FIELD(kind);
4558  COPY_STRING_FIELD(subname);
4559  COPY_STRING_FIELD(conninfo);
4560  COPY_NODE_FIELD(publication);
4562 
4563  return newnode;
4564 }
#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:560

◆ _copyAlterSystemStmt()

static AlterSystemStmt* _copyAlterSystemStmt ( const AlterSystemStmt from)
static

Definition at line 3850 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3851 {
3853 
3854  COPY_NODE_FIELD(setstmt);
3855 
3856  return newnode;
3857 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterTableCmd()

static AlterTableCmd* _copyAlterTableCmd ( const AlterTableCmd from)
static

Definition at line 3086 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3087 {
3088  AlterTableCmd *newnode = makeNode(AlterTableCmd);
3089 
3090  COPY_SCALAR_FIELD(subtype);
3092  COPY_SCALAR_FIELD(num);
3093  COPY_NODE_FIELD(newowner);
3094  COPY_NODE_FIELD(def);
3095  COPY_SCALAR_FIELD(behavior);
3096  COPY_SCALAR_FIELD(missing_ok);
3097 
3098  return newnode;
3099 }
#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:560
const char * name
Definition: encode.c:521

◆ _copyAlterTableMoveAllStmt()

static AlterTableMoveAllStmt* _copyAlterTableMoveAllStmt ( const AlterTableMoveAllStmt from)
static

Definition at line 3956 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3957 {
3959 
3960  COPY_STRING_FIELD(orig_tablespacename);
3961  COPY_SCALAR_FIELD(objtype);
3962  COPY_NODE_FIELD(roles);
3963  COPY_STRING_FIELD(new_tablespacename);
3964  COPY_SCALAR_FIELD(nowait);
3965 
3966  return newnode;
3967 }
#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:560

◆ _copyAlterTableSpaceOptionsStmt()

static AlterTableSpaceOptionsStmt* _copyAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt from)
static

Definition at line 3944 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3945 {
3947 
3948  COPY_STRING_FIELD(tablespacename);
3950  COPY_SCALAR_FIELD(isReset);
3951 
3952  return newnode;
3953 }
#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:560

◆ _copyAlterTableStmt()

static AlterTableStmt* _copyAlterTableStmt ( const AlterTableStmt from)
static

Definition at line 3073 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3074 {
3076 
3077  COPY_NODE_FIELD(relation);
3078  COPY_NODE_FIELD(cmds);
3079  COPY_SCALAR_FIELD(relkind);
3080  COPY_SCALAR_FIELD(missing_ok);
3081 
3082  return newnode;
3083 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterTSConfigurationStmt()

static AlterTSConfigurationStmt* _copyAlterTSConfigurationStmt ( const AlterTSConfigurationStmt from)
static

Definition at line 4401 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4402 {
4404 
4405  COPY_SCALAR_FIELD(kind);
4406  COPY_NODE_FIELD(cfgname);
4407  COPY_NODE_FIELD(tokentype);
4408  COPY_NODE_FIELD(dicts);
4409  COPY_SCALAR_FIELD(override);
4410  COPY_SCALAR_FIELD(replace);
4411  COPY_SCALAR_FIELD(missing_ok);
4412 
4413  return newnode;
4414 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterTSDictionaryStmt()

static AlterTSDictionaryStmt* _copyAlterTSDictionaryStmt ( const AlterTSDictionaryStmt from)
static

Definition at line 4390 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

4391 {
4393 
4394  COPY_NODE_FIELD(dictname);
4396 
4397  return newnode;
4398 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAlterUserMappingStmt()

static AlterUserMappingStmt* _copyAlterUserMappingStmt ( const AlterUserMappingStmt from)
static

Definition at line 4071 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and user.

Referenced by copyObjectImpl().

4072 {
4074 
4076  COPY_STRING_FIELD(servername);
4078 
4079  return newnode;
4080 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
static char * user
Definition: pg_regress.c:93

◆ _copyAppend()

static Append* _copyAppend ( const Append from)
static

Definition at line 231 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

232 {
233  Append *newnode = makeNode(Append);
234 
235  /*
236  * copy node superclass fields
237  */
238  CopyPlanFields((const Plan *) from, (Plan *) newnode);
239 
240  /*
241  * copy remainder of node
242  */
243  COPY_NODE_FIELD(partitioned_rels);
244  COPY_NODE_FIELD(appendplans);
245  COPY_SCALAR_FIELD(first_partial_plan);
246 
247  return newnode;
248 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAppendRelInfo()

static AppendRelInfo* _copyAppendRelInfo ( const AppendRelInfo from)
static

Definition at line 2241 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2242 {
2243  AppendRelInfo *newnode = makeNode(AppendRelInfo);
2244 
2245  COPY_SCALAR_FIELD(parent_relid);
2246  COPY_SCALAR_FIELD(child_relid);
2247  COPY_SCALAR_FIELD(parent_reltype);
2248  COPY_SCALAR_FIELD(child_reltype);
2249  COPY_NODE_FIELD(translated_vars);
2250  COPY_SCALAR_FIELD(parent_reloid);
2251 
2252  return newnode;
2253 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyArrayCoerceExpr()

static ArrayCoerceExpr* _copyArrayCoerceExpr ( const ArrayCoerceExpr from)
static

Definition at line 1699 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1700 {
1702 
1704  COPY_NODE_FIELD(elemexpr);
1705  COPY_SCALAR_FIELD(resulttype);
1706  COPY_SCALAR_FIELD(resulttypmod);
1707  COPY_SCALAR_FIELD(resultcollid);
1708  COPY_SCALAR_FIELD(coerceformat);
1709  COPY_LOCATION_FIELD(location);
1710 
1711  return newnode;
1712 }
#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:560
void * arg

◆ _copyArrayExpr()

static ArrayExpr* _copyArrayExpr ( const ArrayExpr from)
static

Definition at line 1797 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1798 {
1799  ArrayExpr *newnode = makeNode(ArrayExpr);
1800 
1801  COPY_SCALAR_FIELD(array_typeid);
1802  COPY_SCALAR_FIELD(array_collid);
1803  COPY_SCALAR_FIELD(element_typeid);
1804  COPY_NODE_FIELD(elements);
1805  COPY_SCALAR_FIELD(multidims);
1806  COPY_LOCATION_FIELD(location);
1807 
1808  return newnode;
1809 }
#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:560

◆ _copyArrayRef()

static ArrayRef* _copyArrayRef ( const ArrayRef from)
static

Definition at line 1422 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1423 {
1424  ArrayRef *newnode = makeNode(ArrayRef);
1425 
1426  COPY_SCALAR_FIELD(refarraytype);
1427  COPY_SCALAR_FIELD(refelemtype);
1428  COPY_SCALAR_FIELD(reftypmod);
1429  COPY_SCALAR_FIELD(refcollid);
1430  COPY_NODE_FIELD(refupperindexpr);
1431  COPY_NODE_FIELD(reflowerindexpr);
1432  COPY_NODE_FIELD(refexpr);
1433  COPY_NODE_FIELD(refassgnexpr);
1434 
1435  return newnode;
1436 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyAStar()

static A_Star* _copyAStar ( const A_Star from)
static

Definition at line 2576 of file copyfuncs.c.

References makeNode.

Referenced by copyObjectImpl().

2577 {
2578  A_Star *newnode = makeNode(A_Star);
2579 
2580  return newnode;
2581 }
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyBitmapAnd()

static BitmapAnd* _copyBitmapAnd ( const BitmapAnd from)
static

Definition at line 309 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapHeapScan()

static BitmapHeapScan* _copyBitmapHeapScan ( const BitmapHeapScan from)
static

Definition at line 548 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyBitmapIndexScan()

static BitmapIndexScan* _copyBitmapIndexScan ( const BitmapIndexScan from)
static

Definition at line 524 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBitmapOr()

static BitmapOr* _copyBitmapOr ( const BitmapOr from)
static

Definition at line 330 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyBooleanTest()

static BooleanTest* _copyBooleanTest ( const BooleanTest from)
static

Definition at line 1937 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1938 {
1939  BooleanTest *newnode = makeNode(BooleanTest);
1940 
1942  COPY_SCALAR_FIELD(booltesttype);
1943  COPY_LOCATION_FIELD(location);
1944 
1945  return newnode;
1946 }
#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:560
void * arg

◆ _copyBoolExpr()

static BoolExpr* _copyBoolExpr ( const BoolExpr from)
static

Definition at line 1557 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1558 {
1559  BoolExpr *newnode = makeNode(BoolExpr);
1560 
1563  COPY_LOCATION_FIELD(location);
1564 
1565  return newnode;
1566 }
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:560

◆ _copyCallStmt()

static CallStmt* _copyCallStmt ( const CallStmt from)
static

Definition at line 3215 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3216 {
3217  CallStmt *newnode = makeNode(CallStmt);
3218 
3219  COPY_NODE_FIELD(funccall);
3220 
3221  return newnode;
3222 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCaseExpr()

static CaseExpr* _copyCaseExpr ( const CaseExpr from)
static

Definition at line 1749 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1750 {
1751  CaseExpr *newnode = makeNode(CaseExpr);
1752 
1753  COPY_SCALAR_FIELD(casetype);
1754  COPY_SCALAR_FIELD(casecollid);
1757  COPY_NODE_FIELD(defresult);
1758  COPY_LOCATION_FIELD(location);
1759 
1760  return newnode;
1761 }
#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:560
void * arg

◆ _copyCaseTestExpr()

static CaseTestExpr* _copyCaseTestExpr ( const CaseTestExpr from)
static

Definition at line 1782 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1783 {
1784  CaseTestExpr *newnode = makeNode(CaseTestExpr);
1785 
1786  COPY_SCALAR_FIELD(typeId);
1787  COPY_SCALAR_FIELD(typeMod);
1788  COPY_SCALAR_FIELD(collation);
1789 
1790  return newnode;
1791 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCaseWhen()

static CaseWhen* _copyCaseWhen ( const CaseWhen from)
static

Definition at line 1767 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

1768 {
1769  CaseWhen *newnode = makeNode(CaseWhen);
1770 
1771  COPY_NODE_FIELD(expr);
1772  COPY_NODE_FIELD(result);
1773  COPY_LOCATION_FIELD(location);
1774 
1775  return newnode;
1776 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyClosePortalStmt()

static ClosePortalStmt* _copyClosePortalStmt ( const ClosePortalStmt from)
static

Definition at line 3205 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3206 {
3208 
3209  COPY_STRING_FIELD(portalname);
3210 
3211  return newnode;
3212 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyClusterStmt()

static ClusterStmt* _copyClusterStmt ( const ClusterStmt from)
static

Definition at line 3225 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3226 {
3227  ClusterStmt *newnode = makeNode(ClusterStmt);
3228 
3229  COPY_NODE_FIELD(relation);
3230  COPY_STRING_FIELD(indexname);
3232 
3233  return newnode;
3234 }
#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:85
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCoalesceExpr()

static CoalesceExpr* _copyCoalesceExpr ( const CoalesceExpr from)
static

Definition at line 1850 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1851 {
1852  CoalesceExpr *newnode = makeNode(CoalesceExpr);
1853 
1854  COPY_SCALAR_FIELD(coalescetype);
1855  COPY_SCALAR_FIELD(coalescecollid);
1857  COPY_LOCATION_FIELD(location);
1858 
1859  return newnode;
1860 }
#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:560

◆ _copyCoerceToDomain()

static CoerceToDomain* _copyCoerceToDomain ( const CoerceToDomain from)
static

Definition at line 1952 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1953 {
1955 
1957  COPY_SCALAR_FIELD(resulttype);
1958  COPY_SCALAR_FIELD(resulttypmod);
1959  COPY_SCALAR_FIELD(resultcollid);
1960  COPY_SCALAR_FIELD(coercionformat);
1961  COPY_LOCATION_FIELD(location);
1962 
1963  return newnode;
1964 }
#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:560
void * arg

◆ _copyCoerceToDomainValue()

static CoerceToDomainValue* _copyCoerceToDomainValue ( const CoerceToDomainValue from)
static

Definition at line 1970 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1971 {
1973 
1974  COPY_SCALAR_FIELD(typeId);
1975  COPY_SCALAR_FIELD(typeMod);
1976  COPY_SCALAR_FIELD(collation);
1977  COPY_LOCATION_FIELD(location);
1978 
1979  return newnode;
1980 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCoerceViaIO()

static CoerceViaIO* _copyCoerceViaIO ( const CoerceViaIO from)
static

Definition at line 1682 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1683 {
1684  CoerceViaIO *newnode = makeNode(CoerceViaIO);
1685 
1687  COPY_SCALAR_FIELD(resulttype);
1688  COPY_SCALAR_FIELD(resultcollid);
1689  COPY_SCALAR_FIELD(coerceformat);
1690  COPY_LOCATION_FIELD(location);
1691 
1692  return newnode;
1693 }
#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:560
void * arg

◆ _copyCollateClause()

static CollateClause* _copyCollateClause ( const CollateClause from)
static

Definition at line 2776 of file copyfuncs.c.

References arg, COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2777 {
2778  CollateClause *newnode = makeNode(CollateClause);
2779 
2781  COPY_NODE_FIELD(collname);
2782  COPY_LOCATION_FIELD(location);
2783 
2784  return newnode;
2785 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560
void * arg

◆ _copyCollateExpr()

static CollateExpr* _copyCollateExpr ( const CollateExpr from)
static

Definition at line 1734 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1735 {
1736  CollateExpr *newnode = makeNode(CollateExpr);
1737 
1739  COPY_SCALAR_FIELD(collOid);
1740  COPY_LOCATION_FIELD(location);
1741 
1742  return newnode;
1743 }
#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:560
void * arg

◆ _copyColumnDef()

static ColumnDef* _copyColumnDef ( const ColumnDef from)
static

Definition at line 2804 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2805 {
2806  ColumnDef *newnode = makeNode(ColumnDef);
2807 
2808  COPY_STRING_FIELD(colname);
2809  COPY_NODE_FIELD(typeName);
2810  COPY_SCALAR_FIELD(inhcount);
2811  COPY_SCALAR_FIELD(is_local);
2812  COPY_SCALAR_FIELD(is_not_null);
2813  COPY_SCALAR_FIELD(is_from_type);
2814  COPY_SCALAR_FIELD(is_from_parent);
2815  COPY_SCALAR_FIELD(storage);
2816  COPY_NODE_FIELD(raw_default);
2817  COPY_NODE_FIELD(cooked_default);
2818  COPY_SCALAR_FIELD(identity);
2819  COPY_NODE_FIELD(collClause);
2820  COPY_SCALAR_FIELD(collOid);
2821  COPY_NODE_FIELD(constraints);
2822  COPY_NODE_FIELD(fdwoptions);
2823  COPY_LOCATION_FIELD(location);
2824 
2825  return newnode;
2826 }
#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:560

◆ _copyColumnRef()

static ColumnRef* _copyColumnRef ( const ColumnRef from)
static

Definition at line 2504 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2505 {
2506  ColumnRef *newnode = makeNode(ColumnRef);
2507 
2508  COPY_NODE_FIELD(fields);
2509  COPY_LOCATION_FIELD(location);
2510 
2511  return newnode;
2512 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCommentStmt()

static CommentStmt* _copyCommentStmt ( const CommentStmt from)
static

Definition at line 3337 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3338 {
3339  CommentStmt *newnode = makeNode(CommentStmt);
3340 
3341  COPY_SCALAR_FIELD(objtype);
3342  COPY_NODE_FIELD(object);
3343  COPY_STRING_FIELD(comment);
3344 
3345  return newnode;
3346 }
#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:560

◆ _copyCommonTableExpr()

static CommonTableExpr* _copyCommonTableExpr ( const CommonTableExpr from)
static

Definition at line 2471 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2472 {
2474 
2475  COPY_STRING_FIELD(ctename);
2476  COPY_NODE_FIELD(aliascolnames);
2477  COPY_NODE_FIELD(ctequery);
2478  COPY_LOCATION_FIELD(location);
2479  COPY_SCALAR_FIELD(cterecursive);
2480  COPY_SCALAR_FIELD(cterefcount);
2481  COPY_NODE_FIELD(ctecolnames);
2482  COPY_NODE_FIELD(ctecoltypes);
2483  COPY_NODE_FIELD(ctecoltypmods);
2484  COPY_NODE_FIELD(ctecolcollations);
2485 
2486  return newnode;
2487 }
#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:560

◆ _copyCompositeTypeStmt()

static CompositeTypeStmt* _copyCompositeTypeStmt ( const CompositeTypeStmt from)
static

Definition at line 3595 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3596 {
3598 
3599  COPY_NODE_FIELD(typevar);
3600  COPY_NODE_FIELD(coldeflist);
3601 
3602  return newnode;
3603 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyConst()

static Const* _copyConst ( const Const from)
static

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

1299 {
1300  Const *newnode = makeNode(Const);
1301 
1302  COPY_SCALAR_FIELD(consttype);
1303  COPY_SCALAR_FIELD(consttypmod);
1304  COPY_SCALAR_FIELD(constcollid);
1305  COPY_SCALAR_FIELD(constlen);
1306 
1307  if (from->constbyval || from->constisnull)
1308  {
1309  /*
1310  * passed by value so just copy the datum. Also, don't try to copy
1311  * struct when value is null!
1312  */
1313  newnode->constvalue = from->constvalue;
1314  }
1315  else
1316  {
1317  /*
1318  * passed by reference. We need a palloc'd copy.
1319  */
1320  newnode->constvalue = datumCopy(from->constvalue,
1321  from->constbyval,
1322  from->constlen);
1323  }
1324 
1325  COPY_SCALAR_FIELD(constisnull);
1326  COPY_SCALAR_FIELD(constbyval);
1327  COPY_LOCATION_FIELD(location);
1328 
1329  return newnode;
1330 }
Datum constvalue
Definition: primnodes.h:196
bool constbyval
Definition: primnodes.h:199
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
int constlen
Definition: primnodes.h:195
#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:560
bool constisnull
Definition: primnodes.h:197

◆ _copyConstraint()

static Constraint* _copyConstraint ( const Constraint from)
static

Definition at line 2829 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2830 {
2831  Constraint *newnode = makeNode(Constraint);
2832 
2833  COPY_SCALAR_FIELD(contype);
2834  COPY_STRING_FIELD(conname);
2835  COPY_SCALAR_FIELD(deferrable);
2836  COPY_SCALAR_FIELD(initdeferred);
2837  COPY_LOCATION_FIELD(location);
2838  COPY_SCALAR_FIELD(is_no_inherit);
2839  COPY_NODE_FIELD(raw_expr);
2840  COPY_STRING_FIELD(cooked_expr);
2841  COPY_SCALAR_FIELD(generated_when);
2842  COPY_NODE_FIELD(keys);
2843  COPY_NODE_FIELD(exclusions);
2845  COPY_STRING_FIELD(indexname);
2846  COPY_STRING_FIELD(indexspace);
2847  COPY_STRING_FIELD(access_method);
2848  COPY_NODE_FIELD(where_clause);
2849  COPY_NODE_FIELD(pktable);
2850  COPY_NODE_FIELD(fk_attrs);
2851  COPY_NODE_FIELD(pk_attrs);
2852  COPY_SCALAR_FIELD(fk_matchtype);
2853  COPY_SCALAR_FIELD(fk_upd_action);
2854  COPY_SCALAR_FIELD(fk_del_action);
2855  COPY_NODE_FIELD(old_conpfeqop);
2856  COPY_SCALAR_FIELD(old_pktable_oid);
2857  COPY_SCALAR_FIELD(skip_validation);
2858  COPY_SCALAR_FIELD(initially_valid);
2859 
2860  return newnode;
2861 }
#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:560

◆ _copyConstraintsSetStmt()

static ConstraintsSetStmt* _copyConstraintsSetStmt ( const ConstraintsSetStmt from)
static

Definition at line 4270 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4271 {
4273 
4274  COPY_NODE_FIELD(constraints);
4275  COPY_SCALAR_FIELD(deferred);
4276 
4277  return newnode;
4278 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyConvertRowtypeExpr()

static ConvertRowtypeExpr* _copyConvertRowtypeExpr ( const ConvertRowtypeExpr from)
static

Definition at line 1718 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1719 {
1721 
1723  COPY_SCALAR_FIELD(resulttype);
1724  COPY_SCALAR_FIELD(convertformat);
1725  COPY_LOCATION_FIELD(location);
1726 
1727  return newnode;
1728 }
#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:560
void * arg

◆ _copyCopyStmt()

static CopyStmt* _copyCopyStmt ( const CopyStmt from)
static

Definition at line 3237 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3238 {
3239  CopyStmt *newnode = makeNode(CopyStmt);
3240 
3241  COPY_NODE_FIELD(relation);
3242  COPY_NODE_FIELD(query);
3243  COPY_NODE_FIELD(attlist);
3244  COPY_SCALAR_FIELD(is_from);
3245  COPY_SCALAR_FIELD(is_program);
3248 
3249  return newnode;
3250 }
#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:560
static char * filename
Definition: pg_dumpall.c:90

◆ _copyCreateAmStmt()

static CreateAmStmt* _copyCreateAmStmt ( const CreateAmStmt from)
static

Definition at line 4137 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4138 {
4139  CreateAmStmt *newnode = makeNode(CreateAmStmt);
4140 
4141  COPY_STRING_FIELD(amname);
4142  COPY_NODE_FIELD(handler_name);
4143  COPY_SCALAR_FIELD(amtype);
4144 
4145  return newnode;
4146 }
#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:560

◆ _copyCreateCastStmt()

static CreateCastStmt* _copyCreateCastStmt ( const CreateCastStmt from)
static

Definition at line 4321 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4322 {
4324 
4325  COPY_NODE_FIELD(sourcetype);
4326  COPY_NODE_FIELD(targettype);
4327  COPY_NODE_FIELD(func);
4328  COPY_SCALAR_FIELD(context);
4329  COPY_SCALAR_FIELD(inout);
4330 
4331  return newnode;
4332 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateConversionStmt()

static CreateConversionStmt* _copyCreateConversionStmt ( const CreateConversionStmt from)
static

Definition at line 4307 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4308 {
4310 
4311  COPY_NODE_FIELD(conversion_name);
4312  COPY_STRING_FIELD(for_encoding_name);
4313  COPY_STRING_FIELD(to_encoding_name);
4314  COPY_NODE_FIELD(func_name);
4315  COPY_SCALAR_FIELD(def);
4316 
4317  return newnode;
4318 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreatedbStmt()

static CreatedbStmt* _copyCreatedbStmt ( const CreatedbStmt from)
static

Definition at line 3735 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3736 {
3737  CreatedbStmt *newnode = makeNode(CreatedbStmt);
3738 
3741 
3742  return newnode;
3743 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
char * dbname
Definition: streamutil.c:42

◆ _copyCreateDomainStmt()

static CreateDomainStmt* _copyCreateDomainStmt ( const CreateDomainStmt from)
static

Definition at line 3668 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3669 {
3671 
3672  COPY_NODE_FIELD(domainname);
3673  COPY_NODE_FIELD(typeName);
3674  COPY_NODE_FIELD(collClause);
3675  COPY_NODE_FIELD(constraints);
3676 
3677  return newnode;
3678 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateEnumStmt()

static CreateEnumStmt* _copyCreateEnumStmt ( const CreateEnumStmt from)
static

Definition at line 3606 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3607 {
3609 
3610  COPY_NODE_FIELD(typeName);
3611  COPY_NODE_FIELD(vals);
3612 
3613  return newnode;
3614 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateEventTrigStmt()

static CreateEventTrigStmt* _copyCreateEventTrigStmt ( const CreateEventTrigStmt from)
static

Definition at line 4172 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4173 {
4175 
4176  COPY_STRING_FIELD(trigname);
4177  COPY_STRING_FIELD(eventname);
4178  COPY_NODE_FIELD(whenclause);
4179  COPY_NODE_FIELD(funcname);
4180 
4181  return newnode;
4182 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateExtensionStmt()

static CreateExtensionStmt* _copyCreateExtensionStmt ( const CreateExtensionStmt from)
static

Definition at line 3970 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3971 {
3973 
3974  COPY_STRING_FIELD(extname);
3975  COPY_SCALAR_FIELD(if_not_exists);
3977 
3978  return newnode;
3979 }
#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:560

◆ _copyCreateFdwStmt()

static CreateFdwStmt* _copyCreateFdwStmt ( const CreateFdwStmt from)
static

Definition at line 4006 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4007 {
4008  CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
4009 
4010  COPY_STRING_FIELD(fdwname);
4011  COPY_NODE_FIELD(func_options);
4013 
4014  return newnode;
4015 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateForeignServerStmt()

static CreateForeignServerStmt* _copyCreateForeignServerStmt ( const CreateForeignServerStmt from)
static

Definition at line 4030 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4031 {
4033 
4034  COPY_STRING_FIELD(servername);
4035  COPY_STRING_FIELD(servertype);
4036  COPY_STRING_FIELD(version);
4037  COPY_STRING_FIELD(fdwname);
4038  COPY_SCALAR_FIELD(if_not_exists);
4040 
4041  return newnode;
4042 }
#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:560

◆ _copyCreateForeignTableStmt()

static CreateForeignTableStmt* _copyCreateForeignTableStmt ( const CreateForeignTableStmt from)
static

Definition at line 4095 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4096 {
4098 
4099  CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode);
4100 
4101  COPY_STRING_FIELD(servername);
4103 
4104  return newnode;
4105 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3259
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateFunctionStmt()

static CreateFunctionStmt* _copyCreateFunctionStmt ( const CreateFunctionStmt from)
static

Definition at line 3417 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3418 {
3420 
3421  COPY_SCALAR_FIELD(replace);
3422  COPY_NODE_FIELD(funcname);
3423  COPY_NODE_FIELD(parameters);
3424  COPY_NODE_FIELD(returnType);
3425  COPY_SCALAR_FIELD(is_procedure);
3427  COPY_NODE_FIELD(withClause);
3428 
3429  return newnode;
3430 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateOpClassItem()

static CreateOpClassItem* _copyCreateOpClassItem ( const CreateOpClassItem from)
static

Definition at line 3696 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

3697 {
3699 
3700  COPY_SCALAR_FIELD(itemtype);
3702  COPY_SCALAR_FIELD(number);
3703  COPY_NODE_FIELD(order_family);
3704  COPY_NODE_FIELD(class_args);
3705  COPY_NODE_FIELD(storedtype);
3706 
3707  return newnode;
3708 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560
const char * name
Definition: encode.c:521

◆ _copyCreateOpClassStmt()

static CreateOpClassStmt* _copyCreateOpClassStmt ( const CreateOpClassStmt from)
static

Definition at line 3681 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3682 {
3684 
3685  COPY_NODE_FIELD(opclassname);
3686  COPY_NODE_FIELD(opfamilyname);
3687  COPY_STRING_FIELD(amname);
3688  COPY_NODE_FIELD(datatype);
3689  COPY_NODE_FIELD(items);
3690  COPY_SCALAR_FIELD(isDefault);
3691 
3692  return newnode;
3693 }
#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:560

◆ _copyCreateOpFamilyStmt()

static CreateOpFamilyStmt* _copyCreateOpFamilyStmt ( const CreateOpFamilyStmt from)
static

Definition at line 3711 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3712 {
3714 
3715  COPY_NODE_FIELD(opfamilyname);
3716  COPY_STRING_FIELD(amname);
3717 
3718  return newnode;
3719 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreatePLangStmt()

static CreatePLangStmt* _copyCreatePLangStmt ( const CreatePLangStmt from)
static

Definition at line 4196 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4197 {
4199 
4200  COPY_SCALAR_FIELD(replace);
4201  COPY_STRING_FIELD(plname);
4202  COPY_NODE_FIELD(plhandler);
4203  COPY_NODE_FIELD(plinline);
4204  COPY_NODE_FIELD(plvalidator);
4205  COPY_SCALAR_FIELD(pltrusted);
4206 
4207  return newnode;
4208 }
#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:560

◆ _copyCreatePolicyStmt()

static CreatePolicyStmt* _copyCreatePolicyStmt ( const CreatePolicyStmt from)
static

Definition at line 4417 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4418 {
4420 
4421  COPY_STRING_FIELD(policy_name);
4422  COPY_NODE_FIELD(table);
4423  COPY_STRING_FIELD(cmd_name);
4424  COPY_SCALAR_FIELD(permissive);
4425  COPY_NODE_FIELD(roles);
4426  COPY_NODE_FIELD(qual);
4427  COPY_NODE_FIELD(with_check);
4428 
4429  return newnode;
4430 }
#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:560

◆ _copyCreatePublicationStmt()

static CreatePublicationStmt* _copyCreatePublicationStmt ( const CreatePublicationStmt from)
static

Definition at line 4513 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4514 {
4516 
4517  COPY_STRING_FIELD(pubname);
4519  COPY_NODE_FIELD(tables);
4520  COPY_SCALAR_FIELD(for_all_tables);
4521 
4522  return newnode;
4523 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateRangeStmt()

static CreateRangeStmt* _copyCreateRangeStmt ( const CreateRangeStmt from)
static

Definition at line 3617 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3618 {
3620 
3621  COPY_NODE_FIELD(typeName);
3622  COPY_NODE_FIELD(params);
3623 
3624  return newnode;
3625 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateRoleStmt()

static CreateRoleStmt* _copyCreateRoleStmt ( const CreateRoleStmt from)
static

Definition at line 4211 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4212 {
4214 
4215  COPY_SCALAR_FIELD(stmt_type);
4216  COPY_STRING_FIELD(role);
4218 
4219  return newnode;
4220 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateSchemaStmt()

static CreateSchemaStmt* _copyCreateSchemaStmt ( const CreateSchemaStmt from)
static

Definition at line 4294 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4295 {
4297 
4298  COPY_STRING_FIELD(schemaname);
4299  COPY_NODE_FIELD(authrole);
4300  COPY_NODE_FIELD(schemaElts);
4301  COPY_SCALAR_FIELD(if_not_exists);
4302 
4303  return newnode;
4304 }
#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:560

◆ _copyCreateSeqStmt()

static CreateSeqStmt* _copyCreateSeqStmt ( const CreateSeqStmt from)
static

Definition at line 3860 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3861 {
3862  CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
3863 
3864  COPY_NODE_FIELD(sequence);
3866  COPY_SCALAR_FIELD(ownerId);
3867  COPY_SCALAR_FIELD(for_identity);
3868  COPY_SCALAR_FIELD(if_not_exists);
3869 
3870  return newnode;
3871 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateStatsStmt()

static CreateStatsStmt* _copyCreateStatsStmt ( const CreateStatsStmt from)
static

Definition at line 3403 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3404 {
3406 
3407  COPY_NODE_FIELD(defnames);
3408  COPY_NODE_FIELD(stat_types);
3409  COPY_NODE_FIELD(exprs);
3410  COPY_NODE_FIELD(relations);
3411  COPY_SCALAR_FIELD(if_not_exists);
3412 
3413  return newnode;
3414 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateStmt()

static CreateStmt* _copyCreateStmt ( const CreateStmt from)
static

Definition at line 3275 of file copyfuncs.c.

References CopyCreateStmtFields(), and makeNode.

Referenced by copyObjectImpl().

3276 {
3277  CreateStmt *newnode = makeNode(CreateStmt);
3278 
3279  CopyCreateStmtFields(from, newnode);
3280 
3281  return newnode;
3282 }
static void CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
Definition: copyfuncs.c:3259
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateSubscriptionStmt()

static CreateSubscriptionStmt* _copyCreateSubscriptionStmt ( const CreateSubscriptionStmt from)
static

Definition at line 4540 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4541 {
4543 
4544  COPY_STRING_FIELD(subname);
4545  COPY_STRING_FIELD(conninfo);
4546  COPY_NODE_FIELD(publication);
4548 
4549  return newnode;
4550 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateTableAsStmt()

static CreateTableAsStmt* _copyCreateTableAsStmt ( const CreateTableAsStmt from)
static

Definition at line 3813 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3814 {
3816 
3817  COPY_NODE_FIELD(query);
3818  COPY_NODE_FIELD(into);
3819  COPY_SCALAR_FIELD(relkind);
3820  COPY_SCALAR_FIELD(is_select_into);
3821  COPY_SCALAR_FIELD(if_not_exists);
3822 
3823  return newnode;
3824 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateTableSpaceStmt()

static CreateTableSpaceStmt* _copyCreateTableSpaceStmt ( const CreateTableSpaceStmt from)
static

Definition at line 3920 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3921 {
3923 
3924  COPY_STRING_FIELD(tablespacename);
3925  COPY_NODE_FIELD(owner);
3926  COPY_STRING_FIELD(location);
3928 
3929  return newnode;
3930 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCreateTransformStmt()

static CreateTransformStmt* _copyCreateTransformStmt ( const CreateTransformStmt from)
static

Definition at line 4123 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4124 {
4126 
4127  COPY_SCALAR_FIELD(replace);
4128  COPY_NODE_FIELD(type_name);
4129  COPY_STRING_FIELD(lang);
4130  COPY_NODE_FIELD(fromsql);
4131  COPY_NODE_FIELD(tosql);
4132 
4133  return newnode;
4134 }
#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:560

◆ _copyCreateTrigStmt()

static CreateTrigStmt* _copyCreateTrigStmt ( const CreateTrigStmt from)
static

Definition at line 4149 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4150 {
4152 
4153  COPY_STRING_FIELD(trigname);
4154  COPY_NODE_FIELD(relation);
4155  COPY_NODE_FIELD(funcname);
4157  COPY_SCALAR_FIELD(row);
4158  COPY_SCALAR_FIELD(timing);
4159  COPY_SCALAR_FIELD(events);
4160  COPY_NODE_FIELD(columns);
4161  COPY_NODE_FIELD(whenClause);
4162  COPY_SCALAR_FIELD(isconstraint);
4163  COPY_NODE_FIELD(transitionRels);
4164  COPY_SCALAR_FIELD(deferrable);
4165  COPY_SCALAR_FIELD(initdeferred);
4166  COPY_NODE_FIELD(constrrel);
4167 
4168  return newnode;
4169 }
#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:560

◆ _copyCreateUserMappingStmt()

static CreateUserMappingStmt* _copyCreateUserMappingStmt ( const CreateUserMappingStmt from)
static

Definition at line 4058 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4059 {
4061 
4063  COPY_STRING_FIELD(servername);
4064  COPY_SCALAR_FIELD(if_not_exists);
4066 
4067  return newnode;
4068 }
#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:560
static char * user
Definition: pg_regress.c:93

◆ _copyCteScan()

static CteScan* _copyCteScan ( const CteScan from)
static

Definition at line 675 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyScanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyCurrentOfExpr()

static CurrentOfExpr* _copyCurrentOfExpr ( const CurrentOfExpr from)
static

Definition at line 2002 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2003 {
2004  CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
2005 
2006  COPY_SCALAR_FIELD(cvarno);
2007  COPY_STRING_FIELD(cursor_name);
2008  COPY_SCALAR_FIELD(cursor_param);
2009 
2010  return newnode;
2011 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyCustomScan()

static CustomScan* _copyCustomScan ( const CustomScan from)
static

Definition at line 767 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyDeallocateStmt()

static DeallocateStmt* _copyDeallocateStmt ( const DeallocateStmt from)
static

Definition at line 4358 of file copyfuncs.c.

References COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4359 {
4361 
4363 
4364  return newnode;
4365 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
const char * name
Definition: encode.c:521

◆ _copyDeclareCursorStmt()

static DeclareCursorStmt* _copyDeclareCursorStmt ( const DeclareCursorStmt from)
static

Definition at line 3193 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3194 {
3196 
3197  COPY_STRING_FIELD(portalname);
3199  COPY_NODE_FIELD(query);
3200 
3201  return newnode;
3202 }
#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:560

◆ _copyDefElem()

static DefElem* _copyDefElem ( const DefElem from)
static

Definition at line 2864 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2865 {
2866  DefElem *newnode = makeNode(DefElem);
2867 
2868  COPY_STRING_FIELD(defnamespace);
2869  COPY_STRING_FIELD(defname);
2871  COPY_SCALAR_FIELD(defaction);
2872  COPY_LOCATION_FIELD(location);
2873 
2874  return newnode;
2875 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560
void * arg

◆ _copyDefineStmt()

static DefineStmt* _copyDefineStmt ( const DefineStmt from)
static

Definition at line 3296 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3297 {
3298  DefineStmt *newnode = makeNode(DefineStmt);
3299 
3300  COPY_SCALAR_FIELD(kind);
3301  COPY_SCALAR_FIELD(oldstyle);
3302  COPY_NODE_FIELD(defnames);
3304  COPY_NODE_FIELD(definition);
3305  COPY_SCALAR_FIELD(if_not_exists);
3306 
3307  return newnode;
3308 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDeleteStmt()

static DeleteStmt* _copyDeleteStmt ( const DeleteStmt from)
static

Definition at line 3000 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3001 {
3002  DeleteStmt *newnode = makeNode(DeleteStmt);
3003 
3004  COPY_NODE_FIELD(relation);
3005  COPY_NODE_FIELD(usingClause);
3006  COPY_NODE_FIELD(whereClause);
3007  COPY_NODE_FIELD(returningList);
3008  COPY_NODE_FIELD(withClause);
3009 
3010  return newnode;
3011 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDiscardStmt()

static DiscardStmt* _copyDiscardStmt ( const DiscardStmt from)
static

Definition at line 3910 of file copyfuncs.c.

References COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3911 {
3912  DiscardStmt *newnode = makeNode(DiscardStmt);
3913 
3914  COPY_SCALAR_FIELD(target);
3915 
3916  return newnode;
3917 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDistinctExpr()

static DistinctExpr* _copyDistinctExpr ( const DistinctExpr from)
static

Definition at line 1499 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1500 {
1501  DistinctExpr *newnode = makeNode(DistinctExpr);
1502 
1503  COPY_SCALAR_FIELD(opno);
1504  COPY_SCALAR_FIELD(opfuncid);
1505  COPY_SCALAR_FIELD(opresulttype);
1506  COPY_SCALAR_FIELD(opretset);
1507  COPY_SCALAR_FIELD(opcollid);
1508  COPY_SCALAR_FIELD(inputcollid);
1510  COPY_LOCATION_FIELD(location);
1511 
1512  return newnode;
1513 }
#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:560

◆ _copyDoStmt()

static DoStmt* _copyDoStmt ( const DoStmt from)
static

Definition at line 3458 of file copyfuncs.c.

References generate_unaccent_rules::args, COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3459 {
3460  DoStmt *newnode = makeNode(DoStmt);
3461 
3463 
3464  return newnode;
3465 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDropdbStmt()

static DropdbStmt* _copyDropdbStmt ( const DropdbStmt from)
static

Definition at line 3768 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, dbname, and makeNode.

Referenced by copyObjectImpl().

3769 {
3770  DropdbStmt *newnode = makeNode(DropdbStmt);
3771 
3773  COPY_SCALAR_FIELD(missing_ok);
3774 
3775  return newnode;
3776 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
char * dbname
Definition: streamutil.c:42

◆ _copyDropOwnedStmt()

static DropOwnedStmt* _copyDropOwnedStmt ( const DropOwnedStmt from)
static

Definition at line 4368 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4369 {
4370  DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
4371 
4372  COPY_NODE_FIELD(roles);
4373  COPY_SCALAR_FIELD(behavior);
4374 
4375  return newnode;
4376 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDropRoleStmt()

static DropRoleStmt* _copyDropRoleStmt ( const DropRoleStmt from)
static

Definition at line 4247 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4248 {
4249  DropRoleStmt *newnode = makeNode(DropRoleStmt);
4250 
4251  COPY_NODE_FIELD(roles);
4252  COPY_SCALAR_FIELD(missing_ok);
4253 
4254  return newnode;
4255 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDropStmt()

static DropStmt* _copyDropStmt ( const DropStmt from)
static

Definition at line 3311 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3312 {
3313  DropStmt *newnode = makeNode(DropStmt);
3314 
3315  COPY_NODE_FIELD(objects);
3316  COPY_SCALAR_FIELD(removeType);
3317  COPY_SCALAR_FIELD(behavior);
3318  COPY_SCALAR_FIELD(missing_ok);
3319  COPY_SCALAR_FIELD(concurrent);
3320 
3321  return newnode;
3322 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDropSubscriptionStmt()

static DropSubscriptionStmt* _copyDropSubscriptionStmt ( const DropSubscriptionStmt from)
static

Definition at line 4567 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4568 {
4570 
4571  COPY_STRING_FIELD(subname);
4572  COPY_SCALAR_FIELD(missing_ok);
4573  COPY_SCALAR_FIELD(behavior);
4574 
4575  return newnode;
4576 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDropTableSpaceStmt()

static DropTableSpaceStmt* _copyDropTableSpaceStmt ( const DropTableSpaceStmt from)
static

Definition at line 3933 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3934 {
3936 
3937  COPY_STRING_FIELD(tablespacename);
3938  COPY_SCALAR_FIELD(missing_ok);
3939 
3940  return newnode;
3941 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyDropUserMappingStmt()

static DropUserMappingStmt* _copyDropUserMappingStmt ( const DropUserMappingStmt from)
static

Definition at line 4083 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4084 {
4086 
4088  COPY_STRING_FIELD(servername);
4089  COPY_SCALAR_FIELD(missing_ok);
4090 
4091  return newnode;
4092 }
#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:560
static char * user
Definition: pg_regress.c:93

◆ _copyExecuteStmt()

static ExecuteStmt* _copyExecuteStmt ( const ExecuteStmt from)
static

Definition at line 4347 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_STRING_FIELD, makeNode, and name.

Referenced by copyObjectImpl().

4348 {
4349  ExecuteStmt *newnode = makeNode(ExecuteStmt);
4350 
4352  COPY_NODE_FIELD(params);
4353 
4354  return newnode;
4355 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
const char * name
Definition: encode.c:521

◆ _copyExplainStmt()

static ExplainStmt* _copyExplainStmt ( const ExplainStmt from)
static

Definition at line 3802 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

3803 {
3804  ExplainStmt *newnode = makeNode(ExplainStmt);
3805 
3806  COPY_NODE_FIELD(query);
3808 
3809  return newnode;
3810 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyExtensibleNode()

static ExtensibleNode* _copyExtensibleNode ( const ExtensibleNode from)
static

Definition at line 4625 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4626 {
4627  ExtensibleNode *newnode;
4628  const ExtensibleNodeMethods *methods;
4629 
4630  methods = GetExtensibleNodeMethods(from->extnodename, false);
4631  newnode = (ExtensibleNode *) newNode(methods->node_size,
4633  COPY_STRING_FIELD(extnodename);
4634 
4635  /* copy the private fields */
4636  methods->nodeCopy(newnode, from);
4637 
4638  return newnode;
4639 }
#define newNode(size, tag)
Definition: nodes.h:550
#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 3362 of file copyfuncs.c.

References COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3363 {
3364  FetchStmt *newnode = makeNode(FetchStmt);
3365 
3366  COPY_SCALAR_FIELD(direction);
3367  COPY_SCALAR_FIELD(howMany);
3368  COPY_STRING_FIELD(portalname);
3369  COPY_SCALAR_FIELD(ismove);
3370 
3371  return newnode;
3372 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyFieldSelect()

static FieldSelect* _copyFieldSelect ( const FieldSelect from)
static

Definition at line 1631 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1632 {
1633  FieldSelect *newnode = makeNode(FieldSelect);
1634 
1636  COPY_SCALAR_FIELD(fieldnum);
1637  COPY_SCALAR_FIELD(resulttype);
1638  COPY_SCALAR_FIELD(resulttypmod);
1639  COPY_SCALAR_FIELD(resultcollid);
1640 
1641  return newnode;
1642 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560
void * arg

◆ _copyFieldStore()

static FieldStore* _copyFieldStore ( const FieldStore from)
static

Definition at line 1648 of file copyfuncs.c.

References arg, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

1649 {
1650  FieldStore *newnode = makeNode(FieldStore);
1651 
1653  COPY_NODE_FIELD(newvals);
1654  COPY_NODE_FIELD(fieldnums);
1655  COPY_SCALAR_FIELD(resulttype);
1656 
1657  return newnode;
1658 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560
void * arg

◆ _copyForeignKeyCacheInfo()

static ForeignKeyCacheInfo* _copyForeignKeyCacheInfo ( const ForeignKeyCacheInfo from)
static

Definition at line 4676 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4677 {
4679 
4680  COPY_SCALAR_FIELD(conrelid);
4681  COPY_SCALAR_FIELD(confrelid);
4682  COPY_SCALAR_FIELD(nkeys);
4683  /* COPY_SCALAR_FIELD might work for these, but let's not assume that */
4684  memcpy(newnode->conkey, from->conkey, sizeof(newnode->conkey));
4685  memcpy(newnode->confkey, from->confkey, sizeof(newnode->confkey));
4686  memcpy(newnode->conpfeqop, from->conpfeqop, sizeof(newnode->conpfeqop));
4687 
4688  return newnode;
4689 }
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:243
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define makeNode(_type_)
Definition: nodes.h:560
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:245
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:244

◆ _copyForeignScan()

static ForeignScan* _copyForeignScan ( const ForeignScan from)
static

Definition at line 739 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyFromExpr()

static FromExpr* _copyFromExpr ( const FromExpr from)
static

Definition at line 2098 of file copyfuncs.c.

References COPY_NODE_FIELD, and makeNode.

Referenced by copyObjectImpl().

2099 {
2100  FromExpr *newnode = makeNode(FromExpr);
2101 
2102  COPY_NODE_FIELD(fromlist);
2103  COPY_NODE_FIELD(quals);
2104 
2105  return newnode;
2106 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyFuncCall()

static FuncCall* _copyFuncCall ( const FuncCall from)
static

Definition at line 2557 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2558 {
2559  FuncCall *newnode = makeNode(FuncCall);
2560 
2561  COPY_NODE_FIELD(funcname);
2563  COPY_NODE_FIELD(agg_order);
2564  COPY_NODE_FIELD(agg_filter);
2565  COPY_SCALAR_FIELD(agg_within_group);
2566  COPY_SCALAR_FIELD(agg_star);
2567  COPY_SCALAR_FIELD(agg_distinct);
2568  COPY_SCALAR_FIELD(func_variadic);
2569  COPY_NODE_FIELD(over);
2570  COPY_LOCATION_FIELD(location);
2571 
2572  return newnode;
2573 }
#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:560

◆ _copyFuncExpr()

static FuncExpr* _copyFuncExpr ( const FuncExpr from)
static

Definition at line 1442 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1443 {
1444  FuncExpr *newnode = makeNode(FuncExpr);
1445 
1446  COPY_SCALAR_FIELD(funcid);
1447  COPY_SCALAR_FIELD(funcresulttype);
1448  COPY_SCALAR_FIELD(funcretset);
1449  COPY_SCALAR_FIELD(funcvariadic);
1450  COPY_SCALAR_FIELD(funcformat);
1451  COPY_SCALAR_FIELD(funccollid);
1452  COPY_SCALAR_FIELD(inputcollid);
1454  COPY_LOCATION_FIELD(location);
1455 
1456  return newnode;
1457 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define COPY_LOCATION_FIELD(fldname)
Definition: copyfuncs.c:65
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyFunctionParameter()

static FunctionParameter* _copyFunctionParameter ( const FunctionParameter from)
static

Definition at line 3433 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

3434 {
3436 
3438  COPY_NODE_FIELD(argType);
3439  COPY_SCALAR_FIELD(mode);
3440  COPY_NODE_FIELD(defexpr);
3441 
3442  return newnode;
3443 }
#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:560
const char * name
Definition: encode.c:521

◆ _copyFunctionScan()

static FunctionScan* _copyFunctionScan ( const FunctionScan from)
static

Definition at line 611 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGather()

static Gather* _copyGather ( const Gather from)
static

Definition at line 352 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGatherMerge()

static GatherMerge* _copyGatherMerge ( const GatherMerge from)
static

Definition at line 377 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGrantRoleStmt()

static GrantRoleStmt* _copyGrantRoleStmt ( const GrantRoleStmt from)
static

Definition at line 3167 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3168 {
3169  GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
3170 
3171  COPY_NODE_FIELD(granted_roles);
3172  COPY_NODE_FIELD(grantee_roles);
3173  COPY_SCALAR_FIELD(is_grant);
3174  COPY_SCALAR_FIELD(admin_opt);
3175  COPY_NODE_FIELD(grantor);
3176  COPY_SCALAR_FIELD(behavior);
3177 
3178  return newnode;
3179 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyGrantStmt()

static GrantStmt* _copyGrantStmt ( const GrantStmt from)
static

Definition at line 3127 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

3128 {
3129  GrantStmt *newnode = makeNode(GrantStmt);
3130 
3131  COPY_SCALAR_FIELD(is_grant);
3132  COPY_SCALAR_FIELD(targtype);
3133  COPY_SCALAR_FIELD(objtype);
3134  COPY_NODE_FIELD(objects);
3135  COPY_NODE_FIELD(privileges);
3136  COPY_NODE_FIELD(grantees);
3137  COPY_SCALAR_FIELD(grant_option);
3138  COPY_SCALAR_FIELD(behavior);
3139 
3140  return newnode;
3141 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyGroup()

static Group* _copyGroup ( const Group from)
static

Definition at line 949 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyGroupingFunc()

static GroupingFunc* _copyGroupingFunc ( const GroupingFunc from)
static

Definition at line 1383 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1384 {
1385  GroupingFunc *newnode = makeNode(GroupingFunc);
1386 
1388  COPY_NODE_FIELD(refs);
1389  COPY_NODE_FIELD(cols);
1390  COPY_SCALAR_FIELD(agglevelsup);
1391  COPY_LOCATION_FIELD(location);
1392 
1393  return newnode;
1394 }
#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:560

◆ _copyGroupingSet()

static GroupingSet* _copyGroupingSet ( const GroupingSet from)
static

Definition at line 2389 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2390 {
2391  GroupingSet *newnode = makeNode(GroupingSet);
2392 
2393  COPY_SCALAR_FIELD(kind);
2394  COPY_NODE_FIELD(content);
2395  COPY_LOCATION_FIELD(location);
2396 
2397  return newnode;
2398 }
#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:560

◆ _copyHash()

static Hash* _copyHash ( const Hash from)
static

Definition at line 1045 of file copyfuncs.c.

References COPY_SCALAR_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1046 {
1047  Hash *newnode = makeNode(Hash);
1048 
1049  /*
1050  * copy node superclass fields
1051  */
1052  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1053 
1054  /*
1055  * copy remainder of node
1056  */
1057  COPY_SCALAR_FIELD(skewTable);
1058  COPY_SCALAR_FIELD(skewColumn);
1059  COPY_SCALAR_FIELD(skewInherit);
1060 
1061  return newnode;
1062 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyHashJoin()

static HashJoin* _copyHashJoin ( const HashJoin from)
static

Definition at line 887 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyImportForeignSchemaStmt()

static ImportForeignSchemaStmt* _copyImportForeignSchemaStmt ( const ImportForeignSchemaStmt from)
static

Definition at line 4108 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

4109 {
4111 
4112  COPY_STRING_FIELD(server_name);
4113  COPY_STRING_FIELD(remote_schema);
4114  COPY_STRING_FIELD(local_schema);
4115  COPY_SCALAR_FIELD(list_type);
4116  COPY_NODE_FIELD(table_list);
4118 
4119  return newnode;
4120 }
#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:560

◆ _copyIndexElem()

static IndexElem* _copyIndexElem ( const IndexElem from)
static

Definition at line 2788 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

2789 {
2790  IndexElem *newnode = makeNode(IndexElem);
2791 
2793  COPY_NODE_FIELD(expr);
2794  COPY_STRING_FIELD(indexcolname);
2795  COPY_NODE_FIELD(collation);
2796  COPY_NODE_FIELD(opclass);
2797  COPY_SCALAR_FIELD(ordering);
2798  COPY_SCALAR_FIELD(nulls_ordering);
2799 
2800  return newnode;
2801 }
#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:560
const char * name
Definition: encode.c:521

◆ _copyIndexOnlyScan()

static IndexOnlyScan* _copyIndexOnlyScan ( const IndexOnlyScan from)
static

Definition at line 499 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexScan()

static IndexScan* _copyIndexScan ( const IndexScan from)
static

Definition at line 472 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

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

◆ _copyIndexStmt()

static IndexStmt* _copyIndexStmt ( const IndexStmt from)
static

Definition at line 3375 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3376 {
3377  IndexStmt *newnode = makeNode(IndexStmt);
3378 
3379  COPY_STRING_FIELD(idxname);
3380  COPY_NODE_FIELD(relation);
3381  COPY_STRING_FIELD(accessMethod);
3382  COPY_STRING_FIELD(tableSpace);
3383  COPY_NODE_FIELD(indexParams);
3385  COPY_NODE_FIELD(whereClause);
3386  COPY_NODE_FIELD(excludeOpNames);
3387  COPY_STRING_FIELD(idxcomment);
3388  COPY_SCALAR_FIELD(indexOid);
3389  COPY_SCALAR_FIELD(oldNode);
3390  COPY_SCALAR_FIELD(unique);
3391  COPY_SCALAR_FIELD(primary);
3392  COPY_SCALAR_FIELD(isconstraint);
3393  COPY_SCALAR_FIELD(deferrable);
3394  COPY_SCALAR_FIELD(initdeferred);
3395  COPY_SCALAR_FIELD(transformed);
3396  COPY_SCALAR_FIELD(concurrent);
3397  COPY_SCALAR_FIELD(if_not_exists);
3398 
3399  return newnode;
3400 }
#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:560

◆ _copyInferClause()

static InferClause* _copyInferClause ( const InferClause from)
static

Definition at line 2444 of file copyfuncs.c.

References COPY_LOCATION_FIELD, COPY_NODE_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

2445 {
2446  InferClause *newnode = makeNode(InferClause);
2447 
2448  COPY_NODE_FIELD(indexElems);
2449  COPY_NODE_FIELD(whereClause);
2450  COPY_STRING_FIELD(conname);
2451  COPY_LOCATION_FIELD(location);
2452 
2453  return newnode;
2454 }
#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:560

◆ _copyInferenceElem()

static InferenceElem* _copyInferenceElem ( const InferenceElem from)
static

Definition at line 2031 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2032 {
2033  InferenceElem *newnode = makeNode(InferenceElem);
2034 
2035  COPY_NODE_FIELD(expr);
2036  COPY_SCALAR_FIELD(infercollid);
2037  COPY_SCALAR_FIELD(inferopclass);
2038 
2039  return newnode;
2040 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyInsertStmt()

static InsertStmt* _copyInsertStmt ( const InsertStmt from)
static

Definition at line 2984 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2985 {
2986  InsertStmt *newnode = makeNode(InsertStmt);
2987 
2988  COPY_NODE_FIELD(relation);
2989  COPY_NODE_FIELD(cols);
2990  COPY_NODE_FIELD(selectStmt);
2991  COPY_NODE_FIELD(onConflictClause);
2992  COPY_NODE_FIELD(returningList);
2993  COPY_NODE_FIELD(withClause);
2994  COPY_SCALAR_FIELD(override);
2995 
2996  return newnode;
2997 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyIntoClause()

static IntoClause* _copyIntoClause ( const IntoClause from)
static

Definition at line 1251 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

1252 {
1253  IntoClause *newnode = makeNode(IntoClause);
1254 
1255  COPY_NODE_FIELD(rel);
1256  COPY_NODE_FIELD(colNames);
1258  COPY_SCALAR_FIELD(onCommit);
1259  COPY_STRING_FIELD(tableSpaceName);
1260  COPY_NODE_FIELD(viewQuery);
1261  COPY_SCALAR_FIELD(skipData);
1262 
1263  return newnode;
1264 }
#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:560

◆ _copyJoin()

static Join* _copyJoin ( const Join from)
static

Definition at line 817 of file copyfuncs.c.

References CopyJoinFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyJoinExpr()

static JoinExpr* _copyJoinExpr ( const JoinExpr from)
static

Definition at line 2078 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2079 {
2080  JoinExpr *newnode = makeNode(JoinExpr);
2081 
2082  COPY_SCALAR_FIELD(jointype);
2083  COPY_SCALAR_FIELD(isNatural);
2084  COPY_NODE_FIELD(larg);
2085  COPY_NODE_FIELD(rarg);
2086  COPY_NODE_FIELD(usingClause);
2087  COPY_NODE_FIELD(quals);
2088  COPY_NODE_FIELD(alias);
2089  COPY_SCALAR_FIELD(rtindex);
2090 
2091  return newnode;
2092 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyLimit()

static Limit* _copyLimit ( const Limit from)
static

Definition at line 1118 of file copyfuncs.c.

References COPY_NODE_FIELD, CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

1119 {
1120  Limit *newnode = makeNode(Limit);
1121 
1122  /*
1123  * copy node superclass fields
1124  */
1125  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1126 
1127  /*
1128  * copy remainder of node
1129  */
1130  COPY_NODE_FIELD(limitOffset);
1131  COPY_NODE_FIELD(limitCount);
1132 
1133  return newnode;
1134 }
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyList()

static List* _copyList ( const List from)
static

Definition at line 4593 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

4594 {
4595  List *new;
4596  ListCell *curr_old;
4597  ListCell *prev_new;
4598 
4599  Assert(list_length(from) >= 1);
4600 
4601  new = makeNode(List);
4602  new->length = from->length;
4603 
4604  COPY_NODE_CELL(new->head, from->head);
4605  prev_new = new->head;
4606  curr_old = lnext(from->head);
4607 
4608  while (curr_old)
4609  {
4610  COPY_NODE_CELL(prev_new->next, curr_old);
4611  prev_new = prev_new->next;
4612  curr_old = curr_old->next;
4613  }
4614  prev_new->next = NULL;
4615  new->tail = prev_new;
4616 
4617  return new;
4618 }
#define lnext(lc)
Definition: pg_list.h:105
#define COPY_NODE_CELL(new, old)
Definition: copyfuncs.c:4588
#define makeNode(_type_)
Definition: nodes.h:560
ListCell * next
Definition: pg_list.h:61
#define Assert(condition)
Definition: c.h:680
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 3563 of file copyfuncs.c.

References COPY_STRING_FIELD, and makeNode.

Referenced by copyObjectImpl().

3564 {
3565  ListenStmt *newnode = makeNode(ListenStmt);
3566 
3567  COPY_STRING_FIELD(conditionname);
3568 
3569  return newnode;
3570 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyLoadStmt()

static LoadStmt* _copyLoadStmt ( const LoadStmt from)
static

Definition at line 3658 of file copyfuncs.c.

References COPY_STRING_FIELD, filename, and makeNode.

Referenced by copyObjectImpl().

3659 {
3660  LoadStmt *newnode = makeNode(LoadStmt);
3661 
3663 
3664  return newnode;
3665 }
#define COPY_STRING_FIELD(fldname)
Definition: copyfuncs.c:53
#define makeNode(_type_)
Definition: nodes.h:560
static char * filename
Definition: pg_dumpall.c:90

◆ _copyLockingClause()

static LockingClause* _copyLockingClause ( const LockingClause from)
static

Definition at line 2878 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

2879 {
2880  LockingClause *newnode = makeNode(LockingClause);
2881 
2882  COPY_NODE_FIELD(lockedRels);
2883  COPY_SCALAR_FIELD(strength);
2884  COPY_SCALAR_FIELD(waitPolicy);
2885 
2886  return newnode;
2887 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyLockRows()

static LockRows* _copyLockRows ( const LockRows from)
static

Definition at line 1096 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

1097 {
1098  LockRows *newnode = makeNode(LockRows);
1099 
1100  /*
1101  * copy node superclass fields
1102  */
1103  CopyPlanFields((const Plan *) from, (Plan *) newnode);
1104 
1105  /*
1106  * copy remainder of node
1107  */
1108  COPY_NODE_FIELD(rowMarks);
1109  COPY_SCALAR_FIELD(epqParam);
1110 
1111  return newnode;
1112 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyLockStmt()

static LockStmt* _copyLockStmt ( const LockStmt from)
static

Definition at line 4258 of file copyfuncs.c.

References COPY_NODE_FIELD, COPY_SCALAR_FIELD, and makeNode.

Referenced by copyObjectImpl().

4259 {
4260  LockStmt *newnode = makeNode(LockStmt);
4261 
4262  COPY_NODE_FIELD(relations);
4263  COPY_SCALAR_FIELD(mode);
4264  COPY_SCALAR_FIELD(nowait);
4265 
4266  return newnode;
4267 }
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
#define makeNode(_type_)
Definition: nodes.h:560

◆ _copyMaterial()

static Material* _copyMaterial ( const Material from)
static

Definition at line 909 of file copyfuncs.c.

References CopyPlanFields(), and makeNode.

Referenced by copyObjectImpl().

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

◆ _copyMergeAppend()

static MergeAppend* _copyMergeAppend ( const MergeAppend from)
static

Definition at line 254 of file copyfuncs.c.

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

Referenced by copyObjectImpl().

255 {
256  MergeAppend *newnode = makeNode(MergeAppend);
257 
258  /*
259  * copy node superclass fields
260  */
261  CopyPlanFields((const Plan *) from, (Plan *) newnode);
262 
263  /*
264  * copy remainder of node
265  */
266  COPY_NODE_FIELD(partitioned_rels);
267  COPY_NODE_FIELD(mergeplans);
268  COPY_SCALAR_FIELD(numCols);
269  COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
270  COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
271  COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
272  COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
273 
274  return newnode;
275 }
unsigned int Oid
Definition: postgres_ext.h:31
#define COPY_POINTER_FIELD(fldname, sz)
Definition: copyfuncs.c:57
#define COPY_SCALAR_FIELD(fldname)
Definition: copyfuncs.c:41
#define COPY_NODE_FIELD(fldname)
Definition: copyfuncs.c:45
static void CopyPlanFields(const Plan *from, Plan *newnode)
Definition: copyfuncs.c:115
#define makeNode(_type_)
Definition: nodes.h:560
int16 AttrNumber
Definition: attnum.h:21

◆ _copyMergeJoin()

static MergeJoin* _copyMergeJoin ( const MergeJoin