41 #define COPY_SCALAR_FIELD(fldname) \ 42 (newnode->fldname = from->fldname) 45 #define COPY_NODE_FIELD(fldname) \ 46 (newnode->fldname = copyObjectImpl(from->fldname)) 49 #define COPY_BITMAPSET_FIELD(fldname) \ 50 (newnode->fldname = bms_copy(from->fldname)) 53 #define COPY_STRING_FIELD(fldname) \ 54 (newnode->fldname = from->fldname ? pstrdup(from->fldname) : (char *) NULL) 57 #define COPY_POINTER_FIELD(fldname, sz) \ 60 newnode->fldname = palloc(_size); \ 61 memcpy(newnode->fldname, from->fldname, _size); \ 65 #define COPY_LOCATION_FIELD(fldname) \ 66 (newnode->fldname = from->fldname) 296 if (from->numCols > 0)
1037 if (from->numCols > 0)
1064 if (from->partNumCols > 0)
1071 if (from->ordNumCols > 0)
2724 elog(
ERROR,
"unrecognized node type: %d",
4854 elog(
ERROR,
"unrecognized node type: %d",
static PartitionPruneStepOp * _copyPartitionPruneStepOp(const PartitionPruneStepOp *from)
static Limit * _copyLimit(const Limit *from)
#define COPY_BITMAPSET_FIELD(fldname)
static WindowClause * _copyWindowClause(const WindowClause *from)
static CreateEnumStmt * _copyCreateEnumStmt(const CreateEnumStmt *from)
static RefreshMatViewStmt * _copyRefreshMatViewStmt(const RefreshMatViewStmt *from)
static RangeSubselect * _copyRangeSubselect(const RangeSubselect *from)
static AlterSystemStmt * _copyAlterSystemStmt(const AlterSystemStmt *from)
static DeallocateStmt * _copyDeallocateStmt(const DeallocateStmt *from)
static PlanInvalItem * _copyPlanInvalItem(const PlanInvalItem *from)
static Scan * _copyScan(const Scan *from)
static AlterEventTrigStmt * _copyAlterEventTrigStmt(const AlterEventTrigStmt *from)
static PgChecksumMode mode
static SeqScan * _copySeqScan(const SeqScan *from)
static AlterTableMoveAllStmt * _copyAlterTableMoveAllStmt(const AlterTableMoveAllStmt *from)
static DiscardStmt * _copyDiscardStmt(const DiscardStmt *from)
static DeleteStmt * _copyDeleteStmt(const DeleteStmt *from)
static Unique * _copyUnique(const Unique *from)
Datum boolop(PG_FUNCTION_ARGS)
static BitmapAnd * _copyBitmapAnd(const BitmapAnd *from)
static AccessPriv * _copyAccessPriv(const AccessPriv *from)
static FromExpr * _copyFromExpr(const FromExpr *from)
static DropStmt * _copyDropStmt(const DropStmt *from)
static Plan * _copyPlan(const Plan *from)
static PartitionedRelPruneInfo * _copyPartitionedRelPruneInfo(const PartitionedRelPruneInfo *from)
static LockStmt * _copyLockStmt(const LockStmt *from)
static RowMarkClause * _copyRowMarkClause(const RowMarkClause *from)
static Var * _copyVar(const Var *from)
static ValuesScan * _copyValuesScan(const ValuesScan *from)
static AlterForeignServerStmt * _copyAlterForeignServerStmt(const AlterForeignServerStmt *from)
static RowExpr * _copyRowExpr(const RowExpr *from)
static VariableShowStmt * _copyVariableShowStmt(const VariableShowStmt *from)
static PLAssignStmt * _copyPLAssignStmt(const PLAssignStmt *from)
static TransactionStmt * _copyTransactionStmt(const TransactionStmt *from)
static AlterTypeStmt * _copyAlterTypeStmt(const AlterTypeStmt *from)
static TableLikeClause * _copyTableLikeClause(const TableLikeClause *from)
static CreatePolicyStmt * _copyCreatePolicyStmt(const CreatePolicyStmt *from)
static AlterEnumStmt * _copyAlterEnumStmt(const AlterEnumStmt *from)