constify-1.patch
text/x-patch
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| src/backend/nodes/copyfuncs.c | 0 | 0 |
| src/backend/nodes/equalfuncs.c | 0 | 0 |
| src/backend/nodes/list.c | 0 | 0 |
| src/backend/nodes/nodeFuncs.c | 0 | 0 |
| src/backend/nodes/outfuncs.c | 0 | 0 |
| src/backend/nodes/print.c | 0 | 0 |
| src/include/nodes/nodeFuncs.h | 0 | 0 |
| src/include/nodes/nodes.h | 0 | 0 |
| src/include/nodes/pg_list.h | 0 | 0 |
| src/include/nodes/print.h | 0 | 0 |
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
new file mode 100644
index 63958c3..fb66b43
*** a/src/backend/nodes/copyfuncs.c
--- b/src/backend/nodes/copyfuncs.c
***************
*** 72,78 ****
* _copyPlannedStmt
*/
static PlannedStmt *
! _copyPlannedStmt(PlannedStmt *from)
{
PlannedStmt *newnode = makeNode(PlannedStmt);
--- 72,78 ----
* _copyPlannedStmt
*/
static PlannedStmt *
! _copyPlannedStmt(const PlannedStmt *from)
{
PlannedStmt *newnode = makeNode(PlannedStmt);
*************** _copyPlannedStmt(PlannedStmt *from)
*** 103,109 ****
* all the copy functions for classes which inherit from Plan.
*/
static void
! CopyPlanFields(Plan *from, Plan *newnode)
{
COPY_SCALAR_FIELD(startup_cost);
COPY_SCALAR_FIELD(total_cost);
--- 103,109 ----
* all the copy functions for classes which inherit from Plan.
*/
static void
! CopyPlanFields(const Plan *from, Plan *newnode)
{
COPY_SCALAR_FIELD(startup_cost);
COPY_SCALAR_FIELD(total_cost);
*************** CopyPlanFields(Plan *from, Plan *newnode
*** 122,128 ****
* _copyPlan
*/
static Plan *
! _copyPlan(Plan *from)
{
Plan *newnode = makeNode(Plan);
--- 122,128 ----
* _copyPlan
*/
static Plan *
! _copyPlan(const Plan *from)
{
Plan *newnode = makeNode(Plan);
*************** _copyPlan(Plan *from)
*** 139,145 ****
* _copyResult
*/
static Result *
! _copyResult(Result *from)
{
Result *newnode = makeNode(Result);
--- 139,145 ----
* _copyResult
*/
static Result *
! _copyResult(const Result *from)
{
Result *newnode = makeNode(Result);
*************** _copyResult(Result *from)
*** 160,166 ****
* _copyModifyTable
*/
static ModifyTable *
! _copyModifyTable(ModifyTable *from)
{
ModifyTable *newnode = makeNode(ModifyTable);
--- 160,166 ----
* _copyModifyTable
*/
static ModifyTable *
! _copyModifyTable(const ModifyTable *from)
{
ModifyTable *newnode = makeNode(ModifyTable);
*************** _copyModifyTable(ModifyTable *from)
*** 188,194 ****
* _copyAppend
*/
static Append *
! _copyAppend(Append *from)
{
Append *newnode = makeNode(Append);
--- 188,194 ----
* _copyAppend
*/
static Append *
! _copyAppend(const Append *from)
{
Append *newnode = makeNode(Append);
*************** _copyAppend(Append *from)
*** 209,215 ****
* _copyMergeAppend
*/
static MergeAppend *
! _copyMergeAppend(MergeAppend *from)
{
MergeAppend *newnode = makeNode(MergeAppend);
--- 209,215 ----
* _copyMergeAppend
*/
static MergeAppend *
! _copyMergeAppend(const MergeAppend *from)
{
MergeAppend *newnode = makeNode(MergeAppend);
*************** _copyMergeAppend(MergeAppend *from)
*** 235,241 ****
* _copyRecursiveUnion
*/
static RecursiveUnion *
! _copyRecursiveUnion(RecursiveUnion *from)
{
RecursiveUnion *newnode = makeNode(RecursiveUnion);
--- 235,241 ----
* _copyRecursiveUnion
*/
static RecursiveUnion *
! _copyRecursiveUnion(const RecursiveUnion *from)
{
RecursiveUnion *newnode = makeNode(RecursiveUnion);
*************** _copyRecursiveUnion(RecursiveUnion *from
*** 263,269 ****
* _copyBitmapAnd
*/
static BitmapAnd *
! _copyBitmapAnd(BitmapAnd *from)
{
BitmapAnd *newnode = makeNode(BitmapAnd);
--- 263,269 ----
* _copyBitmapAnd
*/
static BitmapAnd *
! _copyBitmapAnd(const BitmapAnd *from)
{
BitmapAnd *newnode = makeNode(BitmapAnd);
*************** _copyBitmapAnd(BitmapAnd *from)
*** 284,290 ****
* _copyBitmapOr
*/
static BitmapOr *
! _copyBitmapOr(BitmapOr *from)
{
BitmapOr *newnode = makeNode(BitmapOr);
--- 284,290 ----
* _copyBitmapOr
*/
static BitmapOr *
! _copyBitmapOr(const BitmapOr *from)
{
BitmapOr *newnode = makeNode(BitmapOr);
*************** _copyBitmapOr(BitmapOr *from)
*** 309,315 ****
* all the copy functions for classes which inherit from Scan.
*/
static void
! CopyScanFields(Scan *from, Scan *newnode)
{
CopyPlanFields((Plan *) from, (Plan *) newnode);
--- 309,315 ----
* all the copy functions for classes which inherit from Scan.
*/
static void
! CopyScanFields(const Scan *from, Scan *newnode)
{
CopyPlanFields((Plan *) from, (Plan *) newnode);
*************** CopyScanFields(Scan *from, Scan *newnode
*** 320,326 ****
* _copyScan
*/
static Scan *
! _copyScan(Scan *from)
{
Scan *newnode = makeNode(Scan);
--- 320,326 ----
* _copyScan
*/
static Scan *
! _copyScan(const Scan *from)
{
Scan *newnode = makeNode(Scan);
*************** _copyScan(Scan *from)
*** 336,342 ****
* _copySeqScan
*/
static SeqScan *
! _copySeqScan(SeqScan *from)
{
SeqScan *newnode = makeNode(SeqScan);
--- 336,342 ----
* _copySeqScan
*/
static SeqScan *
! _copySeqScan(const SeqScan *from)
{
SeqScan *newnode = makeNode(SeqScan);
*************** _copySeqScan(SeqScan *from)
*** 352,358 ****
* _copyIndexScan
*/
static IndexScan *
! _copyIndexScan(IndexScan *from)
{
IndexScan *newnode = makeNode(IndexScan);
--- 352,358 ----
* _copyIndexScan
*/
static IndexScan *
! _copyIndexScan(const IndexScan *from)
{
IndexScan *newnode = makeNode(IndexScan);
*************** _copyIndexScan(IndexScan *from)
*** 378,384 ****
* _copyIndexOnlyScan
*/
static IndexOnlyScan *
! _copyIndexOnlyScan(IndexOnlyScan *from)
{
IndexOnlyScan *newnode = makeNode(IndexOnlyScan);
--- 378,384 ----
* _copyIndexOnlyScan
*/
static IndexOnlyScan *
! _copyIndexOnlyScan(const IndexOnlyScan *from)
{
IndexOnlyScan *newnode = makeNode(IndexOnlyScan);
*************** _copyIndexOnlyScan(IndexOnlyScan *from)
*** 403,409 ****
* _copyBitmapIndexScan
*/
static BitmapIndexScan *
! _copyBitmapIndexScan(BitmapIndexScan *from)
{
BitmapIndexScan *newnode = makeNode(BitmapIndexScan);
--- 403,409 ----
* _copyBitmapIndexScan
*/
static BitmapIndexScan *
! _copyBitmapIndexScan(const BitmapIndexScan *from)
{
BitmapIndexScan *newnode = makeNode(BitmapIndexScan);
*************** _copyBitmapIndexScan(BitmapIndexScan *fr
*** 426,432 ****
* _copyBitmapHeapScan
*/
static BitmapHeapScan *
! _copyBitmapHeapScan(BitmapHeapScan *from)
{
BitmapHeapScan *newnode = makeNode(BitmapHeapScan);
--- 426,432 ----
* _copyBitmapHeapScan
*/
static BitmapHeapScan *
! _copyBitmapHeapScan(const BitmapHeapScan *from)
{
BitmapHeapScan *newnode = makeNode(BitmapHeapScan);
*************** _copyBitmapHeapScan(BitmapHeapScan *from
*** 447,453 ****
* _copyTidScan
*/
static TidScan *
! _copyTidScan(TidScan *from)
{
TidScan *newnode = makeNode(TidScan);
--- 447,453 ----
* _copyTidScan
*/
static TidScan *
! _copyTidScan(const TidScan *from)
{
TidScan *newnode = makeNode(TidScan);
*************** _copyTidScan(TidScan *from)
*** 468,474 ****
* _copySubqueryScan
*/
static SubqueryScan *
! _copySubqueryScan(SubqueryScan *from)
{
SubqueryScan *newnode = makeNode(SubqueryScan);
--- 468,474 ----
* _copySubqueryScan
*/
static SubqueryScan *
! _copySubqueryScan(const SubqueryScan *from)
{
SubqueryScan *newnode = makeNode(SubqueryScan);
*************** _copySubqueryScan(SubqueryScan *from)
*** 489,495 ****
* _copyFunctionScan
*/
static FunctionScan *
! _copyFunctionScan(FunctionScan *from)
{
FunctionScan *newnode = makeNode(FunctionScan);
--- 489,495 ----
* _copyFunctionScan
*/
static FunctionScan *
! _copyFunctionScan(const FunctionScan *from)
{
FunctionScan *newnode = makeNode(FunctionScan);
*************** _copyFunctionScan(FunctionScan *from)
*** 514,520 ****
* _copyValuesScan
*/
static ValuesScan *
! _copyValuesScan(ValuesScan *from)
{
ValuesScan *newnode = makeNode(ValuesScan);
--- 514,520 ----
* _copyValuesScan
*/
static ValuesScan *
! _copyValuesScan(const ValuesScan *from)
{
ValuesScan *newnode = makeNode(ValuesScan);
*************** _copyValuesScan(ValuesScan *from)
*** 535,541 ****
* _copyCteScan
*/
static CteScan *
! _copyCteScan(CteScan *from)
{
CteScan *newnode = makeNode(CteScan);
--- 535,541 ----
* _copyCteScan
*/
static CteScan *
! _copyCteScan(const CteScan *from)
{
CteScan *newnode = makeNode(CteScan);
*************** _copyCteScan(CteScan *from)
*** 557,563 ****
* _copyWorkTableScan
*/
static WorkTableScan *
! _copyWorkTableScan(WorkTableScan *from)
{
WorkTableScan *newnode = makeNode(WorkTableScan);
--- 557,563 ----
* _copyWorkTableScan
*/
static WorkTableScan *
! _copyWorkTableScan(const WorkTableScan *from)
{
WorkTableScan *newnode = makeNode(WorkTableScan);
*************** _copyWorkTableScan(WorkTableScan *from)
*** 578,584 ****
* _copyForeignScan
*/
static ForeignScan *
! _copyForeignScan(ForeignScan *from)
{
ForeignScan *newnode = makeNode(ForeignScan);
--- 578,584 ----
* _copyForeignScan
*/
static ForeignScan *
! _copyForeignScan(const ForeignScan *from)
{
ForeignScan *newnode = makeNode(ForeignScan);
*************** _copyForeignScan(ForeignScan *from)
*** 600,606 ****
* _copyFdwPlan
*/
static FdwPlan *
! _copyFdwPlan(FdwPlan *from)
{
FdwPlan *newnode = makeNode(FdwPlan);
--- 600,606 ----
* _copyFdwPlan
*/
static FdwPlan *
! _copyFdwPlan(const FdwPlan *from)
{
FdwPlan *newnode = makeNode(FdwPlan);
*************** _copyFdwPlan(FdwPlan *from)
*** 618,624 ****
* all the copy functions for classes which inherit from Join.
*/
static void
! CopyJoinFields(Join *from, Join *newnode)
{
CopyPlanFields((Plan *) from, (Plan *) newnode);
--- 618,624 ----
* all the copy functions for classes which inherit from Join.
*/
static void
! CopyJoinFields(const Join *from, Join *newnode)
{
CopyPlanFields((Plan *) from, (Plan *) newnode);
*************** CopyJoinFields(Join *from, Join *newnode
*** 631,637 ****
* _copyJoin
*/
static Join *
! _copyJoin(Join *from)
{
Join *newnode = makeNode(Join);
--- 631,637 ----
* _copyJoin
*/
static Join *
! _copyJoin(const Join *from)
{
Join *newnode = makeNode(Join);
*************** _copyJoin(Join *from)
*** 648,654 ****
* _copyNestLoop
*/
static NestLoop *
! _copyNestLoop(NestLoop *from)
{
NestLoop *newnode = makeNode(NestLoop);
--- 648,654 ----
* _copyNestLoop
*/
static NestLoop *
! _copyNestLoop(const NestLoop *from)
{
NestLoop *newnode = makeNode(NestLoop);
*************** _copyNestLoop(NestLoop *from)
*** 670,676 ****
* _copyMergeJoin
*/
static MergeJoin *
! _copyMergeJoin(MergeJoin *from)
{
MergeJoin *newnode = makeNode(MergeJoin);
int numCols;
--- 670,676 ----
* _copyMergeJoin
*/
static MergeJoin *
! _copyMergeJoin(const MergeJoin *from)
{
MergeJoin *newnode = makeNode(MergeJoin);
int numCols;
*************** _copyMergeJoin(MergeJoin *from)
*** 697,703 ****
* _copyHashJoin
*/
static HashJoin *
! _copyHashJoin(HashJoin *from)
{
HashJoin *newnode = makeNode(HashJoin);
--- 697,703 ----
* _copyHashJoin
*/
static HashJoin *
! _copyHashJoin(const HashJoin *from)
{
HashJoin *newnode = makeNode(HashJoin);
*************** _copyHashJoin(HashJoin *from)
*** 719,725 ****
* _copyMaterial
*/
static Material *
! _copyMaterial(Material *from)
{
Material *newnode = makeNode(Material);
--- 719,725 ----
* _copyMaterial
*/
static Material *
! _copyMaterial(const Material *from)
{
Material *newnode = makeNode(Material);
*************** _copyMaterial(Material *from)
*** 736,742 ****
* _copySort
*/
static Sort *
! _copySort(Sort *from)
{
Sort *newnode = makeNode(Sort);
--- 736,742 ----
* _copySort
*/
static Sort *
! _copySort(const Sort *from)
{
Sort *newnode = makeNode(Sort);
*************** _copySort(Sort *from)
*** 759,765 ****
* _copyGroup
*/
static Group *
! _copyGroup(Group *from)
{
Group *newnode = makeNode(Group);
--- 759,765 ----
* _copyGroup
*/
static Group *
! _copyGroup(const Group *from)
{
Group *newnode = makeNode(Group);
*************** _copyGroup(Group *from)
*** 776,782 ****
* _copyAgg
*/
static Agg *
! _copyAgg(Agg *from)
{
Agg *newnode = makeNode(Agg);
--- 776,782 ----
* _copyAgg
*/
static Agg *
! _copyAgg(const Agg *from)
{
Agg *newnode = makeNode(Agg);
*************** _copyAgg(Agg *from)
*** 798,804 ****
* _copyWindowAgg
*/
static WindowAgg *
! _copyWindowAgg(WindowAgg *from)
{
WindowAgg *newnode = makeNode(WindowAgg);
--- 798,804 ----
* _copyWindowAgg
*/
static WindowAgg *
! _copyWindowAgg(const WindowAgg *from)
{
WindowAgg *newnode = makeNode(WindowAgg);
*************** _copyWindowAgg(WindowAgg *from)
*** 828,834 ****
* _copyUnique
*/
static Unique *
! _copyUnique(Unique *from)
{
Unique *newnode = makeNode(Unique);
--- 828,834 ----
* _copyUnique
*/
static Unique *
! _copyUnique(const Unique *from)
{
Unique *newnode = makeNode(Unique);
*************** _copyUnique(Unique *from)
*** 851,857 ****
* _copyHash
*/
static Hash *
! _copyHash(Hash *from)
{
Hash *newnode = makeNode(Hash);
--- 851,857 ----
* _copyHash
*/
static Hash *
! _copyHash(const Hash *from)
{
Hash *newnode = makeNode(Hash);
*************** _copyHash(Hash *from)
*** 876,882 ****
* _copySetOp
*/
static SetOp *
! _copySetOp(SetOp *from)
{
SetOp *newnode = makeNode(SetOp);
--- 876,882 ----
* _copySetOp
*/
static SetOp *
! _copySetOp(const SetOp *from)
{
SetOp *newnode = makeNode(SetOp);
*************** _copySetOp(SetOp *from)
*** 904,910 ****
* _copyLockRows
*/
static LockRows *
! _copyLockRows(LockRows *from)
{
LockRows *newnode = makeNode(LockRows);
--- 904,910 ----
* _copyLockRows
*/
static LockRows *
! _copyLockRows(const LockRows *from)
{
LockRows *newnode = makeNode(LockRows);
*************** _copyLockRows(LockRows *from)
*** 926,932 ****
* _copyLimit
*/
static Limit *
! _copyLimit(Limit *from)
{
Limit *newnode = makeNode(Limit);
--- 926,932 ----
* _copyLimit
*/
static Limit *
! _copyLimit(const Limit *from)
{
Limit *newnode = makeNode(Limit);
*************** _copyLimit(Limit *from)
*** 948,954 ****
* _copyNestLoopParam
*/
static NestLoopParam *
! _copyNestLoopParam(NestLoopParam *from)
{
NestLoopParam *newnode = makeNode(NestLoopParam);
--- 948,954 ----
* _copyNestLoopParam
*/
static NestLoopParam *
! _copyNestLoopParam(const NestLoopParam *from)
{
NestLoopParam *newnode = makeNode(NestLoopParam);
*************** _copyNestLoopParam(NestLoopParam *from)
*** 962,968 ****
* _copyPlanRowMark
*/
static PlanRowMark *
! _copyPlanRowMark(PlanRowMark *from)
{
PlanRowMark *newnode = makeNode(PlanRowMark);
--- 962,968 ----
* _copyPlanRowMark
*/
static PlanRowMark *
! _copyPlanRowMark(const PlanRowMark *from)
{
PlanRowMark *newnode = makeNode(PlanRowMark);
*************** _copyPlanRowMark(PlanRowMark *from)
*** 980,986 ****
* _copyPlanInvalItem
*/
static PlanInvalItem *
! _copyPlanInvalItem(PlanInvalItem *from)
{
PlanInvalItem *newnode = makeNode(PlanInvalItem);
--- 980,986 ----
* _copyPlanInvalItem
*/
static PlanInvalItem *
! _copyPlanInvalItem(const PlanInvalItem *from)
{
PlanInvalItem *newnode = makeNode(PlanInvalItem);
*************** _copyPlanInvalItem(PlanInvalItem *from)
*** 999,1005 ****
* _copyAlias
*/
static Alias *
! _copyAlias(Alias *from)
{
Alias *newnode = makeNode(Alias);
--- 999,1005 ----
* _copyAlias
*/
static Alias *
! _copyAlias(const Alias *from)
{
Alias *newnode = makeNode(Alias);
*************** _copyAlias(Alias *from)
*** 1013,1019 ****
* _copyRangeVar
*/
static RangeVar *
! _copyRangeVar(RangeVar *from)
{
RangeVar *newnode = makeNode(RangeVar);
--- 1013,1019 ----
* _copyRangeVar
*/
static RangeVar *
! _copyRangeVar(const RangeVar *from)
{
RangeVar *newnode = makeNode(RangeVar);
*************** _copyRangeVar(RangeVar *from)
*** 1032,1038 ****
* _copyIntoClause
*/
static IntoClause *
! _copyIntoClause(IntoClause *from)
{
IntoClause *newnode = makeNode(IntoClause);
--- 1032,1038 ----
* _copyIntoClause
*/
static IntoClause *
! _copyIntoClause(const IntoClause *from)
{
IntoClause *newnode = makeNode(IntoClause);
*************** _copyIntoClause(IntoClause *from)
*** 1056,1062 ****
* _copyVar
*/
static Var *
! _copyVar(Var *from)
{
Var *newnode = makeNode(Var);
--- 1056,1062 ----
* _copyVar
*/
static Var *
! _copyVar(const Var *from)
{
Var *newnode = makeNode(Var);
*************** _copyVar(Var *from)
*** 1077,1083 ****
* _copyConst
*/
static Const *
! _copyConst(Const *from)
{
Const *newnode = makeNode(Const);
--- 1077,1083 ----
* _copyConst
*/
static Const *
! _copyConst(const Const *from)
{
Const *newnode = makeNode(Const);
*************** _copyConst(Const *from)
*** 1115,1121 ****
* _copyParam
*/
static Param *
! _copyParam(Param *from)
{
Param *newnode = makeNode(Param);
--- 1115,1121 ----
* _copyParam
*/
static Param *
! _copyParam(const Param *from)
{
Param *newnode = makeNode(Param);
*************** _copyParam(Param *from)
*** 1133,1139 ****
* _copyAggref
*/
static Aggref *
! _copyAggref(Aggref *from)
{
Aggref *newnode = makeNode(Aggref);
--- 1133,1139 ----
* _copyAggref
*/
static Aggref *
! _copyAggref(const Aggref *from)
{
Aggref *newnode = makeNode(Aggref);
*************** _copyAggref(Aggref *from)
*** 1155,1161 ****
* _copyWindowFunc
*/
static WindowFunc *
! _copyWindowFunc(WindowFunc *from)
{
WindowFunc *newnode = makeNode(WindowFunc);
--- 1155,1161 ----
* _copyWindowFunc
*/
static WindowFunc *
! _copyWindowFunc(const WindowFunc *from)
{
WindowFunc *newnode = makeNode(WindowFunc);
*************** _copyWindowFunc(WindowFunc *from)
*** 1176,1182 ****
* _copyArrayRef
*/
static ArrayRef *
! _copyArrayRef(ArrayRef *from)
{
ArrayRef *newnode = makeNode(ArrayRef);
--- 1176,1182 ----
* _copyArrayRef
*/
static ArrayRef *
! _copyArrayRef(const ArrayRef *from)
{
ArrayRef *newnode = makeNode(ArrayRef);
*************** _copyArrayRef(ArrayRef *from)
*** 1196,1202 ****
* _copyFuncExpr
*/
static FuncExpr *
! _copyFuncExpr(FuncExpr *from)
{
FuncExpr *newnode = makeNode(FuncExpr);
--- 1196,1202 ----
* _copyFuncExpr
*/
static FuncExpr *
! _copyFuncExpr(const FuncExpr *from)
{
FuncExpr *newnode = makeNode(FuncExpr);
*************** _copyFuncExpr(FuncExpr *from)
*** 1216,1222 ****
* _copyNamedArgExpr *
*/
static NamedArgExpr *
! _copyNamedArgExpr(NamedArgExpr *from)
{
NamedArgExpr *newnode = makeNode(NamedArgExpr);
--- 1216,1222 ----
* _copyNamedArgExpr *
*/
static NamedArgExpr *
! _copyNamedArgExpr(const NamedArgExpr *from)
{
NamedArgExpr *newnode = makeNode(NamedArgExpr);
*************** _copyNamedArgExpr(NamedArgExpr *from)
*** 1232,1238 ****
* _copyOpExpr
*/
static OpExpr *
! _copyOpExpr(OpExpr *from)
{
OpExpr *newnode = makeNode(OpExpr);
--- 1232,1238 ----
* _copyOpExpr
*/
static OpExpr *
! _copyOpExpr(const OpExpr *from)
{
OpExpr *newnode = makeNode(OpExpr);
*************** _copyOpExpr(OpExpr *from)
*** 1252,1258 ****
* _copyDistinctExpr (same as OpExpr)
*/
static DistinctExpr *
! _copyDistinctExpr(DistinctExpr *from)
{
DistinctExpr *newnode = makeNode(DistinctExpr);
--- 1252,1258 ----
* _copyDistinctExpr (same as OpExpr)
*/
static DistinctExpr *
! _copyDistinctExpr(const DistinctExpr *from)
{
DistinctExpr *newnode = makeNode(DistinctExpr);
*************** _copyDistinctExpr(DistinctExpr *from)
*** 1272,1278 ****
* _copyNullIfExpr (same as OpExpr)
*/
static NullIfExpr *
! _copyNullIfExpr(NullIfExpr *from)
{
NullIfExpr *newnode = makeNode(NullIfExpr);
--- 1272,1278 ----
* _copyNullIfExpr (same as OpExpr)
*/
static NullIfExpr *
! _copyNullIfExpr(const NullIfExpr *from)
{
NullIfExpr *newnode = makeNode(NullIfExpr);
*************** _copyNullIfExpr(NullIfExpr *from)
*** 1292,1298 ****
* _copyScalarArrayOpExpr
*/
static ScalarArrayOpExpr *
! _copyScalarArrayOpExpr(ScalarArrayOpExpr *from)
{
ScalarArrayOpExpr *newnode = makeNode(ScalarArrayOpExpr);
--- 1292,1298 ----
* _copyScalarArrayOpExpr
*/
static ScalarArrayOpExpr *
! _copyScalarArrayOpExpr(const ScalarArrayOpExpr *from)
{
ScalarArrayOpExpr *newnode = makeNode(ScalarArrayOpExpr);
*************** _copyScalarArrayOpExpr(ScalarArrayOpExpr
*** 1310,1316 ****
* _copyBoolExpr
*/
static BoolExpr *
! _copyBoolExpr(BoolExpr *from)
{
BoolExpr *newnode = makeNode(BoolExpr);
--- 1310,1316 ----
* _copyBoolExpr
*/
static BoolExpr *
! _copyBoolExpr(const BoolExpr *from)
{
BoolExpr *newnode = makeNode(BoolExpr);
*************** _copyBoolExpr(BoolExpr *from)
*** 1325,1331 ****
* _copySubLink
*/
static SubLink *
! _copySubLink(SubLink *from)
{
SubLink *newnode = makeNode(SubLink);
--- 1325,1331 ----
* _copySubLink
*/
static SubLink *
! _copySubLink(const SubLink *from)
{
SubLink *newnode = makeNode(SubLink);
*************** _copySubLink(SubLink *from)
*** 1342,1348 ****
* _copySubPlan
*/
static SubPlan *
! _copySubPlan(SubPlan *from)
{
SubPlan *newnode = makeNode(SubPlan);
--- 1342,1348 ----
* _copySubPlan
*/
static SubPlan *
! _copySubPlan(const SubPlan *from)
{
SubPlan *newnode = makeNode(SubPlan);
*************** _copySubPlan(SubPlan *from)
*** 1369,1375 ****
* _copyAlternativeSubPlan
*/
static AlternativeSubPlan *
! _copyAlternativeSubPlan(AlternativeSubPlan *from)
{
AlternativeSubPlan *newnode = makeNode(AlternativeSubPlan);
--- 1369,1375 ----
* _copyAlternativeSubPlan
*/
static AlternativeSubPlan *
! _copyAlternativeSubPlan(const AlternativeSubPlan *from)
{
AlternativeSubPlan *newnode = makeNode(AlternativeSubPlan);
*************** _copyAlternativeSubPlan(AlternativeSubPl
*** 1382,1388 ****
* _copyFieldSelect
*/
static FieldSelect *
! _copyFieldSelect(FieldSelect *from)
{
FieldSelect *newnode = makeNode(FieldSelect);
--- 1382,1388 ----
* _copyFieldSelect
*/
static FieldSelect *
! _copyFieldSelect(const FieldSelect *from)
{
FieldSelect *newnode = makeNode(FieldSelect);
*************** _copyFieldSelect(FieldSelect *from)
*** 1399,1405 ****
* _copyFieldStore
*/
static FieldStore *
! _copyFieldStore(FieldStore *from)
{
FieldStore *newnode = makeNode(FieldStore);
--- 1399,1405 ----
* _copyFieldStore
*/
static FieldStore *
! _copyFieldStore(const FieldStore *from)
{
FieldStore *newnode = makeNode(FieldStore);
*************** _copyFieldStore(FieldStore *from)
*** 1415,1421 ****
* _copyRelabelType
*/
static RelabelType *
! _copyRelabelType(RelabelType *from)
{
RelabelType *newnode = makeNode(RelabelType);
--- 1415,1421 ----
* _copyRelabelType
*/
static RelabelType *
! _copyRelabelType(const RelabelType *from)
{
RelabelType *newnode = makeNode(RelabelType);
*************** _copyRelabelType(RelabelType *from)
*** 1433,1439 ****
* _copyCoerceViaIO
*/
static CoerceViaIO *
! _copyCoerceViaIO(CoerceViaIO *from)
{
CoerceViaIO *newnode = makeNode(CoerceViaIO);
--- 1433,1439 ----
* _copyCoerceViaIO
*/
static CoerceViaIO *
! _copyCoerceViaIO(const CoerceViaIO *from)
{
CoerceViaIO *newnode = makeNode(CoerceViaIO);
*************** _copyCoerceViaIO(CoerceViaIO *from)
*** 1450,1456 ****
* _copyArrayCoerceExpr
*/
static ArrayCoerceExpr *
! _copyArrayCoerceExpr(ArrayCoerceExpr *from)
{
ArrayCoerceExpr *newnode = makeNode(ArrayCoerceExpr);
--- 1450,1456 ----
* _copyArrayCoerceExpr
*/
static ArrayCoerceExpr *
! _copyArrayCoerceExpr(const ArrayCoerceExpr *from)
{
ArrayCoerceExpr *newnode = makeNode(ArrayCoerceExpr);
*************** _copyArrayCoerceExpr(ArrayCoerceExpr *fr
*** 1470,1476 ****
* _copyConvertRowtypeExpr
*/
static ConvertRowtypeExpr *
! _copyConvertRowtypeExpr(ConvertRowtypeExpr *from)
{
ConvertRowtypeExpr *newnode = makeNode(ConvertRowtypeExpr);
--- 1470,1476 ----
* _copyConvertRowtypeExpr
*/
static ConvertRowtypeExpr *
! _copyConvertRowtypeExpr(const ConvertRowtypeExpr *from)
{
ConvertRowtypeExpr *newnode = makeNode(ConvertRowtypeExpr);
*************** _copyConvertRowtypeExpr(ConvertRowtypeEx
*** 1486,1492 ****
* _copyCollateExpr
*/
static CollateExpr *
! _copyCollateExpr(CollateExpr *from)
{
CollateExpr *newnode = makeNode(CollateExpr);
--- 1486,1492 ----
* _copyCollateExpr
*/
static CollateExpr *
! _copyCollateExpr(const CollateExpr *from)
{
CollateExpr *newnode = makeNode(CollateExpr);
*************** _copyCollateExpr(CollateExpr *from)
*** 1501,1507 ****
* _copyCaseExpr
*/
static CaseExpr *
! _copyCaseExpr(CaseExpr *from)
{
CaseExpr *newnode = makeNode(CaseExpr);
--- 1501,1507 ----
* _copyCaseExpr
*/
static CaseExpr *
! _copyCaseExpr(const CaseExpr *from)
{
CaseExpr *newnode = makeNode(CaseExpr);
*************** _copyCaseExpr(CaseExpr *from)
*** 1519,1525 ****
* _copyCaseWhen
*/
static CaseWhen *
! _copyCaseWhen(CaseWhen *from)
{
CaseWhen *newnode = makeNode(CaseWhen);
--- 1519,1525 ----
* _copyCaseWhen
*/
static CaseWhen *
! _copyCaseWhen(const CaseWhen *from)
{
CaseWhen *newnode = makeNode(CaseWhen);
*************** _copyCaseWhen(CaseWhen *from)
*** 1534,1540 ****
* _copyCaseTestExpr
*/
static CaseTestExpr *
! _copyCaseTestExpr(CaseTestExpr *from)
{
CaseTestExpr *newnode = makeNode(CaseTestExpr);
--- 1534,1540 ----
* _copyCaseTestExpr
*/
static CaseTestExpr *
! _copyCaseTestExpr(const CaseTestExpr *from)
{
CaseTestExpr *newnode = makeNode(CaseTestExpr);
*************** _copyCaseTestExpr(CaseTestExpr *from)
*** 1549,1555 ****
* _copyArrayExpr
*/
static ArrayExpr *
! _copyArrayExpr(ArrayExpr *from)
{
ArrayExpr *newnode = makeNode(ArrayExpr);
--- 1549,1555 ----
* _copyArrayExpr
*/
static ArrayExpr *
! _copyArrayExpr(const ArrayExpr *from)
{
ArrayExpr *newnode = makeNode(ArrayExpr);
*************** _copyArrayExpr(ArrayExpr *from)
*** 1567,1573 ****
* _copyRowExpr
*/
static RowExpr *
! _copyRowExpr(RowExpr *from)
{
RowExpr *newnode = makeNode(RowExpr);
--- 1567,1573 ----
* _copyRowExpr
*/
static RowExpr *
! _copyRowExpr(const RowExpr *from)
{
RowExpr *newnode = makeNode(RowExpr);
*************** _copyRowExpr(RowExpr *from)
*** 1584,1590 ****
* _copyRowCompareExpr
*/
static RowCompareExpr *
! _copyRowCompareExpr(RowCompareExpr *from)
{
RowCompareExpr *newnode = makeNode(RowCompareExpr);
--- 1584,1590 ----
* _copyRowCompareExpr
*/
static RowCompareExpr *
! _copyRowCompareExpr(const RowCompareExpr *from)
{
RowCompareExpr *newnode = makeNode(RowCompareExpr);
*************** _copyRowCompareExpr(RowCompareExpr *from
*** 1602,1608 ****
* _copyCoalesceExpr
*/
static CoalesceExpr *
! _copyCoalesceExpr(CoalesceExpr *from)
{
CoalesceExpr *newnode = makeNode(CoalesceExpr);
--- 1602,1608 ----
* _copyCoalesceExpr
*/
static CoalesceExpr *
! _copyCoalesceExpr(const CoalesceExpr *from)
{
CoalesceExpr *newnode = makeNode(CoalesceExpr);
*************** _copyCoalesceExpr(CoalesceExpr *from)
*** 1618,1624 ****
* _copyMinMaxExpr
*/
static MinMaxExpr *
! _copyMinMaxExpr(MinMaxExpr *from)
{
MinMaxExpr *newnode = makeNode(MinMaxExpr);
--- 1618,1624 ----
* _copyMinMaxExpr
*/
static MinMaxExpr *
! _copyMinMaxExpr(const MinMaxExpr *from)
{
MinMaxExpr *newnode = makeNode(MinMaxExpr);
*************** _copyMinMaxExpr(MinMaxExpr *from)
*** 1636,1642 ****
* _copyXmlExpr
*/
static XmlExpr *
! _copyXmlExpr(XmlExpr *from)
{
XmlExpr *newnode = makeNode(XmlExpr);
--- 1636,1642 ----
* _copyXmlExpr
*/
static XmlExpr *
! _copyXmlExpr(const XmlExpr *from)
{
XmlExpr *newnode = makeNode(XmlExpr);
*************** _copyXmlExpr(XmlExpr *from)
*** 1657,1663 ****
* _copyNullTest
*/
static NullTest *
! _copyNullTest(NullTest *from)
{
NullTest *newnode = makeNode(NullTest);
--- 1657,1663 ----
* _copyNullTest
*/
static NullTest *
! _copyNullTest(const NullTest *from)
{
NullTest *newnode = makeNode(NullTest);
*************** _copyNullTest(NullTest *from)
*** 1672,1678 ****
* _copyBooleanTest
*/
static BooleanTest *
! _copyBooleanTest(BooleanTest *from)
{
BooleanTest *newnode = makeNode(BooleanTest);
--- 1672,1678 ----
* _copyBooleanTest
*/
static BooleanTest *
! _copyBooleanTest(const BooleanTest *from)
{
BooleanTest *newnode = makeNode(BooleanTest);
*************** _copyBooleanTest(BooleanTest *from)
*** 1686,1692 ****
* _copyCoerceToDomain
*/
static CoerceToDomain *
! _copyCoerceToDomain(CoerceToDomain *from)
{
CoerceToDomain *newnode = makeNode(CoerceToDomain);
--- 1686,1692 ----
* _copyCoerceToDomain
*/
static CoerceToDomain *
! _copyCoerceToDomain(const CoerceToDomain *from)
{
CoerceToDomain *newnode = makeNode(CoerceToDomain);
*************** _copyCoerceToDomain(CoerceToDomain *from
*** 1704,1710 ****
* _copyCoerceToDomainValue
*/
static CoerceToDomainValue *
! _copyCoerceToDomainValue(CoerceToDomainValue *from)
{
CoerceToDomainValue *newnode = makeNode(CoerceToDomainValue);
--- 1704,1710 ----
* _copyCoerceToDomainValue
*/
static CoerceToDomainValue *
! _copyCoerceToDomainValue(const CoerceToDomainValue *from)
{
CoerceToDomainValue *newnode = makeNode(CoerceToDomainValue);
*************** _copyCoerceToDomainValue(CoerceToDomainV
*** 1720,1726 ****
* _copySetToDefault
*/
static SetToDefault *
! _copySetToDefault(SetToDefault *from)
{
SetToDefault *newnode = makeNode(SetToDefault);
--- 1720,1726 ----
* _copySetToDefault
*/
static SetToDefault *
! _copySetToDefault(const SetToDefault *from)
{
SetToDefault *newnode = makeNode(SetToDefault);
*************** _copySetToDefault(SetToDefault *from)
*** 1736,1742 ****
* _copyCurrentOfExpr
*/
static CurrentOfExpr *
! _copyCurrentOfExpr(CurrentOfExpr *from)
{
CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
--- 1736,1742 ----
* _copyCurrentOfExpr
*/
static CurrentOfExpr *
! _copyCurrentOfExpr(const CurrentOfExpr *from)
{
CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
*************** _copyCurrentOfExpr(CurrentOfExpr *from)
*** 1751,1757 ****
* _copyTargetEntry
*/
static TargetEntry *
! _copyTargetEntry(TargetEntry *from)
{
TargetEntry *newnode = makeNode(TargetEntry);
--- 1751,1757 ----
* _copyTargetEntry
*/
static TargetEntry *
! _copyTargetEntry(const TargetEntry *from)
{
TargetEntry *newnode = makeNode(TargetEntry);
*************** _copyTargetEntry(TargetEntry *from)
*** 1770,1776 ****
* _copyRangeTblRef
*/
static RangeTblRef *
! _copyRangeTblRef(RangeTblRef *from)
{
RangeTblRef *newnode = makeNode(RangeTblRef);
--- 1770,1776 ----
* _copyRangeTblRef
*/
static RangeTblRef *
! _copyRangeTblRef(const RangeTblRef *from)
{
RangeTblRef *newnode = makeNode(RangeTblRef);
*************** _copyRangeTblRef(RangeTblRef *from)
*** 1783,1789 ****
* _copyJoinExpr
*/
static JoinExpr *
! _copyJoinExpr(JoinExpr *from)
{
JoinExpr *newnode = makeNode(JoinExpr);
--- 1783,1789 ----
* _copyJoinExpr
*/
static JoinExpr *
! _copyJoinExpr(const JoinExpr *from)
{
JoinExpr *newnode = makeNode(JoinExpr);
*************** _copyJoinExpr(JoinExpr *from)
*** 1803,1809 ****
* _copyFromExpr
*/
static FromExpr *
! _copyFromExpr(FromExpr *from)
{
FromExpr *newnode = makeNode(FromExpr);
--- 1803,1809 ----
* _copyFromExpr
*/
static FromExpr *
! _copyFromExpr(const FromExpr *from)
{
FromExpr *newnode = makeNode(FromExpr);
*************** _copyFromExpr(FromExpr *from)
*** 1825,1831 ****
* _copyPathKey
*/
static PathKey *
! _copyPathKey(PathKey *from)
{
PathKey *newnode = makeNode(PathKey);
--- 1825,1831 ----
* _copyPathKey
*/
static PathKey *
! _copyPathKey(const PathKey *from)
{
PathKey *newnode = makeNode(PathKey);
*************** _copyPathKey(PathKey *from)
*** 1842,1848 ****
* _copyRestrictInfo
*/
static RestrictInfo *
! _copyRestrictInfo(RestrictInfo *from)
{
RestrictInfo *newnode = makeNode(RestrictInfo);
--- 1842,1848 ----
* _copyRestrictInfo
*/
static RestrictInfo *
! _copyRestrictInfo(const RestrictInfo *from)
{
RestrictInfo *newnode = makeNode(RestrictInfo);
*************** _copyRestrictInfo(RestrictInfo *from)
*** 1882,1888 ****
* _copyPlaceHolderVar
*/
static PlaceHolderVar *
! _copyPlaceHolderVar(PlaceHolderVar *from)
{
PlaceHolderVar *newnode = makeNode(PlaceHolderVar);
--- 1882,1888 ----
* _copyPlaceHolderVar
*/
static PlaceHolderVar *
! _copyPlaceHolderVar(const PlaceHolderVar *from)
{
PlaceHolderVar *newnode = makeNode(PlaceHolderVar);
*************** _copyPlaceHolderVar(PlaceHolderVar *from
*** 1898,1904 ****
* _copySpecialJoinInfo
*/
static SpecialJoinInfo *
! _copySpecialJoinInfo(SpecialJoinInfo *from)
{
SpecialJoinInfo *newnode = makeNode(SpecialJoinInfo);
--- 1898,1904 ----
* _copySpecialJoinInfo
*/
static SpecialJoinInfo *
! _copySpecialJoinInfo(const SpecialJoinInfo *from)
{
SpecialJoinInfo *newnode = makeNode(SpecialJoinInfo);
*************** _copySpecialJoinInfo(SpecialJoinInfo *fr
*** 1918,1924 ****
* _copyAppendRelInfo
*/
static AppendRelInfo *
! _copyAppendRelInfo(AppendRelInfo *from)
{
AppendRelInfo *newnode = makeNode(AppendRelInfo);
--- 1918,1924 ----
* _copyAppendRelInfo
*/
static AppendRelInfo *
! _copyAppendRelInfo(const AppendRelInfo *from)
{
AppendRelInfo *newnode = makeNode(AppendRelInfo);
*************** _copyAppendRelInfo(AppendRelInfo *from)
*** 1936,1942 ****
* _copyPlaceHolderInfo
*/
static PlaceHolderInfo *
! _copyPlaceHolderInfo(PlaceHolderInfo *from)
{
PlaceHolderInfo *newnode = makeNode(PlaceHolderInfo);
--- 1936,1942 ----
* _copyPlaceHolderInfo
*/
static PlaceHolderInfo *
! _copyPlaceHolderInfo(const PlaceHolderInfo *from)
{
PlaceHolderInfo *newnode = makeNode(PlaceHolderInfo);
*************** _copyPlaceHolderInfo(PlaceHolderInfo *fr
*** 1956,1962 ****
*/
static RangeTblEntry *
! _copyRangeTblEntry(RangeTblEntry *from)
{
RangeTblEntry *newnode = makeNode(RangeTblEntry);
--- 1956,1962 ----
*/
static RangeTblEntry *
! _copyRangeTblEntry(const RangeTblEntry *from)
{
RangeTblEntry *newnode = makeNode(RangeTblEntry);
*************** _copyRangeTblEntry(RangeTblEntry *from)
*** 1991,1997 ****
}
static SortGroupClause *
! _copySortGroupClause(SortGroupClause *from)
{
SortGroupClause *newnode = makeNode(SortGroupClause);
--- 1991,1997 ----
}
static SortGroupClause *
! _copySortGroupClause(const SortGroupClause *from)
{
SortGroupClause *newnode = makeNode(SortGroupClause);
*************** _copySortGroupClause(SortGroupClause *fr
*** 2005,2011 ****
}
static WindowClause *
! _copyWindowClause(WindowClause *from)
{
WindowClause *newnode = makeNode(WindowClause);
--- 2005,2011 ----
}
static WindowClause *
! _copyWindowClause(const WindowClause *from)
{
WindowClause *newnode = makeNode(WindowClause);
*************** _copyWindowClause(WindowClause *from)
*** 2023,2029 ****
}
static RowMarkClause *
! _copyRowMarkClause(RowMarkClause *from)
{
RowMarkClause *newnode = makeNode(RowMarkClause);
--- 2023,2029 ----
}
static RowMarkClause *
! _copyRowMarkClause(const RowMarkClause *from)
{
RowMarkClause *newnode = makeNode(RowMarkClause);
*************** _copyRowMarkClause(RowMarkClause *from)
*** 2036,2042 ****
}
static WithClause *
! _copyWithClause(WithClause *from)
{
WithClause *newnode = makeNode(WithClause);
--- 2036,2042 ----
}
static WithClause *
! _copyWithClause(const WithClause *from)
{
WithClause *newnode = makeNode(WithClause);
*************** _copyWithClause(WithClause *from)
*** 2048,2054 ****
}
static CommonTableExpr *
! _copyCommonTableExpr(CommonTableExpr *from)
{
CommonTableExpr *newnode = makeNode(CommonTableExpr);
--- 2048,2054 ----
}
static CommonTableExpr *
! _copyCommonTableExpr(const CommonTableExpr *from)
{
CommonTableExpr *newnode = makeNode(CommonTableExpr);
*************** _copyCommonTableExpr(CommonTableExpr *fr
*** 2067,2073 ****
}
static A_Expr *
! _copyAExpr(A_Expr *from)
{
A_Expr *newnode = makeNode(A_Expr);
--- 2067,2073 ----
}
static A_Expr *
! _copyAExpr(const A_Expr *from)
{
A_Expr *newnode = makeNode(A_Expr);
*************** _copyAExpr(A_Expr *from)
*** 2081,2087 ****
}
static ColumnRef *
! _copyColumnRef(ColumnRef *from)
{
ColumnRef *newnode = makeNode(ColumnRef);
--- 2081,2087 ----
}
static ColumnRef *
! _copyColumnRef(const ColumnRef *from)
{
ColumnRef *newnode = makeNode(ColumnRef);
*************** _copyColumnRef(ColumnRef *from)
*** 2092,2098 ****
}
static ParamRef *
! _copyParamRef(ParamRef *from)
{
ParamRef *newnode = makeNode(ParamRef);
--- 2092,2098 ----
}
static ParamRef *
! _copyParamRef(const ParamRef *from)
{
ParamRef *newnode = makeNode(ParamRef);
*************** _copyParamRef(ParamRef *from)
*** 2103,2109 ****
}
static A_Const *
! _copyAConst(A_Const *from)
{
A_Const *newnode = makeNode(A_Const);
--- 2103,2109 ----
}
static A_Const *
! _copyAConst(const A_Const *from)
{
A_Const *newnode = makeNode(A_Const);
*************** _copyAConst(A_Const *from)
*** 2134,2140 ****
}
static FuncCall *
! _copyFuncCall(FuncCall *from)
{
FuncCall *newnode = makeNode(FuncCall);
--- 2134,2140 ----
}
static FuncCall *
! _copyFuncCall(const FuncCall *from)
{
FuncCall *newnode = makeNode(FuncCall);
*************** _copyFuncCall(FuncCall *from)
*** 2151,2157 ****
}
static A_Star *
! _copyAStar(A_Star *from)
{
A_Star *newnode = makeNode(A_Star);
--- 2151,2157 ----
}
static A_Star *
! _copyAStar(const A_Star *from)
{
A_Star *newnode = makeNode(A_Star);
*************** _copyAStar(A_Star *from)
*** 2159,2165 ****
}
static A_Indices *
! _copyAIndices(A_Indices *from)
{
A_Indices *newnode = makeNode(A_Indices);
--- 2159,2165 ----
}
static A_Indices *
! _copyAIndices(const A_Indices *from)
{
A_Indices *newnode = makeNode(A_Indices);
*************** _copyAIndices(A_Indices *from)
*** 2170,2176 ****
}
static A_Indirection *
! _copyA_Indirection(A_Indirection *from)
{
A_Indirection *newnode = makeNode(A_Indirection);
--- 2170,2176 ----
}
static A_Indirection *
! _copyA_Indirection(const A_Indirection *from)
{
A_Indirection *newnode = makeNode(A_Indirection);
*************** _copyA_Indirection(A_Indirection *from)
*** 2181,2187 ****
}
static A_ArrayExpr *
! _copyA_ArrayExpr(A_ArrayExpr *from)
{
A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
--- 2181,2187 ----
}
static A_ArrayExpr *
! _copyA_ArrayExpr(const A_ArrayExpr *from)
{
A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
*************** _copyA_ArrayExpr(A_ArrayExpr *from)
*** 2192,2198 ****
}
static ResTarget *
! _copyResTarget(ResTarget *from)
{
ResTarget *newnode = makeNode(ResTarget);
--- 2192,2198 ----
}
static ResTarget *
! _copyResTarget(const ResTarget *from)
{
ResTarget *newnode = makeNode(ResTarget);
*************** _copyResTarget(ResTarget *from)
*** 2205,2211 ****
}
static TypeName *
! _copyTypeName(TypeName *from)
{
TypeName *newnode = makeNode(TypeName);
--- 2205,2211 ----
}
static TypeName *
! _copyTypeName(const TypeName *from)
{
TypeName *newnode = makeNode(TypeName);
*************** _copyTypeName(TypeName *from)
*** 2222,2228 ****
}
static SortBy *
! _copySortBy(SortBy *from)
{
SortBy *newnode = makeNode(SortBy);
--- 2222,2228 ----
}
static SortBy *
! _copySortBy(const SortBy *from)
{
SortBy *newnode = makeNode(SortBy);
*************** _copySortBy(SortBy *from)
*** 2236,2242 ****
}
static WindowDef *
! _copyWindowDef(WindowDef *from)
{
WindowDef *newnode = makeNode(WindowDef);
--- 2236,2242 ----
}
static WindowDef *
! _copyWindowDef(const WindowDef *from)
{
WindowDef *newnode = makeNode(WindowDef);
*************** _copyWindowDef(WindowDef *from)
*** 2253,2259 ****
}
static RangeSubselect *
! _copyRangeSubselect(RangeSubselect *from)
{
RangeSubselect *newnode = makeNode(RangeSubselect);
--- 2253,2259 ----
}
static RangeSubselect *
! _copyRangeSubselect(const RangeSubselect *from)
{
RangeSubselect *newnode = makeNode(RangeSubselect);
*************** _copyRangeSubselect(RangeSubselect *from
*** 2264,2270 ****
}
static RangeFunction *
! _copyRangeFunction(RangeFunction *from)
{
RangeFunction *newnode = makeNode(RangeFunction);
--- 2264,2270 ----
}
static RangeFunction *
! _copyRangeFunction(const RangeFunction *from)
{
RangeFunction *newnode = makeNode(RangeFunction);
*************** _copyRangeFunction(RangeFunction *from)
*** 2276,2282 ****
}
static TypeCast *
! _copyTypeCast(TypeCast *from)
{
TypeCast *newnode = makeNode(TypeCast);
--- 2276,2282 ----
}
static TypeCast *
! _copyTypeCast(const TypeCast *from)
{
TypeCast *newnode = makeNode(TypeCast);
*************** _copyTypeCast(TypeCast *from)
*** 2288,2294 ****
}
static CollateClause *
! _copyCollateClause(CollateClause *from)
{
CollateClause *newnode = makeNode(CollateClause);
--- 2288,2294 ----
}
static CollateClause *
! _copyCollateClause(const CollateClause *from)
{
CollateClause *newnode = makeNode(CollateClause);
*************** _copyCollateClause(CollateClause *from)
*** 2300,2306 ****
}
static IndexElem *
! _copyIndexElem(IndexElem *from)
{
IndexElem *newnode = makeNode(IndexElem);
--- 2300,2306 ----
}
static IndexElem *
! _copyIndexElem(const IndexElem *from)
{
IndexElem *newnode = makeNode(IndexElem);
*************** _copyIndexElem(IndexElem *from)
*** 2316,2322 ****
}
static ColumnDef *
! _copyColumnDef(ColumnDef *from)
{
ColumnDef *newnode = makeNode(ColumnDef);
--- 2316,2322 ----
}
static ColumnDef *
! _copyColumnDef(const ColumnDef *from)
{
ColumnDef *newnode = makeNode(ColumnDef);
*************** _copyColumnDef(ColumnDef *from)
*** 2338,2344 ****
}
static Constraint *
! _copyConstraint(Constraint *from)
{
Constraint *newnode = makeNode(Constraint);
--- 2338,2344 ----
}
static Constraint *
! _copyConstraint(const Constraint *from)
{
Constraint *newnode = makeNode(Constraint);
*************** _copyConstraint(Constraint *from)
*** 2369,2375 ****
}
static DefElem *
! _copyDefElem(DefElem *from)
{
DefElem *newnode = makeNode(DefElem);
--- 2369,2375 ----
}
static DefElem *
! _copyDefElem(const DefElem *from)
{
DefElem *newnode = makeNode(DefElem);
*************** _copyDefElem(DefElem *from)
*** 2382,2388 ****
}
static LockingClause *
! _copyLockingClause(LockingClause *from)
{
LockingClause *newnode = makeNode(LockingClause);
--- 2382,2388 ----
}
static LockingClause *
! _copyLockingClause(const LockingClause *from)
{
LockingClause *newnode = makeNode(LockingClause);
*************** _copyLockingClause(LockingClause *from)
*** 2394,2400 ****
}
static XmlSerialize *
! _copyXmlSerialize(XmlSerialize *from)
{
XmlSerialize *newnode = makeNode(XmlSerialize);
--- 2394,2400 ----
}
static XmlSerialize *
! _copyXmlSerialize(const XmlSerialize *from)
{
XmlSerialize *newnode = makeNode(XmlSerialize);
*************** _copyXmlSerialize(XmlSerialize *from)
*** 2407,2413 ****
}
static Query *
! _copyQuery(Query *from)
{
Query *newnode = makeNode(Query);
--- 2407,2413 ----
}
static Query *
! _copyQuery(const Query *from)
{
Query *newnode = makeNode(Query);
*************** _copyQuery(Query *from)
*** 2444,2450 ****
}
static InsertStmt *
! _copyInsertStmt(InsertStmt *from)
{
InsertStmt *newnode = makeNode(InsertStmt);
--- 2444,2450 ----
}
static InsertStmt *
! _copyInsertStmt(const InsertStmt *from)
{
InsertStmt *newnode = makeNode(InsertStmt);
*************** _copyInsertStmt(InsertStmt *from)
*** 2458,2464 ****
}
static DeleteStmt *
! _copyDeleteStmt(DeleteStmt *from)
{
DeleteStmt *newnode = makeNode(DeleteStmt);
--- 2458,2464 ----
}
static DeleteStmt *
! _copyDeleteStmt(const DeleteStmt *from)
{
DeleteStmt *newnode = makeNode(DeleteStmt);
*************** _copyDeleteStmt(DeleteStmt *from)
*** 2472,2478 ****
}
static UpdateStmt *
! _copyUpdateStmt(UpdateStmt *from)
{
UpdateStmt *newnode = makeNode(UpdateStmt);
--- 2472,2478 ----
}
static UpdateStmt *
! _copyUpdateStmt(const UpdateStmt *from)
{
UpdateStmt *newnode = makeNode(UpdateStmt);
*************** _copyUpdateStmt(UpdateStmt *from)
*** 2487,2493 ****
}
static SelectStmt *
! _copySelectStmt(SelectStmt *from)
{
SelectStmt *newnode = makeNode(SelectStmt);
--- 2487,2493 ----
}
static SelectStmt *
! _copySelectStmt(const SelectStmt *from)
{
SelectStmt *newnode = makeNode(SelectStmt);
*************** _copySelectStmt(SelectStmt *from)
*** 2514,2520 ****
}
static SetOperationStmt *
! _copySetOperationStmt(SetOperationStmt *from)
{
SetOperationStmt *newnode = makeNode(SetOperationStmt);
--- 2514,2520 ----
}
static SetOperationStmt *
! _copySetOperationStmt(const SetOperationStmt *from)
{
SetOperationStmt *newnode = makeNode(SetOperationStmt);
*************** _copySetOperationStmt(SetOperationStmt *
*** 2531,2537 ****
}
static AlterTableStmt *
! _copyAlterTableStmt(AlterTableStmt *from)
{
AlterTableStmt *newnode = makeNode(AlterTableStmt);
--- 2531,2537 ----
}
static AlterTableStmt *
! _copyAlterTableStmt(const AlterTableStmt *from)
{
AlterTableStmt *newnode = makeNode(AlterTableStmt);
*************** _copyAlterTableStmt(AlterTableStmt *from
*** 2543,2549 ****
}
static AlterTableCmd *
! _copyAlterTableCmd(AlterTableCmd *from)
{
AlterTableCmd *newnode = makeNode(AlterTableCmd);
--- 2543,2549 ----
}
static AlterTableCmd *
! _copyAlterTableCmd(const AlterTableCmd *from)
{
AlterTableCmd *newnode = makeNode(AlterTableCmd);
*************** _copyAlterTableCmd(AlterTableCmd *from)
*** 2557,2563 ****
}
static AlterDomainStmt *
! _copyAlterDomainStmt(AlterDomainStmt *from)
{
AlterDomainStmt *newnode = makeNode(AlterDomainStmt);
--- 2557,2563 ----
}
static AlterDomainStmt *
! _copyAlterDomainStmt(const AlterDomainStmt *from)
{
AlterDomainStmt *newnode = makeNode(AlterDomainStmt);
*************** _copyAlterDomainStmt(AlterDomainStmt *fr
*** 2571,2577 ****
}
static GrantStmt *
! _copyGrantStmt(GrantStmt *from)
{
GrantStmt *newnode = makeNode(GrantStmt);
--- 2571,2577 ----
}
static GrantStmt *
! _copyGrantStmt(const GrantStmt *from)
{
GrantStmt *newnode = makeNode(GrantStmt);
*************** _copyGrantStmt(GrantStmt *from)
*** 2588,2594 ****
}
static PrivGrantee *
! _copyPrivGrantee(PrivGrantee *from)
{
PrivGrantee *newnode = makeNode(PrivGrantee);
--- 2588,2594 ----
}
static PrivGrantee *
! _copyPrivGrantee(const PrivGrantee *from)
{
PrivGrantee *newnode = makeNode(PrivGrantee);
*************** _copyPrivGrantee(PrivGrantee *from)
*** 2598,2604 ****
}
static FuncWithArgs *
! _copyFuncWithArgs(FuncWithArgs *from)
{
FuncWithArgs *newnode = makeNode(FuncWithArgs);
--- 2598,2604 ----
}
static FuncWithArgs *
! _copyFuncWithArgs(const FuncWithArgs *from)
{
FuncWithArgs *newnode = makeNode(FuncWithArgs);
*************** _copyFuncWithArgs(FuncWithArgs *from)
*** 2609,2615 ****
}
static AccessPriv *
! _copyAccessPriv(AccessPriv *from)
{
AccessPriv *newnode = makeNode(AccessPriv);
--- 2609,2615 ----
}
static AccessPriv *
! _copyAccessPriv(const AccessPriv *from)
{
AccessPriv *newnode = makeNode(AccessPriv);
*************** _copyAccessPriv(AccessPriv *from)
*** 2620,2626 ****
}
static GrantRoleStmt *
! _copyGrantRoleStmt(GrantRoleStmt *from)
{
GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
--- 2620,2626 ----
}
static GrantRoleStmt *
! _copyGrantRoleStmt(const GrantRoleStmt *from)
{
GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
*************** _copyGrantRoleStmt(GrantRoleStmt *from)
*** 2635,2641 ****
}
static AlterDefaultPrivilegesStmt *
! _copyAlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt *from)
{
AlterDefaultPrivilegesStmt *newnode = makeNode(AlterDefaultPrivilegesStmt);
--- 2635,2641 ----
}
static AlterDefaultPrivilegesStmt *
! _copyAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *from)
{
AlterDefaultPrivilegesStmt *newnode = makeNode(AlterDefaultPrivilegesStmt);
*************** _copyAlterDefaultPrivilegesStmt(AlterDef
*** 2646,2652 ****
}
static DeclareCursorStmt *
! _copyDeclareCursorStmt(DeclareCursorStmt *from)
{
DeclareCursorStmt *newnode = makeNode(DeclareCursorStmt);
--- 2646,2652 ----
}
static DeclareCursorStmt *
! _copyDeclareCursorStmt(const DeclareCursorStmt *from)
{
DeclareCursorStmt *newnode = makeNode(DeclareCursorStmt);
*************** _copyDeclareCursorStmt(DeclareCursorStmt
*** 2658,2664 ****
}
static ClosePortalStmt *
! _copyClosePortalStmt(ClosePortalStmt *from)
{
ClosePortalStmt *newnode = makeNode(ClosePortalStmt);
--- 2658,2664 ----
}
static ClosePortalStmt *
! _copyClosePortalStmt(const ClosePortalStmt *from)
{
ClosePortalStmt *newnode = makeNode(ClosePortalStmt);
*************** _copyClosePortalStmt(ClosePortalStmt *fr
*** 2668,2674 ****
}
static ClusterStmt *
! _copyClusterStmt(ClusterStmt *from)
{
ClusterStmt *newnode = makeNode(ClusterStmt);
--- 2668,2674 ----
}
static ClusterStmt *
! _copyClusterStmt(const ClusterStmt *from)
{
ClusterStmt *newnode = makeNode(ClusterStmt);
*************** _copyClusterStmt(ClusterStmt *from)
*** 2680,2686 ****
}
static CopyStmt *
! _copyCopyStmt(CopyStmt *from)
{
CopyStmt *newnode = makeNode(CopyStmt);
--- 2680,2686 ----
}
static CopyStmt *
! _copyCopyStmt(const CopyStmt *from)
{
CopyStmt *newnode = makeNode(CopyStmt);
*************** _copyCopyStmt(CopyStmt *from)
*** 2701,2707 ****
* copy functions for classes which inherit from CreateStmt.
*/
static void
! CopyCreateStmtFields(CreateStmt *from, CreateStmt *newnode)
{
COPY_NODE_FIELD(relation);
COPY_NODE_FIELD(tableElts);
--- 2701,2707 ----
* copy functions for classes which inherit from CreateStmt.
*/
static void
! CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode)
{
COPY_NODE_FIELD(relation);
COPY_NODE_FIELD(tableElts);
*************** CopyCreateStmtFields(CreateStmt *from, C
*** 2715,2721 ****
}
static CreateStmt *
! _copyCreateStmt(CreateStmt *from)
{
CreateStmt *newnode = makeNode(CreateStmt);
--- 2715,2721 ----
}
static CreateStmt *
! _copyCreateStmt(const CreateStmt *from)
{
CreateStmt *newnode = makeNode(CreateStmt);
*************** _copyCreateStmt(CreateStmt *from)
*** 2725,2731 ****
}
static InhRelation *
! _copyInhRelation(InhRelation *from)
{
InhRelation *newnode = makeNode(InhRelation);
--- 2725,2731 ----
}
static InhRelation *
! _copyInhRelation(const InhRelation *from)
{
InhRelation *newnode = makeNode(InhRelation);
*************** _copyInhRelation(InhRelation *from)
*** 2736,2742 ****
}
static DefineStmt *
! _copyDefineStmt(DefineStmt *from)
{
DefineStmt *newnode = makeNode(DefineStmt);
--- 2736,2742 ----
}
static DefineStmt *
! _copyDefineStmt(const DefineStmt *from)
{
DefineStmt *newnode = makeNode(DefineStmt);
*************** _copyDefineStmt(DefineStmt *from)
*** 2750,2756 ****
}
static DropStmt *
! _copyDropStmt(DropStmt *from)
{
DropStmt *newnode = makeNode(DropStmt);
--- 2750,2756 ----
}
static DropStmt *
! _copyDropStmt(const DropStmt *from)
{
DropStmt *newnode = makeNode(DropStmt);
*************** _copyDropStmt(DropStmt *from)
*** 2763,2769 ****
}
static TruncateStmt *
! _copyTruncateStmt(TruncateStmt *from)
{
TruncateStmt *newnode = makeNode(TruncateStmt);
--- 2763,2769 ----
}
static TruncateStmt *
! _copyTruncateStmt(const TruncateStmt *from)
{
TruncateStmt *newnode = makeNode(TruncateStmt);
*************** _copyTruncateStmt(TruncateStmt *from)
*** 2775,2781 ****
}
static CommentStmt *
! _copyCommentStmt(CommentStmt *from)
{
CommentStmt *newnode = makeNode(CommentStmt);
--- 2775,2781 ----
}
static CommentStmt *
! _copyCommentStmt(const CommentStmt *from)
{
CommentStmt *newnode = makeNode(CommentStmt);
*************** _copyCommentStmt(CommentStmt *from)
*** 2788,2794 ****
}
static SecLabelStmt *
! _copySecLabelStmt(SecLabelStmt *from)
{
SecLabelStmt *newnode = makeNode(SecLabelStmt);
--- 2788,2794 ----
}
static SecLabelStmt *
! _copySecLabelStmt(const SecLabelStmt *from)
{
SecLabelStmt *newnode = makeNode(SecLabelStmt);
*************** _copySecLabelStmt(SecLabelStmt *from)
*** 2802,2808 ****
}
static FetchStmt *
! _copyFetchStmt(FetchStmt *from)
{
FetchStmt *newnode = makeNode(FetchStmt);
--- 2802,2808 ----
}
static FetchStmt *
! _copyFetchStmt(const FetchStmt *from)
{
FetchStmt *newnode = makeNode(FetchStmt);
*************** _copyFetchStmt(FetchStmt *from)
*** 2815,2821 ****
}
static IndexStmt *
! _copyIndexStmt(IndexStmt *from)
{
IndexStmt *newnode = makeNode(IndexStmt);
--- 2815,2821 ----
}
static IndexStmt *
! _copyIndexStmt(const IndexStmt *from)
{
IndexStmt *newnode = makeNode(IndexStmt);
*************** _copyIndexStmt(IndexStmt *from)
*** 2840,2846 ****
}
static CreateFunctionStmt *
! _copyCreateFunctionStmt(CreateFunctionStmt *from)
{
CreateFunctionStmt *newnode = makeNode(CreateFunctionStmt);
--- 2840,2846 ----
}
static CreateFunctionStmt *
! _copyCreateFunctionStmt(const CreateFunctionStmt *from)
{
CreateFunctionStmt *newnode = makeNode(CreateFunctionStmt);
*************** _copyCreateFunctionStmt(CreateFunctionSt
*** 2855,2861 ****
}
static FunctionParameter *
! _copyFunctionParameter(FunctionParameter *from)
{
FunctionParameter *newnode = makeNode(FunctionParameter);
--- 2855,2861 ----
}
static FunctionParameter *
! _copyFunctionParameter(const FunctionParameter *from)
{
FunctionParameter *newnode = makeNode(FunctionParameter);
*************** _copyFunctionParameter(FunctionParameter
*** 2868,2874 ****
}
static AlterFunctionStmt *
! _copyAlterFunctionStmt(AlterFunctionStmt *from)
{
AlterFunctionStmt *newnode = makeNode(AlterFunctionStmt);
--- 2868,2874 ----
}
static AlterFunctionStmt *
! _copyAlterFunctionStmt(const AlterFunctionStmt *from)
{
AlterFunctionStmt *newnode = makeNode(AlterFunctionStmt);
*************** _copyAlterFunctionStmt(AlterFunctionStmt
*** 2879,2885 ****
}
static RemoveFuncStmt *
! _copyRemoveFuncStmt(RemoveFuncStmt *from)
{
RemoveFuncStmt *newnode = makeNode(RemoveFuncStmt);
--- 2879,2885 ----
}
static RemoveFuncStmt *
! _copyRemoveFuncStmt(const RemoveFuncStmt *from)
{
RemoveFuncStmt *newnode = makeNode(RemoveFuncStmt);
*************** _copyRemoveFuncStmt(RemoveFuncStmt *from
*** 2893,2899 ****
}
static DoStmt *
! _copyDoStmt(DoStmt *from)
{
DoStmt *newnode = makeNode(DoStmt);
--- 2893,2899 ----
}
static DoStmt *
! _copyDoStmt(const DoStmt *from)
{
DoStmt *newnode = makeNode(DoStmt);
*************** _copyDoStmt(DoStmt *from)
*** 2903,2909 ****
}
static RemoveOpClassStmt *
! _copyRemoveOpClassStmt(RemoveOpClassStmt *from)
{
RemoveOpClassStmt *newnode = makeNode(RemoveOpClassStmt);
--- 2903,2909 ----
}
static RemoveOpClassStmt *
! _copyRemoveOpClassStmt(const RemoveOpClassStmt *from)
{
RemoveOpClassStmt *newnode = makeNode(RemoveOpClassStmt);
*************** _copyRemoveOpClassStmt(RemoveOpClassStmt
*** 2916,2922 ****
}
static RemoveOpFamilyStmt *
! _copyRemoveOpFamilyStmt(RemoveOpFamilyStmt *from)
{
RemoveOpFamilyStmt *newnode = makeNode(RemoveOpFamilyStmt);
--- 2916,2922 ----
}
static RemoveOpFamilyStmt *
! _copyRemoveOpFamilyStmt(const RemoveOpFamilyStmt *from)
{
RemoveOpFamilyStmt *newnode = makeNode(RemoveOpFamilyStmt);
*************** _copyRemoveOpFamilyStmt(RemoveOpFamilySt
*** 2929,2935 ****
}
static RenameStmt *
! _copyRenameStmt(RenameStmt *from)
{
RenameStmt *newnode = makeNode(RenameStmt);
--- 2929,2935 ----
}
static RenameStmt *
! _copyRenameStmt(const RenameStmt *from)
{
RenameStmt *newnode = makeNode(RenameStmt);
*************** _copyRenameStmt(RenameStmt *from)
*** 2945,2951 ****
}
static AlterObjectSchemaStmt *
! _copyAlterObjectSchemaStmt(AlterObjectSchemaStmt *from)
{
AlterObjectSchemaStmt *newnode = makeNode(AlterObjectSchemaStmt);
--- 2945,2951 ----
}
static AlterObjectSchemaStmt *
! _copyAlterObjectSchemaStmt(const AlterObjectSchemaStmt *from)
{
AlterObjectSchemaStmt *newnode = makeNode(AlterObjectSchemaStmt);
*************** _copyAlterObjectSchemaStmt(AlterObjectSc
*** 2960,2966 ****
}
static AlterOwnerStmt *
! _copyAlterOwnerStmt(AlterOwnerStmt *from)
{
AlterOwnerStmt *newnode = makeNode(AlterOwnerStmt);
--- 2960,2966 ----
}
static AlterOwnerStmt *
! _copyAlterOwnerStmt(const AlterOwnerStmt *from)
{
AlterOwnerStmt *newnode = makeNode(AlterOwnerStmt);
*************** _copyAlterOwnerStmt(AlterOwnerStmt *from
*** 2975,2981 ****
}
static RuleStmt *
! _copyRuleStmt(RuleStmt *from)
{
RuleStmt *newnode = makeNode(RuleStmt);
--- 2975,2981 ----
}
static RuleStmt *
! _copyRuleStmt(const RuleStmt *from)
{
RuleStmt *newnode = makeNode(RuleStmt);
*************** _copyRuleStmt(RuleStmt *from)
*** 2991,2997 ****
}
static NotifyStmt *
! _copyNotifyStmt(NotifyStmt *from)
{
NotifyStmt *newnode = makeNode(NotifyStmt);
--- 2991,2997 ----
}
static NotifyStmt *
! _copyNotifyStmt(const NotifyStmt *from)
{
NotifyStmt *newnode = makeNode(NotifyStmt);
*************** _copyNotifyStmt(NotifyStmt *from)
*** 3002,3008 ****
}
static ListenStmt *
! _copyListenStmt(ListenStmt *from)
{
ListenStmt *newnode = makeNode(ListenStmt);
--- 3002,3008 ----
}
static ListenStmt *
! _copyListenStmt(const ListenStmt *from)
{
ListenStmt *newnode = makeNode(ListenStmt);
*************** _copyListenStmt(ListenStmt *from)
*** 3012,3018 ****
}
static UnlistenStmt *
! _copyUnlistenStmt(UnlistenStmt *from)
{
UnlistenStmt *newnode = makeNode(UnlistenStmt);
--- 3012,3018 ----
}
static UnlistenStmt *
! _copyUnlistenStmt(const UnlistenStmt *from)
{
UnlistenStmt *newnode = makeNode(UnlistenStmt);
*************** _copyUnlistenStmt(UnlistenStmt *from)
*** 3022,3028 ****
}
static TransactionStmt *
! _copyTransactionStmt(TransactionStmt *from)
{
TransactionStmt *newnode = makeNode(TransactionStmt);
--- 3022,3028 ----
}
static TransactionStmt *
! _copyTransactionStmt(const TransactionStmt *from)
{
TransactionStmt *newnode = makeNode(TransactionStmt);
*************** _copyTransactionStmt(TransactionStmt *fr
*** 3034,3040 ****
}
static CompositeTypeStmt *
! _copyCompositeTypeStmt(CompositeTypeStmt *from)
{
CompositeTypeStmt *newnode = makeNode(CompositeTypeStmt);
--- 3034,3040 ----
}
static CompositeTypeStmt *
! _copyCompositeTypeStmt(const CompositeTypeStmt *from)
{
CompositeTypeStmt *newnode = makeNode(CompositeTypeStmt);
*************** _copyCompositeTypeStmt(CompositeTypeStmt
*** 3045,3051 ****
}
static CreateEnumStmt *
! _copyCreateEnumStmt(CreateEnumStmt *from)
{
CreateEnumStmt *newnode = makeNode(CreateEnumStmt);
--- 3045,3051 ----
}
static CreateEnumStmt *
! _copyCreateEnumStmt(const CreateEnumStmt *from)
{
CreateEnumStmt *newnode = makeNode(CreateEnumStmt);
*************** _copyCreateEnumStmt(CreateEnumStmt *from
*** 3056,3062 ****
}
static CreateRangeStmt *
! _copyCreateRangeStmt(CreateRangeStmt *from)
{
CreateRangeStmt *newnode = makeNode(CreateRangeStmt);
--- 3056,3062 ----
}
static CreateRangeStmt *
! _copyCreateRangeStmt(const CreateRangeStmt *from)
{
CreateRangeStmt *newnode = makeNode(CreateRangeStmt);
*************** _copyCreateRangeStmt(CreateRangeStmt *fr
*** 3067,3073 ****
}
static AlterEnumStmt *
! _copyAlterEnumStmt(AlterEnumStmt *from)
{
AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
--- 3067,3073 ----
}
static AlterEnumStmt *
! _copyAlterEnumStmt(const AlterEnumStmt *from)
{
AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
*************** _copyAlterEnumStmt(AlterEnumStmt *from)
*** 3080,3086 ****
}
static ViewStmt *
! _copyViewStmt(ViewStmt *from)
{
ViewStmt *newnode = makeNode(ViewStmt);
--- 3080,3086 ----
}
static ViewStmt *
! _copyViewStmt(const ViewStmt *from)
{
ViewStmt *newnode = makeNode(ViewStmt);
*************** _copyViewStmt(ViewStmt *from)
*** 3093,3099 ****
}
static LoadStmt *
! _copyLoadStmt(LoadStmt *from)
{
LoadStmt *newnode = makeNode(LoadStmt);
--- 3093,3099 ----
}
static LoadStmt *
! _copyLoadStmt(const LoadStmt *from)
{
LoadStmt *newnode = makeNode(LoadStmt);
*************** _copyLoadStmt(LoadStmt *from)
*** 3103,3109 ****
}
static CreateDomainStmt *
! _copyCreateDomainStmt(CreateDomainStmt *from)
{
CreateDomainStmt *newnode = makeNode(CreateDomainStmt);
--- 3103,3109 ----
}
static CreateDomainStmt *
! _copyCreateDomainStmt(const CreateDomainStmt *from)
{
CreateDomainStmt *newnode = makeNode(CreateDomainStmt);
*************** _copyCreateDomainStmt(CreateDomainStmt *
*** 3116,3122 ****
}
static CreateOpClassStmt *
! _copyCreateOpClassStmt(CreateOpClassStmt *from)
{
CreateOpClassStmt *newnode = makeNode(CreateOpClassStmt);
--- 3116,3122 ----
}
static CreateOpClassStmt *
! _copyCreateOpClassStmt(const CreateOpClassStmt *from)
{
CreateOpClassStmt *newnode = makeNode(CreateOpClassStmt);
*************** _copyCreateOpClassStmt(CreateOpClassStmt
*** 3131,3137 ****
}
static CreateOpClassItem *
! _copyCreateOpClassItem(CreateOpClassItem *from)
{
CreateOpClassItem *newnode = makeNode(CreateOpClassItem);
--- 3131,3137 ----
}
static CreateOpClassItem *
! _copyCreateOpClassItem(const CreateOpClassItem *from)
{
CreateOpClassItem *newnode = makeNode(CreateOpClassItem);
*************** _copyCreateOpClassItem(CreateOpClassItem
*** 3147,3153 ****
}
static CreateOpFamilyStmt *
! _copyCreateOpFamilyStmt(CreateOpFamilyStmt *from)
{
CreateOpFamilyStmt *newnode = makeNode(CreateOpFamilyStmt);
--- 3147,3153 ----
}
static CreateOpFamilyStmt *
! _copyCreateOpFamilyStmt(const CreateOpFamilyStmt *from)
{
CreateOpFamilyStmt *newnode = makeNode(CreateOpFamilyStmt);
*************** _copyCreateOpFamilyStmt(CreateOpFamilySt
*** 3158,3164 ****
}
static AlterOpFamilyStmt *
! _copyAlterOpFamilyStmt(AlterOpFamilyStmt *from)
{
AlterOpFamilyStmt *newnode = makeNode(AlterOpFamilyStmt);
--- 3158,3164 ----
}
static AlterOpFamilyStmt *
! _copyAlterOpFamilyStmt(const AlterOpFamilyStmt *from)
{
AlterOpFamilyStmt *newnode = makeNode(AlterOpFamilyStmt);
*************** _copyAlterOpFamilyStmt(AlterOpFamilyStmt
*** 3171,3177 ****
}
static CreatedbStmt *
! _copyCreatedbStmt(CreatedbStmt *from)
{
CreatedbStmt *newnode = makeNode(CreatedbStmt);
--- 3171,3177 ----
}
static CreatedbStmt *
! _copyCreatedbStmt(const CreatedbStmt *from)
{
CreatedbStmt *newnode = makeNode(CreatedbStmt);
*************** _copyCreatedbStmt(CreatedbStmt *from)
*** 3182,3188 ****
}
static AlterDatabaseStmt *
! _copyAlterDatabaseStmt(AlterDatabaseStmt *from)
{
AlterDatabaseStmt *newnode = makeNode(AlterDatabaseStmt);
--- 3182,3188 ----
}
static AlterDatabaseStmt *
! _copyAlterDatabaseStmt(const AlterDatabaseStmt *from)
{
AlterDatabaseStmt *newnode = makeNode(AlterDatabaseStmt);
*************** _copyAlterDatabaseStmt(AlterDatabaseStmt
*** 3193,3199 ****
}
static AlterDatabaseSetStmt *
! _copyAlterDatabaseSetStmt(AlterDatabaseSetStmt *from)
{
AlterDatabaseSetStmt *newnode = makeNode(AlterDatabaseSetStmt);
--- 3193,3199 ----
}
static AlterDatabaseSetStmt *
! _copyAlterDatabaseSetStmt(const AlterDatabaseSetStmt *from)
{
AlterDatabaseSetStmt *newnode = makeNode(AlterDatabaseSetStmt);
*************** _copyAlterDatabaseSetStmt(AlterDatabaseS
*** 3204,3210 ****
}
static DropdbStmt *
! _copyDropdbStmt(DropdbStmt *from)
{
DropdbStmt *newnode = makeNode(DropdbStmt);
--- 3204,3210 ----
}
static DropdbStmt *
! _copyDropdbStmt(const DropdbStmt *from)
{
DropdbStmt *newnode = makeNode(DropdbStmt);
*************** _copyDropdbStmt(DropdbStmt *from)
*** 3215,3221 ****
}
static VacuumStmt *
! _copyVacuumStmt(VacuumStmt *from)
{
VacuumStmt *newnode = makeNode(VacuumStmt);
--- 3215,3221 ----
}
static VacuumStmt *
! _copyVacuumStmt(const VacuumStmt *from)
{
VacuumStmt *newnode = makeNode(VacuumStmt);
*************** _copyVacuumStmt(VacuumStmt *from)
*** 3229,3235 ****
}
static ExplainStmt *
! _copyExplainStmt(ExplainStmt *from)
{
ExplainStmt *newnode = makeNode(ExplainStmt);
--- 3229,3235 ----
}
static ExplainStmt *
! _copyExplainStmt(const ExplainStmt *from)
{
ExplainStmt *newnode = makeNode(ExplainStmt);
*************** _copyExplainStmt(ExplainStmt *from)
*** 3240,3246 ****
}
static CreateSeqStmt *
! _copyCreateSeqStmt(CreateSeqStmt *from)
{
CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
--- 3240,3246 ----
}
static CreateSeqStmt *
! _copyCreateSeqStmt(const CreateSeqStmt *from)
{
CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
*************** _copyCreateSeqStmt(CreateSeqStmt *from)
*** 3252,3258 ****
}
static AlterSeqStmt *
! _copyAlterSeqStmt(AlterSeqStmt *from)
{
AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
--- 3252,3258 ----
}
static AlterSeqStmt *
! _copyAlterSeqStmt(const AlterSeqStmt *from)
{
AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
*************** _copyAlterSeqStmt(AlterSeqStmt *from)
*** 3263,3269 ****
}
static VariableSetStmt *
! _copyVariableSetStmt(VariableSetStmt *from)
{
VariableSetStmt *newnode = makeNode(VariableSetStmt);
--- 3263,3269 ----
}
static VariableSetStmt *
! _copyVariableSetStmt(const VariableSetStmt *from)
{
VariableSetStmt *newnode = makeNode(VariableSetStmt);
*************** _copyVariableSetStmt(VariableSetStmt *fr
*** 3276,3282 ****
}
static VariableShowStmt *
! _copyVariableShowStmt(VariableShowStmt *from)
{
VariableShowStmt *newnode = makeNode(VariableShowStmt);
--- 3276,3282 ----
}
static VariableShowStmt *
! _copyVariableShowStmt(const VariableShowStmt *from)
{
VariableShowStmt *newnode = makeNode(VariableShowStmt);
*************** _copyVariableShowStmt(VariableShowStmt *
*** 3286,3292 ****
}
static DiscardStmt *
! _copyDiscardStmt(DiscardStmt *from)
{
DiscardStmt *newnode = makeNode(DiscardStmt);
--- 3286,3292 ----
}
static DiscardStmt *
! _copyDiscardStmt(const DiscardStmt *from)
{
DiscardStmt *newnode = makeNode(DiscardStmt);
*************** _copyDiscardStmt(DiscardStmt *from)
*** 3296,3302 ****
}
static CreateTableSpaceStmt *
! _copyCreateTableSpaceStmt(CreateTableSpaceStmt *from)
{
CreateTableSpaceStmt *newnode = makeNode(CreateTableSpaceStmt);
--- 3296,3302 ----
}
static CreateTableSpaceStmt *
! _copyCreateTableSpaceStmt(const CreateTableSpaceStmt *from)
{
CreateTableSpaceStmt *newnode = makeNode(CreateTableSpaceStmt);
*************** _copyCreateTableSpaceStmt(CreateTableSpa
*** 3308,3314 ****
}
static DropTableSpaceStmt *
! _copyDropTableSpaceStmt(DropTableSpaceStmt *from)
{
DropTableSpaceStmt *newnode = makeNode(DropTableSpaceStmt);
--- 3308,3314 ----
}
static DropTableSpaceStmt *
! _copyDropTableSpaceStmt(const DropTableSpaceStmt *from)
{
DropTableSpaceStmt *newnode = makeNode(DropTableSpaceStmt);
*************** _copyDropTableSpaceStmt(DropTableSpaceSt
*** 3319,3325 ****
}
static AlterTableSpaceOptionsStmt *
! _copyAlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt *from)
{
AlterTableSpaceOptionsStmt *newnode = makeNode(AlterTableSpaceOptionsStmt);
--- 3319,3325 ----
}
static AlterTableSpaceOptionsStmt *
! _copyAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *from)
{
AlterTableSpaceOptionsStmt *newnode = makeNode(AlterTableSpaceOptionsStmt);
*************** _copyAlterTableSpaceOptionsStmt(AlterTab
*** 3331,3337 ****
}
static CreateExtensionStmt *
! _copyCreateExtensionStmt(CreateExtensionStmt *from)
{
CreateExtensionStmt *newnode = makeNode(CreateExtensionStmt);
--- 3331,3337 ----
}
static CreateExtensionStmt *
! _copyCreateExtensionStmt(const CreateExtensionStmt *from)
{
CreateExtensionStmt *newnode = makeNode(CreateExtensionStmt);
*************** _copyCreateExtensionStmt(CreateExtension
*** 3343,3349 ****
}
static AlterExtensionStmt *
! _copyAlterExtensionStmt(AlterExtensionStmt *from)
{
AlterExtensionStmt *newnode = makeNode(AlterExtensionStmt);
--- 3343,3349 ----
}
static AlterExtensionStmt *
! _copyAlterExtensionStmt(const AlterExtensionStmt *from)
{
AlterExtensionStmt *newnode = makeNode(AlterExtensionStmt);
*************** _copyAlterExtensionStmt(AlterExtensionSt
*** 3354,3360 ****
}
static AlterExtensionContentsStmt *
! _copyAlterExtensionContentsStmt(AlterExtensionContentsStmt *from)
{
AlterExtensionContentsStmt *newnode = makeNode(AlterExtensionContentsStmt);
--- 3354,3360 ----
}
static AlterExtensionContentsStmt *
! _copyAlterExtensionContentsStmt(const AlterExtensionContentsStmt *from)
{
AlterExtensionContentsStmt *newnode = makeNode(AlterExtensionContentsStmt);
*************** _copyAlterExtensionContentsStmt(AlterExt
*** 3368,3374 ****
}
static CreateFdwStmt *
! _copyCreateFdwStmt(CreateFdwStmt *from)
{
CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
--- 3368,3374 ----
}
static CreateFdwStmt *
! _copyCreateFdwStmt(const CreateFdwStmt *from)
{
CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
*************** _copyCreateFdwStmt(CreateFdwStmt *from)
*** 3380,3386 ****
}
static AlterFdwStmt *
! _copyAlterFdwStmt(AlterFdwStmt *from)
{
AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
--- 3380,3386 ----
}
static AlterFdwStmt *
! _copyAlterFdwStmt(const AlterFdwStmt *from)
{
AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
*************** _copyAlterFdwStmt(AlterFdwStmt *from)
*** 3392,3398 ****
}
static DropFdwStmt *
! _copyDropFdwStmt(DropFdwStmt *from)
{
DropFdwStmt *newnode = makeNode(DropFdwStmt);
--- 3392,3398 ----
}
static DropFdwStmt *
! _copyDropFdwStmt(const DropFdwStmt *from)
{
DropFdwStmt *newnode = makeNode(DropFdwStmt);
*************** _copyDropFdwStmt(DropFdwStmt *from)
*** 3404,3410 ****
}
static CreateForeignServerStmt *
! _copyCreateForeignServerStmt(CreateForeignServerStmt *from)
{
CreateForeignServerStmt *newnode = makeNode(CreateForeignServerStmt);
--- 3404,3410 ----
}
static CreateForeignServerStmt *
! _copyCreateForeignServerStmt(const CreateForeignServerStmt *from)
{
CreateForeignServerStmt *newnode = makeNode(CreateForeignServerStmt);
*************** _copyCreateForeignServerStmt(CreateForei
*** 3418,3424 ****
}
static AlterForeignServerStmt *
! _copyAlterForeignServerStmt(AlterForeignServerStmt *from)
{
AlterForeignServerStmt *newnode = makeNode(AlterForeignServerStmt);
--- 3418,3424 ----
}
static AlterForeignServerStmt *
! _copyAlterForeignServerStmt(const AlterForeignServerStmt *from)
{
AlterForeignServerStmt *newnode = makeNode(AlterForeignServerStmt);
*************** _copyAlterForeignServerStmt(AlterForeign
*** 3431,3437 ****
}
static DropForeignServerStmt *
! _copyDropForeignServerStmt(DropForeignServerStmt *from)
{
DropForeignServerStmt *newnode = makeNode(DropForeignServerStmt);
--- 3431,3437 ----
}
static DropForeignServerStmt *
! _copyDropForeignServerStmt(const DropForeignServerStmt *from)
{
DropForeignServerStmt *newnode = makeNode(DropForeignServerStmt);
*************** _copyDropForeignServerStmt(DropForeignSe
*** 3443,3449 ****
}
static CreateUserMappingStmt *
! _copyCreateUserMappingStmt(CreateUserMappingStmt *from)
{
CreateUserMappingStmt *newnode = makeNode(CreateUserMappingStmt);
--- 3443,3449 ----
}
static CreateUserMappingStmt *
! _copyCreateUserMappingStmt(const CreateUserMappingStmt *from)
{
CreateUserMappingStmt *newnode = makeNode(CreateUserMappingStmt);
*************** _copyCreateUserMappingStmt(CreateUserMap
*** 3455,3461 ****
}
static AlterUserMappingStmt *
! _copyAlterUserMappingStmt(AlterUserMappingStmt *from)
{
AlterUserMappingStmt *newnode = makeNode(AlterUserMappingStmt);
--- 3455,3461 ----
}
static AlterUserMappingStmt *
! _copyAlterUserMappingStmt(const AlterUserMappingStmt *from)
{
AlterUserMappingStmt *newnode = makeNode(AlterUserMappingStmt);
*************** _copyAlterUserMappingStmt(AlterUserMappi
*** 3467,3473 ****
}
static DropUserMappingStmt *
! _copyDropUserMappingStmt(DropUserMappingStmt *from)
{
DropUserMappingStmt *newnode = makeNode(DropUserMappingStmt);
--- 3467,3473 ----
}
static DropUserMappingStmt *
! _copyDropUserMappingStmt(const DropUserMappingStmt *from)
{
DropUserMappingStmt *newnode = makeNode(DropUserMappingStmt);
*************** _copyDropUserMappingStmt(DropUserMapping
*** 3479,3485 ****
}
static CreateForeignTableStmt *
! _copyCreateForeignTableStmt(CreateForeignTableStmt *from)
{
CreateForeignTableStmt *newnode = makeNode(CreateForeignTableStmt);
--- 3479,3485 ----
}
static CreateForeignTableStmt *
! _copyCreateForeignTableStmt(const CreateForeignTableStmt *from)
{
CreateForeignTableStmt *newnode = makeNode(CreateForeignTableStmt);
*************** _copyCreateForeignTableStmt(CreateForeig
*** 3492,3498 ****
}
static CreateTrigStmt *
! _copyCreateTrigStmt(CreateTrigStmt *from)
{
CreateTrigStmt *newnode = makeNode(CreateTrigStmt);
--- 3492,3498 ----
}
static CreateTrigStmt *
! _copyCreateTrigStmt(const CreateTrigStmt *from)
{
CreateTrigStmt *newnode = makeNode(CreateTrigStmt);
*************** _copyCreateTrigStmt(CreateTrigStmt *from
*** 3514,3520 ****
}
static DropPropertyStmt *
! _copyDropPropertyStmt(DropPropertyStmt *from)
{
DropPropertyStmt *newnode = makeNode(DropPropertyStmt);
--- 3514,3520 ----
}
static DropPropertyStmt *
! _copyDropPropertyStmt(const DropPropertyStmt *from)
{
DropPropertyStmt *newnode = makeNode(DropPropertyStmt);
*************** _copyDropPropertyStmt(DropPropertyStmt *
*** 3528,3534 ****
}
static CreatePLangStmt *
! _copyCreatePLangStmt(CreatePLangStmt *from)
{
CreatePLangStmt *newnode = makeNode(CreatePLangStmt);
--- 3528,3534 ----
}
static CreatePLangStmt *
! _copyCreatePLangStmt(const CreatePLangStmt *from)
{
CreatePLangStmt *newnode = makeNode(CreatePLangStmt);
*************** _copyCreatePLangStmt(CreatePLangStmt *fr
*** 3543,3549 ****
}
static DropPLangStmt *
! _copyDropPLangStmt(DropPLangStmt *from)
{
DropPLangStmt *newnode = makeNode(DropPLangStmt);
--- 3543,3549 ----
}
static DropPLangStmt *
! _copyDropPLangStmt(const DropPLangStmt *from)
{
DropPLangStmt *newnode = makeNode(DropPLangStmt);
*************** _copyDropPLangStmt(DropPLangStmt *from)
*** 3555,3561 ****
}
static CreateRoleStmt *
! _copyCreateRoleStmt(CreateRoleStmt *from)
{
CreateRoleStmt *newnode = makeNode(CreateRoleStmt);
--- 3555,3561 ----
}
static CreateRoleStmt *
! _copyCreateRoleStmt(const CreateRoleStmt *from)
{
CreateRoleStmt *newnode = makeNode(CreateRoleStmt);
*************** _copyCreateRoleStmt(CreateRoleStmt *from
*** 3567,3573 ****
}
static AlterRoleStmt *
! _copyAlterRoleStmt(AlterRoleStmt *from)
{
AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
--- 3567,3573 ----
}
static AlterRoleStmt *
! _copyAlterRoleStmt(const AlterRoleStmt *from)
{
AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
*************** _copyAlterRoleStmt(AlterRoleStmt *from)
*** 3579,3585 ****
}
static AlterRoleSetStmt *
! _copyAlterRoleSetStmt(AlterRoleSetStmt *from)
{
AlterRoleSetStmt *newnode = makeNode(AlterRoleSetStmt);
--- 3579,3585 ----
}
static AlterRoleSetStmt *
! _copyAlterRoleSetStmt(const AlterRoleSetStmt *from)
{
AlterRoleSetStmt *newnode = makeNode(AlterRoleSetStmt);
*************** _copyAlterRoleSetStmt(AlterRoleSetStmt *
*** 3591,3597 ****
}
static DropRoleStmt *
! _copyDropRoleStmt(DropRoleStmt *from)
{
DropRoleStmt *newnode = makeNode(DropRoleStmt);
--- 3591,3597 ----
}
static DropRoleStmt *
! _copyDropRoleStmt(const DropRoleStmt *from)
{
DropRoleStmt *newnode = makeNode(DropRoleStmt);
*************** _copyDropRoleStmt(DropRoleStmt *from)
*** 3602,3608 ****
}
static LockStmt *
! _copyLockStmt(LockStmt *from)
{
LockStmt *newnode = makeNode(LockStmt);
--- 3602,3608 ----
}
static LockStmt *
! _copyLockStmt(const LockStmt *from)
{
LockStmt *newnode = makeNode(LockStmt);
*************** _copyLockStmt(LockStmt *from)
*** 3614,3620 ****
}
static ConstraintsSetStmt *
! _copyConstraintsSetStmt(ConstraintsSetStmt *from)
{
ConstraintsSetStmt *newnode = makeNode(ConstraintsSetStmt);
--- 3614,3620 ----
}
static ConstraintsSetStmt *
! _copyConstraintsSetStmt(const ConstraintsSetStmt *from)
{
ConstraintsSetStmt *newnode = makeNode(ConstraintsSetStmt);
*************** _copyConstraintsSetStmt(ConstraintsSetSt
*** 3625,3631 ****
}
static ReindexStmt *
! _copyReindexStmt(ReindexStmt *from)
{
ReindexStmt *newnode = makeNode(ReindexStmt);
--- 3625,3631 ----
}
static ReindexStmt *
! _copyReindexStmt(const ReindexStmt *from)
{
ReindexStmt *newnode = makeNode(ReindexStmt);
*************** _copyReindexStmt(ReindexStmt *from)
*** 3639,3645 ****
}
static CreateSchemaStmt *
! _copyCreateSchemaStmt(CreateSchemaStmt *from)
{
CreateSchemaStmt *newnode = makeNode(CreateSchemaStmt);
--- 3639,3645 ----
}
static CreateSchemaStmt *
! _copyCreateSchemaStmt(const CreateSchemaStmt *from)
{
CreateSchemaStmt *newnode = makeNode(CreateSchemaStmt);
*************** _copyCreateSchemaStmt(CreateSchemaStmt *
*** 3651,3657 ****
}
static CreateConversionStmt *
! _copyCreateConversionStmt(CreateConversionStmt *from)
{
CreateConversionStmt *newnode = makeNode(CreateConversionStmt);
--- 3651,3657 ----
}
static CreateConversionStmt *
! _copyCreateConversionStmt(const CreateConversionStmt *from)
{
CreateConversionStmt *newnode = makeNode(CreateConversionStmt);
*************** _copyCreateConversionStmt(CreateConversi
*** 3665,3671 ****
}
static CreateCastStmt *
! _copyCreateCastStmt(CreateCastStmt *from)
{
CreateCastStmt *newnode = makeNode(CreateCastStmt);
--- 3665,3671 ----
}
static CreateCastStmt *
! _copyCreateCastStmt(const CreateCastStmt *from)
{
CreateCastStmt *newnode = makeNode(CreateCastStmt);
*************** _copyCreateCastStmt(CreateCastStmt *from
*** 3679,3685 ****
}
static DropCastStmt *
! _copyDropCastStmt(DropCastStmt *from)
{
DropCastStmt *newnode = makeNode(DropCastStmt);
--- 3679,3685 ----
}
static DropCastStmt *
! _copyDropCastStmt(const DropCastStmt *from)
{
DropCastStmt *newnode = makeNode(DropCastStmt);
*************** _copyDropCastStmt(DropCastStmt *from)
*** 3692,3698 ****
}
static PrepareStmt *
! _copyPrepareStmt(PrepareStmt *from)
{
PrepareStmt *newnode = makeNode(PrepareStmt);
--- 3692,3698 ----
}
static PrepareStmt *
! _copyPrepareStmt(const PrepareStmt *from)
{
PrepareStmt *newnode = makeNode(PrepareStmt);
*************** _copyPrepareStmt(PrepareStmt *from)
*** 3704,3710 ****
}
static ExecuteStmt *
! _copyExecuteStmt(ExecuteStmt *from)
{
ExecuteStmt *newnode = makeNode(ExecuteStmt);
--- 3704,3710 ----
}
static ExecuteStmt *
! _copyExecuteStmt(const ExecuteStmt *from)
{
ExecuteStmt *newnode = makeNode(ExecuteStmt);
*************** _copyExecuteStmt(ExecuteStmt *from)
*** 3716,3722 ****
}
static DeallocateStmt *
! _copyDeallocateStmt(DeallocateStmt *from)
{
DeallocateStmt *newnode = makeNode(DeallocateStmt);
--- 3716,3722 ----
}
static DeallocateStmt *
! _copyDeallocateStmt(const DeallocateStmt *from)
{
DeallocateStmt *newnode = makeNode(DeallocateStmt);
*************** _copyDeallocateStmt(DeallocateStmt *from
*** 3726,3732 ****
}
static DropOwnedStmt *
! _copyDropOwnedStmt(DropOwnedStmt *from)
{
DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
--- 3726,3732 ----
}
static DropOwnedStmt *
! _copyDropOwnedStmt(const DropOwnedStmt *from)
{
DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
*************** _copyDropOwnedStmt(DropOwnedStmt *from)
*** 3737,3743 ****
}
static ReassignOwnedStmt *
! _copyReassignOwnedStmt(ReassignOwnedStmt *from)
{
ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
--- 3737,3743 ----
}
static ReassignOwnedStmt *
! _copyReassignOwnedStmt(const ReassignOwnedStmt *from)
{
ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
*************** _copyReassignOwnedStmt(ReassignOwnedStmt
*** 3748,3754 ****
}
static AlterTSDictionaryStmt *
! _copyAlterTSDictionaryStmt(AlterTSDictionaryStmt *from)
{
AlterTSDictionaryStmt *newnode = makeNode(AlterTSDictionaryStmt);
--- 3748,3754 ----
}
static AlterTSDictionaryStmt *
! _copyAlterTSDictionaryStmt(const AlterTSDictionaryStmt *from)
{
AlterTSDictionaryStmt *newnode = makeNode(AlterTSDictionaryStmt);
*************** _copyAlterTSDictionaryStmt(AlterTSDictio
*** 3759,3765 ****
}
static AlterTSConfigurationStmt *
! _copyAlterTSConfigurationStmt(AlterTSConfigurationStmt *from)
{
AlterTSConfigurationStmt *newnode = makeNode(AlterTSConfigurationStmt);
--- 3759,3765 ----
}
static AlterTSConfigurationStmt *
! _copyAlterTSConfigurationStmt(const AlterTSConfigurationStmt *from)
{
AlterTSConfigurationStmt *newnode = makeNode(AlterTSConfigurationStmt);
*************** _copyAlterTSConfigurationStmt(AlterTSCon
*** 3788,3794 ****
lfirst(new) = copyObject(lfirst(old));
static List *
! _copyList(List *from)
{
List *new;
ListCell *curr_old;
--- 3788,3794 ----
lfirst(new) = copyObject(lfirst(old));
static List *
! _copyList(const List *from)
{
List *new;
ListCell *curr_old;
*************** _copyList(List *from)
*** 3820,3826 ****
* ****************************************************************
*/
static Value *
! _copyValue(Value *from)
{
Value *newnode = makeNode(Value);
--- 3820,3826 ----
* ****************************************************************
*/
static Value *
! _copyValue(const Value *from)
{
Value *newnode = makeNode(Value);
*************** _copyValue(Value *from)
*** 3855,3861 ****
* substructure is copied too, recursively.
*/
void *
! copyObject(void *from)
{
void *retval;
--- 3855,3861 ----
* substructure is copied too, recursively.
*/
void *
! copyObject(const void *from)
{
void *retval;
*************** copyObject(void *from)
*** 4585,4591 ****
default:
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(from));
! retval = from; /* keep compiler quiet */
break;
}
--- 4585,4591 ----
default:
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(from));
! retval = 0; /* keep compiler quiet */
break;
}
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c
new file mode 100644
index f3a34a1..80c925c
*** a/src/backend/nodes/equalfuncs.c
--- b/src/backend/nodes/equalfuncs.c
***************
*** 89,95 ****
*/
static bool
! _equalAlias(Alias *a, Alias *b)
{
COMPARE_STRING_FIELD(aliasname);
COMPARE_NODE_FIELD(colnames);
--- 89,95 ----
*/
static bool
! _equalAlias(const Alias *a, const Alias *b)
{
COMPARE_STRING_FIELD(aliasname);
COMPARE_NODE_FIELD(colnames);
*************** _equalAlias(Alias *a, Alias *b)
*** 98,104 ****
}
static bool
! _equalRangeVar(RangeVar *a, RangeVar *b)
{
COMPARE_STRING_FIELD(catalogname);
COMPARE_STRING_FIELD(schemaname);
--- 98,104 ----
}
static bool
! _equalRangeVar(const RangeVar *a, const RangeVar *b)
{
COMPARE_STRING_FIELD(catalogname);
COMPARE_STRING_FIELD(schemaname);
*************** _equalRangeVar(RangeVar *a, RangeVar *b)
*** 112,118 ****
}
static bool
! _equalIntoClause(IntoClause *a, IntoClause *b)
{
COMPARE_NODE_FIELD(rel);
COMPARE_NODE_FIELD(colNames);
--- 112,118 ----
}
static bool
! _equalIntoClause(const IntoClause *a, const IntoClause *b)
{
COMPARE_NODE_FIELD(rel);
COMPARE_NODE_FIELD(colNames);
*************** _equalIntoClause(IntoClause *a, IntoClau
*** 131,137 ****
*/
static bool
! _equalVar(Var *a, Var *b)
{
COMPARE_SCALAR_FIELD(varno);
COMPARE_SCALAR_FIELD(varattno);
--- 131,137 ----
*/
static bool
! _equalVar(const Var *a, const Var *b)
{
COMPARE_SCALAR_FIELD(varno);
COMPARE_SCALAR_FIELD(varattno);
*************** _equalVar(Var *a, Var *b)
*** 147,153 ****
}
static bool
! _equalConst(Const *a, Const *b)
{
COMPARE_SCALAR_FIELD(consttype);
COMPARE_SCALAR_FIELD(consttypmod);
--- 147,153 ----
}
static bool
! _equalConst(const Const *a, const Const *b)
{
COMPARE_SCALAR_FIELD(consttype);
COMPARE_SCALAR_FIELD(consttypmod);
*************** _equalConst(Const *a, Const *b)
*** 168,174 ****
}
static bool
! _equalParam(Param *a, Param *b)
{
COMPARE_SCALAR_FIELD(paramkind);
COMPARE_SCALAR_FIELD(paramid);
--- 168,174 ----
}
static bool
! _equalParam(const Param *a, const Param *b)
{
COMPARE_SCALAR_FIELD(paramkind);
COMPARE_SCALAR_FIELD(paramid);
*************** _equalParam(Param *a, Param *b)
*** 181,187 ****
}
static bool
! _equalAggref(Aggref *a, Aggref *b)
{
COMPARE_SCALAR_FIELD(aggfnoid);
COMPARE_SCALAR_FIELD(aggtype);
--- 181,187 ----
}
static bool
! _equalAggref(const Aggref *a, const Aggref *b)
{
COMPARE_SCALAR_FIELD(aggfnoid);
COMPARE_SCALAR_FIELD(aggtype);
*************** _equalAggref(Aggref *a, Aggref *b)
*** 198,204 ****
}
static bool
! _equalWindowFunc(WindowFunc *a, WindowFunc *b)
{
COMPARE_SCALAR_FIELD(winfnoid);
COMPARE_SCALAR_FIELD(wintype);
--- 198,204 ----
}
static bool
! _equalWindowFunc(const WindowFunc *a, const WindowFunc *b)
{
COMPARE_SCALAR_FIELD(winfnoid);
COMPARE_SCALAR_FIELD(wintype);
*************** _equalWindowFunc(WindowFunc *a, WindowFu
*** 214,220 ****
}
static bool
! _equalArrayRef(ArrayRef *a, ArrayRef *b)
{
COMPARE_SCALAR_FIELD(refarraytype);
COMPARE_SCALAR_FIELD(refelemtype);
--- 214,220 ----
}
static bool
! _equalArrayRef(const ArrayRef *a, const ArrayRef *b)
{
COMPARE_SCALAR_FIELD(refarraytype);
COMPARE_SCALAR_FIELD(refelemtype);
*************** _equalArrayRef(ArrayRef *a, ArrayRef *b)
*** 229,235 ****
}
static bool
! _equalFuncExpr(FuncExpr *a, FuncExpr *b)
{
COMPARE_SCALAR_FIELD(funcid);
COMPARE_SCALAR_FIELD(funcresulttype);
--- 229,235 ----
}
static bool
! _equalFuncExpr(const FuncExpr *a, const FuncExpr *b)
{
COMPARE_SCALAR_FIELD(funcid);
COMPARE_SCALAR_FIELD(funcresulttype);
*************** _equalFuncExpr(FuncExpr *a, FuncExpr *b)
*** 253,259 ****
}
static bool
! _equalNamedArgExpr(NamedArgExpr *a, NamedArgExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_STRING_FIELD(name);
--- 253,259 ----
}
static bool
! _equalNamedArgExpr(const NamedArgExpr *a, const NamedArgExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_STRING_FIELD(name);
*************** _equalNamedArgExpr(NamedArgExpr *a, Name
*** 264,270 ****
}
static bool
! _equalOpExpr(OpExpr *a, OpExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
--- 264,270 ----
}
static bool
! _equalOpExpr(const OpExpr *a, const OpExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
*************** _equalOpExpr(OpExpr *a, OpExpr *b)
*** 290,296 ****
}
static bool
! _equalDistinctExpr(DistinctExpr *a, DistinctExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
--- 290,296 ----
}
static bool
! _equalDistinctExpr(const DistinctExpr *a, const DistinctExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
*************** _equalDistinctExpr(DistinctExpr *a, Dist
*** 316,322 ****
}
static bool
! _equalNullIfExpr(NullIfExpr *a, NullIfExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
--- 316,322 ----
}
static bool
! _equalNullIfExpr(const NullIfExpr *a, const NullIfExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
*************** _equalNullIfExpr(NullIfExpr *a, NullIfEx
*** 342,348 ****
}
static bool
! _equalScalarArrayOpExpr(ScalarArrayOpExpr *a, ScalarArrayOpExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
--- 342,348 ----
}
static bool
! _equalScalarArrayOpExpr(const ScalarArrayOpExpr *a, const ScalarArrayOpExpr *b)
{
COMPARE_SCALAR_FIELD(opno);
*************** _equalScalarArrayOpExpr(ScalarArrayOpExp
*** 366,372 ****
}
static bool
! _equalBoolExpr(BoolExpr *a, BoolExpr *b)
{
COMPARE_SCALAR_FIELD(boolop);
COMPARE_NODE_FIELD(args);
--- 366,372 ----
}
static bool
! _equalBoolExpr(const BoolExpr *a, const BoolExpr *b)
{
COMPARE_SCALAR_FIELD(boolop);
COMPARE_NODE_FIELD(args);
*************** _equalBoolExpr(BoolExpr *a, BoolExpr *b)
*** 376,382 ****
}
static bool
! _equalSubLink(SubLink *a, SubLink *b)
{
COMPARE_SCALAR_FIELD(subLinkType);
COMPARE_NODE_FIELD(testexpr);
--- 376,382 ----
}
static bool
! _equalSubLink(const SubLink *a, const SubLink *b)
{
COMPARE_SCALAR_FIELD(subLinkType);
COMPARE_NODE_FIELD(testexpr);
*************** _equalSubLink(SubLink *a, SubLink *b)
*** 388,394 ****
}
static bool
! _equalSubPlan(SubPlan *a, SubPlan *b)
{
COMPARE_SCALAR_FIELD(subLinkType);
COMPARE_NODE_FIELD(testexpr);
--- 388,394 ----
}
static bool
! _equalSubPlan(const SubPlan *a, const SubPlan *b)
{
COMPARE_SCALAR_FIELD(subLinkType);
COMPARE_NODE_FIELD(testexpr);
*************** _equalSubPlan(SubPlan *a, SubPlan *b)
*** 410,416 ****
}
static bool
! _equalAlternativeSubPlan(AlternativeSubPlan *a, AlternativeSubPlan *b)
{
COMPARE_NODE_FIELD(subplans);
--- 410,416 ----
}
static bool
! _equalAlternativeSubPlan(const AlternativeSubPlan *a, const AlternativeSubPlan *b)
{
COMPARE_NODE_FIELD(subplans);
*************** _equalAlternativeSubPlan(AlternativeSubP
*** 418,424 ****
}
static bool
! _equalFieldSelect(FieldSelect *a, FieldSelect *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(fieldnum);
--- 418,424 ----
}
static bool
! _equalFieldSelect(const FieldSelect *a, const FieldSelect *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(fieldnum);
*************** _equalFieldSelect(FieldSelect *a, FieldS
*** 430,436 ****
}
static bool
! _equalFieldStore(FieldStore *a, FieldStore *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(newvals);
--- 430,436 ----
}
static bool
! _equalFieldStore(const FieldStore *a, const FieldStore *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(newvals);
*************** _equalFieldStore(FieldStore *a, FieldSto
*** 441,447 ****
}
static bool
! _equalRelabelType(RelabelType *a, RelabelType *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
--- 441,447 ----
}
static bool
! _equalRelabelType(const RelabelType *a, const RelabelType *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
*************** _equalRelabelType(RelabelType *a, Relabe
*** 463,469 ****
}
static bool
! _equalCoerceViaIO(CoerceViaIO *a, CoerceViaIO *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
--- 463,469 ----
}
static bool
! _equalCoerceViaIO(const CoerceViaIO *a, const CoerceViaIO *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
*************** _equalCoerceViaIO(CoerceViaIO *a, Coerce
*** 484,490 ****
}
static bool
! _equalArrayCoerceExpr(ArrayCoerceExpr *a, ArrayCoerceExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(elemfuncid);
--- 484,490 ----
}
static bool
! _equalArrayCoerceExpr(const ArrayCoerceExpr *a, const ArrayCoerceExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(elemfuncid);
*************** _equalArrayCoerceExpr(ArrayCoerceExpr *a
*** 508,514 ****
}
static bool
! _equalConvertRowtypeExpr(ConvertRowtypeExpr *a, ConvertRowtypeExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
--- 508,514 ----
}
static bool
! _equalConvertRowtypeExpr(const ConvertRowtypeExpr *a, const ConvertRowtypeExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
*************** _equalConvertRowtypeExpr(ConvertRowtypeE
*** 528,534 ****
}
static bool
! _equalCollateExpr(CollateExpr *a, CollateExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(collOid);
--- 528,534 ----
}
static bool
! _equalCollateExpr(const CollateExpr *a, const CollateExpr *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(collOid);
*************** _equalCollateExpr(CollateExpr *a, Collat
*** 538,544 ****
}
static bool
! _equalCaseExpr(CaseExpr *a, CaseExpr *b)
{
COMPARE_SCALAR_FIELD(casetype);
COMPARE_SCALAR_FIELD(casecollid);
--- 538,544 ----
}
static bool
! _equalCaseExpr(const CaseExpr *a, const CaseExpr *b)
{
COMPARE_SCALAR_FIELD(casetype);
COMPARE_SCALAR_FIELD(casecollid);
*************** _equalCaseExpr(CaseExpr *a, CaseExpr *b)
*** 551,557 ****
}
static bool
! _equalCaseWhen(CaseWhen *a, CaseWhen *b)
{
COMPARE_NODE_FIELD(expr);
COMPARE_NODE_FIELD(result);
--- 551,557 ----
}
static bool
! _equalCaseWhen(const CaseWhen *a, const CaseWhen *b)
{
COMPARE_NODE_FIELD(expr);
COMPARE_NODE_FIELD(result);
*************** _equalCaseWhen(CaseWhen *a, CaseWhen *b)
*** 561,567 ****
}
static bool
! _equalCaseTestExpr(CaseTestExpr *a, CaseTestExpr *b)
{
COMPARE_SCALAR_FIELD(typeId);
COMPARE_SCALAR_FIELD(typeMod);
--- 561,567 ----
}
static bool
! _equalCaseTestExpr(const CaseTestExpr *a, const CaseTestExpr *b)
{
COMPARE_SCALAR_FIELD(typeId);
COMPARE_SCALAR_FIELD(typeMod);
*************** _equalCaseTestExpr(CaseTestExpr *a, Case
*** 571,577 ****
}
static bool
! _equalArrayExpr(ArrayExpr *a, ArrayExpr *b)
{
COMPARE_SCALAR_FIELD(array_typeid);
COMPARE_SCALAR_FIELD(array_collid);
--- 571,577 ----
}
static bool
! _equalArrayExpr(const ArrayExpr *a, const ArrayExpr *b)
{
COMPARE_SCALAR_FIELD(array_typeid);
COMPARE_SCALAR_FIELD(array_collid);
*************** _equalArrayExpr(ArrayExpr *a, ArrayExpr
*** 584,590 ****
}
static bool
! _equalRowExpr(RowExpr *a, RowExpr *b)
{
COMPARE_NODE_FIELD(args);
COMPARE_SCALAR_FIELD(row_typeid);
--- 584,590 ----
}
static bool
! _equalRowExpr(const RowExpr *a, const RowExpr *b)
{
COMPARE_NODE_FIELD(args);
COMPARE_SCALAR_FIELD(row_typeid);
*************** _equalRowExpr(RowExpr *a, RowExpr *b)
*** 605,611 ****
}
static bool
! _equalRowCompareExpr(RowCompareExpr *a, RowCompareExpr *b)
{
COMPARE_SCALAR_FIELD(rctype);
COMPARE_NODE_FIELD(opnos);
--- 605,611 ----
}
static bool
! _equalRowCompareExpr(const RowCompareExpr *a, const RowCompareExpr *b)
{
COMPARE_SCALAR_FIELD(rctype);
COMPARE_NODE_FIELD(opnos);
*************** _equalRowCompareExpr(RowCompareExpr *a,
*** 618,624 ****
}
static bool
! _equalCoalesceExpr(CoalesceExpr *a, CoalesceExpr *b)
{
COMPARE_SCALAR_FIELD(coalescetype);
COMPARE_SCALAR_FIELD(coalescecollid);
--- 618,624 ----
}
static bool
! _equalCoalesceExpr(const CoalesceExpr *a, const CoalesceExpr *b)
{
COMPARE_SCALAR_FIELD(coalescetype);
COMPARE_SCALAR_FIELD(coalescecollid);
*************** _equalCoalesceExpr(CoalesceExpr *a, Coal
*** 629,635 ****
}
static bool
! _equalMinMaxExpr(MinMaxExpr *a, MinMaxExpr *b)
{
COMPARE_SCALAR_FIELD(minmaxtype);
COMPARE_SCALAR_FIELD(minmaxcollid);
--- 629,635 ----
}
static bool
! _equalMinMaxExpr(const MinMaxExpr *a, const MinMaxExpr *b)
{
COMPARE_SCALAR_FIELD(minmaxtype);
COMPARE_SCALAR_FIELD(minmaxcollid);
*************** _equalMinMaxExpr(MinMaxExpr *a, MinMaxEx
*** 642,648 ****
}
static bool
! _equalXmlExpr(XmlExpr *a, XmlExpr *b)
{
COMPARE_SCALAR_FIELD(op);
COMPARE_STRING_FIELD(name);
--- 642,648 ----
}
static bool
! _equalXmlExpr(const XmlExpr *a, const XmlExpr *b)
{
COMPARE_SCALAR_FIELD(op);
COMPARE_STRING_FIELD(name);
*************** _equalXmlExpr(XmlExpr *a, XmlExpr *b)
*** 658,664 ****
}
static bool
! _equalNullTest(NullTest *a, NullTest *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(nulltesttype);
--- 658,664 ----
}
static bool
! _equalNullTest(const NullTest *a, const NullTest *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(nulltesttype);
*************** _equalNullTest(NullTest *a, NullTest *b)
*** 668,674 ****
}
static bool
! _equalBooleanTest(BooleanTest *a, BooleanTest *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(booltesttype);
--- 668,674 ----
}
static bool
! _equalBooleanTest(const BooleanTest *a, const BooleanTest *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(booltesttype);
*************** _equalBooleanTest(BooleanTest *a, Boolea
*** 677,683 ****
}
static bool
! _equalCoerceToDomain(CoerceToDomain *a, CoerceToDomain *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
--- 677,683 ----
}
static bool
! _equalCoerceToDomain(const CoerceToDomain *a, const CoerceToDomain *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_SCALAR_FIELD(resulttype);
*************** _equalCoerceToDomain(CoerceToDomain *a,
*** 699,705 ****
}
static bool
! _equalCoerceToDomainValue(CoerceToDomainValue *a, CoerceToDomainValue *b)
{
COMPARE_SCALAR_FIELD(typeId);
COMPARE_SCALAR_FIELD(typeMod);
--- 699,705 ----
}
static bool
! _equalCoerceToDomainValue(const CoerceToDomainValue *a, const CoerceToDomainValue *b)
{
COMPARE_SCALAR_FIELD(typeId);
COMPARE_SCALAR_FIELD(typeMod);
*************** _equalCoerceToDomainValue(CoerceToDomain
*** 710,716 ****
}
static bool
! _equalSetToDefault(SetToDefault *a, SetToDefault *b)
{
COMPARE_SCALAR_FIELD(typeId);
COMPARE_SCALAR_FIELD(typeMod);
--- 710,716 ----
}
static bool
! _equalSetToDefault(const SetToDefault *a, const SetToDefault *b)
{
COMPARE_SCALAR_FIELD(typeId);
COMPARE_SCALAR_FIELD(typeMod);
*************** _equalSetToDefault(SetToDefault *a, SetT
*** 721,727 ****
}
static bool
! _equalCurrentOfExpr(CurrentOfExpr *a, CurrentOfExpr *b)
{
COMPARE_SCALAR_FIELD(cvarno);
COMPARE_STRING_FIELD(cursor_name);
--- 721,727 ----
}
static bool
! _equalCurrentOfExpr(const CurrentOfExpr *a, const CurrentOfExpr *b)
{
COMPARE_SCALAR_FIELD(cvarno);
COMPARE_STRING_FIELD(cursor_name);
*************** _equalCurrentOfExpr(CurrentOfExpr *a, Cu
*** 731,737 ****
}
static bool
! _equalTargetEntry(TargetEntry *a, TargetEntry *b)
{
COMPARE_NODE_FIELD(expr);
COMPARE_SCALAR_FIELD(resno);
--- 731,737 ----
}
static bool
! _equalTargetEntry(const TargetEntry *a, const TargetEntry *b)
{
COMPARE_NODE_FIELD(expr);
COMPARE_SCALAR_FIELD(resno);
*************** _equalTargetEntry(TargetEntry *a, Target
*** 745,751 ****
}
static bool
! _equalRangeTblRef(RangeTblRef *a, RangeTblRef *b)
{
COMPARE_SCALAR_FIELD(rtindex);
--- 745,751 ----
}
static bool
! _equalRangeTblRef(const RangeTblRef *a, const RangeTblRef *b)
{
COMPARE_SCALAR_FIELD(rtindex);
*************** _equalRangeTblRef(RangeTblRef *a, RangeT
*** 753,759 ****
}
static bool
! _equalJoinExpr(JoinExpr *a, JoinExpr *b)
{
COMPARE_SCALAR_FIELD(jointype);
COMPARE_SCALAR_FIELD(isNatural);
--- 753,759 ----
}
static bool
! _equalJoinExpr(const JoinExpr *a, const JoinExpr *b)
{
COMPARE_SCALAR_FIELD(jointype);
COMPARE_SCALAR_FIELD(isNatural);
*************** _equalJoinExpr(JoinExpr *a, JoinExpr *b)
*** 768,774 ****
}
static bool
! _equalFromExpr(FromExpr *a, FromExpr *b)
{
COMPARE_NODE_FIELD(fromlist);
COMPARE_NODE_FIELD(quals);
--- 768,774 ----
}
static bool
! _equalFromExpr(const FromExpr *a, const FromExpr *b)
{
COMPARE_NODE_FIELD(fromlist);
COMPARE_NODE_FIELD(quals);
*************** _equalFromExpr(FromExpr *a, FromExpr *b)
*** 782,788 ****
*/
static bool
! _equalPathKey(PathKey *a, PathKey *b)
{
/*
* This is normally used on non-canonicalized PathKeys, so must chase up
--- 782,788 ----
*/
static bool
! _equalPathKey(const PathKey *a, const PathKey *b)
{
/*
* This is normally used on non-canonicalized PathKeys, so must chase up
*************** _equalPathKey(PathKey *a, PathKey *b)
*** 808,814 ****
}
static bool
! _equalRestrictInfo(RestrictInfo *a, RestrictInfo *b)
{
COMPARE_NODE_FIELD(clause);
COMPARE_SCALAR_FIELD(is_pushed_down);
--- 808,814 ----
}
static bool
! _equalRestrictInfo(const RestrictInfo *a, const RestrictInfo *b)
{
COMPARE_NODE_FIELD(clause);
COMPARE_SCALAR_FIELD(is_pushed_down);
*************** _equalRestrictInfo(RestrictInfo *a, Rest
*** 825,831 ****
}
static bool
! _equalPlaceHolderVar(PlaceHolderVar *a, PlaceHolderVar *b)
{
/*
* We intentionally do not compare phexpr. Two PlaceHolderVars with the
--- 825,831 ----
}
static bool
! _equalPlaceHolderVar(const PlaceHolderVar *a, const PlaceHolderVar *b)
{
/*
* We intentionally do not compare phexpr. Two PlaceHolderVars with the
*************** _equalPlaceHolderVar(PlaceHolderVar *a,
*** 846,852 ****
}
static bool
! _equalSpecialJoinInfo(SpecialJoinInfo *a, SpecialJoinInfo *b)
{
COMPARE_BITMAPSET_FIELD(min_lefthand);
COMPARE_BITMAPSET_FIELD(min_righthand);
--- 846,852 ----
}
static bool
! _equalSpecialJoinInfo(const SpecialJoinInfo *a, const SpecialJoinInfo *b)
{
COMPARE_BITMAPSET_FIELD(min_lefthand);
COMPARE_BITMAPSET_FIELD(min_righthand);
*************** _equalSpecialJoinInfo(SpecialJoinInfo *a
*** 861,867 ****
}
static bool
! _equalAppendRelInfo(AppendRelInfo *a, AppendRelInfo *b)
{
COMPARE_SCALAR_FIELD(parent_relid);
COMPARE_SCALAR_FIELD(child_relid);
--- 861,867 ----
}
static bool
! _equalAppendRelInfo(const AppendRelInfo *a, const AppendRelInfo *b)
{
COMPARE_SCALAR_FIELD(parent_relid);
COMPARE_SCALAR_FIELD(child_relid);
*************** _equalAppendRelInfo(AppendRelInfo *a, Ap
*** 874,880 ****
}
static bool
! _equalPlaceHolderInfo(PlaceHolderInfo *a, PlaceHolderInfo *b)
{
COMPARE_SCALAR_FIELD(phid);
COMPARE_NODE_FIELD(ph_var);
--- 874,880 ----
}
static bool
! _equalPlaceHolderInfo(const PlaceHolderInfo *a, const PlaceHolderInfo *b)
{
COMPARE_SCALAR_FIELD(phid);
COMPARE_NODE_FIELD(ph_var);
*************** _equalPlaceHolderInfo(PlaceHolderInfo *a
*** 892,898 ****
*/
static bool
! _equalQuery(Query *a, Query *b)
{
COMPARE_SCALAR_FIELD(commandType);
COMPARE_SCALAR_FIELD(querySource);
--- 892,898 ----
*/
static bool
! _equalQuery(const Query *a, const Query *b)
{
COMPARE_SCALAR_FIELD(commandType);
COMPARE_SCALAR_FIELD(querySource);
*************** _equalQuery(Query *a, Query *b)
*** 927,933 ****
}
static bool
! _equalInsertStmt(InsertStmt *a, InsertStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(cols);
--- 927,933 ----
}
static bool
! _equalInsertStmt(const InsertStmt *a, const InsertStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(cols);
*************** _equalInsertStmt(InsertStmt *a, InsertSt
*** 939,945 ****
}
static bool
! _equalDeleteStmt(DeleteStmt *a, DeleteStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(usingClause);
--- 939,945 ----
}
static bool
! _equalDeleteStmt(const DeleteStmt *a, const DeleteStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(usingClause);
*************** _equalDeleteStmt(DeleteStmt *a, DeleteSt
*** 951,957 ****
}
static bool
! _equalUpdateStmt(UpdateStmt *a, UpdateStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(targetList);
--- 951,957 ----
}
static bool
! _equalUpdateStmt(const UpdateStmt *a, const UpdateStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(targetList);
*************** _equalUpdateStmt(UpdateStmt *a, UpdateSt
*** 964,970 ****
}
static bool
! _equalSelectStmt(SelectStmt *a, SelectStmt *b)
{
COMPARE_NODE_FIELD(distinctClause);
COMPARE_NODE_FIELD(intoClause);
--- 964,970 ----
}
static bool
! _equalSelectStmt(const SelectStmt *a, const SelectStmt *b)
{
COMPARE_NODE_FIELD(distinctClause);
COMPARE_NODE_FIELD(intoClause);
*************** _equalSelectStmt(SelectStmt *a, SelectSt
*** 989,995 ****
}
static bool
! _equalSetOperationStmt(SetOperationStmt *a, SetOperationStmt *b)
{
COMPARE_SCALAR_FIELD(op);
COMPARE_SCALAR_FIELD(all);
--- 989,995 ----
}
static bool
! _equalSetOperationStmt(const SetOperationStmt *a, const SetOperationStmt *b)
{
COMPARE_SCALAR_FIELD(op);
COMPARE_SCALAR_FIELD(all);
*************** _equalSetOperationStmt(SetOperationStmt
*** 1004,1010 ****
}
static bool
! _equalAlterTableStmt(AlterTableStmt *a, AlterTableStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(cmds);
--- 1004,1010 ----
}
static bool
! _equalAlterTableStmt(const AlterTableStmt *a, const AlterTableStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(cmds);
*************** _equalAlterTableStmt(AlterTableStmt *a,
*** 1014,1020 ****
}
static bool
! _equalAlterTableCmd(AlterTableCmd *a, AlterTableCmd *b)
{
COMPARE_SCALAR_FIELD(subtype);
COMPARE_STRING_FIELD(name);
--- 1014,1020 ----
}
static bool
! _equalAlterTableCmd(const AlterTableCmd *a, const AlterTableCmd *b)
{
COMPARE_SCALAR_FIELD(subtype);
COMPARE_STRING_FIELD(name);
*************** _equalAlterTableCmd(AlterTableCmd *a, Al
*** 1026,1032 ****
}
static bool
! _equalAlterDomainStmt(AlterDomainStmt *a, AlterDomainStmt *b)
{
COMPARE_SCALAR_FIELD(subtype);
COMPARE_NODE_FIELD(typeName);
--- 1026,1032 ----
}
static bool
! _equalAlterDomainStmt(const AlterDomainStmt *a, const AlterDomainStmt *b)
{
COMPARE_SCALAR_FIELD(subtype);
COMPARE_NODE_FIELD(typeName);
*************** _equalAlterDomainStmt(AlterDomainStmt *a
*** 1038,1044 ****
}
static bool
! _equalGrantStmt(GrantStmt *a, GrantStmt *b)
{
COMPARE_SCALAR_FIELD(is_grant);
COMPARE_SCALAR_FIELD(targtype);
--- 1038,1044 ----
}
static bool
! _equalGrantStmt(const GrantStmt *a, const GrantStmt *b)
{
COMPARE_SCALAR_FIELD(is_grant);
COMPARE_SCALAR_FIELD(targtype);
*************** _equalGrantStmt(GrantStmt *a, GrantStmt
*** 1053,1059 ****
}
static bool
! _equalPrivGrantee(PrivGrantee *a, PrivGrantee *b)
{
COMPARE_STRING_FIELD(rolname);
--- 1053,1059 ----
}
static bool
! _equalPrivGrantee(const PrivGrantee *a, const PrivGrantee *b)
{
COMPARE_STRING_FIELD(rolname);
*************** _equalPrivGrantee(PrivGrantee *a, PrivGr
*** 1061,1067 ****
}
static bool
! _equalFuncWithArgs(FuncWithArgs *a, FuncWithArgs *b)
{
COMPARE_NODE_FIELD(funcname);
COMPARE_NODE_FIELD(funcargs);
--- 1061,1067 ----
}
static bool
! _equalFuncWithArgs(const FuncWithArgs *a, const FuncWithArgs *b)
{
COMPARE_NODE_FIELD(funcname);
COMPARE_NODE_FIELD(funcargs);
*************** _equalFuncWithArgs(FuncWithArgs *a, Func
*** 1070,1076 ****
}
static bool
! _equalAccessPriv(AccessPriv *a, AccessPriv *b)
{
COMPARE_STRING_FIELD(priv_name);
COMPARE_NODE_FIELD(cols);
--- 1070,1076 ----
}
static bool
! _equalAccessPriv(const AccessPriv *a, const AccessPriv *b)
{
COMPARE_STRING_FIELD(priv_name);
COMPARE_NODE_FIELD(cols);
*************** _equalAccessPriv(AccessPriv *a, AccessPr
*** 1079,1085 ****
}
static bool
! _equalGrantRoleStmt(GrantRoleStmt *a, GrantRoleStmt *b)
{
COMPARE_NODE_FIELD(granted_roles);
COMPARE_NODE_FIELD(grantee_roles);
--- 1079,1085 ----
}
static bool
! _equalGrantRoleStmt(const GrantRoleStmt *a, const GrantRoleStmt *b)
{
COMPARE_NODE_FIELD(granted_roles);
COMPARE_NODE_FIELD(grantee_roles);
*************** _equalGrantRoleStmt(GrantRoleStmt *a, Gr
*** 1092,1098 ****
}
static bool
! _equalAlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt *a, AlterDefaultPrivilegesStmt *b)
{
COMPARE_NODE_FIELD(options);
COMPARE_NODE_FIELD(action);
--- 1092,1098 ----
}
static bool
! _equalAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *a, const AlterDefaultPrivilegesStmt *b)
{
COMPARE_NODE_FIELD(options);
COMPARE_NODE_FIELD(action);
*************** _equalAlterDefaultPrivilegesStmt(AlterDe
*** 1101,1107 ****
}
static bool
! _equalDeclareCursorStmt(DeclareCursorStmt *a, DeclareCursorStmt *b)
{
COMPARE_STRING_FIELD(portalname);
COMPARE_SCALAR_FIELD(options);
--- 1101,1107 ----
}
static bool
! _equalDeclareCursorStmt(const DeclareCursorStmt *a, const DeclareCursorStmt *b)
{
COMPARE_STRING_FIELD(portalname);
COMPARE_SCALAR_FIELD(options);
*************** _equalDeclareCursorStmt(DeclareCursorStm
*** 1111,1117 ****
}
static bool
! _equalClosePortalStmt(ClosePortalStmt *a, ClosePortalStmt *b)
{
COMPARE_STRING_FIELD(portalname);
--- 1111,1117 ----
}
static bool
! _equalClosePortalStmt(const ClosePortalStmt *a, const ClosePortalStmt *b)
{
COMPARE_STRING_FIELD(portalname);
*************** _equalClosePortalStmt(ClosePortalStmt *a
*** 1119,1125 ****
}
static bool
! _equalClusterStmt(ClusterStmt *a, ClusterStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_STRING_FIELD(indexname);
--- 1119,1125 ----
}
static bool
! _equalClusterStmt(const ClusterStmt *a, const ClusterStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_STRING_FIELD(indexname);
*************** _equalClusterStmt(ClusterStmt *a, Cluste
*** 1129,1135 ****
}
static bool
! _equalCopyStmt(CopyStmt *a, CopyStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(query);
--- 1129,1135 ----
}
static bool
! _equalCopyStmt(const CopyStmt *a, const CopyStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(query);
*************** _equalCopyStmt(CopyStmt *a, CopyStmt *b)
*** 1142,1148 ****
}
static bool
! _equalCreateStmt(CreateStmt *a, CreateStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(tableElts);
--- 1142,1148 ----
}
static bool
! _equalCreateStmt(const CreateStmt *a, const CreateStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_NODE_FIELD(tableElts);
*************** _equalCreateStmt(CreateStmt *a, CreateSt
*** 1158,1164 ****
}
static bool
! _equalInhRelation(InhRelation *a, InhRelation *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_SCALAR_FIELD(options);
--- 1158,1164 ----
}
static bool
! _equalInhRelation(const InhRelation *a, const InhRelation *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_SCALAR_FIELD(options);
*************** _equalInhRelation(InhRelation *a, InhRel
*** 1167,1173 ****
}
static bool
! _equalDefineStmt(DefineStmt *a, DefineStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_SCALAR_FIELD(oldstyle);
--- 1167,1173 ----
}
static bool
! _equalDefineStmt(const DefineStmt *a, const DefineStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_SCALAR_FIELD(oldstyle);
*************** _equalDefineStmt(DefineStmt *a, DefineSt
*** 1179,1185 ****
}
static bool
! _equalDropStmt(DropStmt *a, DropStmt *b)
{
COMPARE_NODE_FIELD(objects);
COMPARE_SCALAR_FIELD(removeType);
--- 1179,1185 ----
}
static bool
! _equalDropStmt(const DropStmt *a, const DropStmt *b)
{
COMPARE_NODE_FIELD(objects);
COMPARE_SCALAR_FIELD(removeType);
*************** _equalDropStmt(DropStmt *a, DropStmt *b)
*** 1190,1196 ****
}
static bool
! _equalTruncateStmt(TruncateStmt *a, TruncateStmt *b)
{
COMPARE_NODE_FIELD(relations);
COMPARE_SCALAR_FIELD(restart_seqs);
--- 1190,1196 ----
}
static bool
! _equalTruncateStmt(const TruncateStmt *a, const TruncateStmt *b)
{
COMPARE_NODE_FIELD(relations);
COMPARE_SCALAR_FIELD(restart_seqs);
*************** _equalTruncateStmt(TruncateStmt *a, Trun
*** 1200,1206 ****
}
static bool
! _equalCommentStmt(CommentStmt *a, CommentStmt *b)
{
COMPARE_SCALAR_FIELD(objtype);
COMPARE_NODE_FIELD(objname);
--- 1200,1206 ----
}
static bool
! _equalCommentStmt(const CommentStmt *a, const CommentStmt *b)
{
COMPARE_SCALAR_FIELD(objtype);
COMPARE_NODE_FIELD(objname);
*************** _equalCommentStmt(CommentStmt *a, Commen
*** 1211,1217 ****
}
static bool
! _equalSecLabelStmt(SecLabelStmt *a, SecLabelStmt *b)
{
COMPARE_SCALAR_FIELD(objtype);
COMPARE_NODE_FIELD(objname);
--- 1211,1217 ----
}
static bool
! _equalSecLabelStmt(const SecLabelStmt *a, const SecLabelStmt *b)
{
COMPARE_SCALAR_FIELD(objtype);
COMPARE_NODE_FIELD(objname);
*************** _equalSecLabelStmt(SecLabelStmt *a, SecL
*** 1223,1229 ****
}
static bool
! _equalFetchStmt(FetchStmt *a, FetchStmt *b)
{
COMPARE_SCALAR_FIELD(direction);
COMPARE_SCALAR_FIELD(howMany);
--- 1223,1229 ----
}
static bool
! _equalFetchStmt(const FetchStmt *a, const FetchStmt *b)
{
COMPARE_SCALAR_FIELD(direction);
COMPARE_SCALAR_FIELD(howMany);
*************** _equalFetchStmt(FetchStmt *a, FetchStmt
*** 1234,1240 ****
}
static bool
! _equalIndexStmt(IndexStmt *a, IndexStmt *b)
{
COMPARE_STRING_FIELD(idxname);
COMPARE_NODE_FIELD(relation);
--- 1234,1240 ----
}
static bool
! _equalIndexStmt(const IndexStmt *a, const IndexStmt *b)
{
COMPARE_STRING_FIELD(idxname);
COMPARE_NODE_FIELD(relation);
*************** _equalIndexStmt(IndexStmt *a, IndexStmt
*** 1257,1263 ****
}
static bool
! _equalCreateFunctionStmt(CreateFunctionStmt *a, CreateFunctionStmt *b)
{
COMPARE_SCALAR_FIELD(replace);
COMPARE_NODE_FIELD(funcname);
--- 1257,1263 ----
}
static bool
! _equalCreateFunctionStmt(const CreateFunctionStmt *a, const CreateFunctionStmt *b)
{
COMPARE_SCALAR_FIELD(replace);
COMPARE_NODE_FIELD(funcname);
*************** _equalCreateFunctionStmt(CreateFunctionS
*** 1270,1276 ****
}
static bool
! _equalFunctionParameter(FunctionParameter *a, FunctionParameter *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(argType);
--- 1270,1276 ----
}
static bool
! _equalFunctionParameter(const FunctionParameter *a, const FunctionParameter *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(argType);
*************** _equalFunctionParameter(FunctionParamete
*** 1281,1287 ****
}
static bool
! _equalAlterFunctionStmt(AlterFunctionStmt *a, AlterFunctionStmt *b)
{
COMPARE_NODE_FIELD(func);
COMPARE_NODE_FIELD(actions);
--- 1281,1287 ----
}
static bool
! _equalAlterFunctionStmt(const AlterFunctionStmt *a, const AlterFunctionStmt *b)
{
COMPARE_NODE_FIELD(func);
COMPARE_NODE_FIELD(actions);
*************** _equalAlterFunctionStmt(AlterFunctionStm
*** 1290,1296 ****
}
static bool
! _equalRemoveFuncStmt(RemoveFuncStmt *a, RemoveFuncStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(name);
--- 1290,1296 ----
}
static bool
! _equalRemoveFuncStmt(const RemoveFuncStmt *a, const RemoveFuncStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(name);
*************** _equalRemoveFuncStmt(RemoveFuncStmt *a,
*** 1302,1308 ****
}
static bool
! _equalDoStmt(DoStmt *a, DoStmt *b)
{
COMPARE_NODE_FIELD(args);
--- 1302,1308 ----
}
static bool
! _equalDoStmt(const DoStmt *a, const DoStmt *b)
{
COMPARE_NODE_FIELD(args);
*************** _equalDoStmt(DoStmt *a, DoStmt *b)
*** 1310,1316 ****
}
static bool
! _equalRemoveOpClassStmt(RemoveOpClassStmt *a, RemoveOpClassStmt *b)
{
COMPARE_NODE_FIELD(opclassname);
COMPARE_STRING_FIELD(amname);
--- 1310,1316 ----
}
static bool
! _equalRemoveOpClassStmt(const RemoveOpClassStmt *a, const RemoveOpClassStmt *b)
{
COMPARE_NODE_FIELD(opclassname);
COMPARE_STRING_FIELD(amname);
*************** _equalRemoveOpClassStmt(RemoveOpClassStm
*** 1321,1327 ****
}
static bool
! _equalRemoveOpFamilyStmt(RemoveOpFamilyStmt *a, RemoveOpFamilyStmt *b)
{
COMPARE_NODE_FIELD(opfamilyname);
COMPARE_STRING_FIELD(amname);
--- 1321,1327 ----
}
static bool
! _equalRemoveOpFamilyStmt(const RemoveOpFamilyStmt *a, const RemoveOpFamilyStmt *b)
{
COMPARE_NODE_FIELD(opfamilyname);
COMPARE_STRING_FIELD(amname);
*************** _equalRemoveOpFamilyStmt(RemoveOpFamilyS
*** 1332,1338 ****
}
static bool
! _equalRenameStmt(RenameStmt *a, RenameStmt *b)
{
COMPARE_SCALAR_FIELD(renameType);
COMPARE_NODE_FIELD(relation);
--- 1332,1338 ----
}
static bool
! _equalRenameStmt(const RenameStmt *a, const RenameStmt *b)
{
COMPARE_SCALAR_FIELD(renameType);
COMPARE_NODE_FIELD(relation);
*************** _equalRenameStmt(RenameStmt *a, RenameSt
*** 1346,1352 ****
}
static bool
! _equalAlterObjectSchemaStmt(AlterObjectSchemaStmt *a, AlterObjectSchemaStmt *b)
{
COMPARE_SCALAR_FIELD(objectType);
COMPARE_NODE_FIELD(relation);
--- 1346,1352 ----
}
static bool
! _equalAlterObjectSchemaStmt(const AlterObjectSchemaStmt *a, const AlterObjectSchemaStmt *b)
{
COMPARE_SCALAR_FIELD(objectType);
COMPARE_NODE_FIELD(relation);
*************** _equalAlterObjectSchemaStmt(AlterObjectS
*** 1359,1365 ****
}
static bool
! _equalAlterOwnerStmt(AlterOwnerStmt *a, AlterOwnerStmt *b)
{
COMPARE_SCALAR_FIELD(objectType);
COMPARE_NODE_FIELD(relation);
--- 1359,1365 ----
}
static bool
! _equalAlterOwnerStmt(const AlterOwnerStmt *a, const AlterOwnerStmt *b)
{
COMPARE_SCALAR_FIELD(objectType);
COMPARE_NODE_FIELD(relation);
*************** _equalAlterOwnerStmt(AlterOwnerStmt *a,
*** 1372,1378 ****
}
static bool
! _equalRuleStmt(RuleStmt *a, RuleStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_STRING_FIELD(rulename);
--- 1372,1378 ----
}
static bool
! _equalRuleStmt(const RuleStmt *a, const RuleStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_STRING_FIELD(rulename);
*************** _equalRuleStmt(RuleStmt *a, RuleStmt *b)
*** 1386,1392 ****
}
static bool
! _equalNotifyStmt(NotifyStmt *a, NotifyStmt *b)
{
COMPARE_STRING_FIELD(conditionname);
COMPARE_STRING_FIELD(payload);
--- 1386,1392 ----
}
static bool
! _equalNotifyStmt(const NotifyStmt *a, const NotifyStmt *b)
{
COMPARE_STRING_FIELD(conditionname);
COMPARE_STRING_FIELD(payload);
*************** _equalNotifyStmt(NotifyStmt *a, NotifySt
*** 1395,1401 ****
}
static bool
! _equalListenStmt(ListenStmt *a, ListenStmt *b)
{
COMPARE_STRING_FIELD(conditionname);
--- 1395,1401 ----
}
static bool
! _equalListenStmt(const ListenStmt *a, const ListenStmt *b)
{
COMPARE_STRING_FIELD(conditionname);
*************** _equalListenStmt(ListenStmt *a, ListenSt
*** 1403,1409 ****
}
static bool
! _equalUnlistenStmt(UnlistenStmt *a, UnlistenStmt *b)
{
COMPARE_STRING_FIELD(conditionname);
--- 1403,1409 ----
}
static bool
! _equalUnlistenStmt(const UnlistenStmt *a, const UnlistenStmt *b)
{
COMPARE_STRING_FIELD(conditionname);
*************** _equalUnlistenStmt(UnlistenStmt *a, Unli
*** 1411,1417 ****
}
static bool
! _equalTransactionStmt(TransactionStmt *a, TransactionStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(options);
--- 1411,1417 ----
}
static bool
! _equalTransactionStmt(const TransactionStmt *a, const TransactionStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(options);
*************** _equalTransactionStmt(TransactionStmt *a
*** 1421,1427 ****
}
static bool
! _equalCompositeTypeStmt(CompositeTypeStmt *a, CompositeTypeStmt *b)
{
COMPARE_NODE_FIELD(typevar);
COMPARE_NODE_FIELD(coldeflist);
--- 1421,1427 ----
}
static bool
! _equalCompositeTypeStmt(const CompositeTypeStmt *a, const CompositeTypeStmt *b)
{
COMPARE_NODE_FIELD(typevar);
COMPARE_NODE_FIELD(coldeflist);
*************** _equalCompositeTypeStmt(CompositeTypeStm
*** 1430,1436 ****
}
static bool
! _equalCreateEnumStmt(CreateEnumStmt *a, CreateEnumStmt *b)
{
COMPARE_NODE_FIELD(typeName);
COMPARE_NODE_FIELD(vals);
--- 1430,1436 ----
}
static bool
! _equalCreateEnumStmt(const CreateEnumStmt *a, const CreateEnumStmt *b)
{
COMPARE_NODE_FIELD(typeName);
COMPARE_NODE_FIELD(vals);
*************** _equalCreateEnumStmt(CreateEnumStmt *a,
*** 1439,1445 ****
}
static bool
! _equalCreateRangeStmt(CreateRangeStmt *a, CreateRangeStmt *b)
{
COMPARE_NODE_FIELD(typeName);
COMPARE_NODE_FIELD(params);
--- 1439,1445 ----
}
static bool
! _equalCreateRangeStmt(const CreateRangeStmt *a, const CreateRangeStmt *b)
{
COMPARE_NODE_FIELD(typeName);
COMPARE_NODE_FIELD(params);
*************** _equalCreateRangeStmt(CreateRangeStmt *a
*** 1448,1454 ****
}
static bool
! _equalAlterEnumStmt(AlterEnumStmt *a, AlterEnumStmt *b)
{
COMPARE_NODE_FIELD(typeName);
COMPARE_STRING_FIELD(newVal);
--- 1448,1454 ----
}
static bool
! _equalAlterEnumStmt(const AlterEnumStmt *a, const AlterEnumStmt *b)
{
COMPARE_NODE_FIELD(typeName);
COMPARE_STRING_FIELD(newVal);
*************** _equalAlterEnumStmt(AlterEnumStmt *a, Al
*** 1459,1465 ****
}
static bool
! _equalViewStmt(ViewStmt *a, ViewStmt *b)
{
COMPARE_NODE_FIELD(view);
COMPARE_NODE_FIELD(aliases);
--- 1459,1465 ----
}
static bool
! _equalViewStmt(const ViewStmt *a, const ViewStmt *b)
{
COMPARE_NODE_FIELD(view);
COMPARE_NODE_FIELD(aliases);
*************** _equalViewStmt(ViewStmt *a, ViewStmt *b)
*** 1470,1476 ****
}
static bool
! _equalLoadStmt(LoadStmt *a, LoadStmt *b)
{
COMPARE_STRING_FIELD(filename);
--- 1470,1476 ----
}
static bool
! _equalLoadStmt(const LoadStmt *a, const LoadStmt *b)
{
COMPARE_STRING_FIELD(filename);
*************** _equalLoadStmt(LoadStmt *a, LoadStmt *b)
*** 1478,1484 ****
}
static bool
! _equalCreateDomainStmt(CreateDomainStmt *a, CreateDomainStmt *b)
{
COMPARE_NODE_FIELD(domainname);
COMPARE_NODE_FIELD(typeName);
--- 1478,1484 ----
}
static bool
! _equalCreateDomainStmt(const CreateDomainStmt *a, const CreateDomainStmt *b)
{
COMPARE_NODE_FIELD(domainname);
COMPARE_NODE_FIELD(typeName);
*************** _equalCreateDomainStmt(CreateDomainStmt
*** 1489,1495 ****
}
static bool
! _equalCreateOpClassStmt(CreateOpClassStmt *a, CreateOpClassStmt *b)
{
COMPARE_NODE_FIELD(opclassname);
COMPARE_NODE_FIELD(opfamilyname);
--- 1489,1495 ----
}
static bool
! _equalCreateOpClassStmt(const CreateOpClassStmt *a, const CreateOpClassStmt *b)
{
COMPARE_NODE_FIELD(opclassname);
COMPARE_NODE_FIELD(opfamilyname);
*************** _equalCreateOpClassStmt(CreateOpClassStm
*** 1502,1508 ****
}
static bool
! _equalCreateOpClassItem(CreateOpClassItem *a, CreateOpClassItem *b)
{
COMPARE_SCALAR_FIELD(itemtype);
COMPARE_NODE_FIELD(name);
--- 1502,1508 ----
}
static bool
! _equalCreateOpClassItem(const CreateOpClassItem *a, const CreateOpClassItem *b)
{
COMPARE_SCALAR_FIELD(itemtype);
COMPARE_NODE_FIELD(name);
*************** _equalCreateOpClassItem(CreateOpClassIte
*** 1516,1522 ****
}
static bool
! _equalCreateOpFamilyStmt(CreateOpFamilyStmt *a, CreateOpFamilyStmt *b)
{
COMPARE_NODE_FIELD(opfamilyname);
COMPARE_STRING_FIELD(amname);
--- 1516,1522 ----
}
static bool
! _equalCreateOpFamilyStmt(const CreateOpFamilyStmt *a, const CreateOpFamilyStmt *b)
{
COMPARE_NODE_FIELD(opfamilyname);
COMPARE_STRING_FIELD(amname);
*************** _equalCreateOpFamilyStmt(CreateOpFamilyS
*** 1525,1531 ****
}
static bool
! _equalAlterOpFamilyStmt(AlterOpFamilyStmt *a, AlterOpFamilyStmt *b)
{
COMPARE_NODE_FIELD(opfamilyname);
COMPARE_STRING_FIELD(amname);
--- 1525,1531 ----
}
static bool
! _equalAlterOpFamilyStmt(const AlterOpFamilyStmt *a, const AlterOpFamilyStmt *b)
{
COMPARE_NODE_FIELD(opfamilyname);
COMPARE_STRING_FIELD(amname);
*************** _equalAlterOpFamilyStmt(AlterOpFamilyStm
*** 1536,1542 ****
}
static bool
! _equalCreatedbStmt(CreatedbStmt *a, CreatedbStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_NODE_FIELD(options);
--- 1536,1542 ----
}
static bool
! _equalCreatedbStmt(const CreatedbStmt *a, const CreatedbStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_NODE_FIELD(options);
*************** _equalCreatedbStmt(CreatedbStmt *a, Crea
*** 1545,1551 ****
}
static bool
! _equalAlterDatabaseStmt(AlterDatabaseStmt *a, AlterDatabaseStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_NODE_FIELD(options);
--- 1545,1551 ----
}
static bool
! _equalAlterDatabaseStmt(const AlterDatabaseStmt *a, const AlterDatabaseStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_NODE_FIELD(options);
*************** _equalAlterDatabaseStmt(AlterDatabaseStm
*** 1554,1560 ****
}
static bool
! _equalAlterDatabaseSetStmt(AlterDatabaseSetStmt *a, AlterDatabaseSetStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_NODE_FIELD(setstmt);
--- 1554,1560 ----
}
static bool
! _equalAlterDatabaseSetStmt(const AlterDatabaseSetStmt *a, const AlterDatabaseSetStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_NODE_FIELD(setstmt);
*************** _equalAlterDatabaseSetStmt(AlterDatabase
*** 1563,1569 ****
}
static bool
! _equalDropdbStmt(DropdbStmt *a, DropdbStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_SCALAR_FIELD(missing_ok);
--- 1563,1569 ----
}
static bool
! _equalDropdbStmt(const DropdbStmt *a, const DropdbStmt *b)
{
COMPARE_STRING_FIELD(dbname);
COMPARE_SCALAR_FIELD(missing_ok);
*************** _equalDropdbStmt(DropdbStmt *a, DropdbSt
*** 1572,1578 ****
}
static bool
! _equalVacuumStmt(VacuumStmt *a, VacuumStmt *b)
{
COMPARE_SCALAR_FIELD(options);
COMPARE_SCALAR_FIELD(freeze_min_age);
--- 1572,1578 ----
}
static bool
! _equalVacuumStmt(const VacuumStmt *a, const VacuumStmt *b)
{
COMPARE_SCALAR_FIELD(options);
COMPARE_SCALAR_FIELD(freeze_min_age);
*************** _equalVacuumStmt(VacuumStmt *a, VacuumSt
*** 1584,1590 ****
}
static bool
! _equalExplainStmt(ExplainStmt *a, ExplainStmt *b)
{
COMPARE_NODE_FIELD(query);
COMPARE_NODE_FIELD(options);
--- 1584,1590 ----
}
static bool
! _equalExplainStmt(const ExplainStmt *a, const ExplainStmt *b)
{
COMPARE_NODE_FIELD(query);
COMPARE_NODE_FIELD(options);
*************** _equalExplainStmt(ExplainStmt *a, Explai
*** 1593,1599 ****
}
static bool
! _equalCreateSeqStmt(CreateSeqStmt *a, CreateSeqStmt *b)
{
COMPARE_NODE_FIELD(sequence);
COMPARE_NODE_FIELD(options);
--- 1593,1599 ----
}
static bool
! _equalCreateSeqStmt(const CreateSeqStmt *a, const CreateSeqStmt *b)
{
COMPARE_NODE_FIELD(sequence);
COMPARE_NODE_FIELD(options);
*************** _equalCreateSeqStmt(CreateSeqStmt *a, Cr
*** 1603,1609 ****
}
static bool
! _equalAlterSeqStmt(AlterSeqStmt *a, AlterSeqStmt *b)
{
COMPARE_NODE_FIELD(sequence);
COMPARE_NODE_FIELD(options);
--- 1603,1609 ----
}
static bool
! _equalAlterSeqStmt(const AlterSeqStmt *a, const AlterSeqStmt *b)
{
COMPARE_NODE_FIELD(sequence);
COMPARE_NODE_FIELD(options);
*************** _equalAlterSeqStmt(AlterSeqStmt *a, Alte
*** 1612,1618 ****
}
static bool
! _equalVariableSetStmt(VariableSetStmt *a, VariableSetStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_STRING_FIELD(name);
--- 1612,1618 ----
}
static bool
! _equalVariableSetStmt(const VariableSetStmt *a, const VariableSetStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_STRING_FIELD(name);
*************** _equalVariableSetStmt(VariableSetStmt *a
*** 1623,1629 ****
}
static bool
! _equalVariableShowStmt(VariableShowStmt *a, VariableShowStmt *b)
{
COMPARE_STRING_FIELD(name);
--- 1623,1629 ----
}
static bool
! _equalVariableShowStmt(const VariableShowStmt *a, const VariableShowStmt *b)
{
COMPARE_STRING_FIELD(name);
*************** _equalVariableShowStmt(VariableShowStmt
*** 1631,1637 ****
}
static bool
! _equalDiscardStmt(DiscardStmt *a, DiscardStmt *b)
{
COMPARE_SCALAR_FIELD(target);
--- 1631,1637 ----
}
static bool
! _equalDiscardStmt(const DiscardStmt *a, const DiscardStmt *b)
{
COMPARE_SCALAR_FIELD(target);
*************** _equalDiscardStmt(DiscardStmt *a, Discar
*** 1639,1645 ****
}
static bool
! _equalCreateTableSpaceStmt(CreateTableSpaceStmt *a, CreateTableSpaceStmt *b)
{
COMPARE_STRING_FIELD(tablespacename);
COMPARE_STRING_FIELD(owner);
--- 1639,1645 ----
}
static bool
! _equalCreateTableSpaceStmt(const CreateTableSpaceStmt *a, const CreateTableSpaceStmt *b)
{
COMPARE_STRING_FIELD(tablespacename);
COMPARE_STRING_FIELD(owner);
*************** _equalCreateTableSpaceStmt(CreateTableSp
*** 1649,1655 ****
}
static bool
! _equalDropTableSpaceStmt(DropTableSpaceStmt *a, DropTableSpaceStmt *b)
{
COMPARE_STRING_FIELD(tablespacename);
COMPARE_SCALAR_FIELD(missing_ok);
--- 1649,1655 ----
}
static bool
! _equalDropTableSpaceStmt(const DropTableSpaceStmt *a, const DropTableSpaceStmt *b)
{
COMPARE_STRING_FIELD(tablespacename);
COMPARE_SCALAR_FIELD(missing_ok);
*************** _equalDropTableSpaceStmt(DropTableSpaceS
*** 1658,1665 ****
}
static bool
! _equalAlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt *a,
! AlterTableSpaceOptionsStmt *b)
{
COMPARE_STRING_FIELD(tablespacename);
COMPARE_NODE_FIELD(options);
--- 1658,1665 ----
}
static bool
! _equalAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *a,
! const AlterTableSpaceOptionsStmt *b)
{
COMPARE_STRING_FIELD(tablespacename);
COMPARE_NODE_FIELD(options);
*************** _equalAlterTableSpaceOptionsStmt(AlterTa
*** 1669,1675 ****
}
static bool
! _equalCreateExtensionStmt(CreateExtensionStmt *a, CreateExtensionStmt *b)
{
COMPARE_STRING_FIELD(extname);
COMPARE_SCALAR_FIELD(if_not_exists);
--- 1669,1675 ----
}
static bool
! _equalCreateExtensionStmt(const CreateExtensionStmt *a, const CreateExtensionStmt *b)
{
COMPARE_STRING_FIELD(extname);
COMPARE_SCALAR_FIELD(if_not_exists);
*************** _equalCreateExtensionStmt(CreateExtensio
*** 1679,1685 ****
}
static bool
! _equalAlterExtensionStmt(AlterExtensionStmt *a, AlterExtensionStmt *b)
{
COMPARE_STRING_FIELD(extname);
COMPARE_NODE_FIELD(options);
--- 1679,1685 ----
}
static bool
! _equalAlterExtensionStmt(const AlterExtensionStmt *a, const AlterExtensionStmt *b)
{
COMPARE_STRING_FIELD(extname);
COMPARE_NODE_FIELD(options);
*************** _equalAlterExtensionStmt(AlterExtensionS
*** 1688,1694 ****
}
static bool
! _equalAlterExtensionContentsStmt(AlterExtensionContentsStmt *a, AlterExtensionContentsStmt *b)
{
COMPARE_STRING_FIELD(extname);
COMPARE_SCALAR_FIELD(action);
--- 1688,1694 ----
}
static bool
! _equalAlterExtensionContentsStmt(const AlterExtensionContentsStmt *a, const AlterExtensionContentsStmt *b)
{
COMPARE_STRING_FIELD(extname);
COMPARE_SCALAR_FIELD(action);
*************** _equalAlterExtensionContentsStmt(AlterEx
*** 1700,1706 ****
}
static bool
! _equalCreateFdwStmt(CreateFdwStmt *a, CreateFdwStmt *b)
{
COMPARE_STRING_FIELD(fdwname);
COMPARE_NODE_FIELD(func_options);
--- 1700,1706 ----
}
static bool
! _equalCreateFdwStmt(const CreateFdwStmt *a, const CreateFdwStmt *b)
{
COMPARE_STRING_FIELD(fdwname);
COMPARE_NODE_FIELD(func_options);
*************** _equalCreateFdwStmt(CreateFdwStmt *a, Cr
*** 1710,1716 ****
}
static bool
! _equalAlterFdwStmt(AlterFdwStmt *a, AlterFdwStmt *b)
{
COMPARE_STRING_FIELD(fdwname);
COMPARE_NODE_FIELD(func_options);
--- 1710,1716 ----
}
static bool
! _equalAlterFdwStmt(const AlterFdwStmt *a, const AlterFdwStmt *b)
{
COMPARE_STRING_FIELD(fdwname);
COMPARE_NODE_FIELD(func_options);
*************** _equalAlterFdwStmt(AlterFdwStmt *a, Alte
*** 1720,1726 ****
}
static bool
! _equalDropFdwStmt(DropFdwStmt *a, DropFdwStmt *b)
{
COMPARE_STRING_FIELD(fdwname);
COMPARE_SCALAR_FIELD(missing_ok);
--- 1720,1726 ----
}
static bool
! _equalDropFdwStmt(const DropFdwStmt *a, const DropFdwStmt *b)
{
COMPARE_STRING_FIELD(fdwname);
COMPARE_SCALAR_FIELD(missing_ok);
*************** _equalDropFdwStmt(DropFdwStmt *a, DropFd
*** 1730,1736 ****
}
static bool
! _equalCreateForeignServerStmt(CreateForeignServerStmt *a, CreateForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_STRING_FIELD(servertype);
--- 1730,1736 ----
}
static bool
! _equalCreateForeignServerStmt(const CreateForeignServerStmt *a, const CreateForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_STRING_FIELD(servertype);
*************** _equalCreateForeignServerStmt(CreateFore
*** 1742,1748 ****
}
static bool
! _equalAlterForeignServerStmt(AlterForeignServerStmt *a, AlterForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_STRING_FIELD(version);
--- 1742,1748 ----
}
static bool
! _equalAlterForeignServerStmt(const AlterForeignServerStmt *a, const AlterForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_STRING_FIELD(version);
*************** _equalAlterForeignServerStmt(AlterForeig
*** 1753,1759 ****
}
static bool
! _equalDropForeignServerStmt(DropForeignServerStmt *a, DropForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_SCALAR_FIELD(missing_ok);
--- 1753,1759 ----
}
static bool
! _equalDropForeignServerStmt(const DropForeignServerStmt *a, const DropForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_SCALAR_FIELD(missing_ok);
*************** _equalDropForeignServerStmt(DropForeignS
*** 1763,1769 ****
}
static bool
! _equalCreateUserMappingStmt(CreateUserMappingStmt *a, CreateUserMappingStmt *b)
{
COMPARE_STRING_FIELD(username);
COMPARE_STRING_FIELD(servername);
--- 1763,1769 ----
}
static bool
! _equalCreateUserMappingStmt(const CreateUserMappingStmt *a, const CreateUserMappingStmt *b)
{
COMPARE_STRING_FIELD(username);
COMPARE_STRING_FIELD(servername);
*************** _equalCreateUserMappingStmt(CreateUserMa
*** 1773,1779 ****
}
static bool
! _equalAlterUserMappingStmt(AlterUserMappingStmt *a, AlterUserMappingStmt *b)
{
COMPARE_STRING_FIELD(username);
COMPARE_STRING_FIELD(servername);
--- 1773,1779 ----
}
static bool
! _equalAlterUserMappingStmt(const AlterUserMappingStmt *a, const AlterUserMappingStmt *b)
{
COMPARE_STRING_FIELD(username);
COMPARE_STRING_FIELD(servername);
*************** _equalAlterUserMappingStmt(AlterUserMapp
*** 1783,1789 ****
}
static bool
! _equalDropUserMappingStmt(DropUserMappingStmt *a, DropUserMappingStmt *b)
{
COMPARE_STRING_FIELD(username);
COMPARE_STRING_FIELD(servername);
--- 1783,1789 ----
}
static bool
! _equalDropUserMappingStmt(const DropUserMappingStmt *a, const DropUserMappingStmt *b)
{
COMPARE_STRING_FIELD(username);
COMPARE_STRING_FIELD(servername);
*************** _equalDropUserMappingStmt(DropUserMappin
*** 1793,1799 ****
}
static bool
! _equalCreateForeignTableStmt(CreateForeignTableStmt *a, CreateForeignTableStmt *b)
{
if (!_equalCreateStmt(&a->base, &b->base))
return false;
--- 1793,1799 ----
}
static bool
! _equalCreateForeignTableStmt(const CreateForeignTableStmt *a, const CreateForeignTableStmt *b)
{
if (!_equalCreateStmt(&a->base, &b->base))
return false;
*************** _equalCreateForeignTableStmt(CreateForei
*** 1805,1811 ****
}
static bool
! _equalCreateTrigStmt(CreateTrigStmt *a, CreateTrigStmt *b)
{
COMPARE_STRING_FIELD(trigname);
COMPARE_NODE_FIELD(relation);
--- 1805,1811 ----
}
static bool
! _equalCreateTrigStmt(const CreateTrigStmt *a, const CreateTrigStmt *b)
{
COMPARE_STRING_FIELD(trigname);
COMPARE_NODE_FIELD(relation);
*************** _equalCreateTrigStmt(CreateTrigStmt *a,
*** 1825,1831 ****
}
static bool
! _equalDropPropertyStmt(DropPropertyStmt *a, DropPropertyStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_STRING_FIELD(property);
--- 1825,1831 ----
}
static bool
! _equalDropPropertyStmt(const DropPropertyStmt *a, const DropPropertyStmt *b)
{
COMPARE_NODE_FIELD(relation);
COMPARE_STRING_FIELD(property);
*************** _equalDropPropertyStmt(DropPropertyStmt
*** 1837,1843 ****
}
static bool
! _equalCreatePLangStmt(CreatePLangStmt *a, CreatePLangStmt *b)
{
COMPARE_SCALAR_FIELD(replace);
COMPARE_STRING_FIELD(plname);
--- 1837,1843 ----
}
static bool
! _equalCreatePLangStmt(const CreatePLangStmt *a, const CreatePLangStmt *b)
{
COMPARE_SCALAR_FIELD(replace);
COMPARE_STRING_FIELD(plname);
*************** _equalCreatePLangStmt(CreatePLangStmt *a
*** 1850,1856 ****
}
static bool
! _equalDropPLangStmt(DropPLangStmt *a, DropPLangStmt *b)
{
COMPARE_STRING_FIELD(plname);
COMPARE_SCALAR_FIELD(behavior);
--- 1850,1856 ----
}
static bool
! _equalDropPLangStmt(const DropPLangStmt *a, const DropPLangStmt *b)
{
COMPARE_STRING_FIELD(plname);
COMPARE_SCALAR_FIELD(behavior);
*************** _equalDropPLangStmt(DropPLangStmt *a, Dr
*** 1860,1866 ****
}
static bool
! _equalCreateRoleStmt(CreateRoleStmt *a, CreateRoleStmt *b)
{
COMPARE_SCALAR_FIELD(stmt_type);
COMPARE_STRING_FIELD(role);
--- 1860,1866 ----
}
static bool
! _equalCreateRoleStmt(const CreateRoleStmt *a, const CreateRoleStmt *b)
{
COMPARE_SCALAR_FIELD(stmt_type);
COMPARE_STRING_FIELD(role);
*************** _equalCreateRoleStmt(CreateRoleStmt *a,
*** 1870,1876 ****
}
static bool
! _equalAlterRoleStmt(AlterRoleStmt *a, AlterRoleStmt *b)
{
COMPARE_STRING_FIELD(role);
COMPARE_NODE_FIELD(options);
--- 1870,1876 ----
}
static bool
! _equalAlterRoleStmt(const AlterRoleStmt *a, const AlterRoleStmt *b)
{
COMPARE_STRING_FIELD(role);
COMPARE_NODE_FIELD(options);
*************** _equalAlterRoleStmt(AlterRoleStmt *a, Al
*** 1880,1886 ****
}
static bool
! _equalAlterRoleSetStmt(AlterRoleSetStmt *a, AlterRoleSetStmt *b)
{
COMPARE_STRING_FIELD(role);
COMPARE_STRING_FIELD(database);
--- 1880,1886 ----
}
static bool
! _equalAlterRoleSetStmt(const AlterRoleSetStmt *a, const AlterRoleSetStmt *b)
{
COMPARE_STRING_FIELD(role);
COMPARE_STRING_FIELD(database);
*************** _equalAlterRoleSetStmt(AlterRoleSetStmt
*** 1890,1896 ****
}
static bool
! _equalDropRoleStmt(DropRoleStmt *a, DropRoleStmt *b)
{
COMPARE_NODE_FIELD(roles);
COMPARE_SCALAR_FIELD(missing_ok);
--- 1890,1896 ----
}
static bool
! _equalDropRoleStmt(const DropRoleStmt *a, const DropRoleStmt *b)
{
COMPARE_NODE_FIELD(roles);
COMPARE_SCALAR_FIELD(missing_ok);
*************** _equalDropRoleStmt(DropRoleStmt *a, Drop
*** 1899,1905 ****
}
static bool
! _equalLockStmt(LockStmt *a, LockStmt *b)
{
COMPARE_NODE_FIELD(relations);
COMPARE_SCALAR_FIELD(mode);
--- 1899,1905 ----
}
static bool
! _equalLockStmt(const LockStmt *a, const LockStmt *b)
{
COMPARE_NODE_FIELD(relations);
COMPARE_SCALAR_FIELD(mode);
*************** _equalLockStmt(LockStmt *a, LockStmt *b)
*** 1909,1915 ****
}
static bool
! _equalConstraintsSetStmt(ConstraintsSetStmt *a, ConstraintsSetStmt *b)
{
COMPARE_NODE_FIELD(constraints);
COMPARE_SCALAR_FIELD(deferred);
--- 1909,1915 ----
}
static bool
! _equalConstraintsSetStmt(const ConstraintsSetStmt *a, const ConstraintsSetStmt *b)
{
COMPARE_NODE_FIELD(constraints);
COMPARE_SCALAR_FIELD(deferred);
*************** _equalConstraintsSetStmt(ConstraintsSetS
*** 1918,1924 ****
}
static bool
! _equalReindexStmt(ReindexStmt *a, ReindexStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(relation);
--- 1918,1924 ----
}
static bool
! _equalReindexStmt(const ReindexStmt *a, const ReindexStmt *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(relation);
*************** _equalReindexStmt(ReindexStmt *a, Reinde
*** 1930,1936 ****
}
static bool
! _equalCreateSchemaStmt(CreateSchemaStmt *a, CreateSchemaStmt *b)
{
COMPARE_STRING_FIELD(schemaname);
COMPARE_STRING_FIELD(authid);
--- 1930,1936 ----
}
static bool
! _equalCreateSchemaStmt(const CreateSchemaStmt *a, const CreateSchemaStmt *b)
{
COMPARE_STRING_FIELD(schemaname);
COMPARE_STRING_FIELD(authid);
*************** _equalCreateSchemaStmt(CreateSchemaStmt
*** 1940,1946 ****
}
static bool
! _equalCreateConversionStmt(CreateConversionStmt *a, CreateConversionStmt *b)
{
COMPARE_NODE_FIELD(conversion_name);
COMPARE_STRING_FIELD(for_encoding_name);
--- 1940,1946 ----
}
static bool
! _equalCreateConversionStmt(const CreateConversionStmt *a, const CreateConversionStmt *b)
{
COMPARE_NODE_FIELD(conversion_name);
COMPARE_STRING_FIELD(for_encoding_name);
*************** _equalCreateConversionStmt(CreateConvers
*** 1952,1958 ****
}
static bool
! _equalCreateCastStmt(CreateCastStmt *a, CreateCastStmt *b)
{
COMPARE_NODE_FIELD(sourcetype);
COMPARE_NODE_FIELD(targettype);
--- 1952,1958 ----
}
static bool
! _equalCreateCastStmt(const CreateCastStmt *a, const CreateCastStmt *b)
{
COMPARE_NODE_FIELD(sourcetype);
COMPARE_NODE_FIELD(targettype);
*************** _equalCreateCastStmt(CreateCastStmt *a,
*** 1964,1970 ****
}
static bool
! _equalDropCastStmt(DropCastStmt *a, DropCastStmt *b)
{
COMPARE_NODE_FIELD(sourcetype);
COMPARE_NODE_FIELD(targettype);
--- 1964,1970 ----
}
static bool
! _equalDropCastStmt(const DropCastStmt *a, const DropCastStmt *b)
{
COMPARE_NODE_FIELD(sourcetype);
COMPARE_NODE_FIELD(targettype);
*************** _equalDropCastStmt(DropCastStmt *a, Drop
*** 1975,1981 ****
}
static bool
! _equalPrepareStmt(PrepareStmt *a, PrepareStmt *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(argtypes);
--- 1975,1981 ----
}
static bool
! _equalPrepareStmt(const PrepareStmt *a, const PrepareStmt *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(argtypes);
*************** _equalPrepareStmt(PrepareStmt *a, Prepar
*** 1985,1991 ****
}
static bool
! _equalExecuteStmt(ExecuteStmt *a, ExecuteStmt *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(into);
--- 1985,1991 ----
}
static bool
! _equalExecuteStmt(const ExecuteStmt *a, const ExecuteStmt *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(into);
*************** _equalExecuteStmt(ExecuteStmt *a, Execut
*** 1995,2001 ****
}
static bool
! _equalDeallocateStmt(DeallocateStmt *a, DeallocateStmt *b)
{
COMPARE_STRING_FIELD(name);
--- 1995,2001 ----
}
static bool
! _equalDeallocateStmt(const DeallocateStmt *a, const DeallocateStmt *b)
{
COMPARE_STRING_FIELD(name);
*************** _equalDeallocateStmt(DeallocateStmt *a,
*** 2003,2009 ****
}
static bool
! _equalDropOwnedStmt(DropOwnedStmt *a, DropOwnedStmt *b)
{
COMPARE_NODE_FIELD(roles);
COMPARE_SCALAR_FIELD(behavior);
--- 2003,2009 ----
}
static bool
! _equalDropOwnedStmt(const DropOwnedStmt *a, const DropOwnedStmt *b)
{
COMPARE_NODE_FIELD(roles);
COMPARE_SCALAR_FIELD(behavior);
*************** _equalDropOwnedStmt(DropOwnedStmt *a, Dr
*** 2012,2018 ****
}
static bool
! _equalReassignOwnedStmt(ReassignOwnedStmt *a, ReassignOwnedStmt *b)
{
COMPARE_NODE_FIELD(roles);
COMPARE_NODE_FIELD(newrole);
--- 2012,2018 ----
}
static bool
! _equalReassignOwnedStmt(const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
{
COMPARE_NODE_FIELD(roles);
COMPARE_NODE_FIELD(newrole);
*************** _equalReassignOwnedStmt(ReassignOwnedStm
*** 2021,2027 ****
}
static bool
! _equalAlterTSDictionaryStmt(AlterTSDictionaryStmt *a, AlterTSDictionaryStmt *b)
{
COMPARE_NODE_FIELD(dictname);
COMPARE_NODE_FIELD(options);
--- 2021,2027 ----
}
static bool
! _equalAlterTSDictionaryStmt(const AlterTSDictionaryStmt *a, const AlterTSDictionaryStmt *b)
{
COMPARE_NODE_FIELD(dictname);
COMPARE_NODE_FIELD(options);
*************** _equalAlterTSDictionaryStmt(AlterTSDicti
*** 2030,2037 ****
}
static bool
! _equalAlterTSConfigurationStmt(AlterTSConfigurationStmt *a,
! AlterTSConfigurationStmt *b)
{
COMPARE_NODE_FIELD(cfgname);
COMPARE_NODE_FIELD(tokentype);
--- 2030,2037 ----
}
static bool
! _equalAlterTSConfigurationStmt(const AlterTSConfigurationStmt *a,
! const AlterTSConfigurationStmt *b)
{
COMPARE_NODE_FIELD(cfgname);
COMPARE_NODE_FIELD(tokentype);
*************** _equalAlterTSConfigurationStmt(AlterTSCo
*** 2044,2050 ****
}
static bool
! _equalAExpr(A_Expr *a, A_Expr *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(name);
--- 2044,2050 ----
}
static bool
! _equalAExpr(const A_Expr *a, const A_Expr *b)
{
COMPARE_SCALAR_FIELD(kind);
COMPARE_NODE_FIELD(name);
*************** _equalAExpr(A_Expr *a, A_Expr *b)
*** 2056,2062 ****
}
static bool
! _equalColumnRef(ColumnRef *a, ColumnRef *b)
{
COMPARE_NODE_FIELD(fields);
COMPARE_LOCATION_FIELD(location);
--- 2056,2062 ----
}
static bool
! _equalColumnRef(const ColumnRef *a, const ColumnRef *b)
{
COMPARE_NODE_FIELD(fields);
COMPARE_LOCATION_FIELD(location);
*************** _equalColumnRef(ColumnRef *a, ColumnRef
*** 2065,2071 ****
}
static bool
! _equalParamRef(ParamRef *a, ParamRef *b)
{
COMPARE_SCALAR_FIELD(number);
COMPARE_LOCATION_FIELD(location);
--- 2065,2071 ----
}
static bool
! _equalParamRef(const ParamRef *a, const ParamRef *b)
{
COMPARE_SCALAR_FIELD(number);
COMPARE_LOCATION_FIELD(location);
*************** _equalParamRef(ParamRef *a, ParamRef *b)
*** 2074,2080 ****
}
static bool
! _equalAConst(A_Const *a, A_Const *b)
{
if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
return false;
--- 2074,2080 ----
}
static bool
! _equalAConst(const A_Const *a, const A_Const *b)
{
if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
return false;
*************** _equalAConst(A_Const *a, A_Const *b)
*** 2084,2090 ****
}
static bool
! _equalFuncCall(FuncCall *a, FuncCall *b)
{
COMPARE_NODE_FIELD(funcname);
COMPARE_NODE_FIELD(args);
--- 2084,2090 ----
}
static bool
! _equalFuncCall(const FuncCall *a, const FuncCall *b)
{
COMPARE_NODE_FIELD(funcname);
COMPARE_NODE_FIELD(args);
*************** _equalFuncCall(FuncCall *a, FuncCall *b)
*** 2099,2111 ****
}
static bool
! _equalAStar(A_Star *a, A_Star *b)
{
return true;
}
static bool
! _equalAIndices(A_Indices *a, A_Indices *b)
{
COMPARE_NODE_FIELD(lidx);
COMPARE_NODE_FIELD(uidx);
--- 2099,2111 ----
}
static bool
! _equalAStar(const A_Star *a, const A_Star *b)
{
return true;
}
static bool
! _equalAIndices(const A_Indices *a, const A_Indices *b)
{
COMPARE_NODE_FIELD(lidx);
COMPARE_NODE_FIELD(uidx);
*************** _equalAIndices(A_Indices *a, A_Indices *
*** 2114,2120 ****
}
static bool
! _equalA_Indirection(A_Indirection *a, A_Indirection *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(indirection);
--- 2114,2120 ----
}
static bool
! _equalA_Indirection(const A_Indirection *a, const A_Indirection *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(indirection);
*************** _equalA_Indirection(A_Indirection *a, A_
*** 2123,2129 ****
}
static bool
! _equalA_ArrayExpr(A_ArrayExpr *a, A_ArrayExpr *b)
{
COMPARE_NODE_FIELD(elements);
COMPARE_LOCATION_FIELD(location);
--- 2123,2129 ----
}
static bool
! _equalA_ArrayExpr(const A_ArrayExpr *a, const A_ArrayExpr *b)
{
COMPARE_NODE_FIELD(elements);
COMPARE_LOCATION_FIELD(location);
*************** _equalA_ArrayExpr(A_ArrayExpr *a, A_Arra
*** 2132,2138 ****
}
static bool
! _equalResTarget(ResTarget *a, ResTarget *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(indirection);
--- 2132,2138 ----
}
static bool
! _equalResTarget(const ResTarget *a, const ResTarget *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(indirection);
*************** _equalResTarget(ResTarget *a, ResTarget
*** 2143,2149 ****
}
static bool
! _equalTypeName(TypeName *a, TypeName *b)
{
COMPARE_NODE_FIELD(names);
COMPARE_SCALAR_FIELD(typeOid);
--- 2143,2149 ----
}
static bool
! _equalTypeName(const TypeName *a, const TypeName *b)
{
COMPARE_NODE_FIELD(names);
COMPARE_SCALAR_FIELD(typeOid);
*************** _equalTypeName(TypeName *a, TypeName *b)
*** 2158,2164 ****
}
static bool
! _equalTypeCast(TypeCast *a, TypeCast *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(typeName);
--- 2158,2164 ----
}
static bool
! _equalTypeCast(const TypeCast *a, const TypeCast *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(typeName);
*************** _equalTypeCast(TypeCast *a, TypeCast *b)
*** 2168,2174 ****
}
static bool
! _equalCollateClause(CollateClause *a, CollateClause *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(collname);
--- 2168,2174 ----
}
static bool
! _equalCollateClause(const CollateClause *a, const CollateClause *b)
{
COMPARE_NODE_FIELD(arg);
COMPARE_NODE_FIELD(collname);
*************** _equalCollateClause(CollateClause *a, Co
*** 2178,2184 ****
}
static bool
! _equalSortBy(SortBy *a, SortBy *b)
{
COMPARE_NODE_FIELD(node);
COMPARE_SCALAR_FIELD(sortby_dir);
--- 2178,2184 ----
}
static bool
! _equalSortBy(const SortBy *a, const SortBy *b)
{
COMPARE_NODE_FIELD(node);
COMPARE_SCALAR_FIELD(sortby_dir);
*************** _equalSortBy(SortBy *a, SortBy *b)
*** 2190,2196 ****
}
static bool
! _equalWindowDef(WindowDef *a, WindowDef *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_STRING_FIELD(refname);
--- 2190,2196 ----
}
static bool
! _equalWindowDef(const WindowDef *a, const WindowDef *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_STRING_FIELD(refname);
*************** _equalWindowDef(WindowDef *a, WindowDef
*** 2205,2211 ****
}
static bool
! _equalRangeSubselect(RangeSubselect *a, RangeSubselect *b)
{
COMPARE_NODE_FIELD(subquery);
COMPARE_NODE_FIELD(alias);
--- 2205,2211 ----
}
static bool
! _equalRangeSubselect(const RangeSubselect *a, const RangeSubselect *b)
{
COMPARE_NODE_FIELD(subquery);
COMPARE_NODE_FIELD(alias);
*************** _equalRangeSubselect(RangeSubselect *a,
*** 2214,2220 ****
}
static bool
! _equalRangeFunction(RangeFunction *a, RangeFunction *b)
{
COMPARE_NODE_FIELD(funccallnode);
COMPARE_NODE_FIELD(alias);
--- 2214,2220 ----
}
static bool
! _equalRangeFunction(const RangeFunction *a, const RangeFunction *b)
{
COMPARE_NODE_FIELD(funccallnode);
COMPARE_NODE_FIELD(alias);
*************** _equalRangeFunction(RangeFunction *a, Ra
*** 2224,2230 ****
}
static bool
! _equalIndexElem(IndexElem *a, IndexElem *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(expr);
--- 2224,2230 ----
}
static bool
! _equalIndexElem(const IndexElem *a, const IndexElem *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_NODE_FIELD(expr);
*************** _equalIndexElem(IndexElem *a, IndexElem
*** 2238,2244 ****
}
static bool
! _equalColumnDef(ColumnDef *a, ColumnDef *b)
{
COMPARE_STRING_FIELD(colname);
COMPARE_NODE_FIELD(typeName);
--- 2238,2244 ----
}
static bool
! _equalColumnDef(const ColumnDef *a, const ColumnDef *b)
{
COMPARE_STRING_FIELD(colname);
COMPARE_NODE_FIELD(typeName);
*************** _equalColumnDef(ColumnDef *a, ColumnDef
*** 2257,2263 ****
}
static bool
! _equalConstraint(Constraint *a, Constraint *b)
{
COMPARE_SCALAR_FIELD(contype);
COMPARE_STRING_FIELD(conname);
--- 2257,2263 ----
}
static bool
! _equalConstraint(const Constraint *a, const Constraint *b)
{
COMPARE_SCALAR_FIELD(contype);
COMPARE_STRING_FIELD(conname);
*************** _equalConstraint(Constraint *a, Constrai
*** 2286,2292 ****
}
static bool
! _equalDefElem(DefElem *a, DefElem *b)
{
COMPARE_STRING_FIELD(defnamespace);
COMPARE_STRING_FIELD(defname);
--- 2286,2292 ----
}
static bool
! _equalDefElem(const DefElem *a, const DefElem *b)
{
COMPARE_STRING_FIELD(defnamespace);
COMPARE_STRING_FIELD(defname);
*************** _equalDefElem(DefElem *a, DefElem *b)
*** 2297,2303 ****
}
static bool
! _equalLockingClause(LockingClause *a, LockingClause *b)
{
COMPARE_NODE_FIELD(lockedRels);
COMPARE_SCALAR_FIELD(forUpdate);
--- 2297,2303 ----
}
static bool
! _equalLockingClause(const LockingClause *a, const LockingClause *b)
{
COMPARE_NODE_FIELD(lockedRels);
COMPARE_SCALAR_FIELD(forUpdate);
*************** _equalLockingClause(LockingClause *a, Lo
*** 2307,2313 ****
}
static bool
! _equalRangeTblEntry(RangeTblEntry *a, RangeTblEntry *b)
{
COMPARE_SCALAR_FIELD(rtekind);
COMPARE_SCALAR_FIELD(relid);
--- 2307,2313 ----
}
static bool
! _equalRangeTblEntry(const RangeTblEntry *a, const RangeTblEntry *b)
{
COMPARE_SCALAR_FIELD(rtekind);
COMPARE_SCALAR_FIELD(relid);
*************** _equalRangeTblEntry(RangeTblEntry *a, Ra
*** 2340,2346 ****
}
static bool
! _equalSortGroupClause(SortGroupClause *a, SortGroupClause *b)
{
COMPARE_SCALAR_FIELD(tleSortGroupRef);
COMPARE_SCALAR_FIELD(eqop);
--- 2340,2346 ----
}
static bool
! _equalSortGroupClause(const SortGroupClause *a, const SortGroupClause *b)
{
COMPARE_SCALAR_FIELD(tleSortGroupRef);
COMPARE_SCALAR_FIELD(eqop);
*************** _equalSortGroupClause(SortGroupClause *a
*** 2352,2358 ****
}
static bool
! _equalWindowClause(WindowClause *a, WindowClause *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_STRING_FIELD(refname);
--- 2352,2358 ----
}
static bool
! _equalWindowClause(const WindowClause *a, const WindowClause *b)
{
COMPARE_STRING_FIELD(name);
COMPARE_STRING_FIELD(refname);
*************** _equalWindowClause(WindowClause *a, Wind
*** 2368,2374 ****
}
static bool
! _equalRowMarkClause(RowMarkClause *a, RowMarkClause *b)
{
COMPARE_SCALAR_FIELD(rti);
COMPARE_SCALAR_FIELD(forUpdate);
--- 2368,2374 ----
}
static bool
! _equalRowMarkClause(const RowMarkClause *a, const RowMarkClause *b)
{
COMPARE_SCALAR_FIELD(rti);
COMPARE_SCALAR_FIELD(forUpdate);
*************** _equalRowMarkClause(RowMarkClause *a, Ro
*** 2379,2385 ****
}
static bool
! _equalWithClause(WithClause *a, WithClause *b)
{
COMPARE_NODE_FIELD(ctes);
COMPARE_SCALAR_FIELD(recursive);
--- 2379,2385 ----
}
static bool
! _equalWithClause(const WithClause *a, const WithClause *b)
{
COMPARE_NODE_FIELD(ctes);
COMPARE_SCALAR_FIELD(recursive);
*************** _equalWithClause(WithClause *a, WithClau
*** 2389,2395 ****
}
static bool
! _equalCommonTableExpr(CommonTableExpr *a, CommonTableExpr *b)
{
COMPARE_STRING_FIELD(ctename);
COMPARE_NODE_FIELD(aliascolnames);
--- 2389,2395 ----
}
static bool
! _equalCommonTableExpr(const CommonTableExpr *a, const CommonTableExpr *b)
{
COMPARE_STRING_FIELD(ctename);
COMPARE_NODE_FIELD(aliascolnames);
*************** _equalCommonTableExpr(CommonTableExpr *a
*** 2406,2412 ****
}
static bool
! _equalXmlSerialize(XmlSerialize *a, XmlSerialize *b)
{
COMPARE_SCALAR_FIELD(xmloption);
COMPARE_NODE_FIELD(expr);
--- 2406,2412 ----
}
static bool
! _equalXmlSerialize(const XmlSerialize *a, const XmlSerialize *b)
{
COMPARE_SCALAR_FIELD(xmloption);
COMPARE_NODE_FIELD(expr);
*************** _equalXmlSerialize(XmlSerialize *a, XmlS
*** 2421,2430 ****
*/
static bool
! _equalList(List *a, List *b)
{
! ListCell *item_a;
! ListCell *item_b;
/*
* Try to reject by simple scalar checks before grovelling through all the
--- 2421,2430 ----
*/
static bool
! _equalList(const List *a, const List *b)
{
! const ListCell *item_a;
! const ListCell *item_b;
/*
* Try to reject by simple scalar checks before grovelling through all the
*************** _equalList(List *a, List *b)
*** 2440,2460 ****
switch (a->type)
{
case T_List:
! forboth(item_a, a, item_b, b)
{
if (!equal(lfirst(item_a), lfirst(item_b)))
return false;
}
break;
case T_IntList:
! forboth(item_a, a, item_b, b)
{
if (lfirst_int(item_a) != lfirst_int(item_b))
return false;
}
break;
case T_OidList:
! forboth(item_a, a, item_b, b)
{
if (lfirst_oid(item_a) != lfirst_oid(item_b))
return false;
--- 2440,2460 ----
switch (a->type)
{
case T_List:
! forboth_const(item_a, a, item_b, b)
{
if (!equal(lfirst(item_a), lfirst(item_b)))
return false;
}
break;
case T_IntList:
! forboth_const(item_a, a, item_b, b)
{
if (lfirst_int(item_a) != lfirst_int(item_b))
return false;
}
break;
case T_OidList:
! forboth_const(item_a, a, item_b, b)
{
if (lfirst_oid(item_a) != lfirst_oid(item_b))
return false;
*************** _equalList(List *a, List *b)
*** 2480,2486 ****
*/
static bool
! _equalValue(Value *a, Value *b)
{
COMPARE_SCALAR_FIELD(type);
--- 2480,2486 ----
*/
static bool
! _equalValue(const Value *a, const Value *b)
{
COMPARE_SCALAR_FIELD(type);
*************** _equalValue(Value *a, Value *b)
*** 2510,2516 ****
* returns whether two nodes are equal
*/
bool
! equal(void *a, void *b)
{
bool retval;
--- 2510,2516 ----
* returns whether two nodes are equal
*/
bool
! equal(const void *a, const void *b)
{
bool retval;
diff --git a/src/backend/nodes/list.c b/src/backend/nodes/list.c
new file mode 100644
index d4684d3..8dfbcb7
*** a/src/backend/nodes/list.c
--- b/src/backend/nodes/list.c
***************
*** 31,37 ****
* Check that the specified List is valid (so far as we can tell).
*/
static void
! check_list_invariants(List *list)
{
if (list == NIL)
return;
--- 31,37 ----
* Check that the specified List is valid (so far as we can tell).
*/
static void
! check_list_invariants(const List *list)
{
if (list == NIL)
return;
*************** list_truncate(List *list, int new_size)
*** 383,389 ****
* failure if there is no such cell.
*/
static ListCell *
! list_nth_cell(List *list, int n)
{
ListCell *match;
--- 383,389 ----
* failure if there is no such cell.
*/
static ListCell *
! list_nth_cell(const List *list, int n)
{
ListCell *match;
*************** list_nth_cell(List *list, int n)
*** 407,413 ****
* specified list. (List elements begin at 0.)
*/
void *
! list_nth(List *list, int n)
{
Assert(IsPointerList(list));
return lfirst(list_nth_cell(list, n));
--- 407,413 ----
* specified list. (List elements begin at 0.)
*/
void *
! list_nth(const List *list, int n)
{
Assert(IsPointerList(list));
return lfirst(list_nth_cell(list, n));
*************** list_nth(List *list, int n)
*** 418,424 ****
* specified list.
*/
int
! list_nth_int(List *list, int n)
{
Assert(IsIntegerList(list));
return lfirst_int(list_nth_cell(list, n));
--- 418,424 ----
* specified list.
*/
int
! list_nth_int(const List *list, int n)
{
Assert(IsIntegerList(list));
return lfirst_int(list_nth_cell(list, n));
*************** list_nth_int(List *list, int n)
*** 429,435 ****
* list.
*/
Oid
! list_nth_oid(List *list, int n)
{
Assert(IsOidList(list));
return lfirst_oid(list_nth_cell(list, n));
--- 429,435 ----
* list.
*/
Oid
! list_nth_oid(const List *list, int n)
{
Assert(IsOidList(list));
return lfirst_oid(list_nth_cell(list, n));
*************** list_nth_oid(List *list, int n)
*** 441,454 ****
* Node as 'datum'.
*/
bool
! list_member(List *list, void *datum)
{
! ListCell *cell;
Assert(IsPointerList(list));
check_list_invariants(list);
! foreach(cell, list)
{
if (equal(lfirst(cell), datum))
return true;
--- 441,454 ----
* Node as 'datum'.
*/
bool
! list_member(const List *list, const void *datum)
{
! const ListCell *cell;
Assert(IsPointerList(list));
check_list_invariants(list);
! foreach_const(cell, list)
{
if (equal(lfirst(cell), datum))
return true;
*************** list_member(List *list, void *datum)
*** 462,475 ****
* determined by using simple pointer comparison.
*/
bool
! list_member_ptr(List *list, void *datum)
{
! ListCell *cell;
Assert(IsPointerList(list));
check_list_invariants(list);
! foreach(cell, list)
{
if (lfirst(cell) == datum)
return true;
--- 462,475 ----
* determined by using simple pointer comparison.
*/
bool
! list_member_ptr(const List *list, const void *datum)
{
! const ListCell *cell;
Assert(IsPointerList(list));
check_list_invariants(list);
! foreach_const(cell, list)
{
if (lfirst(cell) == datum)
return true;
*************** list_member_ptr(List *list, void *datum)
*** 482,495 ****
* Return true iff the integer 'datum' is a member of the list.
*/
bool
! list_member_int(List *list, int datum)
{
! ListCell *cell;
Assert(IsIntegerList(list));
check_list_invariants(list);
! foreach(cell, list)
{
if (lfirst_int(cell) == datum)
return true;
--- 482,495 ----
* Return true iff the integer 'datum' is a member of the list.
*/
bool
! list_member_int(const List *list, int datum)
{
! const ListCell *cell;
Assert(IsIntegerList(list));
check_list_invariants(list);
! foreach_const(cell, list)
{
if (lfirst_int(cell) == datum)
return true;
*************** list_member_int(List *list, int datum)
*** 502,515 ****
* Return true iff the OID 'datum' is a member of the list.
*/
bool
! list_member_oid(List *list, Oid datum)
{
! ListCell *cell;
Assert(IsOidList(list));
check_list_invariants(list);
! foreach(cell, list)
{
if (lfirst_oid(cell) == datum)
return true;
--- 502,515 ----
* Return true iff the OID 'datum' is a member of the list.
*/
bool
! list_member_oid(const List *list, Oid datum)
{
! const ListCell *cell;
Assert(IsOidList(list));
check_list_invariants(list);
! foreach_const(cell, list)
{
if (lfirst_oid(cell) == datum)
return true;
*************** list_delete_first(List *list)
*** 694,709 ****
* performance bottleneck.
*/
List *
! list_union(List *list1, List *list2)
{
List *result;
! ListCell *cell;
Assert(IsPointerList(list1));
Assert(IsPointerList(list2));
result = list_copy(list1);
! foreach(cell, list2)
{
if (!list_member(result, lfirst(cell)))
result = lappend(result, lfirst(cell));
--- 694,709 ----
* performance bottleneck.
*/
List *
! list_union(const List *list1, const List *list2)
{
List *result;
! const ListCell *cell;
Assert(IsPointerList(list1));
Assert(IsPointerList(list2));
result = list_copy(list1);
! foreach_const(cell, list2)
{
if (!list_member(result, lfirst(cell)))
result = lappend(result, lfirst(cell));
*************** list_union(List *list1, List *list2)
*** 718,733 ****
* pointer comparison.
*/
List *
! list_union_ptr(List *list1, List *list2)
{
List *result;
! ListCell *cell;
Assert(IsPointerList(list1));
Assert(IsPointerList(list2));
result = list_copy(list1);
! foreach(cell, list2)
{
if (!list_member_ptr(result, lfirst(cell)))
result = lappend(result, lfirst(cell));
--- 718,733 ----
* pointer comparison.
*/
List *
! list_union_ptr(const List *list1, const List *list2)
{
List *result;
! const ListCell *cell;
Assert(IsPointerList(list1));
Assert(IsPointerList(list2));
result = list_copy(list1);
! foreach_const(cell, list2)
{
if (!list_member_ptr(result, lfirst(cell)))
result = lappend(result, lfirst(cell));
*************** list_union_ptr(List *list1, List *list2)
*** 741,756 ****
* This variant of list_union() operates upon lists of integers.
*/
List *
! list_union_int(List *list1, List *list2)
{
List *result;
! ListCell *cell;
Assert(IsIntegerList(list1));
Assert(IsIntegerList(list2));
result = list_copy(list1);
! foreach(cell, list2)
{
if (!list_member_int(result, lfirst_int(cell)))
result = lappend_int(result, lfirst_int(cell));
--- 741,756 ----
* This variant of list_union() operates upon lists of integers.
*/
List *
! list_union_int(const List *list1, const List *list2)
{
List *result;
! const ListCell *cell;
Assert(IsIntegerList(list1));
Assert(IsIntegerList(list2));
result = list_copy(list1);
! foreach_const(cell, list2)
{
if (!list_member_int(result, lfirst_int(cell)))
result = lappend_int(result, lfirst_int(cell));
*************** list_union_int(List *list1, List *list2)
*** 764,779 ****
* This variant of list_union() operates upon lists of OIDs.
*/
List *
! list_union_oid(List *list1, List *list2)
{
List *result;
! ListCell *cell;
Assert(IsOidList(list1));
Assert(IsOidList(list2));
result = list_copy(list1);
! foreach(cell, list2)
{
if (!list_member_oid(result, lfirst_oid(cell)))
result = lappend_oid(result, lfirst_oid(cell));
--- 764,779 ----
* This variant of list_union() operates upon lists of OIDs.
*/
List *
! list_union_oid(const List *list1, const List *list2)
{
List *result;
! const ListCell *cell;
Assert(IsOidList(list1));
Assert(IsOidList(list2));
result = list_copy(list1);
! foreach_const(cell, list2)
{
if (!list_member_oid(result, lfirst_oid(cell)))
result = lappend_oid(result, lfirst_oid(cell));
*************** list_union_oid(List *list1, List *list2)
*** 797,806 ****
* to in the result.
*/
List *
! list_intersection(List *list1, List *list2)
{
List *result;
! ListCell *cell;
if (list1 == NIL || list2 == NIL)
return NIL;
--- 797,806 ----
* to in the result.
*/
List *
! list_intersection(const List *list1, const List *list2)
{
List *result;
! const ListCell *cell;
if (list1 == NIL || list2 == NIL)
return NIL;
*************** list_intersection(List *list1, List *lis
*** 809,815 ****
Assert(IsPointerList(list2));
result = NIL;
! foreach(cell, list1)
{
if (list_member(list2, lfirst(cell)))
result = lappend(result, lfirst(cell));
--- 809,815 ----
Assert(IsPointerList(list2));
result = NIL;
! foreach_const(cell, list1)
{
if (list_member(list2, lfirst(cell)))
result = lappend(result, lfirst(cell));
*************** list_intersection(List *list1, List *lis
*** 829,837 ****
* membership via equal()
*/
List *
! list_difference(List *list1, List *list2)
{
! ListCell *cell;
List *result = NIL;
Assert(IsPointerList(list1));
--- 829,837 ----
* membership via equal()
*/
List *
! list_difference(const List *list1, const List *list2)
{
! const ListCell *cell;
List *result = NIL;
Assert(IsPointerList(list1));
*************** list_difference(List *list1, List *list2
*** 840,846 ****
if (list2 == NIL)
return list_copy(list1);
! foreach(cell, list1)
{
if (!list_member(list2, lfirst(cell)))
result = lappend(result, lfirst(cell));
--- 840,846 ----
if (list2 == NIL)
return list_copy(list1);
! foreach_const(cell, list1)
{
if (!list_member(list2, lfirst(cell)))
result = lappend(result, lfirst(cell));
*************** list_difference(List *list1, List *list2
*** 855,863 ****
* simple pointer equality.
*/
List *
! list_difference_ptr(List *list1, List *list2)
{
! ListCell *cell;
List *result = NIL;
Assert(IsPointerList(list1));
--- 855,863 ----
* simple pointer equality.
*/
List *
! list_difference_ptr(const List *list1, const List *list2)
{
! const ListCell *cell;
List *result = NIL;
Assert(IsPointerList(list1));
*************** list_difference_ptr(List *list1, List *l
*** 866,872 ****
if (list2 == NIL)
return list_copy(list1);
! foreach(cell, list1)
{
if (!list_member_ptr(list2, lfirst(cell)))
result = lappend(result, lfirst(cell));
--- 866,872 ----
if (list2 == NIL)
return list_copy(list1);
! foreach_const(cell, list1)
{
if (!list_member_ptr(list2, lfirst(cell)))
result = lappend(result, lfirst(cell));
*************** list_difference_ptr(List *list1, List *l
*** 880,888 ****
* This variant of list_difference() operates upon lists of integers.
*/
List *
! list_difference_int(List *list1, List *list2)
{
! ListCell *cell;
List *result = NIL;
Assert(IsIntegerList(list1));
--- 880,888 ----
* This variant of list_difference() operates upon lists of integers.
*/
List *
! list_difference_int(const List *list1, const List *list2)
{
! const ListCell *cell;
List *result = NIL;
Assert(IsIntegerList(list1));
*************** list_difference_int(List *list1, List *l
*** 891,897 ****
if (list2 == NIL)
return list_copy(list1);
! foreach(cell, list1)
{
if (!list_member_int(list2, lfirst_int(cell)))
result = lappend_int(result, lfirst_int(cell));
--- 891,897 ----
if (list2 == NIL)
return list_copy(list1);
! foreach_const(cell, list1)
{
if (!list_member_int(list2, lfirst_int(cell)))
result = lappend_int(result, lfirst_int(cell));
*************** list_difference_int(List *list1, List *l
*** 905,913 ****
* This variant of list_difference() operates upon lists of OIDs.
*/
List *
! list_difference_oid(List *list1, List *list2)
{
! ListCell *cell;
List *result = NIL;
Assert(IsOidList(list1));
--- 905,913 ----
* This variant of list_difference() operates upon lists of OIDs.
*/
List *
! list_difference_oid(const List *list1, const List *list2)
{
! const ListCell *cell;
List *result = NIL;
Assert(IsOidList(list1));
*************** list_difference_oid(List *list1, List *l
*** 916,922 ****
if (list2 == NIL)
return list_copy(list1);
! foreach(cell, list1)
{
if (!list_member_oid(list2, lfirst_oid(cell)))
result = lappend_oid(result, lfirst_oid(cell));
--- 916,922 ----
if (list2 == NIL)
return list_copy(list1);
! foreach_const(cell, list1)
{
if (!list_member_oid(list2, lfirst_oid(cell)))
result = lappend_oid(result, lfirst_oid(cell));
*************** list_free_deep(List *list)
*** 1131,1137 ****
* Return a shallow copy of the specified list.
*/
List *
! list_copy(List *oldlist)
{
List *newlist;
ListCell *newlist_prev;
--- 1131,1137 ----
* Return a shallow copy of the specified list.
*/
List *
! list_copy(const List *oldlist)
{
List *newlist;
ListCell *newlist_prev;
*************** list_copy(List *oldlist)
*** 1174,1180 ****
* Return a shallow copy of the specified list, without the first N elements.
*/
List *
! list_copy_tail(List *oldlist, int nskip)
{
List *newlist;
ListCell *newlist_prev;
--- 1174,1180 ----
* Return a shallow copy of the specified list, without the first N elements.
*/
List *
! list_copy_tail(const List *oldlist, int nskip)
{
List *newlist;
ListCell *newlist_prev;
*************** list_head(List *l)
*** 1235,1240 ****
--- 1235,1246 ----
return l ? l->head : NULL;
}
+ const ListCell *
+ list_head_const(const List *l)
+ {
+ return l ? l->head : NULL;
+ }
+
ListCell *
list_tail(List *l)
{
*************** list_tail(List *l)
*** 1242,1248 ****
}
int
! list_length(List *l)
{
return l ? l->length : 0;
}
--- 1248,1254 ----
}
int
! list_length(const List *l)
{
return l ? l->length : 0;
}
*************** list_length(List *l)
*** 1264,1273 ****
* list_length() macro in order to avoid the overhead of a function
* call.
*/
! int length(List *list);
int
! length(List *list)
{
return list_length(list);
}
--- 1270,1279 ----
* list_length() macro in order to avoid the overhead of a function
* call.
*/
! int length(const List *list);
int
! length(const List *list)
{
return list_length(list);
}
diff --git a/src/backend/nodes/nodeFuncs.c b/src/backend/nodes/nodeFuncs.c
new file mode 100644
index 0e57f6c..051bc3c
*** a/src/backend/nodes/nodeFuncs.c
--- b/src/backend/nodes/nodeFuncs.c
*************** static int leftmostLoc(int loc1, int loc
*** 32,38 ****
* returns the Oid of the type of the expression's result.
*/
Oid
! exprType(Node *expr)
{
Oid type;
--- 32,38 ----
* returns the Oid of the type of the expression's result.
*/
Oid
! exprType(const Node *expr)
{
Oid type;
*************** exprType(Node *expr)
*** 241,247 ****
* if it can be determined. In many cases, it can't and we return -1.
*/
int32
! exprTypmod(Node *expr)
{
if (!expr)
return -1;
--- 241,247 ----
* if it can be determined. In many cases, it can't and we return -1.
*/
int32
! exprTypmod(const Node *expr)
{
if (!expr)
return -1;
*************** exprTypmod(Node *expr)
*** 481,487 ****
* length coercion by this routine.
*/
bool
! exprIsLengthCoercion(Node *expr, int32 *coercedTypmod)
{
if (coercedTypmod != NULL)
*coercedTypmod = -1; /* default result on failure */
--- 481,487 ----
* length coercion by this routine.
*/
bool
! exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod)
{
if (coercedTypmod != NULL)
*coercedTypmod = -1; /* default result on failure */
*************** expression_returns_set_walker(Node *node
*** 632,638 ****
* or vice versa, the two are different.
*/
Oid
! exprCollation(Node *expr)
{
Oid coll;
--- 632,638 ----
* or vice versa, the two are different.
*/
Oid
! exprCollation(const Node *expr)
{
Oid coll;
*************** exprCollation(Node *expr)
*** 822,828 ****
* Result is InvalidOid if the node type doesn't store this information.
*/
Oid
! exprInputCollation(Node *expr)
{
Oid coll;
--- 822,828 ----
* Result is InvalidOid if the node type doesn't store this information.
*/
Oid
! exprInputCollation(const Node *expr)
{
Oid coll;
*************** exprSetInputCollation(Node *expr, Oid in
*** 1078,1084 ****
* known and unknown locations in a tree.
*/
int
! exprLocation(Node *expr)
{
int loc;
--- 1078,1084 ----
* known and unknown locations in a tree.
*/
int
! exprLocation(const Node *expr)
{
int loc;
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
new file mode 100644
index f7d39ed..2389fb3
*** a/src/backend/nodes/outfuncs.c
--- b/src/backend/nodes/outfuncs.c
***************
*** 94,100 ****
#define booltostr(x) ((x) ? "true" : "false")
! static void _outNode(StringInfo str, void *obj);
/*
--- 94,100 ----
#define booltostr(x) ((x) ? "true" : "false")
! static void _outNode(StringInfo str, const void *obj);
/*
*************** static void _outNode(StringInfo str, voi
*** 105,111 ****
* If a null or empty string is given, it is encoded as "<>".
*/
static void
! _outToken(StringInfo str, char *s)
{
if (s == NULL || *s == '\0')
{
--- 105,111 ----
* If a null or empty string is given, it is encoded as "<>".
*/
static void
! _outToken(StringInfo str, const char *s)
{
if (s == NULL || *s == '\0')
{
*************** _outToken(StringInfo str, char *s)
*** 137,145 ****
}
static void
! _outList(StringInfo str, List *node)
{
! ListCell *lc;
appendStringInfoChar(str, '(');
--- 137,145 ----
}
static void
! _outList(StringInfo str, const List *node)
{
! const ListCell *lc;
appendStringInfoChar(str, '(');
*************** _outList(StringInfo str, List *node)
*** 148,154 ****
else if (IsA(node, OidList))
appendStringInfoChar(str, 'o');
! foreach(lc, node)
{
/*
* For the sake of backward compatibility, we emit a slightly
--- 148,154 ----
else if (IsA(node, OidList))
appendStringInfoChar(str, 'o');
! foreach_const(lc, node)
{
/*
* For the sake of backward compatibility, we emit a slightly
*************** _outList(StringInfo str, List *node)
*** 180,186 ****
* Note: the output format is "(b int int ...)", similar to an integer List.
*/
static void
! _outBitmapset(StringInfo str, Bitmapset *bms)
{
Bitmapset *tmpset;
int x;
--- 180,186 ----
* Note: the output format is "(b int int ...)", similar to an integer List.
*/
static void
! _outBitmapset(StringInfo str, const Bitmapset *bms)
{
Bitmapset *tmpset;
int x;
*************** _outDatum(StringInfo str, Datum value, i
*** 235,241 ****
*/
static void
! _outPlannedStmt(StringInfo str, PlannedStmt *node)
{
WRITE_NODE_TYPE("PLANNEDSTMT");
--- 235,241 ----
*/
static void
! _outPlannedStmt(StringInfo str, const PlannedStmt *node)
{
WRITE_NODE_TYPE("PLANNEDSTMT");
*************** _outPlannedStmt(StringInfo str, PlannedS
*** 261,267 ****
* print the basic stuff of all nodes that inherit from Plan
*/
static void
! _outPlanInfo(StringInfo str, Plan *node)
{
WRITE_FLOAT_FIELD(startup_cost, "%.2f");
WRITE_FLOAT_FIELD(total_cost, "%.2f");
--- 261,267 ----
* print the basic stuff of all nodes that inherit from Plan
*/
static void
! _outPlanInfo(StringInfo str, const Plan *node)
{
WRITE_FLOAT_FIELD(startup_cost, "%.2f");
WRITE_FLOAT_FIELD(total_cost, "%.2f");
*************** _outPlanInfo(StringInfo str, Plan *node)
*** 280,288 ****
* print the basic stuff of all nodes that inherit from Scan
*/
static void
! _outScanInfo(StringInfo str, Scan *node)
{
! _outPlanInfo(str, (Plan *) node);
WRITE_UINT_FIELD(scanrelid);
}
--- 280,288 ----
* print the basic stuff of all nodes that inherit from Scan
*/
static void
! _outScanInfo(StringInfo str, const Scan *node)
{
! _outPlanInfo(str, (const Plan *) node);
WRITE_UINT_FIELD(scanrelid);
}
*************** _outScanInfo(StringInfo str, Scan *node)
*** 291,299 ****
* print the basic stuff of all nodes that inherit from Join
*/
static void
! _outJoinPlanInfo(StringInfo str, Join *node)
{
! _outPlanInfo(str, (Plan *) node);
WRITE_ENUM_FIELD(jointype, JoinType);
WRITE_NODE_FIELD(joinqual);
--- 291,299 ----
* print the basic stuff of all nodes that inherit from Join
*/
static void
! _outJoinPlanInfo(StringInfo str, const Join *node)
{
! _outPlanInfo(str, (const Plan *) node);
WRITE_ENUM_FIELD(jointype, JoinType);
WRITE_NODE_FIELD(joinqual);
*************** _outJoinPlanInfo(StringInfo str, Join *n
*** 301,329 ****
static void
! _outPlan(StringInfo str, Plan *node)
{
WRITE_NODE_TYPE("PLAN");
! _outPlanInfo(str, (Plan *) node);
}
static void
! _outResult(StringInfo str, Result *node)
{
WRITE_NODE_TYPE("RESULT");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(resconstantqual);
}
static void
! _outModifyTable(StringInfo str, ModifyTable *node)
{
WRITE_NODE_TYPE("MODIFYTABLE");
! _outPlanInfo(str, (Plan *) node);
WRITE_ENUM_FIELD(operation, CmdType);
WRITE_BOOL_FIELD(canSetTag);
--- 301,329 ----
static void
! _outPlan(StringInfo str, const Plan *node)
{
WRITE_NODE_TYPE("PLAN");
! _outPlanInfo(str, (const Plan *) node);
}
static void
! _outResult(StringInfo str, const Result *node)
{
WRITE_NODE_TYPE("RESULT");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(resconstantqual);
}
static void
! _outModifyTable(StringInfo str, const ModifyTable *node)
{
WRITE_NODE_TYPE("MODIFYTABLE");
! _outPlanInfo(str, (const Plan *) node);
WRITE_ENUM_FIELD(operation, CmdType);
WRITE_BOOL_FIELD(canSetTag);
*************** _outModifyTable(StringInfo str, ModifyTa
*** 336,358 ****
}
static void
! _outAppend(StringInfo str, Append *node)
{
WRITE_NODE_TYPE("APPEND");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(appendplans);
}
static void
! _outMergeAppend(StringInfo str, MergeAppend *node)
{
int i;
WRITE_NODE_TYPE("MERGEAPPEND");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(mergeplans);
--- 336,358 ----
}
static void
! _outAppend(StringInfo str, const Append *node)
{
WRITE_NODE_TYPE("APPEND");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(appendplans);
}
static void
! _outMergeAppend(StringInfo str, const MergeAppend *node)
{
int i;
WRITE_NODE_TYPE("MERGEAPPEND");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(mergeplans);
*************** _outMergeAppend(StringInfo str, MergeApp
*** 376,388 ****
}
static void
! _outRecursiveUnion(StringInfo str, RecursiveUnion *node)
{
int i;
WRITE_NODE_TYPE("RECURSIVEUNION");
! _outPlanInfo(str, (Plan *) node);
WRITE_INT_FIELD(wtParam);
WRITE_INT_FIELD(numCols);
--- 376,388 ----
}
static void
! _outRecursiveUnion(StringInfo str, const RecursiveUnion *node)
{
int i;
WRITE_NODE_TYPE("RECURSIVEUNION");
! _outPlanInfo(str, (const Plan *) node);
WRITE_INT_FIELD(wtParam);
WRITE_INT_FIELD(numCols);
*************** _outRecursiveUnion(StringInfo str, Recur
*** 399,445 ****
}
static void
! _outBitmapAnd(StringInfo str, BitmapAnd *node)
{
WRITE_NODE_TYPE("BITMAPAND");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(bitmapplans);
}
static void
! _outBitmapOr(StringInfo str, BitmapOr *node)
{
WRITE_NODE_TYPE("BITMAPOR");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(bitmapplans);
}
static void
! _outScan(StringInfo str, Scan *node)
{
WRITE_NODE_TYPE("SCAN");
! _outScanInfo(str, (Scan *) node);
}
static void
! _outSeqScan(StringInfo str, SeqScan *node)
{
WRITE_NODE_TYPE("SEQSCAN");
! _outScanInfo(str, (Scan *) node);
}
static void
! _outIndexScan(StringInfo str, IndexScan *node)
{
WRITE_NODE_TYPE("INDEXSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_OID_FIELD(indexid);
WRITE_NODE_FIELD(indexqual);
--- 399,445 ----
}
static void
! _outBitmapAnd(StringInfo str, const BitmapAnd *node)
{
WRITE_NODE_TYPE("BITMAPAND");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(bitmapplans);
}
static void
! _outBitmapOr(StringInfo str, const BitmapOr *node)
{
WRITE_NODE_TYPE("BITMAPOR");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(bitmapplans);
}
static void
! _outScan(StringInfo str, const Scan *node)
{
WRITE_NODE_TYPE("SCAN");
! _outScanInfo(str, node);
}
static void
! _outSeqScan(StringInfo str, const SeqScan *node)
{
WRITE_NODE_TYPE("SEQSCAN");
! _outScanInfo(str, (const Scan *) node);
}
static void
! _outIndexScan(StringInfo str, const IndexScan *node)
{
WRITE_NODE_TYPE("INDEXSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_OID_FIELD(indexid);
WRITE_NODE_FIELD(indexqual);
*************** _outIndexScan(StringInfo str, IndexScan
*** 450,460 ****
}
static void
! _outIndexOnlyScan(StringInfo str, IndexOnlyScan *node)
{
WRITE_NODE_TYPE("INDEXONLYSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_OID_FIELD(indexid);
WRITE_NODE_FIELD(indexqual);
--- 450,460 ----
}
static void
! _outIndexOnlyScan(StringInfo str, const IndexOnlyScan *node)
{
WRITE_NODE_TYPE("INDEXONLYSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_OID_FIELD(indexid);
WRITE_NODE_FIELD(indexqual);
*************** _outIndexOnlyScan(StringInfo str, IndexO
*** 464,474 ****
}
static void
! _outBitmapIndexScan(StringInfo str, BitmapIndexScan *node)
{
WRITE_NODE_TYPE("BITMAPINDEXSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_OID_FIELD(indexid);
WRITE_NODE_FIELD(indexqual);
--- 464,474 ----
}
static void
! _outBitmapIndexScan(StringInfo str, const BitmapIndexScan *node)
{
WRITE_NODE_TYPE("BITMAPINDEXSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_OID_FIELD(indexid);
WRITE_NODE_FIELD(indexqual);
*************** _outBitmapIndexScan(StringInfo str, Bitm
*** 476,516 ****
}
static void
! _outBitmapHeapScan(StringInfo str, BitmapHeapScan *node)
{
WRITE_NODE_TYPE("BITMAPHEAPSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_NODE_FIELD(bitmapqualorig);
}
static void
! _outTidScan(StringInfo str, TidScan *node)
{
WRITE_NODE_TYPE("TIDSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_NODE_FIELD(tidquals);
}
static void
! _outSubqueryScan(StringInfo str, SubqueryScan *node)
{
WRITE_NODE_TYPE("SUBQUERYSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_NODE_FIELD(subplan);
}
static void
! _outFunctionScan(StringInfo str, FunctionScan *node)
{
WRITE_NODE_TYPE("FUNCTIONSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_NODE_FIELD(funcexpr);
WRITE_NODE_FIELD(funccolnames);
--- 476,516 ----
}
static void
! _outBitmapHeapScan(StringInfo str, const BitmapHeapScan *node)
{
WRITE_NODE_TYPE("BITMAPHEAPSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_NODE_FIELD(bitmapqualorig);
}
static void
! _outTidScan(StringInfo str, const TidScan *node)
{
WRITE_NODE_TYPE("TIDSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_NODE_FIELD(tidquals);
}
static void
! _outSubqueryScan(StringInfo str, const SubqueryScan *node)
{
WRITE_NODE_TYPE("SUBQUERYSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_NODE_FIELD(subplan);
}
static void
! _outFunctionScan(StringInfo str, const FunctionScan *node)
{
WRITE_NODE_TYPE("FUNCTIONSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_NODE_FIELD(funcexpr);
WRITE_NODE_FIELD(funccolnames);
*************** _outFunctionScan(StringInfo str, Functio
*** 520,568 ****
}
static void
! _outValuesScan(StringInfo str, ValuesScan *node)
{
WRITE_NODE_TYPE("VALUESSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_NODE_FIELD(values_lists);
}
static void
! _outCteScan(StringInfo str, CteScan *node)
{
WRITE_NODE_TYPE("CTESCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_INT_FIELD(ctePlanId);
WRITE_INT_FIELD(cteParam);
}
static void
! _outWorkTableScan(StringInfo str, WorkTableScan *node)
{
WRITE_NODE_TYPE("WORKTABLESCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_INT_FIELD(wtParam);
}
static void
! _outForeignScan(StringInfo str, ForeignScan *node)
{
WRITE_NODE_TYPE("FOREIGNSCAN");
! _outScanInfo(str, (Scan *) node);
WRITE_BOOL_FIELD(fsSystemCol);
WRITE_NODE_FIELD(fdwplan);
}
static void
! _outFdwPlan(StringInfo str, FdwPlan *node)
{
WRITE_NODE_TYPE("FDWPLAN");
--- 520,568 ----
}
static void
! _outValuesScan(StringInfo str, const ValuesScan *node)
{
WRITE_NODE_TYPE("VALUESSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_NODE_FIELD(values_lists);
}
static void
! _outCteScan(StringInfo str, const CteScan *node)
{
WRITE_NODE_TYPE("CTESCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_INT_FIELD(ctePlanId);
WRITE_INT_FIELD(cteParam);
}
static void
! _outWorkTableScan(StringInfo str, const WorkTableScan *node)
{
WRITE_NODE_TYPE("WORKTABLESCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_INT_FIELD(wtParam);
}
static void
! _outForeignScan(StringInfo str, const ForeignScan *node)
{
WRITE_NODE_TYPE("FOREIGNSCAN");
! _outScanInfo(str, (const Scan *) node);
WRITE_BOOL_FIELD(fsSystemCol);
WRITE_NODE_FIELD(fdwplan);
}
static void
! _outFdwPlan(StringInfo str, const FdwPlan *node)
{
WRITE_NODE_TYPE("FDWPLAN");
*************** _outFdwPlan(StringInfo str, FdwPlan *nod
*** 572,603 ****
}
static void
! _outJoin(StringInfo str, Join *node)
{
WRITE_NODE_TYPE("JOIN");
! _outJoinPlanInfo(str, (Join *) node);
}
static void
! _outNestLoop(StringInfo str, NestLoop *node)
{
WRITE_NODE_TYPE("NESTLOOP");
! _outJoinPlanInfo(str, (Join *) node);
WRITE_NODE_FIELD(nestParams);
}
static void
! _outMergeJoin(StringInfo str, MergeJoin *node)
{
int numCols;
int i;
WRITE_NODE_TYPE("MERGEJOIN");
! _outJoinPlanInfo(str, (Join *) node);
WRITE_NODE_FIELD(mergeclauses);
--- 572,603 ----
}
static void
! _outJoin(StringInfo str, const Join *node)
{
WRITE_NODE_TYPE("JOIN");
! _outJoinPlanInfo(str, (const Join *) node);
}
static void
! _outNestLoop(StringInfo str, const NestLoop *node)
{
WRITE_NODE_TYPE("NESTLOOP");
! _outJoinPlanInfo(str, (const Join *) node);
WRITE_NODE_FIELD(nestParams);
}
static void
! _outMergeJoin(StringInfo str, const MergeJoin *node)
{
int numCols;
int i;
WRITE_NODE_TYPE("MERGEJOIN");
! _outJoinPlanInfo(str, (const Join *) node);
WRITE_NODE_FIELD(mergeclauses);
*************** _outMergeJoin(StringInfo str, MergeJoin
*** 621,643 ****
}
static void
! _outHashJoin(StringInfo str, HashJoin *node)
{
WRITE_NODE_TYPE("HASHJOIN");
! _outJoinPlanInfo(str, (Join *) node);
WRITE_NODE_FIELD(hashclauses);
}
static void
! _outAgg(StringInfo str, Agg *node)
{
int i;
WRITE_NODE_TYPE("AGG");
! _outPlanInfo(str, (Plan *) node);
WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
WRITE_INT_FIELD(numCols);
--- 621,643 ----
}
static void
! _outHashJoin(StringInfo str, const HashJoin *node)
{
WRITE_NODE_TYPE("HASHJOIN");
! _outJoinPlanInfo(str, (const Join *) node);
WRITE_NODE_FIELD(hashclauses);
}
static void
! _outAgg(StringInfo str, const Agg *node)
{
int i;
WRITE_NODE_TYPE("AGG");
! _outPlanInfo(str, (const Plan *) node);
WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
WRITE_INT_FIELD(numCols);
*************** _outAgg(StringInfo str, Agg *node)
*** 654,666 ****
}
static void
! _outWindowAgg(StringInfo str, WindowAgg *node)
{
int i;
WRITE_NODE_TYPE("WINDOWAGG");
! _outPlanInfo(str, (Plan *) node);
WRITE_UINT_FIELD(winref);
WRITE_INT_FIELD(partNumCols);
--- 654,666 ----
}
static void
! _outWindowAgg(StringInfo str, const WindowAgg *node)
{
int i;
WRITE_NODE_TYPE("WINDOWAGG");
! _outPlanInfo(str, (const Plan *) node);
WRITE_UINT_FIELD(winref);
WRITE_INT_FIELD(partNumCols);
*************** _outWindowAgg(StringInfo str, WindowAgg
*** 689,701 ****
}
static void
! _outGroup(StringInfo str, Group *node)
{
int i;
WRITE_NODE_TYPE("GROUP");
! _outPlanInfo(str, (Plan *) node);
WRITE_INT_FIELD(numCols);
--- 689,701 ----
}
static void
! _outGroup(StringInfo str, const Group *node)
{
int i;
WRITE_NODE_TYPE("GROUP");
! _outPlanInfo(str, (const Plan *) node);
WRITE_INT_FIELD(numCols);
*************** _outGroup(StringInfo str, Group *node)
*** 709,729 ****
}
static void
! _outMaterial(StringInfo str, Material *node)
{
WRITE_NODE_TYPE("MATERIAL");
! _outPlanInfo(str, (Plan *) node);
}
static void
! _outSort(StringInfo str, Sort *node)
{
int i;
WRITE_NODE_TYPE("SORT");
! _outPlanInfo(str, (Plan *) node);
WRITE_INT_FIELD(numCols);
--- 709,729 ----
}
static void
! _outMaterial(StringInfo str, const Material *node)
{
WRITE_NODE_TYPE("MATERIAL");
! _outPlanInfo(str, (const Plan *) node);
}
static void
! _outSort(StringInfo str, const Sort *node)
{
int i;
WRITE_NODE_TYPE("SORT");
! _outPlanInfo(str, (const Plan *) node);
WRITE_INT_FIELD(numCols);
*************** _outSort(StringInfo str, Sort *node)
*** 745,757 ****
}
static void
! _outUnique(StringInfo str, Unique *node)
{
int i;
WRITE_NODE_TYPE("UNIQUE");
! _outPlanInfo(str, (Plan *) node);
WRITE_INT_FIELD(numCols);
--- 745,757 ----
}
static void
! _outUnique(StringInfo str, const Unique *node)
{
int i;
WRITE_NODE_TYPE("UNIQUE");
! _outPlanInfo(str, (const Plan *) node);
WRITE_INT_FIELD(numCols);
*************** _outUnique(StringInfo str, Unique *node)
*** 765,775 ****
}
static void
! _outHash(StringInfo str, Hash *node)
{
WRITE_NODE_TYPE("HASH");
! _outPlanInfo(str, (Plan *) node);
WRITE_OID_FIELD(skewTable);
WRITE_INT_FIELD(skewColumn);
--- 765,775 ----
}
static void
! _outHash(StringInfo str, const Hash *node)
{
WRITE_NODE_TYPE("HASH");
! _outPlanInfo(str, (const Plan *) node);
WRITE_OID_FIELD(skewTable);
WRITE_INT_FIELD(skewColumn);
*************** _outHash(StringInfo str, Hash *node)
*** 779,791 ****
}
static void
! _outSetOp(StringInfo str, SetOp *node)
{
int i;
WRITE_NODE_TYPE("SETOP");
! _outPlanInfo(str, (Plan *) node);
WRITE_ENUM_FIELD(cmd, SetOpCmd);
WRITE_ENUM_FIELD(strategy, SetOpStrategy);
--- 779,791 ----
}
static void
! _outSetOp(StringInfo str, const SetOp *node)
{
int i;
WRITE_NODE_TYPE("SETOP");
! _outPlanInfo(str, (const Plan *) node);
WRITE_ENUM_FIELD(cmd, SetOpCmd);
WRITE_ENUM_FIELD(strategy, SetOpStrategy);
*************** _outSetOp(StringInfo str, SetOp *node)
*** 805,833 ****
}
static void
! _outLockRows(StringInfo str, LockRows *node)
{
WRITE_NODE_TYPE("LOCKROWS");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(rowMarks);
WRITE_INT_FIELD(epqParam);
}
static void
! _outLimit(StringInfo str, Limit *node)
{
WRITE_NODE_TYPE("LIMIT");
! _outPlanInfo(str, (Plan *) node);
WRITE_NODE_FIELD(limitOffset);
WRITE_NODE_FIELD(limitCount);
}
static void
! _outNestLoopParam(StringInfo str, NestLoopParam *node)
{
WRITE_NODE_TYPE("NESTLOOPPARAM");
--- 805,833 ----
}
static void
! _outLockRows(StringInfo str, const LockRows *node)
{
WRITE_NODE_TYPE("LOCKROWS");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(rowMarks);
WRITE_INT_FIELD(epqParam);
}
static void
! _outLimit(StringInfo str, const Limit *node)
{
WRITE_NODE_TYPE("LIMIT");
! _outPlanInfo(str, (const Plan *) node);
WRITE_NODE_FIELD(limitOffset);
WRITE_NODE_FIELD(limitCount);
}
static void
! _outNestLoopParam(StringInfo str, const NestLoopParam *node)
{
WRITE_NODE_TYPE("NESTLOOPPARAM");
*************** _outNestLoopParam(StringInfo str, NestLo
*** 836,842 ****
}
static void
! _outPlanRowMark(StringInfo str, PlanRowMark *node)
{
WRITE_NODE_TYPE("PLANROWMARK");
--- 836,842 ----
}
static void
! _outPlanRowMark(StringInfo str, const PlanRowMark *node)
{
WRITE_NODE_TYPE("PLANROWMARK");
*************** _outPlanRowMark(StringInfo str, PlanRowM
*** 849,855 ****
}
static void
! _outPlanInvalItem(StringInfo str, PlanInvalItem *node)
{
WRITE_NODE_TYPE("PLANINVALITEM");
--- 849,855 ----
}
static void
! _outPlanInvalItem(StringInfo str, const PlanInvalItem *node)
{
WRITE_NODE_TYPE("PLANINVALITEM");
*************** _outPlanInvalItem(StringInfo str, PlanIn
*** 864,870 ****
*****************************************************************************/
static void
! _outAlias(StringInfo str, Alias *node)
{
WRITE_NODE_TYPE("ALIAS");
--- 864,870 ----
*****************************************************************************/
static void
! _outAlias(StringInfo str, const Alias *node)
{
WRITE_NODE_TYPE("ALIAS");
*************** _outAlias(StringInfo str, Alias *node)
*** 873,879 ****
}
static void
! _outRangeVar(StringInfo str, RangeVar *node)
{
WRITE_NODE_TYPE("RANGEVAR");
--- 873,879 ----
}
static void
! _outRangeVar(StringInfo str, const RangeVar *node)
{
WRITE_NODE_TYPE("RANGEVAR");
*************** _outRangeVar(StringInfo str, RangeVar *n
*** 890,896 ****
}
static void
! _outIntoClause(StringInfo str, IntoClause *node)
{
WRITE_NODE_TYPE("INTOCLAUSE");
--- 890,896 ----
}
static void
! _outIntoClause(StringInfo str, const IntoClause *node)
{
WRITE_NODE_TYPE("INTOCLAUSE");
*************** _outIntoClause(StringInfo str, IntoClaus
*** 902,908 ****
}
static void
! _outVar(StringInfo str, Var *node)
{
WRITE_NODE_TYPE("VAR");
--- 902,908 ----
}
static void
! _outVar(StringInfo str, const Var *node)
{
WRITE_NODE_TYPE("VAR");
*************** _outVar(StringInfo str, Var *node)
*** 918,924 ****
}
static void
! _outConst(StringInfo str, Const *node)
{
WRITE_NODE_TYPE("CONST");
--- 918,924 ----
}
static void
! _outConst(StringInfo str, const Const *node)
{
WRITE_NODE_TYPE("CONST");
*************** _outConst(StringInfo str, Const *node)
*** 938,944 ****
}
static void
! _outParam(StringInfo str, Param *node)
{
WRITE_NODE_TYPE("PARAM");
--- 938,944 ----
}
static void
! _outParam(StringInfo str, const Param *node)
{
WRITE_NODE_TYPE("PARAM");
*************** _outParam(StringInfo str, Param *node)
*** 951,957 ****
}
static void
! _outAggref(StringInfo str, Aggref *node)
{
WRITE_NODE_TYPE("AGGREF");
--- 951,957 ----
}
static void
! _outAggref(StringInfo str, const Aggref *node)
{
WRITE_NODE_TYPE("AGGREF");
*************** _outAggref(StringInfo str, Aggref *node)
*** 968,974 ****
}
static void
! _outWindowFunc(StringInfo str, WindowFunc *node)
{
WRITE_NODE_TYPE("WINDOWFUNC");
--- 968,974 ----
}
static void
! _outWindowFunc(StringInfo str, const WindowFunc *node)
{
WRITE_NODE_TYPE("WINDOWFUNC");
*************** _outWindowFunc(StringInfo str, WindowFun
*** 984,990 ****
}
static void
! _outArrayRef(StringInfo str, ArrayRef *node)
{
WRITE_NODE_TYPE("ARRAYREF");
--- 984,990 ----
}
static void
! _outArrayRef(StringInfo str, const ArrayRef *node)
{
WRITE_NODE_TYPE("ARRAYREF");
*************** _outArrayRef(StringInfo str, ArrayRef *n
*** 999,1005 ****
}
static void
! _outFuncExpr(StringInfo str, FuncExpr *node)
{
WRITE_NODE_TYPE("FUNCEXPR");
--- 999,1005 ----
}
static void
! _outFuncExpr(StringInfo str, const FuncExpr *node)
{
WRITE_NODE_TYPE("FUNCEXPR");
*************** _outFuncExpr(StringInfo str, FuncExpr *n
*** 1014,1020 ****
}
static void
! _outNamedArgExpr(StringInfo str, NamedArgExpr *node)
{
WRITE_NODE_TYPE("NAMEDARGEXPR");
--- 1014,1020 ----
}
static void
! _outNamedArgExpr(StringInfo str, const NamedArgExpr *node)
{
WRITE_NODE_TYPE("NAMEDARGEXPR");
*************** _outNamedArgExpr(StringInfo str, NamedAr
*** 1025,1031 ****
}
static void
! _outOpExpr(StringInfo str, OpExpr *node)
{
WRITE_NODE_TYPE("OPEXPR");
--- 1025,1031 ----
}
static void
! _outOpExpr(StringInfo str, const OpExpr *node)
{
WRITE_NODE_TYPE("OPEXPR");
*************** _outOpExpr(StringInfo str, OpExpr *node)
*** 1040,1046 ****
}
static void
! _outDistinctExpr(StringInfo str, DistinctExpr *node)
{
WRITE_NODE_TYPE("DISTINCTEXPR");
--- 1040,1046 ----
}
static void
! _outDistinctExpr(StringInfo str, const DistinctExpr *node)
{
WRITE_NODE_TYPE("DISTINCTEXPR");
*************** _outDistinctExpr(StringInfo str, Distinc
*** 1055,1061 ****
}
static void
! _outNullIfExpr(StringInfo str, NullIfExpr *node)
{
WRITE_NODE_TYPE("NULLIFEXPR");
--- 1055,1061 ----
}
static void
! _outNullIfExpr(StringInfo str, const NullIfExpr *node)
{
WRITE_NODE_TYPE("NULLIFEXPR");
*************** _outNullIfExpr(StringInfo str, NullIfExp
*** 1070,1076 ****
}
static void
! _outScalarArrayOpExpr(StringInfo str, ScalarArrayOpExpr *node)
{
WRITE_NODE_TYPE("SCALARARRAYOPEXPR");
--- 1070,1076 ----
}
static void
! _outScalarArrayOpExpr(StringInfo str, const ScalarArrayOpExpr *node)
{
WRITE_NODE_TYPE("SCALARARRAYOPEXPR");
*************** _outScalarArrayOpExpr(StringInfo str, Sc
*** 1083,1089 ****
}
static void
! _outBoolExpr(StringInfo str, BoolExpr *node)
{
char *opstr = NULL;
--- 1083,1089 ----
}
static void
! _outBoolExpr(StringInfo str, const BoolExpr *node)
{
char *opstr = NULL;
*************** _outBoolExpr(StringInfo str, BoolExpr *n
*** 1110,1116 ****
}
static void
! _outSubLink(StringInfo str, SubLink *node)
{
WRITE_NODE_TYPE("SUBLINK");
--- 1110,1116 ----
}
static void
! _outSubLink(StringInfo str, const SubLink *node)
{
WRITE_NODE_TYPE("SUBLINK");
*************** _outSubLink(StringInfo str, SubLink *nod
*** 1122,1128 ****
}
static void
! _outSubPlan(StringInfo str, SubPlan *node)
{
WRITE_NODE_TYPE("SUBPLAN");
--- 1122,1128 ----
}
static void
! _outSubPlan(StringInfo str, const SubPlan *node)
{
WRITE_NODE_TYPE("SUBPLAN");
*************** _outSubPlan(StringInfo str, SubPlan *nod
*** 1144,1150 ****
}
static void
! _outAlternativeSubPlan(StringInfo str, AlternativeSubPlan *node)
{
WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
--- 1144,1150 ----
}
static void
! _outAlternativeSubPlan(StringInfo str, const AlternativeSubPlan *node)
{
WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
*************** _outAlternativeSubPlan(StringInfo str, A
*** 1152,1158 ****
}
static void
! _outFieldSelect(StringInfo str, FieldSelect *node)
{
WRITE_NODE_TYPE("FIELDSELECT");
--- 1152,1158 ----
}
static void
! _outFieldSelect(StringInfo str, const FieldSelect *node)
{
WRITE_NODE_TYPE("FIELDSELECT");
*************** _outFieldSelect(StringInfo str, FieldSel
*** 1164,1170 ****
}
static void
! _outFieldStore(StringInfo str, FieldStore *node)
{
WRITE_NODE_TYPE("FIELDSTORE");
--- 1164,1170 ----
}
static void
! _outFieldStore(StringInfo str, const FieldStore *node)
{
WRITE_NODE_TYPE("FIELDSTORE");
*************** _outFieldStore(StringInfo str, FieldStor
*** 1175,1181 ****
}
static void
! _outRelabelType(StringInfo str, RelabelType *node)
{
WRITE_NODE_TYPE("RELABELTYPE");
--- 1175,1181 ----
}
static void
! _outRelabelType(StringInfo str, const RelabelType *node)
{
WRITE_NODE_TYPE("RELABELTYPE");
*************** _outRelabelType(StringInfo str, RelabelT
*** 1188,1194 ****
}
static void
! _outCoerceViaIO(StringInfo str, CoerceViaIO *node)
{
WRITE_NODE_TYPE("COERCEVIAIO");
--- 1188,1194 ----
}
static void
! _outCoerceViaIO(StringInfo str, const CoerceViaIO *node)
{
WRITE_NODE_TYPE("COERCEVIAIO");
*************** _outCoerceViaIO(StringInfo str, CoerceVi
*** 1200,1206 ****
}
static void
! _outArrayCoerceExpr(StringInfo str, ArrayCoerceExpr *node)
{
WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
--- 1200,1206 ----
}
static void
! _outArrayCoerceExpr(StringInfo str, const ArrayCoerceExpr *node)
{
WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
*************** _outArrayCoerceExpr(StringInfo str, Arra
*** 1215,1221 ****
}
static void
! _outConvertRowtypeExpr(StringInfo str, ConvertRowtypeExpr *node)
{
WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
--- 1215,1221 ----
}
static void
! _outConvertRowtypeExpr(StringInfo str, const ConvertRowtypeExpr *node)
{
WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
*************** _outConvertRowtypeExpr(StringInfo str, C
*** 1226,1232 ****
}
static void
! _outCollateExpr(StringInfo str, CollateExpr *node)
{
WRITE_NODE_TYPE("COLLATE");
--- 1226,1232 ----
}
static void
! _outCollateExpr(StringInfo str, const CollateExpr *node)
{
WRITE_NODE_TYPE("COLLATE");
*************** _outCollateExpr(StringInfo str, CollateE
*** 1236,1242 ****
}
static void
! _outCaseExpr(StringInfo str, CaseExpr *node)
{
WRITE_NODE_TYPE("CASE");
--- 1236,1242 ----
}
static void
! _outCaseExpr(StringInfo str, const CaseExpr *node)
{
WRITE_NODE_TYPE("CASE");
*************** _outCaseExpr(StringInfo str, CaseExpr *n
*** 1249,1255 ****
}
static void
! _outCaseWhen(StringInfo str, CaseWhen *node)
{
WRITE_NODE_TYPE("WHEN");
--- 1249,1255 ----
}
static void
! _outCaseWhen(StringInfo str, const CaseWhen *node)
{
WRITE_NODE_TYPE("WHEN");
*************** _outCaseWhen(StringInfo str, CaseWhen *n
*** 1259,1265 ****
}
static void
! _outCaseTestExpr(StringInfo str, CaseTestExpr *node)
{
WRITE_NODE_TYPE("CASETESTEXPR");
--- 1259,1265 ----
}
static void
! _outCaseTestExpr(StringInfo str, const CaseTestExpr *node)
{
WRITE_NODE_TYPE("CASETESTEXPR");
*************** _outCaseTestExpr(StringInfo str, CaseTes
*** 1269,1275 ****
}
static void
! _outArrayExpr(StringInfo str, ArrayExpr *node)
{
WRITE_NODE_TYPE("ARRAY");
--- 1269,1275 ----
}
static void
! _outArrayExpr(StringInfo str, const ArrayExpr *node)
{
WRITE_NODE_TYPE("ARRAY");
*************** _outArrayExpr(StringInfo str, ArrayExpr
*** 1282,1288 ****
}
static void
! _outRowExpr(StringInfo str, RowExpr *node)
{
WRITE_NODE_TYPE("ROW");
--- 1282,1288 ----
}
static void
! _outRowExpr(StringInfo str, const RowExpr *node)
{
WRITE_NODE_TYPE("ROW");
*************** _outRowExpr(StringInfo str, RowExpr *nod
*** 1294,1300 ****
}
static void
! _outRowCompareExpr(StringInfo str, RowCompareExpr *node)
{
WRITE_NODE_TYPE("ROWCOMPARE");
--- 1294,1300 ----
}
static void
! _outRowCompareExpr(StringInfo str, const RowCompareExpr *node)
{
WRITE_NODE_TYPE("ROWCOMPARE");
*************** _outRowCompareExpr(StringInfo str, RowCo
*** 1307,1313 ****
}
static void
! _outCoalesceExpr(StringInfo str, CoalesceExpr *node)
{
WRITE_NODE_TYPE("COALESCE");
--- 1307,1313 ----
}
static void
! _outCoalesceExpr(StringInfo str, const CoalesceExpr *node)
{
WRITE_NODE_TYPE("COALESCE");
*************** _outCoalesceExpr(StringInfo str, Coalesc
*** 1318,1324 ****
}
static void
! _outMinMaxExpr(StringInfo str, MinMaxExpr *node)
{
WRITE_NODE_TYPE("MINMAX");
--- 1318,1324 ----
}
static void
! _outMinMaxExpr(StringInfo str, const MinMaxExpr *node)
{
WRITE_NODE_TYPE("MINMAX");
*************** _outMinMaxExpr(StringInfo str, MinMaxExp
*** 1331,1337 ****
}
static void
! _outXmlExpr(StringInfo str, XmlExpr *node)
{
WRITE_NODE_TYPE("XMLEXPR");
--- 1331,1337 ----
}
static void
! _outXmlExpr(StringInfo str, const XmlExpr *node)
{
WRITE_NODE_TYPE("XMLEXPR");
*************** _outXmlExpr(StringInfo str, XmlExpr *nod
*** 1347,1353 ****
}
static void
! _outNullTest(StringInfo str, NullTest *node)
{
WRITE_NODE_TYPE("NULLTEST");
--- 1347,1353 ----
}
static void
! _outNullTest(StringInfo str, const NullTest *node)
{
WRITE_NODE_TYPE("NULLTEST");
*************** _outNullTest(StringInfo str, NullTest *n
*** 1357,1363 ****
}
static void
! _outBooleanTest(StringInfo str, BooleanTest *node)
{
WRITE_NODE_TYPE("BOOLEANTEST");
--- 1357,1363 ----
}
static void
! _outBooleanTest(StringInfo str, const BooleanTest *node)
{
WRITE_NODE_TYPE("BOOLEANTEST");
*************** _outBooleanTest(StringInfo str, BooleanT
*** 1366,1372 ****
}
static void
! _outCoerceToDomain(StringInfo str, CoerceToDomain *node)
{
WRITE_NODE_TYPE("COERCETODOMAIN");
--- 1366,1372 ----
}
static void
! _outCoerceToDomain(StringInfo str, const CoerceToDomain *node)
{
WRITE_NODE_TYPE("COERCETODOMAIN");
*************** _outCoerceToDomain(StringInfo str, Coerc
*** 1379,1385 ****
}
static void
! _outCoerceToDomainValue(StringInfo str, CoerceToDomainValue *node)
{
WRITE_NODE_TYPE("COERCETODOMAINVALUE");
--- 1379,1385 ----
}
static void
! _outCoerceToDomainValue(StringInfo str, const CoerceToDomainValue *node)
{
WRITE_NODE_TYPE("COERCETODOMAINVALUE");
*************** _outCoerceToDomainValue(StringInfo str,
*** 1390,1396 ****
}
static void
! _outSetToDefault(StringInfo str, SetToDefault *node)
{
WRITE_NODE_TYPE("SETTODEFAULT");
--- 1390,1396 ----
}
static void
! _outSetToDefault(StringInfo str, const SetToDefault *node)
{
WRITE_NODE_TYPE("SETTODEFAULT");
*************** _outSetToDefault(StringInfo str, SetToDe
*** 1401,1407 ****
}
static void
! _outCurrentOfExpr(StringInfo str, CurrentOfExpr *node)
{
WRITE_NODE_TYPE("CURRENTOFEXPR");
--- 1401,1407 ----
}
static void
! _outCurrentOfExpr(StringInfo str, const CurrentOfExpr *node)
{
WRITE_NODE_TYPE("CURRENTOFEXPR");
*************** _outCurrentOfExpr(StringInfo str, Curren
*** 1411,1417 ****
}
static void
! _outTargetEntry(StringInfo str, TargetEntry *node)
{
WRITE_NODE_TYPE("TARGETENTRY");
--- 1411,1417 ----
}
static void
! _outTargetEntry(StringInfo str, const TargetEntry *node)
{
WRITE_NODE_TYPE("TARGETENTRY");
*************** _outTargetEntry(StringInfo str, TargetEn
*** 1425,1431 ****
}
static void
! _outRangeTblRef(StringInfo str, RangeTblRef *node)
{
WRITE_NODE_TYPE("RANGETBLREF");
--- 1425,1431 ----
}
static void
! _outRangeTblRef(StringInfo str, const RangeTblRef *node)
{
WRITE_NODE_TYPE("RANGETBLREF");
*************** _outRangeTblRef(StringInfo str, RangeTbl
*** 1433,1439 ****
}
static void
! _outJoinExpr(StringInfo str, JoinExpr *node)
{
WRITE_NODE_TYPE("JOINEXPR");
--- 1433,1439 ----
}
static void
! _outJoinExpr(StringInfo str, const JoinExpr *node)
{
WRITE_NODE_TYPE("JOINEXPR");
*************** _outJoinExpr(StringInfo str, JoinExpr *n
*** 1448,1454 ****
}
static void
! _outFromExpr(StringInfo str, FromExpr *node)
{
WRITE_NODE_TYPE("FROMEXPR");
--- 1448,1454 ----
}
static void
! _outFromExpr(StringInfo str, const FromExpr *node)
{
WRITE_NODE_TYPE("FROMEXPR");
*************** _outFromExpr(StringInfo str, FromExpr *n
*** 1469,1475 ****
* We can print the parent's relids for identification purposes, though.
*/
static void
! _outPathInfo(StringInfo str, Path *node)
{
WRITE_ENUM_FIELD(pathtype, NodeTag);
appendStringInfo(str, " :parent_relids ");
--- 1469,1475 ----
* We can print the parent's relids for identification purposes, though.
*/
static void
! _outPathInfo(StringInfo str, const Path *node)
{
WRITE_ENUM_FIELD(pathtype, NodeTag);
appendStringInfo(str, " :parent_relids ");
*************** _outPathInfo(StringInfo str, Path *node)
*** 1483,1491 ****
* print the basic stuff of all nodes that inherit from JoinPath
*/
static void
! _outJoinPathInfo(StringInfo str, JoinPath *node)
{
! _outPathInfo(str, (Path *) node);
WRITE_ENUM_FIELD(jointype, JoinType);
WRITE_NODE_FIELD(outerjoinpath);
--- 1483,1491 ----
* print the basic stuff of all nodes that inherit from JoinPath
*/
static void
! _outJoinPathInfo(StringInfo str, const JoinPath *node)
{
! _outPathInfo(str, (const Path *) node);
WRITE_ENUM_FIELD(jointype, JoinType);
WRITE_NODE_FIELD(outerjoinpath);
*************** _outJoinPathInfo(StringInfo str, JoinPat
*** 1494,1512 ****
}
static void
! _outPath(StringInfo str, Path *node)
{
WRITE_NODE_TYPE("PATH");
! _outPathInfo(str, (Path *) node);
}
static void
! _outIndexPath(StringInfo str, IndexPath *node)
{
WRITE_NODE_TYPE("INDEXPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(indexinfo);
WRITE_NODE_FIELD(indexclauses);
--- 1494,1512 ----
}
static void
! _outPath(StringInfo str, const Path *node)
{
WRITE_NODE_TYPE("PATH");
! _outPathInfo(str, (const Path *) node);
}
static void
! _outIndexPath(StringInfo str, const IndexPath *node)
{
WRITE_NODE_TYPE("INDEXPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(indexinfo);
WRITE_NODE_FIELD(indexclauses);
*************** _outIndexPath(StringInfo str, IndexPath
*** 1520,1530 ****
}
static void
! _outBitmapHeapPath(StringInfo str, BitmapHeapPath *node)
{
WRITE_NODE_TYPE("BITMAPHEAPPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(bitmapqual);
WRITE_BOOL_FIELD(isjoininner);
--- 1520,1530 ----
}
static void
! _outBitmapHeapPath(StringInfo str, const BitmapHeapPath *node)
{
WRITE_NODE_TYPE("BITMAPHEAPPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(bitmapqual);
WRITE_BOOL_FIELD(isjoininner);
*************** _outBitmapHeapPath(StringInfo str, Bitma
*** 1532,1538 ****
}
static void
! _outBitmapAndPath(StringInfo str, BitmapAndPath *node)
{
WRITE_NODE_TYPE("BITMAPANDPATH");
--- 1532,1538 ----
}
static void
! _outBitmapAndPath(StringInfo str, const BitmapAndPath *node)
{
WRITE_NODE_TYPE("BITMAPANDPATH");
*************** _outBitmapAndPath(StringInfo str, Bitmap
*** 1543,1580 ****
}
static void
! _outBitmapOrPath(StringInfo str, BitmapOrPath *node)
{
WRITE_NODE_TYPE("BITMAPORPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(bitmapquals);
WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
}
static void
! _outTidPath(StringInfo str, TidPath *node)
{
WRITE_NODE_TYPE("TIDPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(tidquals);
}
static void
! _outForeignPath(StringInfo str, ForeignPath *node)
{
WRITE_NODE_TYPE("FOREIGNPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(fdwplan);
}
static void
! _outAppendPath(StringInfo str, AppendPath *node)
{
WRITE_NODE_TYPE("APPENDPATH");
--- 1543,1580 ----
}
static void
! _outBitmapOrPath(StringInfo str, const BitmapOrPath *node)
{
WRITE_NODE_TYPE("BITMAPORPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(bitmapquals);
WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
}
static void
! _outTidPath(StringInfo str, const TidPath *node)
{
WRITE_NODE_TYPE("TIDPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(tidquals);
}
static void
! _outForeignPath(StringInfo str, const ForeignPath *node)
{
WRITE_NODE_TYPE("FOREIGNPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(fdwplan);
}
static void
! _outAppendPath(StringInfo str, const AppendPath *node)
{
WRITE_NODE_TYPE("APPENDPATH");
*************** _outAppendPath(StringInfo str, AppendPat
*** 1584,1625 ****
}
static void
! _outMergeAppendPath(StringInfo str, MergeAppendPath *node)
{
WRITE_NODE_TYPE("MERGEAPPENDPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(subpaths);
WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
}
static void
! _outResultPath(StringInfo str, ResultPath *node)
{
WRITE_NODE_TYPE("RESULTPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(quals);
}
static void
! _outMaterialPath(StringInfo str, MaterialPath *node)
{
WRITE_NODE_TYPE("MATERIALPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(subpath);
}
static void
! _outUniquePath(StringInfo str, UniquePath *node)
{
WRITE_NODE_TYPE("UNIQUEPATH");
! _outPathInfo(str, (Path *) node);
WRITE_NODE_FIELD(subpath);
WRITE_ENUM_FIELD(umethod, UniquePathMethod);
--- 1584,1625 ----
}
static void
! _outMergeAppendPath(StringInfo str, const MergeAppendPath *node)
{
WRITE_NODE_TYPE("MERGEAPPENDPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(subpaths);
WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
}
static void
! _outResultPath(StringInfo str, const ResultPath *node)
{
WRITE_NODE_TYPE("RESULTPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(quals);
}
static void
! _outMaterialPath(StringInfo str, const MaterialPath *node)
{
WRITE_NODE_TYPE("MATERIALPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(subpath);
}
static void
! _outUniquePath(StringInfo str, const UniquePath *node)
{
WRITE_NODE_TYPE("UNIQUEPATH");
! _outPathInfo(str, (const Path *) node);
WRITE_NODE_FIELD(subpath);
WRITE_ENUM_FIELD(umethod, UniquePathMethod);
*************** _outUniquePath(StringInfo str, UniquePat
*** 1629,1647 ****
}
static void
! _outNestPath(StringInfo str, NestPath *node)
{
WRITE_NODE_TYPE("NESTPATH");
! _outJoinPathInfo(str, (JoinPath *) node);
}
static void
! _outMergePath(StringInfo str, MergePath *node)
{
WRITE_NODE_TYPE("MERGEPATH");
! _outJoinPathInfo(str, (JoinPath *) node);
WRITE_NODE_FIELD(path_mergeclauses);
WRITE_NODE_FIELD(outersortkeys);
--- 1629,1647 ----
}
static void
! _outNestPath(StringInfo str, const NestPath *node)
{
WRITE_NODE_TYPE("NESTPATH");
! _outJoinPathInfo(str, (const JoinPath *) node);
}
static void
! _outMergePath(StringInfo str, const MergePath *node)
{
WRITE_NODE_TYPE("MERGEPATH");
! _outJoinPathInfo(str, (const JoinPath *) node);
WRITE_NODE_FIELD(path_mergeclauses);
WRITE_NODE_FIELD(outersortkeys);
*************** _outMergePath(StringInfo str, MergePath
*** 1650,1667 ****
}
static void
! _outHashPath(StringInfo str, HashPath *node)
{
WRITE_NODE_TYPE("HASHPATH");
! _outJoinPathInfo(str, (JoinPath *) node);
WRITE_NODE_FIELD(path_hashclauses);
WRITE_INT_FIELD(num_batches);
}
static void
! _outPlannerGlobal(StringInfo str, PlannerGlobal *node)
{
WRITE_NODE_TYPE("PLANNERGLOBAL");
--- 1650,1667 ----
}
static void
! _outHashPath(StringInfo str, const HashPath *node)
{
WRITE_NODE_TYPE("HASHPATH");
! _outJoinPathInfo(str, (const JoinPath *) node);
WRITE_NODE_FIELD(path_hashclauses);
WRITE_INT_FIELD(num_batches);
}
static void
! _outPlannerGlobal(StringInfo str, const PlannerGlobal *node)
{
WRITE_NODE_TYPE("PLANNERGLOBAL");
*************** _outPlannerGlobal(StringInfo str, Planne
*** 1680,1686 ****
}
static void
! _outPlannerInfo(StringInfo str, PlannerInfo *node)
{
WRITE_NODE_TYPE("PLANNERINFO");
--- 1680,1686 ----
}
static void
! _outPlannerInfo(StringInfo str, const PlannerInfo *node)
{
WRITE_NODE_TYPE("PLANNERINFO");
*************** _outPlannerInfo(StringInfo str, PlannerI
*** 1721,1727 ****
}
static void
! _outRelOptInfo(StringInfo str, RelOptInfo *node)
{
WRITE_NODE_TYPE("RELOPTINFO");
--- 1721,1727 ----
}
static void
! _outRelOptInfo(StringInfo str, const RelOptInfo *node)
{
WRITE_NODE_TYPE("RELOPTINFO");
*************** _outRelOptInfo(StringInfo str, RelOptInf
*** 1754,1760 ****
}
static void
! _outIndexOptInfo(StringInfo str, IndexOptInfo *node)
{
WRITE_NODE_TYPE("INDEXOPTINFO");
--- 1754,1760 ----
}
static void
! _outIndexOptInfo(StringInfo str, const IndexOptInfo *node)
{
WRITE_NODE_TYPE("INDEXOPTINFO");
*************** _outIndexOptInfo(StringInfo str, IndexOp
*** 1775,1781 ****
}
static void
! _outEquivalenceClass(StringInfo str, EquivalenceClass *node)
{
/*
* To simplify reading, we just chase up to the topmost merged EC and
--- 1775,1781 ----
}
static void
! _outEquivalenceClass(StringInfo str, const EquivalenceClass *node)
{
/*
* To simplify reading, we just chase up to the topmost merged EC and
*************** _outEquivalenceClass(StringInfo str, Equ
*** 1800,1806 ****
}
static void
! _outEquivalenceMember(StringInfo str, EquivalenceMember *node)
{
WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
--- 1800,1806 ----
}
static void
! _outEquivalenceMember(StringInfo str, const EquivalenceMember *node)
{
WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
*************** _outEquivalenceMember(StringInfo str, Eq
*** 1812,1818 ****
}
static void
! _outPathKey(StringInfo str, PathKey *node)
{
WRITE_NODE_TYPE("PATHKEY");
--- 1812,1818 ----
}
static void
! _outPathKey(StringInfo str, const PathKey *node)
{
WRITE_NODE_TYPE("PATHKEY");
*************** _outPathKey(StringInfo str, PathKey *nod
*** 1823,1829 ****
}
static void
! _outRestrictInfo(StringInfo str, RestrictInfo *node)
{
WRITE_NODE_TYPE("RESTRICTINFO");
--- 1823,1829 ----
}
static void
! _outRestrictInfo(StringInfo str, const RestrictInfo *node)
{
WRITE_NODE_TYPE("RESTRICTINFO");
*************** _outRestrictInfo(StringInfo str, Restric
*** 1852,1858 ****
}
static void
! _outInnerIndexscanInfo(StringInfo str, InnerIndexscanInfo *node)
{
WRITE_NODE_TYPE("INNERINDEXSCANINFO");
WRITE_BITMAPSET_FIELD(other_relids);
--- 1852,1858 ----
}
static void
! _outInnerIndexscanInfo(StringInfo str, const InnerIndexscanInfo *node)
{
WRITE_NODE_TYPE("INNERINDEXSCANINFO");
WRITE_BITMAPSET_FIELD(other_relids);
*************** _outInnerIndexscanInfo(StringInfo str, I
*** 1862,1868 ****
}
static void
! _outPlaceHolderVar(StringInfo str, PlaceHolderVar *node)
{
WRITE_NODE_TYPE("PLACEHOLDERVAR");
--- 1862,1868 ----
}
static void
! _outPlaceHolderVar(StringInfo str, const PlaceHolderVar *node)
{
WRITE_NODE_TYPE("PLACEHOLDERVAR");
*************** _outPlaceHolderVar(StringInfo str, Place
*** 1873,1879 ****
}
static void
! _outSpecialJoinInfo(StringInfo str, SpecialJoinInfo *node)
{
WRITE_NODE_TYPE("SPECIALJOININFO");
--- 1873,1879 ----
}
static void
! _outSpecialJoinInfo(StringInfo str, const SpecialJoinInfo *node)
{
WRITE_NODE_TYPE("SPECIALJOININFO");
*************** _outSpecialJoinInfo(StringInfo str, Spec
*** 1888,1894 ****
}
static void
! _outAppendRelInfo(StringInfo str, AppendRelInfo *node)
{
WRITE_NODE_TYPE("APPENDRELINFO");
--- 1888,1894 ----
}
static void
! _outAppendRelInfo(StringInfo str, const AppendRelInfo *node)
{
WRITE_NODE_TYPE("APPENDRELINFO");
*************** _outAppendRelInfo(StringInfo str, Append
*** 1901,1907 ****
}
static void
! _outPlaceHolderInfo(StringInfo str, PlaceHolderInfo *node)
{
WRITE_NODE_TYPE("PLACEHOLDERINFO");
--- 1901,1907 ----
}
static void
! _outPlaceHolderInfo(StringInfo str, const PlaceHolderInfo *node)
{
WRITE_NODE_TYPE("PLACEHOLDERINFO");
*************** _outPlaceHolderInfo(StringInfo str, Plac
*** 1914,1920 ****
}
static void
! _outMinMaxAggInfo(StringInfo str, MinMaxAggInfo *node)
{
WRITE_NODE_TYPE("MINMAXAGGINFO");
--- 1914,1920 ----
}
static void
! _outMinMaxAggInfo(StringInfo str, const MinMaxAggInfo *node)
{
WRITE_NODE_TYPE("MINMAXAGGINFO");
*************** _outMinMaxAggInfo(StringInfo str, MinMax
*** 1928,1934 ****
}
static void
! _outPlannerParamItem(StringInfo str, PlannerParamItem *node)
{
WRITE_NODE_TYPE("PLANNERPARAMITEM");
--- 1928,1934 ----
}
static void
! _outPlannerParamItem(StringInfo str, const PlannerParamItem *node)
{
WRITE_NODE_TYPE("PLANNERPARAMITEM");
*************** _outPlannerParamItem(StringInfo str, Pla
*** 1943,1949 ****
*****************************************************************************/
static void
! _outCreateStmt(StringInfo str, CreateStmt *node)
{
WRITE_NODE_TYPE("CREATESTMT");
--- 1943,1949 ----
*****************************************************************************/
static void
! _outCreateStmt(StringInfo str, const CreateStmt *node)
{
WRITE_NODE_TYPE("CREATESTMT");
*************** _outCreateStmt(StringInfo str, CreateStm
*** 1959,1965 ****
}
static void
! _outCreateForeignTableStmt(StringInfo str, CreateForeignTableStmt *node)
{
WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
--- 1959,1965 ----
}
static void
! _outCreateForeignTableStmt(StringInfo str, const CreateForeignTableStmt *node)
{
WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
*************** _outCreateForeignTableStmt(StringInfo st
*** 1970,1976 ****
}
static void
! _outIndexStmt(StringInfo str, IndexStmt *node)
{
WRITE_NODE_TYPE("INDEXSTMT");
--- 1970,1976 ----
}
static void
! _outIndexStmt(StringInfo str, const IndexStmt *node)
{
WRITE_NODE_TYPE("INDEXSTMT");
*************** _outIndexStmt(StringInfo str, IndexStmt
*** 1993,1999 ****
}
static void
! _outNotifyStmt(StringInfo str, NotifyStmt *node)
{
WRITE_NODE_TYPE("NOTIFY");
--- 1993,1999 ----
}
static void
! _outNotifyStmt(StringInfo str, const NotifyStmt *node)
{
WRITE_NODE_TYPE("NOTIFY");
*************** _outNotifyStmt(StringInfo str, NotifyStm
*** 2002,2008 ****
}
static void
! _outDeclareCursorStmt(StringInfo str, DeclareCursorStmt *node)
{
WRITE_NODE_TYPE("DECLARECURSOR");
--- 2002,2008 ----
}
static void
! _outDeclareCursorStmt(StringInfo str, const DeclareCursorStmt *node)
{
WRITE_NODE_TYPE("DECLARECURSOR");
*************** _outDeclareCursorStmt(StringInfo str, De
*** 2012,2018 ****
}
static void
! _outSelectStmt(StringInfo str, SelectStmt *node)
{
WRITE_NODE_TYPE("SELECT");
--- 2012,2018 ----
}
static void
! _outSelectStmt(StringInfo str, const SelectStmt *node)
{
WRITE_NODE_TYPE("SELECT");
*************** _outSelectStmt(StringInfo str, SelectStm
*** 2037,2043 ****
}
static void
! _outFuncCall(StringInfo str, FuncCall *node)
{
WRITE_NODE_TYPE("FUNCCALL");
--- 2037,2043 ----
}
static void
! _outFuncCall(StringInfo str, const FuncCall *node)
{
WRITE_NODE_TYPE("FUNCCALL");
*************** _outFuncCall(StringInfo str, FuncCall *n
*** 2052,2058 ****
}
static void
! _outDefElem(StringInfo str, DefElem *node)
{
WRITE_NODE_TYPE("DEFELEM");
--- 2052,2058 ----
}
static void
! _outDefElem(StringInfo str, const DefElem *node)
{
WRITE_NODE_TYPE("DEFELEM");
*************** _outDefElem(StringInfo str, DefElem *nod
*** 2063,2069 ****
}
static void
! _outInhRelation(StringInfo str, InhRelation *node)
{
WRITE_NODE_TYPE("INHRELATION");
--- 2063,2069 ----
}
static void
! _outInhRelation(StringInfo str, const InhRelation *node)
{
WRITE_NODE_TYPE("INHRELATION");
*************** _outInhRelation(StringInfo str, InhRelat
*** 2072,2078 ****
}
static void
! _outLockingClause(StringInfo str, LockingClause *node)
{
WRITE_NODE_TYPE("LOCKINGCLAUSE");
--- 2072,2078 ----
}
static void
! _outLockingClause(StringInfo str, const LockingClause *node)
{
WRITE_NODE_TYPE("LOCKINGCLAUSE");
*************** _outLockingClause(StringInfo str, Lockin
*** 2082,2088 ****
}
static void
! _outXmlSerialize(StringInfo str, XmlSerialize *node)
{
WRITE_NODE_TYPE("XMLSERIALIZE");
--- 2082,2088 ----
}
static void
! _outXmlSerialize(StringInfo str, const XmlSerialize *node)
{
WRITE_NODE_TYPE("XMLSERIALIZE");
*************** _outXmlSerialize(StringInfo str, XmlSeri
*** 2093,2099 ****
}
static void
! _outColumnDef(StringInfo str, ColumnDef *node)
{
WRITE_NODE_TYPE("COLUMNDEF");
--- 2093,2099 ----
}
static void
! _outColumnDef(StringInfo str, const ColumnDef *node)
{
WRITE_NODE_TYPE("COLUMNDEF");
*************** _outColumnDef(StringInfo str, ColumnDef
*** 2113,2119 ****
}
static void
! _outTypeName(StringInfo str, TypeName *node)
{
WRITE_NODE_TYPE("TYPENAME");
--- 2113,2119 ----
}
static void
! _outTypeName(StringInfo str, const TypeName *node)
{
WRITE_NODE_TYPE("TYPENAME");
*************** _outTypeName(StringInfo str, TypeName *n
*** 2128,2134 ****
}
static void
! _outTypeCast(StringInfo str, TypeCast *node)
{
WRITE_NODE_TYPE("TYPECAST");
--- 2128,2134 ----
}
static void
! _outTypeCast(StringInfo str, const TypeCast *node)
{
WRITE_NODE_TYPE("TYPECAST");
*************** _outTypeCast(StringInfo str, TypeCast *n
*** 2138,2144 ****
}
static void
! _outCollateClause(StringInfo str, CollateClause *node)
{
WRITE_NODE_TYPE("COLLATECLAUSE");
--- 2138,2144 ----
}
static void
! _outCollateClause(StringInfo str, const CollateClause *node)
{
WRITE_NODE_TYPE("COLLATECLAUSE");
*************** _outCollateClause(StringInfo str, Collat
*** 2148,2154 ****
}
static void
! _outIndexElem(StringInfo str, IndexElem *node)
{
WRITE_NODE_TYPE("INDEXELEM");
--- 2148,2154 ----
}
static void
! _outIndexElem(StringInfo str, const IndexElem *node)
{
WRITE_NODE_TYPE("INDEXELEM");
*************** _outIndexElem(StringInfo str, IndexElem
*** 2162,2168 ****
}
static void
! _outQuery(StringInfo str, Query *node)
{
WRITE_NODE_TYPE("QUERY");
--- 2162,2168 ----
}
static void
! _outQuery(StringInfo str, const Query *node)
{
WRITE_NODE_TYPE("QUERY");
*************** _outQuery(StringInfo str, Query *node)
*** 2222,2228 ****
}
static void
! _outSortGroupClause(StringInfo str, SortGroupClause *node)
{
WRITE_NODE_TYPE("SORTGROUPCLAUSE");
--- 2222,2228 ----
}
static void
! _outSortGroupClause(StringInfo str, const SortGroupClause *node)
{
WRITE_NODE_TYPE("SORTGROUPCLAUSE");
*************** _outSortGroupClause(StringInfo str, Sort
*** 2234,2240 ****
}
static void
! _outWindowClause(StringInfo str, WindowClause *node)
{
WRITE_NODE_TYPE("WINDOWCLAUSE");
--- 2234,2240 ----
}
static void
! _outWindowClause(StringInfo str, const WindowClause *node)
{
WRITE_NODE_TYPE("WINDOWCLAUSE");
*************** _outWindowClause(StringInfo str, WindowC
*** 2250,2256 ****
}
static void
! _outRowMarkClause(StringInfo str, RowMarkClause *node)
{
WRITE_NODE_TYPE("ROWMARKCLAUSE");
--- 2250,2256 ----
}
static void
! _outRowMarkClause(StringInfo str, const RowMarkClause *node)
{
WRITE_NODE_TYPE("ROWMARKCLAUSE");
*************** _outRowMarkClause(StringInfo str, RowMar
*** 2261,2267 ****
}
static void
! _outWithClause(StringInfo str, WithClause *node)
{
WRITE_NODE_TYPE("WITHCLAUSE");
--- 2261,2267 ----
}
static void
! _outWithClause(StringInfo str, const WithClause *node)
{
WRITE_NODE_TYPE("WITHCLAUSE");
*************** _outWithClause(StringInfo str, WithClaus
*** 2271,2277 ****
}
static void
! _outCommonTableExpr(StringInfo str, CommonTableExpr *node)
{
WRITE_NODE_TYPE("COMMONTABLEEXPR");
--- 2271,2277 ----
}
static void
! _outCommonTableExpr(StringInfo str, const CommonTableExpr *node)
{
WRITE_NODE_TYPE("COMMONTABLEEXPR");
*************** _outCommonTableExpr(StringInfo str, Comm
*** 2288,2294 ****
}
static void
! _outSetOperationStmt(StringInfo str, SetOperationStmt *node)
{
WRITE_NODE_TYPE("SETOPERATIONSTMT");
--- 2288,2294 ----
}
static void
! _outSetOperationStmt(StringInfo str, const SetOperationStmt *node)
{
WRITE_NODE_TYPE("SETOPERATIONSTMT");
*************** _outSetOperationStmt(StringInfo str, Set
*** 2303,2309 ****
}
static void
! _outRangeTblEntry(StringInfo str, RangeTblEntry *node)
{
WRITE_NODE_TYPE("RTE");
--- 2303,2309 ----
}
static void
! _outRangeTblEntry(StringInfo str, const RangeTblEntry *node)
{
WRITE_NODE_TYPE("RTE");
*************** _outRangeTblEntry(StringInfo str, RangeT
*** 2357,2363 ****
}
static void
! _outAExpr(StringInfo str, A_Expr *node)
{
WRITE_NODE_TYPE("AEXPR");
--- 2357,2363 ----
}
static void
! _outAExpr(StringInfo str, const A_Expr *node)
{
WRITE_NODE_TYPE("AEXPR");
*************** _outAExpr(StringInfo str, A_Expr *node)
*** 2413,2419 ****
}
static void
! _outValue(StringInfo str, Value *value)
{
switch (value->type)
{
--- 2413,2419 ----
}
static void
! _outValue(StringInfo str, const Value *value)
{
switch (value->type)
{
*************** _outValue(StringInfo str, Value *value)
*** 2448,2454 ****
}
static void
! _outColumnRef(StringInfo str, ColumnRef *node)
{
WRITE_NODE_TYPE("COLUMNREF");
--- 2448,2454 ----
}
static void
! _outColumnRef(StringInfo str, const ColumnRef *node)
{
WRITE_NODE_TYPE("COLUMNREF");
*************** _outColumnRef(StringInfo str, ColumnRef
*** 2457,2463 ****
}
static void
! _outParamRef(StringInfo str, ParamRef *node)
{
WRITE_NODE_TYPE("PARAMREF");
--- 2457,2463 ----
}
static void
! _outParamRef(StringInfo str, const ParamRef *node)
{
WRITE_NODE_TYPE("PARAMREF");
*************** _outParamRef(StringInfo str, ParamRef *n
*** 2466,2472 ****
}
static void
! _outAConst(StringInfo str, A_Const *node)
{
WRITE_NODE_TYPE("A_CONST");
--- 2466,2472 ----
}
static void
! _outAConst(StringInfo str, const A_Const *node)
{
WRITE_NODE_TYPE("A_CONST");
*************** _outAConst(StringInfo str, A_Const *node
*** 2476,2488 ****
}
static void
! _outA_Star(StringInfo str, A_Star *node)
{
WRITE_NODE_TYPE("A_STAR");
}
static void
! _outA_Indices(StringInfo str, A_Indices *node)
{
WRITE_NODE_TYPE("A_INDICES");
--- 2476,2488 ----
}
static void
! _outA_Star(StringInfo str, const A_Star *node)
{
WRITE_NODE_TYPE("A_STAR");
}
static void
! _outA_Indices(StringInfo str, const A_Indices *node)
{
WRITE_NODE_TYPE("A_INDICES");
*************** _outA_Indices(StringInfo str, A_Indices
*** 2491,2497 ****
}
static void
! _outA_Indirection(StringInfo str, A_Indirection *node)
{
WRITE_NODE_TYPE("A_INDIRECTION");
--- 2491,2497 ----
}
static void
! _outA_Indirection(StringInfo str, const A_Indirection *node)
{
WRITE_NODE_TYPE("A_INDIRECTION");
*************** _outA_Indirection(StringInfo str, A_Indi
*** 2500,2506 ****
}
static void
! _outA_ArrayExpr(StringInfo str, A_ArrayExpr *node)
{
WRITE_NODE_TYPE("A_ARRAYEXPR");
--- 2500,2506 ----
}
static void
! _outA_ArrayExpr(StringInfo str, const A_ArrayExpr *node)
{
WRITE_NODE_TYPE("A_ARRAYEXPR");
*************** _outA_ArrayExpr(StringInfo str, A_ArrayE
*** 2509,2515 ****
}
static void
! _outResTarget(StringInfo str, ResTarget *node)
{
WRITE_NODE_TYPE("RESTARGET");
--- 2509,2515 ----
}
static void
! _outResTarget(StringInfo str, const ResTarget *node)
{
WRITE_NODE_TYPE("RESTARGET");
*************** _outResTarget(StringInfo str, ResTarget
*** 2520,2526 ****
}
static void
! _outSortBy(StringInfo str, SortBy *node)
{
WRITE_NODE_TYPE("SORTBY");
--- 2520,2526 ----
}
static void
! _outSortBy(StringInfo str, const SortBy *node)
{
WRITE_NODE_TYPE("SORTBY");
*************** _outSortBy(StringInfo str, SortBy *node)
*** 2532,2538 ****
}
static void
! _outWindowDef(StringInfo str, WindowDef *node)
{
WRITE_NODE_TYPE("WINDOWDEF");
--- 2532,2538 ----
}
static void
! _outWindowDef(StringInfo str, const WindowDef *node)
{
WRITE_NODE_TYPE("WINDOWDEF");
*************** _outWindowDef(StringInfo str, WindowDef
*** 2547,2553 ****
}
static void
! _outRangeSubselect(StringInfo str, RangeSubselect *node)
{
WRITE_NODE_TYPE("RANGESUBSELECT");
--- 2547,2553 ----
}
static void
! _outRangeSubselect(StringInfo str, const RangeSubselect *node)
{
WRITE_NODE_TYPE("RANGESUBSELECT");
*************** _outRangeSubselect(StringInfo str, Range
*** 2556,2562 ****
}
static void
! _outRangeFunction(StringInfo str, RangeFunction *node)
{
WRITE_NODE_TYPE("RANGEFUNCTION");
--- 2556,2562 ----
}
static void
! _outRangeFunction(StringInfo str, const RangeFunction *node)
{
WRITE_NODE_TYPE("RANGEFUNCTION");
*************** _outRangeFunction(StringInfo str, RangeF
*** 2566,2572 ****
}
static void
! _outConstraint(StringInfo str, Constraint *node)
{
WRITE_NODE_TYPE("CONSTRAINT");
--- 2566,2572 ----
}
static void
! _outConstraint(StringInfo str, const Constraint *node)
{
WRITE_NODE_TYPE("CONSTRAINT");
*************** _outConstraint(StringInfo str, Constrain
*** 2667,2673 ****
* converts a Node into ascii string and append it to 'str'
*/
static void
! _outNode(StringInfo str, void *obj)
{
if (obj == NULL)
appendStringInfo(str, "<>");
--- 2667,2673 ----
* converts a Node into ascii string and append it to 'str'
*/
static void
! _outNode(StringInfo str, const void *obj)
{
if (obj == NULL)
appendStringInfo(str, "<>");
*************** _outNode(StringInfo str, void *obj)
*** 3167,3173 ****
* returns the ascii representation of the Node as a palloc'd string
*/
char *
! nodeToString(void *obj)
{
StringInfoData str;
--- 3167,3173 ----
* returns the ascii representation of the Node as a palloc'd string
*/
char *
! nodeToString(const void *obj)
{
StringInfoData str;
diff --git a/src/backend/nodes/print.c b/src/backend/nodes/print.c
new file mode 100644
index 5fe4fd5..e4191a3
*** a/src/backend/nodes/print.c
--- b/src/backend/nodes/print.c
***************
*** 31,37 ****
* print contents of Node to stdout
*/
void
! print(void *obj)
{
char *s;
char *f;
--- 31,37 ----
* print contents of Node to stdout
*/
void
! print(const void *obj)
{
char *s;
char *f;
*************** print(void *obj)
*** 49,55 ****
* pretty-print contents of Node to stdout
*/
void
! pprint(void *obj)
{
char *s;
char *f;
--- 49,55 ----
* pretty-print contents of Node to stdout
*/
void
! pprint(const void *obj)
{
char *s;
char *f;
*************** pprint(void *obj)
*** 67,73 ****
* send pretty-printed contents of Node to postmaster log
*/
void
! elog_node_display(int lev, const char *title, void *obj, bool pretty)
{
char *s;
char *f;
--- 67,73 ----
* send pretty-printed contents of Node to postmaster log
*/
void
! elog_node_display(int lev, const char *title, const void *obj, bool pretty)
{
char *s;
char *f;
*************** pretty_format_node_dump(const char *dump
*** 249,262 ****
* print contents of range table
*/
void
! print_rt(List *rtable)
{
! ListCell *l;
int i = 1;
printf("resno\trefname \trelid\tinFromCl\n");
printf("-----\t---------\t-----\t--------\n");
! foreach(l, rtable)
{
RangeTblEntry *rte = lfirst(l);
--- 249,262 ----
* print contents of range table
*/
void
! print_rt(const List *rtable)
{
! const ListCell *l;
int i = 1;
printf("resno\trefname \trelid\tinFromCl\n");
printf("-----\t---------\t-----\t--------\n");
! foreach_const(l, rtable)
{
RangeTblEntry *rte = lfirst(l);
*************** print_rt(List *rtable)
*** 304,310 ****
* print an expression
*/
void
! print_expr(Node *expr, List *rtable)
{
if (expr == NULL)
{
--- 304,310 ----
* print an expression
*/
void
! print_expr(const Node *expr, const List *rtable)
{
if (expr == NULL)
{
*************** print_expr(Node *expr, List *rtable)
*** 410,421 ****
* pathkeys list of PathKeys
*/
void
! print_pathkeys(List *pathkeys, List *rtable)
{
! ListCell *i;
printf("(");
! foreach(i, pathkeys)
{
PathKey *pathkey = (PathKey *) lfirst(i);
EquivalenceClass *eclass;
--- 410,421 ----
* pathkeys list of PathKeys
*/
void
! print_pathkeys(const List *pathkeys, const List *rtable)
{
! const ListCell *i;
printf("(");
! foreach_const(i, pathkeys)
{
PathKey *pathkey = (PathKey *) lfirst(i);
EquivalenceClass *eclass;
*************** print_pathkeys(List *pathkeys, List *rta
*** 450,461 ****
* print targetlist in a more legible way.
*/
void
! print_tl(List *tlist, List *rtable)
{
! ListCell *tl;
printf("(\n");
! foreach(tl, tlist)
{
TargetEntry *tle = (TargetEntry *) lfirst(tl);
--- 450,461 ----
* print targetlist in a more legible way.
*/
void
! print_tl(const List *tlist, const List *rtable)
{
! const ListCell *tl;
printf("(\n");
! foreach_const(tl, tlist)
{
TargetEntry *tle = (TargetEntry *) lfirst(tl);
diff --git a/src/include/nodes/nodeFuncs.h b/src/include/nodes/nodeFuncs.h
new file mode 100644
index 591f2a9..4980dd8
*** a/src/include/nodes/nodeFuncs.h
--- b/src/include/nodes/nodeFuncs.h
***************
*** 26,42 ****
#define QTW_DONT_COPY_QUERY 0x20 /* do not copy top Query */
! extern Oid exprType(Node *expr);
! extern int32 exprTypmod(Node *expr);
! extern bool exprIsLengthCoercion(Node *expr, int32 *coercedTypmod);
extern bool expression_returns_set(Node *clause);
! extern Oid exprCollation(Node *expr);
! extern Oid exprInputCollation(Node *expr);
extern void exprSetCollation(Node *expr, Oid collation);
extern void exprSetInputCollation(Node *expr, Oid inputcollation);
! extern int exprLocation(Node *expr);
extern bool expression_tree_walker(Node *node, bool (*walker) (),
void *context);
--- 26,42 ----
#define QTW_DONT_COPY_QUERY 0x20 /* do not copy top Query */
! extern Oid exprType(const Node *expr);
! extern int32 exprTypmod(const Node *expr);
! extern bool exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod);
extern bool expression_returns_set(Node *clause);
! extern Oid exprCollation(const Node *expr);
! extern Oid exprInputCollation(const Node *expr);
extern void exprSetCollation(Node *expr, Oid collation);
extern void exprSetInputCollation(Node *expr, Oid inputcollation);
! extern int exprLocation(const Node *expr);
extern bool expression_tree_walker(Node *node, bool (*walker) (),
void *context);
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
new file mode 100644
index 824d8b5..898caf8
*** a/src/include/nodes/nodes.h
--- b/src/include/nodes/nodes.h
*************** extern PGDLLIMPORT Node *newNodeMacroHol
*** 495,501 ****
/*
* nodes/{outfuncs.c,print.c}
*/
! extern char *nodeToString(void *obj);
/*
* nodes/{readfuncs.c,read.c}
--- 495,501 ----
/*
* nodes/{outfuncs.c,print.c}
*/
! extern char *nodeToString(const void *obj);
/*
* nodes/{readfuncs.c,read.c}
*************** extern void *stringToNode(char *str);
*** 505,516 ****
/*
* nodes/copyfuncs.c
*/
! extern void *copyObject(void *obj);
/*
* nodes/equalfuncs.c
*/
! extern bool equal(void *a, void *b);
/*
--- 505,516 ----
/*
* nodes/copyfuncs.c
*/
! extern void *copyObject(const void *obj);
/*
* nodes/equalfuncs.c
*/
! extern bool equal(const void *a, const void *b);
/*
diff --git a/src/include/nodes/pg_list.h b/src/include/nodes/pg_list.h
new file mode 100644
index 38b94aa..dd4639f
*** a/src/include/nodes/pg_list.h
--- b/src/include/nodes/pg_list.h
*************** list_head(List *l)
*** 82,87 ****
--- 82,93 ----
return l ? l->head : NULL;
}
+ static inline const ListCell *
+ list_head_const(const List *l)
+ {
+ return l ? l->head : NULL;
+ }
+
static inline ListCell *
list_tail(List *l)
{
*************** list_tail(List *l)
*** 89,103 ****
}
static inline int
! list_length(List *l)
{
return l ? l->length : 0;
}
#else
extern ListCell *list_head(List *l);
extern ListCell *list_tail(List *l);
! extern int list_length(List *l);
#endif /* USE_INLINE */
/*
--- 95,110 ----
}
static inline int
! list_length(const List *l)
{
return l ? l->length : 0;
}
#else
extern ListCell *list_head(List *l);
+ extern ListCell *list_head_const(const List *l);
extern ListCell *list_tail(List *l);
! extern int list_length(const List *l);
#endif /* USE_INLINE */
/*
*************** extern int list_length(List *l);
*** 162,167 ****
--- 169,181 ----
for ((cell) = list_head(l); (cell) != NULL; (cell) = lnext(cell))
/*
+ * foreach -
+ * const version of above
+ */
+ #define foreach_const(cell, l) \
+ for ((cell) = list_head_const(l); (cell) != NULL; (cell) = lnext(cell))
+
+ /*
* for_each_cell -
* a convenience macro which loops through a list starting from a
* specified cell
*************** extern int list_length(List *l);
*** 183,188 ****
--- 197,211 ----
(cell1) = lnext(cell1), (cell2) = lnext(cell2))
/*
+ * forboth_const
+ * a const version of forboth
+ */
+ #define forboth_const(cell1, list1, cell2, list2) \
+ for ((cell1) = list_head_const(list1), (cell2) = list_head_const(list2); \
+ (cell1) != NULL && (cell2) != NULL; \
+ (cell1) = lnext(cell1), (cell2) = lnext(cell2))
+
+ /*
* forthree -
* the same for three lists
*/
*************** extern List *lcons_oid(Oid datum, List *
*** 206,219 ****
extern List *list_concat(List *list1, List *list2);
extern List *list_truncate(List *list, int new_size);
! extern void *list_nth(List *list, int n);
! extern int list_nth_int(List *list, int n);
! extern Oid list_nth_oid(List *list, int n);
! extern bool list_member(List *list, void *datum);
! extern bool list_member_ptr(List *list, void *datum);
! extern bool list_member_int(List *list, int datum);
! extern bool list_member_oid(List *list, Oid datum);
extern List *list_delete(List *list, void *datum);
extern List *list_delete_ptr(List *list, void *datum);
--- 229,242 ----
extern List *list_concat(List *list1, List *list2);
extern List *list_truncate(List *list, int new_size);
! extern void *list_nth(const List *list, int n);
! extern int list_nth_int(const List *list, int n);
! extern Oid list_nth_oid(const List *list, int n);
! extern bool list_member(const List *list, const void *datum);
! extern bool list_member_ptr(const List *list, const void *datum);
! extern bool list_member_int(const List *list, int datum);
! extern bool list_member_oid(const List *list, Oid datum);
extern List *list_delete(List *list, void *datum);
extern List *list_delete_ptr(List *list, void *datum);
*************** extern List *list_delete_oid(List *list,
*** 222,240 ****
extern List *list_delete_first(List *list);
extern List *list_delete_cell(List *list, ListCell *cell, ListCell *prev);
! extern List *list_union(List *list1, List *list2);
! extern List *list_union_ptr(List *list1, List *list2);
! extern List *list_union_int(List *list1, List *list2);
! extern List *list_union_oid(List *list1, List *list2);
! extern List *list_intersection(List *list1, List *list2);
/* currently, there's no need for list_intersection_int etc */
! extern List *list_difference(List *list1, List *list2);
! extern List *list_difference_ptr(List *list1, List *list2);
! extern List *list_difference_int(List *list1, List *list2);
! extern List *list_difference_oid(List *list1, List *list2);
extern List *list_append_unique(List *list, void *datum);
extern List *list_append_unique_ptr(List *list, void *datum);
--- 245,263 ----
extern List *list_delete_first(List *list);
extern List *list_delete_cell(List *list, ListCell *cell, ListCell *prev);
! extern List *list_union(const List *list1, const List *list2);
! extern List *list_union_ptr(const List *list1, const List *list2);
! extern List *list_union_int(const List *list1, const List *list2);
! extern List *list_union_oid(const List *list1, const List *list2);
! extern List *list_intersection(const List *list1, const List *list2);
/* currently, there's no need for list_intersection_int etc */
! extern List *list_difference(const List *list1, const List *list2);
! extern List *list_difference_ptr(const List *list1, const List *list2);
! extern List *list_difference_int(const List *list1, const List *list2);
! extern List *list_difference_oid(const List *list1, const List *list2);
extern List *list_append_unique(List *list, void *datum);
extern List *list_append_unique_ptr(List *list, void *datum);
*************** extern List *list_concat_unique_oid(List
*** 249,256 ****
extern void list_free(List *list);
extern void list_free_deep(List *list);
! extern List *list_copy(List *list);
! extern List *list_copy_tail(List *list, int nskip);
/*
* To ease migration to the new list API, a set of compatibility
--- 272,279 ----
extern void list_free(List *list);
extern void list_free_deep(List *list);
! extern List *list_copy(const List *list);
! extern List *list_copy_tail(const List *list, int nskip);
/*
* To ease migration to the new list API, a set of compatibility
diff --git a/src/include/nodes/print.h b/src/include/nodes/print.h
new file mode 100644
index 8bac7b0..f4e0ff3
*** a/src/include/nodes/print.h
--- b/src/include/nodes/print.h
***************
*** 19,34 ****
#define nodeDisplay(x) pprint(x)
! extern void print(void *obj);
! extern void pprint(void *obj);
extern void elog_node_display(int lev, const char *title,
! void *obj, bool pretty);
extern char *format_node_dump(const char *dump);
extern char *pretty_format_node_dump(const char *dump);
! extern void print_rt(List *rtable);
! extern void print_expr(Node *expr, List *rtable);
! extern void print_pathkeys(List *pathkeys, List *rtable);
! extern void print_tl(List *tlist, List *rtable);
extern void print_slot(TupleTableSlot *slot);
#endif /* PRINT_H */
--- 19,34 ----
#define nodeDisplay(x) pprint(x)
! extern void print(const void *obj);
! extern void pprint(const void *obj);
extern void elog_node_display(int lev, const char *title,
! const void *obj, bool pretty);
extern char *format_node_dump(const char *dump);
extern char *pretty_format_node_dump(const char *dump);
! extern void print_rt(const List *rtable);
! extern void print_expr(const Node *expr, const List *rtable);
! extern void print_pathkeys(const List *pathkeys, const List *rtable);
! extern void print_tl(const List *tlist, const List *rtable);
extern void print_slot(TupleTableSlot *slot);
#endif /* PRINT_H */