diff options
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 440 |
1 files changed, 220 insertions, 220 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 31af47fdd2a..bef1e78f5a2 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -94,7 +94,7 @@ #define booltostr(x) ((x) ? "true" : "false") -static void _outNode(StringInfo str, void *obj); +static void _outNode(StringInfo str, const void *obj); /* @@ -105,7 +105,7 @@ static void _outNode(StringInfo str, void *obj); * If a null or empty string is given, it is encoded as "<>". */ static void -_outToken(StringInfo str, char *s) +_outToken(StringInfo str, const char *s) { if (s == NULL || *s == '\0') { @@ -137,9 +137,9 @@ _outToken(StringInfo str, char *s) } static void -_outList(StringInfo str, List *node) +_outList(StringInfo str, const List *node) { - ListCell *lc; + const ListCell *lc; appendStringInfoChar(str, '('); @@ -180,7 +180,7 @@ _outList(StringInfo str, List *node) * Note: the output format is "(b int int ...)", similar to an integer List. */ static void -_outBitmapset(StringInfo str, Bitmapset *bms) +_outBitmapset(StringInfo str, const Bitmapset *bms) { Bitmapset *tmpset; int x; @@ -235,7 +235,7 @@ _outDatum(StringInfo str, Datum value, int typlen, bool typbyval) */ static void -_outPlannedStmt(StringInfo str, PlannedStmt *node) +_outPlannedStmt(StringInfo str, const PlannedStmt *node) { WRITE_NODE_TYPE("PLANNEDSTMT"); @@ -261,7 +261,7 @@ _outPlannedStmt(StringInfo str, PlannedStmt *node) * print the basic stuff of all nodes that inherit from Plan */ static void -_outPlanInfo(StringInfo str, Plan *node) +_outPlanInfo(StringInfo str, const Plan *node) { WRITE_FLOAT_FIELD(startup_cost, "%.2f"); WRITE_FLOAT_FIELD(total_cost, "%.2f"); @@ -280,9 +280,9 @@ _outPlanInfo(StringInfo str, Plan *node) * print the basic stuff of all nodes that inherit from Scan */ static void -_outScanInfo(StringInfo str, Scan *node) +_outScanInfo(StringInfo str, const Scan *node) { - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_UINT_FIELD(scanrelid); } @@ -291,9 +291,9 @@ _outScanInfo(StringInfo str, Scan *node) * print the basic stuff of all nodes that inherit from Join */ static void -_outJoinPlanInfo(StringInfo str, Join *node) +_outJoinPlanInfo(StringInfo str, const Join *node) { - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_ENUM_FIELD(jointype, JoinType); WRITE_NODE_FIELD(joinqual); @@ -301,29 +301,29 @@ _outJoinPlanInfo(StringInfo str, Join *node) static void -_outPlan(StringInfo str, Plan *node) +_outPlan(StringInfo str, const Plan *node) { WRITE_NODE_TYPE("PLAN"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); } static void -_outResult(StringInfo str, Result *node) +_outResult(StringInfo str, const Result *node) { WRITE_NODE_TYPE("RESULT"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(resconstantqual); } static void -_outModifyTable(StringInfo str, ModifyTable *node) +_outModifyTable(StringInfo str, const ModifyTable *node) { WRITE_NODE_TYPE("MODIFYTABLE"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_ENUM_FIELD(operation, CmdType); WRITE_BOOL_FIELD(canSetTag); @@ -336,23 +336,23 @@ _outModifyTable(StringInfo str, ModifyTable *node) } static void -_outAppend(StringInfo str, Append *node) +_outAppend(StringInfo str, const Append *node) { WRITE_NODE_TYPE("APPEND"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(appendplans); } static void -_outMergeAppend(StringInfo str, MergeAppend *node) +_outMergeAppend(StringInfo str, const MergeAppend *node) { int i; WRITE_NODE_TYPE("MERGEAPPEND"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(mergeplans); @@ -376,13 +376,13 @@ _outMergeAppend(StringInfo str, MergeAppend *node) } static void -_outRecursiveUnion(StringInfo str, RecursiveUnion *node) +_outRecursiveUnion(StringInfo str, const RecursiveUnion *node) { int i; WRITE_NODE_TYPE("RECURSIVEUNION"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_INT_FIELD(wtParam); WRITE_INT_FIELD(numCols); @@ -399,47 +399,47 @@ _outRecursiveUnion(StringInfo str, RecursiveUnion *node) } static void -_outBitmapAnd(StringInfo str, BitmapAnd *node) +_outBitmapAnd(StringInfo str, const BitmapAnd *node) { WRITE_NODE_TYPE("BITMAPAND"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(bitmapplans); } static void -_outBitmapOr(StringInfo str, BitmapOr *node) +_outBitmapOr(StringInfo str, const BitmapOr *node) { WRITE_NODE_TYPE("BITMAPOR"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(bitmapplans); } static void -_outScan(StringInfo str, Scan *node) +_outScan(StringInfo str, const Scan *node) { WRITE_NODE_TYPE("SCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, node); } static void -_outSeqScan(StringInfo str, SeqScan *node) +_outSeqScan(StringInfo str, const SeqScan *node) { WRITE_NODE_TYPE("SEQSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); } static void -_outIndexScan(StringInfo str, IndexScan *node) +_outIndexScan(StringInfo str, const IndexScan *node) { WRITE_NODE_TYPE("INDEXSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_OID_FIELD(indexid); WRITE_NODE_FIELD(indexqual); @@ -450,11 +450,11 @@ _outIndexScan(StringInfo str, IndexScan *node) } static void -_outIndexOnlyScan(StringInfo str, IndexOnlyScan *node) +_outIndexOnlyScan(StringInfo str, const IndexOnlyScan *node) { WRITE_NODE_TYPE("INDEXONLYSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_OID_FIELD(indexid); WRITE_NODE_FIELD(indexqual); @@ -464,11 +464,11 @@ _outIndexOnlyScan(StringInfo str, IndexOnlyScan *node) } static void -_outBitmapIndexScan(StringInfo str, BitmapIndexScan *node) +_outBitmapIndexScan(StringInfo str, const BitmapIndexScan *node) { WRITE_NODE_TYPE("BITMAPINDEXSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_OID_FIELD(indexid); WRITE_NODE_FIELD(indexqual); @@ -476,41 +476,41 @@ _outBitmapIndexScan(StringInfo str, BitmapIndexScan *node) } static void -_outBitmapHeapScan(StringInfo str, BitmapHeapScan *node) +_outBitmapHeapScan(StringInfo str, const BitmapHeapScan *node) { WRITE_NODE_TYPE("BITMAPHEAPSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_NODE_FIELD(bitmapqualorig); } static void -_outTidScan(StringInfo str, TidScan *node) +_outTidScan(StringInfo str, const TidScan *node) { WRITE_NODE_TYPE("TIDSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_NODE_FIELD(tidquals); } static void -_outSubqueryScan(StringInfo str, SubqueryScan *node) +_outSubqueryScan(StringInfo str, const SubqueryScan *node) { WRITE_NODE_TYPE("SUBQUERYSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_NODE_FIELD(subplan); } static void -_outFunctionScan(StringInfo str, FunctionScan *node) +_outFunctionScan(StringInfo str, const FunctionScan *node) { WRITE_NODE_TYPE("FUNCTIONSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_NODE_FIELD(funcexpr); WRITE_NODE_FIELD(funccolnames); @@ -520,49 +520,49 @@ _outFunctionScan(StringInfo str, FunctionScan *node) } static void -_outValuesScan(StringInfo str, ValuesScan *node) +_outValuesScan(StringInfo str, const ValuesScan *node) { WRITE_NODE_TYPE("VALUESSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_NODE_FIELD(values_lists); } static void -_outCteScan(StringInfo str, CteScan *node) +_outCteScan(StringInfo str, const CteScan *node) { WRITE_NODE_TYPE("CTESCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_INT_FIELD(ctePlanId); WRITE_INT_FIELD(cteParam); } static void -_outWorkTableScan(StringInfo str, WorkTableScan *node) +_outWorkTableScan(StringInfo str, const WorkTableScan *node) { WRITE_NODE_TYPE("WORKTABLESCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_INT_FIELD(wtParam); } static void -_outForeignScan(StringInfo str, ForeignScan *node) +_outForeignScan(StringInfo str, const ForeignScan *node) { WRITE_NODE_TYPE("FOREIGNSCAN"); - _outScanInfo(str, (Scan *) node); + _outScanInfo(str, (const Scan *) node); WRITE_BOOL_FIELD(fsSystemCol); WRITE_NODE_FIELD(fdwplan); } static void -_outFdwPlan(StringInfo str, FdwPlan *node) +_outFdwPlan(StringInfo str, const FdwPlan *node) { WRITE_NODE_TYPE("FDWPLAN"); @@ -572,32 +572,32 @@ _outFdwPlan(StringInfo str, FdwPlan *node) } static void -_outJoin(StringInfo str, Join *node) +_outJoin(StringInfo str, const Join *node) { WRITE_NODE_TYPE("JOIN"); - _outJoinPlanInfo(str, (Join *) node); + _outJoinPlanInfo(str, (const Join *) node); } static void -_outNestLoop(StringInfo str, NestLoop *node) +_outNestLoop(StringInfo str, const NestLoop *node) { WRITE_NODE_TYPE("NESTLOOP"); - _outJoinPlanInfo(str, (Join *) node); + _outJoinPlanInfo(str, (const Join *) node); WRITE_NODE_FIELD(nestParams); } static void -_outMergeJoin(StringInfo str, MergeJoin *node) +_outMergeJoin(StringInfo str, const MergeJoin *node) { int numCols; int i; WRITE_NODE_TYPE("MERGEJOIN"); - _outJoinPlanInfo(str, (Join *) node); + _outJoinPlanInfo(str, (const Join *) node); WRITE_NODE_FIELD(mergeclauses); @@ -621,23 +621,23 @@ _outMergeJoin(StringInfo str, MergeJoin *node) } static void -_outHashJoin(StringInfo str, HashJoin *node) +_outHashJoin(StringInfo str, const HashJoin *node) { WRITE_NODE_TYPE("HASHJOIN"); - _outJoinPlanInfo(str, (Join *) node); + _outJoinPlanInfo(str, (const Join *) node); WRITE_NODE_FIELD(hashclauses); } static void -_outAgg(StringInfo str, Agg *node) +_outAgg(StringInfo str, const Agg *node) { int i; WRITE_NODE_TYPE("AGG"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_ENUM_FIELD(aggstrategy, AggStrategy); WRITE_INT_FIELD(numCols); @@ -654,13 +654,13 @@ _outAgg(StringInfo str, Agg *node) } static void -_outWindowAgg(StringInfo str, WindowAgg *node) +_outWindowAgg(StringInfo str, const WindowAgg *node) { int i; WRITE_NODE_TYPE("WINDOWAGG"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_UINT_FIELD(winref); WRITE_INT_FIELD(partNumCols); @@ -689,13 +689,13 @@ _outWindowAgg(StringInfo str, WindowAgg *node) } static void -_outGroup(StringInfo str, Group *node) +_outGroup(StringInfo str, const Group *node) { int i; WRITE_NODE_TYPE("GROUP"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_INT_FIELD(numCols); @@ -709,21 +709,21 @@ _outGroup(StringInfo str, Group *node) } static void -_outMaterial(StringInfo str, Material *node) +_outMaterial(StringInfo str, const Material *node) { WRITE_NODE_TYPE("MATERIAL"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); } static void -_outSort(StringInfo str, Sort *node) +_outSort(StringInfo str, const Sort *node) { int i; WRITE_NODE_TYPE("SORT"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_INT_FIELD(numCols); @@ -745,13 +745,13 @@ _outSort(StringInfo str, Sort *node) } static void -_outUnique(StringInfo str, Unique *node) +_outUnique(StringInfo str, const Unique *node) { int i; WRITE_NODE_TYPE("UNIQUE"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_INT_FIELD(numCols); @@ -765,11 +765,11 @@ _outUnique(StringInfo str, Unique *node) } static void -_outHash(StringInfo str, Hash *node) +_outHash(StringInfo str, const Hash *node) { WRITE_NODE_TYPE("HASH"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_OID_FIELD(skewTable); WRITE_INT_FIELD(skewColumn); @@ -779,13 +779,13 @@ _outHash(StringInfo str, Hash *node) } static void -_outSetOp(StringInfo str, SetOp *node) +_outSetOp(StringInfo str, const SetOp *node) { int i; WRITE_NODE_TYPE("SETOP"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_ENUM_FIELD(cmd, SetOpCmd); WRITE_ENUM_FIELD(strategy, SetOpStrategy); @@ -805,29 +805,29 @@ _outSetOp(StringInfo str, SetOp *node) } static void -_outLockRows(StringInfo str, LockRows *node) +_outLockRows(StringInfo str, const LockRows *node) { WRITE_NODE_TYPE("LOCKROWS"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(rowMarks); WRITE_INT_FIELD(epqParam); } static void -_outLimit(StringInfo str, Limit *node) +_outLimit(StringInfo str, const Limit *node) { WRITE_NODE_TYPE("LIMIT"); - _outPlanInfo(str, (Plan *) node); + _outPlanInfo(str, (const Plan *) node); WRITE_NODE_FIELD(limitOffset); WRITE_NODE_FIELD(limitCount); } static void -_outNestLoopParam(StringInfo str, NestLoopParam *node) +_outNestLoopParam(StringInfo str, const NestLoopParam *node) { WRITE_NODE_TYPE("NESTLOOPPARAM"); @@ -836,7 +836,7 @@ _outNestLoopParam(StringInfo str, NestLoopParam *node) } static void -_outPlanRowMark(StringInfo str, PlanRowMark *node) +_outPlanRowMark(StringInfo str, const PlanRowMark *node) { WRITE_NODE_TYPE("PLANROWMARK"); @@ -849,7 +849,7 @@ _outPlanRowMark(StringInfo str, PlanRowMark *node) } static void -_outPlanInvalItem(StringInfo str, PlanInvalItem *node) +_outPlanInvalItem(StringInfo str, const PlanInvalItem *node) { WRITE_NODE_TYPE("PLANINVALITEM"); @@ -864,7 +864,7 @@ _outPlanInvalItem(StringInfo str, PlanInvalItem *node) *****************************************************************************/ static void -_outAlias(StringInfo str, Alias *node) +_outAlias(StringInfo str, const Alias *node) { WRITE_NODE_TYPE("ALIAS"); @@ -873,7 +873,7 @@ _outAlias(StringInfo str, Alias *node) } static void -_outRangeVar(StringInfo str, RangeVar *node) +_outRangeVar(StringInfo str, const RangeVar *node) { WRITE_NODE_TYPE("RANGEVAR"); @@ -890,7 +890,7 @@ _outRangeVar(StringInfo str, RangeVar *node) } static void -_outIntoClause(StringInfo str, IntoClause *node) +_outIntoClause(StringInfo str, const IntoClause *node) { WRITE_NODE_TYPE("INTOCLAUSE"); @@ -903,7 +903,7 @@ _outIntoClause(StringInfo str, IntoClause *node) } static void -_outVar(StringInfo str, Var *node) +_outVar(StringInfo str, const Var *node) { WRITE_NODE_TYPE("VAR"); @@ -919,7 +919,7 @@ _outVar(StringInfo str, Var *node) } static void -_outConst(StringInfo str, Const *node) +_outConst(StringInfo str, const Const *node) { WRITE_NODE_TYPE("CONST"); @@ -939,7 +939,7 @@ _outConst(StringInfo str, Const *node) } static void -_outParam(StringInfo str, Param *node) +_outParam(StringInfo str, const Param *node) { WRITE_NODE_TYPE("PARAM"); @@ -952,7 +952,7 @@ _outParam(StringInfo str, Param *node) } static void -_outAggref(StringInfo str, Aggref *node) +_outAggref(StringInfo str, const Aggref *node) { WRITE_NODE_TYPE("AGGREF"); @@ -969,7 +969,7 @@ _outAggref(StringInfo str, Aggref *node) } static void -_outWindowFunc(StringInfo str, WindowFunc *node) +_outWindowFunc(StringInfo str, const WindowFunc *node) { WRITE_NODE_TYPE("WINDOWFUNC"); @@ -985,7 +985,7 @@ _outWindowFunc(StringInfo str, WindowFunc *node) } static void -_outArrayRef(StringInfo str, ArrayRef *node) +_outArrayRef(StringInfo str, const ArrayRef *node) { WRITE_NODE_TYPE("ARRAYREF"); @@ -1000,7 +1000,7 @@ _outArrayRef(StringInfo str, ArrayRef *node) } static void -_outFuncExpr(StringInfo str, FuncExpr *node) +_outFuncExpr(StringInfo str, const FuncExpr *node) { WRITE_NODE_TYPE("FUNCEXPR"); @@ -1015,7 +1015,7 @@ _outFuncExpr(StringInfo str, FuncExpr *node) } static void -_outNamedArgExpr(StringInfo str, NamedArgExpr *node) +_outNamedArgExpr(StringInfo str, const NamedArgExpr *node) { WRITE_NODE_TYPE("NAMEDARGEXPR"); @@ -1026,7 +1026,7 @@ _outNamedArgExpr(StringInfo str, NamedArgExpr *node) } static void -_outOpExpr(StringInfo str, OpExpr *node) +_outOpExpr(StringInfo str, const OpExpr *node) { WRITE_NODE_TYPE("OPEXPR"); @@ -1041,7 +1041,7 @@ _outOpExpr(StringInfo str, OpExpr *node) } static void -_outDistinctExpr(StringInfo str, DistinctExpr *node) +_outDistinctExpr(StringInfo str, const DistinctExpr *node) { WRITE_NODE_TYPE("DISTINCTEXPR"); @@ -1056,7 +1056,7 @@ _outDistinctExpr(StringInfo str, DistinctExpr *node) } static void -_outNullIfExpr(StringInfo str, NullIfExpr *node) +_outNullIfExpr(StringInfo str, const NullIfExpr *node) { WRITE_NODE_TYPE("NULLIFEXPR"); @@ -1071,7 +1071,7 @@ _outNullIfExpr(StringInfo str, NullIfExpr *node) } static void -_outScalarArrayOpExpr(StringInfo str, ScalarArrayOpExpr *node) +_outScalarArrayOpExpr(StringInfo str, const ScalarArrayOpExpr *node) { WRITE_NODE_TYPE("SCALARARRAYOPEXPR"); @@ -1084,7 +1084,7 @@ _outScalarArrayOpExpr(StringInfo str, ScalarArrayOpExpr *node) } static void -_outBoolExpr(StringInfo str, BoolExpr *node) +_outBoolExpr(StringInfo str, const BoolExpr *node) { char *opstr = NULL; @@ -1111,7 +1111,7 @@ _outBoolExpr(StringInfo str, BoolExpr *node) } static void -_outSubLink(StringInfo str, SubLink *node) +_outSubLink(StringInfo str, const SubLink *node) { WRITE_NODE_TYPE("SUBLINK"); @@ -1123,7 +1123,7 @@ _outSubLink(StringInfo str, SubLink *node) } static void -_outSubPlan(StringInfo str, SubPlan *node) +_outSubPlan(StringInfo str, const SubPlan *node) { WRITE_NODE_TYPE("SUBPLAN"); @@ -1145,7 +1145,7 @@ _outSubPlan(StringInfo str, SubPlan *node) } static void -_outAlternativeSubPlan(StringInfo str, AlternativeSubPlan *node) +_outAlternativeSubPlan(StringInfo str, const AlternativeSubPlan *node) { WRITE_NODE_TYPE("ALTERNATIVESUBPLAN"); @@ -1153,7 +1153,7 @@ _outAlternativeSubPlan(StringInfo str, AlternativeSubPlan *node) } static void -_outFieldSelect(StringInfo str, FieldSelect *node) +_outFieldSelect(StringInfo str, const FieldSelect *node) { WRITE_NODE_TYPE("FIELDSELECT"); @@ -1165,7 +1165,7 @@ _outFieldSelect(StringInfo str, FieldSelect *node) } static void -_outFieldStore(StringInfo str, FieldStore *node) +_outFieldStore(StringInfo str, const FieldStore *node) { WRITE_NODE_TYPE("FIELDSTORE"); @@ -1176,7 +1176,7 @@ _outFieldStore(StringInfo str, FieldStore *node) } static void -_outRelabelType(StringInfo str, RelabelType *node) +_outRelabelType(StringInfo str, const RelabelType *node) { WRITE_NODE_TYPE("RELABELTYPE"); @@ -1189,7 +1189,7 @@ _outRelabelType(StringInfo str, RelabelType *node) } static void -_outCoerceViaIO(StringInfo str, CoerceViaIO *node) +_outCoerceViaIO(StringInfo str, const CoerceViaIO *node) { WRITE_NODE_TYPE("COERCEVIAIO"); @@ -1201,7 +1201,7 @@ _outCoerceViaIO(StringInfo str, CoerceViaIO *node) } static void -_outArrayCoerceExpr(StringInfo str, ArrayCoerceExpr *node) +_outArrayCoerceExpr(StringInfo str, const ArrayCoerceExpr *node) { WRITE_NODE_TYPE("ARRAYCOERCEEXPR"); @@ -1216,7 +1216,7 @@ _outArrayCoerceExpr(StringInfo str, ArrayCoerceExpr *node) } static void -_outConvertRowtypeExpr(StringInfo str, ConvertRowtypeExpr *node) +_outConvertRowtypeExpr(StringInfo str, const ConvertRowtypeExpr *node) { WRITE_NODE_TYPE("CONVERTROWTYPEEXPR"); @@ -1227,7 +1227,7 @@ _outConvertRowtypeExpr(StringInfo str, ConvertRowtypeExpr *node) } static void -_outCollateExpr(StringInfo str, CollateExpr *node) +_outCollateExpr(StringInfo str, const CollateExpr *node) { WRITE_NODE_TYPE("COLLATE"); @@ -1237,7 +1237,7 @@ _outCollateExpr(StringInfo str, CollateExpr *node) } static void -_outCaseExpr(StringInfo str, CaseExpr *node) +_outCaseExpr(StringInfo str, const CaseExpr *node) { WRITE_NODE_TYPE("CASE"); @@ -1250,7 +1250,7 @@ _outCaseExpr(StringInfo str, CaseExpr *node) } static void -_outCaseWhen(StringInfo str, CaseWhen *node) +_outCaseWhen(StringInfo str, const CaseWhen *node) { WRITE_NODE_TYPE("WHEN"); @@ -1260,7 +1260,7 @@ _outCaseWhen(StringInfo str, CaseWhen *node) } static void -_outCaseTestExpr(StringInfo str, CaseTestExpr *node) +_outCaseTestExpr(StringInfo str, const CaseTestExpr *node) { WRITE_NODE_TYPE("CASETESTEXPR"); @@ -1270,7 +1270,7 @@ _outCaseTestExpr(StringInfo str, CaseTestExpr *node) } static void -_outArrayExpr(StringInfo str, ArrayExpr *node) +_outArrayExpr(StringInfo str, const ArrayExpr *node) { WRITE_NODE_TYPE("ARRAY"); @@ -1283,7 +1283,7 @@ _outArrayExpr(StringInfo str, ArrayExpr *node) } static void -_outRowExpr(StringInfo str, RowExpr *node) +_outRowExpr(StringInfo str, const RowExpr *node) { WRITE_NODE_TYPE("ROW"); @@ -1295,7 +1295,7 @@ _outRowExpr(StringInfo str, RowExpr *node) } static void -_outRowCompareExpr(StringInfo str, RowCompareExpr *node) +_outRowCompareExpr(StringInfo str, const RowCompareExpr *node) { WRITE_NODE_TYPE("ROWCOMPARE"); @@ -1308,7 +1308,7 @@ _outRowCompareExpr(StringInfo str, RowCompareExpr *node) } static void -_outCoalesceExpr(StringInfo str, CoalesceExpr *node) +_outCoalesceExpr(StringInfo str, const CoalesceExpr *node) { WRITE_NODE_TYPE("COALESCE"); @@ -1319,7 +1319,7 @@ _outCoalesceExpr(StringInfo str, CoalesceExpr *node) } static void -_outMinMaxExpr(StringInfo str, MinMaxExpr *node) +_outMinMaxExpr(StringInfo str, const MinMaxExpr *node) { WRITE_NODE_TYPE("MINMAX"); @@ -1332,7 +1332,7 @@ _outMinMaxExpr(StringInfo str, MinMaxExpr *node) } static void -_outXmlExpr(StringInfo str, XmlExpr *node) +_outXmlExpr(StringInfo str, const XmlExpr *node) { WRITE_NODE_TYPE("XMLEXPR"); @@ -1348,7 +1348,7 @@ _outXmlExpr(StringInfo str, XmlExpr *node) } static void -_outNullTest(StringInfo str, NullTest *node) +_outNullTest(StringInfo str, const NullTest *node) { WRITE_NODE_TYPE("NULLTEST"); @@ -1358,7 +1358,7 @@ _outNullTest(StringInfo str, NullTest *node) } static void -_outBooleanTest(StringInfo str, BooleanTest *node) +_outBooleanTest(StringInfo str, const BooleanTest *node) { WRITE_NODE_TYPE("BOOLEANTEST"); @@ -1367,7 +1367,7 @@ _outBooleanTest(StringInfo str, BooleanTest *node) } static void -_outCoerceToDomain(StringInfo str, CoerceToDomain *node) +_outCoerceToDomain(StringInfo str, const CoerceToDomain *node) { WRITE_NODE_TYPE("COERCETODOMAIN"); @@ -1380,7 +1380,7 @@ _outCoerceToDomain(StringInfo str, CoerceToDomain *node) } static void -_outCoerceToDomainValue(StringInfo str, CoerceToDomainValue *node) +_outCoerceToDomainValue(StringInfo str, const CoerceToDomainValue *node) { WRITE_NODE_TYPE("COERCETODOMAINVALUE"); @@ -1391,7 +1391,7 @@ _outCoerceToDomainValue(StringInfo str, CoerceToDomainValue *node) } static void -_outSetToDefault(StringInfo str, SetToDefault *node) +_outSetToDefault(StringInfo str, const SetToDefault *node) { WRITE_NODE_TYPE("SETTODEFAULT"); @@ -1402,7 +1402,7 @@ _outSetToDefault(StringInfo str, SetToDefault *node) } static void -_outCurrentOfExpr(StringInfo str, CurrentOfExpr *node) +_outCurrentOfExpr(StringInfo str, const CurrentOfExpr *node) { WRITE_NODE_TYPE("CURRENTOFEXPR"); @@ -1412,7 +1412,7 @@ _outCurrentOfExpr(StringInfo str, CurrentOfExpr *node) } static void -_outTargetEntry(StringInfo str, TargetEntry *node) +_outTargetEntry(StringInfo str, const TargetEntry *node) { WRITE_NODE_TYPE("TARGETENTRY"); @@ -1426,7 +1426,7 @@ _outTargetEntry(StringInfo str, TargetEntry *node) } static void -_outRangeTblRef(StringInfo str, RangeTblRef *node) +_outRangeTblRef(StringInfo str, const RangeTblRef *node) { WRITE_NODE_TYPE("RANGETBLREF"); @@ -1434,7 +1434,7 @@ _outRangeTblRef(StringInfo str, RangeTblRef *node) } static void -_outJoinExpr(StringInfo str, JoinExpr *node) +_outJoinExpr(StringInfo str, const JoinExpr *node) { WRITE_NODE_TYPE("JOINEXPR"); @@ -1449,7 +1449,7 @@ _outJoinExpr(StringInfo str, JoinExpr *node) } static void -_outFromExpr(StringInfo str, FromExpr *node) +_outFromExpr(StringInfo str, const FromExpr *node) { WRITE_NODE_TYPE("FROMEXPR"); @@ -1470,7 +1470,7 @@ _outFromExpr(StringInfo str, FromExpr *node) * We can print the parent's relids for identification purposes, though. */ static void -_outPathInfo(StringInfo str, Path *node) +_outPathInfo(StringInfo str, const Path *node) { WRITE_ENUM_FIELD(pathtype, NodeTag); appendStringInfo(str, " :parent_relids "); @@ -1484,9 +1484,9 @@ _outPathInfo(StringInfo str, Path *node) * print the basic stuff of all nodes that inherit from JoinPath */ static void -_outJoinPathInfo(StringInfo str, JoinPath *node) +_outJoinPathInfo(StringInfo str, const JoinPath *node) { - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_ENUM_FIELD(jointype, JoinType); WRITE_NODE_FIELD(outerjoinpath); @@ -1495,19 +1495,19 @@ _outJoinPathInfo(StringInfo str, JoinPath *node) } static void -_outPath(StringInfo str, Path *node) +_outPath(StringInfo str, const Path *node) { WRITE_NODE_TYPE("PATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); } static void -_outIndexPath(StringInfo str, IndexPath *node) +_outIndexPath(StringInfo str, const IndexPath *node) { WRITE_NODE_TYPE("INDEXPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(indexinfo); WRITE_NODE_FIELD(indexclauses); @@ -1521,11 +1521,11 @@ _outIndexPath(StringInfo str, IndexPath *node) } static void -_outBitmapHeapPath(StringInfo str, BitmapHeapPath *node) +_outBitmapHeapPath(StringInfo str, const BitmapHeapPath *node) { WRITE_NODE_TYPE("BITMAPHEAPPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(bitmapqual); WRITE_BOOL_FIELD(isjoininner); @@ -1533,94 +1533,94 @@ _outBitmapHeapPath(StringInfo str, BitmapHeapPath *node) } static void -_outBitmapAndPath(StringInfo str, BitmapAndPath *node) +_outBitmapAndPath(StringInfo str, const BitmapAndPath *node) { WRITE_NODE_TYPE("BITMAPANDPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(bitmapquals); WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f"); } static void -_outBitmapOrPath(StringInfo str, BitmapOrPath *node) +_outBitmapOrPath(StringInfo str, const BitmapOrPath *node) { WRITE_NODE_TYPE("BITMAPORPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(bitmapquals); WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f"); } static void -_outTidPath(StringInfo str, TidPath *node) +_outTidPath(StringInfo str, const TidPath *node) { WRITE_NODE_TYPE("TIDPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(tidquals); } static void -_outForeignPath(StringInfo str, ForeignPath *node) +_outForeignPath(StringInfo str, const ForeignPath *node) { WRITE_NODE_TYPE("FOREIGNPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(fdwplan); } static void -_outAppendPath(StringInfo str, AppendPath *node) +_outAppendPath(StringInfo str, const AppendPath *node) { WRITE_NODE_TYPE("APPENDPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(subpaths); } static void -_outMergeAppendPath(StringInfo str, MergeAppendPath *node) +_outMergeAppendPath(StringInfo str, const MergeAppendPath *node) { WRITE_NODE_TYPE("MERGEAPPENDPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(subpaths); WRITE_FLOAT_FIELD(limit_tuples, "%.0f"); } static void -_outResultPath(StringInfo str, ResultPath *node) +_outResultPath(StringInfo str, const ResultPath *node) { WRITE_NODE_TYPE("RESULTPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(quals); } static void -_outMaterialPath(StringInfo str, MaterialPath *node) +_outMaterialPath(StringInfo str, const MaterialPath *node) { WRITE_NODE_TYPE("MATERIALPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(subpath); } static void -_outUniquePath(StringInfo str, UniquePath *node) +_outUniquePath(StringInfo str, const UniquePath *node) { WRITE_NODE_TYPE("UNIQUEPATH"); - _outPathInfo(str, (Path *) node); + _outPathInfo(str, (const Path *) node); WRITE_NODE_FIELD(subpath); WRITE_ENUM_FIELD(umethod, UniquePathMethod); @@ -1630,19 +1630,19 @@ _outUniquePath(StringInfo str, UniquePath *node) } static void -_outNestPath(StringInfo str, NestPath *node) +_outNestPath(StringInfo str, const NestPath *node) { WRITE_NODE_TYPE("NESTPATH"); - _outJoinPathInfo(str, (JoinPath *) node); + _outJoinPathInfo(str, (const JoinPath *) node); } static void -_outMergePath(StringInfo str, MergePath *node) +_outMergePath(StringInfo str, const MergePath *node) { WRITE_NODE_TYPE("MERGEPATH"); - _outJoinPathInfo(str, (JoinPath *) node); + _outJoinPathInfo(str, (const JoinPath *) node); WRITE_NODE_FIELD(path_mergeclauses); WRITE_NODE_FIELD(outersortkeys); @@ -1651,18 +1651,18 @@ _outMergePath(StringInfo str, MergePath *node) } static void -_outHashPath(StringInfo str, HashPath *node) +_outHashPath(StringInfo str, const HashPath *node) { WRITE_NODE_TYPE("HASHPATH"); - _outJoinPathInfo(str, (JoinPath *) node); + _outJoinPathInfo(str, (const JoinPath *) node); WRITE_NODE_FIELD(path_hashclauses); WRITE_INT_FIELD(num_batches); } static void -_outPlannerGlobal(StringInfo str, PlannerGlobal *node) +_outPlannerGlobal(StringInfo str, const PlannerGlobal *node) { WRITE_NODE_TYPE("PLANNERGLOBAL"); @@ -1681,7 +1681,7 @@ _outPlannerGlobal(StringInfo str, PlannerGlobal *node) } static void -_outPlannerInfo(StringInfo str, PlannerInfo *node) +_outPlannerInfo(StringInfo str, const PlannerInfo *node) { WRITE_NODE_TYPE("PLANNERINFO"); @@ -1722,7 +1722,7 @@ _outPlannerInfo(StringInfo str, PlannerInfo *node) } static void -_outRelOptInfo(StringInfo str, RelOptInfo *node) +_outRelOptInfo(StringInfo str, const RelOptInfo *node) { WRITE_NODE_TYPE("RELOPTINFO"); @@ -1755,7 +1755,7 @@ _outRelOptInfo(StringInfo str, RelOptInfo *node) } static void -_outIndexOptInfo(StringInfo str, IndexOptInfo *node) +_outIndexOptInfo(StringInfo str, const IndexOptInfo *node) { WRITE_NODE_TYPE("INDEXOPTINFO"); @@ -1776,7 +1776,7 @@ _outIndexOptInfo(StringInfo str, IndexOptInfo *node) } static void -_outEquivalenceClass(StringInfo str, EquivalenceClass *node) +_outEquivalenceClass(StringInfo str, const EquivalenceClass *node) { /* * To simplify reading, we just chase up to the topmost merged EC and @@ -1801,7 +1801,7 @@ _outEquivalenceClass(StringInfo str, EquivalenceClass *node) } static void -_outEquivalenceMember(StringInfo str, EquivalenceMember *node) +_outEquivalenceMember(StringInfo str, const EquivalenceMember *node) { WRITE_NODE_TYPE("EQUIVALENCEMEMBER"); @@ -1813,7 +1813,7 @@ _outEquivalenceMember(StringInfo str, EquivalenceMember *node) } static void -_outPathKey(StringInfo str, PathKey *node) +_outPathKey(StringInfo str, const PathKey *node) { WRITE_NODE_TYPE("PATHKEY"); @@ -1824,7 +1824,7 @@ _outPathKey(StringInfo str, PathKey *node) } static void -_outRestrictInfo(StringInfo str, RestrictInfo *node) +_outRestrictInfo(StringInfo str, const RestrictInfo *node) { WRITE_NODE_TYPE("RESTRICTINFO"); @@ -1853,7 +1853,7 @@ _outRestrictInfo(StringInfo str, RestrictInfo *node) } static void -_outInnerIndexscanInfo(StringInfo str, InnerIndexscanInfo *node) +_outInnerIndexscanInfo(StringInfo str, const InnerIndexscanInfo *node) { WRITE_NODE_TYPE("INNERINDEXSCANINFO"); WRITE_BITMAPSET_FIELD(other_relids); @@ -1863,7 +1863,7 @@ _outInnerIndexscanInfo(StringInfo str, InnerIndexscanInfo *node) } static void -_outPlaceHolderVar(StringInfo str, PlaceHolderVar *node) +_outPlaceHolderVar(StringInfo str, const PlaceHolderVar *node) { WRITE_NODE_TYPE("PLACEHOLDERVAR"); @@ -1874,7 +1874,7 @@ _outPlaceHolderVar(StringInfo str, PlaceHolderVar *node) } static void -_outSpecialJoinInfo(StringInfo str, SpecialJoinInfo *node) +_outSpecialJoinInfo(StringInfo str, const SpecialJoinInfo *node) { WRITE_NODE_TYPE("SPECIALJOININFO"); @@ -1889,7 +1889,7 @@ _outSpecialJoinInfo(StringInfo str, SpecialJoinInfo *node) } static void -_outAppendRelInfo(StringInfo str, AppendRelInfo *node) +_outAppendRelInfo(StringInfo str, const AppendRelInfo *node) { WRITE_NODE_TYPE("APPENDRELINFO"); @@ -1902,7 +1902,7 @@ _outAppendRelInfo(StringInfo str, AppendRelInfo *node) } static void -_outPlaceHolderInfo(StringInfo str, PlaceHolderInfo *node) +_outPlaceHolderInfo(StringInfo str, const PlaceHolderInfo *node) { WRITE_NODE_TYPE("PLACEHOLDERINFO"); @@ -1915,7 +1915,7 @@ _outPlaceHolderInfo(StringInfo str, PlaceHolderInfo *node) } static void -_outMinMaxAggInfo(StringInfo str, MinMaxAggInfo *node) +_outMinMaxAggInfo(StringInfo str, const MinMaxAggInfo *node) { WRITE_NODE_TYPE("MINMAXAGGINFO"); @@ -1929,7 +1929,7 @@ _outMinMaxAggInfo(StringInfo str, MinMaxAggInfo *node) } static void -_outPlannerParamItem(StringInfo str, PlannerParamItem *node) +_outPlannerParamItem(StringInfo str, const PlannerParamItem *node) { WRITE_NODE_TYPE("PLANNERPARAMITEM"); @@ -1944,7 +1944,7 @@ _outPlannerParamItem(StringInfo str, PlannerParamItem *node) *****************************************************************************/ static void -_outCreateStmt(StringInfo str, CreateStmt *node) +_outCreateStmt(StringInfo str, const CreateStmt *node) { WRITE_NODE_TYPE("CREATESTMT"); @@ -1960,18 +1960,18 @@ _outCreateStmt(StringInfo str, CreateStmt *node) } static void -_outCreateForeignTableStmt(StringInfo str, CreateForeignTableStmt *node) +_outCreateForeignTableStmt(StringInfo str, const CreateForeignTableStmt *node) { WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT"); - _outCreateStmt(str, (CreateStmt *) &node->base); + _outCreateStmt(str, (const CreateStmt *) &node->base); WRITE_STRING_FIELD(servername); WRITE_NODE_FIELD(options); } static void -_outIndexStmt(StringInfo str, IndexStmt *node) +_outIndexStmt(StringInfo str, const IndexStmt *node) { WRITE_NODE_TYPE("INDEXSTMT"); @@ -1994,7 +1994,7 @@ _outIndexStmt(StringInfo str, IndexStmt *node) } static void -_outNotifyStmt(StringInfo str, NotifyStmt *node) +_outNotifyStmt(StringInfo str, const NotifyStmt *node) { WRITE_NODE_TYPE("NOTIFY"); @@ -2003,7 +2003,7 @@ _outNotifyStmt(StringInfo str, NotifyStmt *node) } static void -_outDeclareCursorStmt(StringInfo str, DeclareCursorStmt *node) +_outDeclareCursorStmt(StringInfo str, const DeclareCursorStmt *node) { WRITE_NODE_TYPE("DECLARECURSOR"); @@ -2013,7 +2013,7 @@ _outDeclareCursorStmt(StringInfo str, DeclareCursorStmt *node) } static void -_outSelectStmt(StringInfo str, SelectStmt *node) +_outSelectStmt(StringInfo str, const SelectStmt *node) { WRITE_NODE_TYPE("SELECT"); @@ -2038,7 +2038,7 @@ _outSelectStmt(StringInfo str, SelectStmt *node) } static void -_outFuncCall(StringInfo str, FuncCall *node) +_outFuncCall(StringInfo str, const FuncCall *node) { WRITE_NODE_TYPE("FUNCCALL"); @@ -2053,7 +2053,7 @@ _outFuncCall(StringInfo str, FuncCall *node) } static void -_outDefElem(StringInfo str, DefElem *node) +_outDefElem(StringInfo str, const DefElem *node) { WRITE_NODE_TYPE("DEFELEM"); @@ -2064,7 +2064,7 @@ _outDefElem(StringInfo str, DefElem *node) } static void -_outInhRelation(StringInfo str, InhRelation *node) +_outInhRelation(StringInfo str, const InhRelation *node) { WRITE_NODE_TYPE("INHRELATION"); @@ -2073,7 +2073,7 @@ _outInhRelation(StringInfo str, InhRelation *node) } static void -_outLockingClause(StringInfo str, LockingClause *node) +_outLockingClause(StringInfo str, const LockingClause *node) { WRITE_NODE_TYPE("LOCKINGCLAUSE"); @@ -2083,7 +2083,7 @@ _outLockingClause(StringInfo str, LockingClause *node) } static void -_outXmlSerialize(StringInfo str, XmlSerialize *node) +_outXmlSerialize(StringInfo str, const XmlSerialize *node) { WRITE_NODE_TYPE("XMLSERIALIZE"); @@ -2094,7 +2094,7 @@ _outXmlSerialize(StringInfo str, XmlSerialize *node) } static void -_outColumnDef(StringInfo str, ColumnDef *node) +_outColumnDef(StringInfo str, const ColumnDef *node) { WRITE_NODE_TYPE("COLUMNDEF"); @@ -2114,7 +2114,7 @@ _outColumnDef(StringInfo str, ColumnDef *node) } static void -_outTypeName(StringInfo str, TypeName *node) +_outTypeName(StringInfo str, const TypeName *node) { WRITE_NODE_TYPE("TYPENAME"); @@ -2129,7 +2129,7 @@ _outTypeName(StringInfo str, TypeName *node) } static void -_outTypeCast(StringInfo str, TypeCast *node) +_outTypeCast(StringInfo str, const TypeCast *node) { WRITE_NODE_TYPE("TYPECAST"); @@ -2139,7 +2139,7 @@ _outTypeCast(StringInfo str, TypeCast *node) } static void -_outCollateClause(StringInfo str, CollateClause *node) +_outCollateClause(StringInfo str, const CollateClause *node) { WRITE_NODE_TYPE("COLLATECLAUSE"); @@ -2149,7 +2149,7 @@ _outCollateClause(StringInfo str, CollateClause *node) } static void -_outIndexElem(StringInfo str, IndexElem *node) +_outIndexElem(StringInfo str, const IndexElem *node) { WRITE_NODE_TYPE("INDEXELEM"); @@ -2163,7 +2163,7 @@ _outIndexElem(StringInfo str, IndexElem *node) } static void -_outQuery(StringInfo str, Query *node) +_outQuery(StringInfo str, const Query *node) { WRITE_NODE_TYPE("QUERY"); @@ -2223,7 +2223,7 @@ _outQuery(StringInfo str, Query *node) } static void -_outSortGroupClause(StringInfo str, SortGroupClause *node) +_outSortGroupClause(StringInfo str, const SortGroupClause *node) { WRITE_NODE_TYPE("SORTGROUPCLAUSE"); @@ -2235,7 +2235,7 @@ _outSortGroupClause(StringInfo str, SortGroupClause *node) } static void -_outWindowClause(StringInfo str, WindowClause *node) +_outWindowClause(StringInfo str, const WindowClause *node) { WRITE_NODE_TYPE("WINDOWCLAUSE"); @@ -2251,7 +2251,7 @@ _outWindowClause(StringInfo str, WindowClause *node) } static void -_outRowMarkClause(StringInfo str, RowMarkClause *node) +_outRowMarkClause(StringInfo str, const RowMarkClause *node) { WRITE_NODE_TYPE("ROWMARKCLAUSE"); @@ -2262,7 +2262,7 @@ _outRowMarkClause(StringInfo str, RowMarkClause *node) } static void -_outWithClause(StringInfo str, WithClause *node) +_outWithClause(StringInfo str, const WithClause *node) { WRITE_NODE_TYPE("WITHCLAUSE"); @@ -2272,7 +2272,7 @@ _outWithClause(StringInfo str, WithClause *node) } static void -_outCommonTableExpr(StringInfo str, CommonTableExpr *node) +_outCommonTableExpr(StringInfo str, const CommonTableExpr *node) { WRITE_NODE_TYPE("COMMONTABLEEXPR"); @@ -2289,7 +2289,7 @@ _outCommonTableExpr(StringInfo str, CommonTableExpr *node) } static void -_outSetOperationStmt(StringInfo str, SetOperationStmt *node) +_outSetOperationStmt(StringInfo str, const SetOperationStmt *node) { WRITE_NODE_TYPE("SETOPERATIONSTMT"); @@ -2304,7 +2304,7 @@ _outSetOperationStmt(StringInfo str, SetOperationStmt *node) } static void -_outRangeTblEntry(StringInfo str, RangeTblEntry *node) +_outRangeTblEntry(StringInfo str, const RangeTblEntry *node) { WRITE_NODE_TYPE("RTE"); @@ -2358,7 +2358,7 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node) } static void -_outAExpr(StringInfo str, A_Expr *node) +_outAExpr(StringInfo str, const A_Expr *node) { WRITE_NODE_TYPE("AEXPR"); @@ -2414,7 +2414,7 @@ _outAExpr(StringInfo str, A_Expr *node) } static void -_outValue(StringInfo str, Value *value) +_outValue(StringInfo str, const Value *value) { switch (value->type) { @@ -2449,7 +2449,7 @@ _outValue(StringInfo str, Value *value) } static void -_outColumnRef(StringInfo str, ColumnRef *node) +_outColumnRef(StringInfo str, const ColumnRef *node) { WRITE_NODE_TYPE("COLUMNREF"); @@ -2458,7 +2458,7 @@ _outColumnRef(StringInfo str, ColumnRef *node) } static void -_outParamRef(StringInfo str, ParamRef *node) +_outParamRef(StringInfo str, const ParamRef *node) { WRITE_NODE_TYPE("PARAMREF"); @@ -2467,7 +2467,7 @@ _outParamRef(StringInfo str, ParamRef *node) } static void -_outAConst(StringInfo str, A_Const *node) +_outAConst(StringInfo str, const A_Const *node) { WRITE_NODE_TYPE("A_CONST"); @@ -2477,13 +2477,13 @@ _outAConst(StringInfo str, A_Const *node) } static void -_outA_Star(StringInfo str, A_Star *node) +_outA_Star(StringInfo str, const A_Star *node) { WRITE_NODE_TYPE("A_STAR"); } static void -_outA_Indices(StringInfo str, A_Indices *node) +_outA_Indices(StringInfo str, const A_Indices *node) { WRITE_NODE_TYPE("A_INDICES"); @@ -2492,7 +2492,7 @@ _outA_Indices(StringInfo str, A_Indices *node) } static void -_outA_Indirection(StringInfo str, A_Indirection *node) +_outA_Indirection(StringInfo str, const A_Indirection *node) { WRITE_NODE_TYPE("A_INDIRECTION"); @@ -2501,7 +2501,7 @@ _outA_Indirection(StringInfo str, A_Indirection *node) } static void -_outA_ArrayExpr(StringInfo str, A_ArrayExpr *node) +_outA_ArrayExpr(StringInfo str, const A_ArrayExpr *node) { WRITE_NODE_TYPE("A_ARRAYEXPR"); @@ -2510,7 +2510,7 @@ _outA_ArrayExpr(StringInfo str, A_ArrayExpr *node) } static void -_outResTarget(StringInfo str, ResTarget *node) +_outResTarget(StringInfo str, const ResTarget *node) { WRITE_NODE_TYPE("RESTARGET"); @@ -2521,7 +2521,7 @@ _outResTarget(StringInfo str, ResTarget *node) } static void -_outSortBy(StringInfo str, SortBy *node) +_outSortBy(StringInfo str, const SortBy *node) { WRITE_NODE_TYPE("SORTBY"); @@ -2533,7 +2533,7 @@ _outSortBy(StringInfo str, SortBy *node) } static void -_outWindowDef(StringInfo str, WindowDef *node) +_outWindowDef(StringInfo str, const WindowDef *node) { WRITE_NODE_TYPE("WINDOWDEF"); @@ -2548,7 +2548,7 @@ _outWindowDef(StringInfo str, WindowDef *node) } static void -_outRangeSubselect(StringInfo str, RangeSubselect *node) +_outRangeSubselect(StringInfo str, const RangeSubselect *node) { WRITE_NODE_TYPE("RANGESUBSELECT"); @@ -2557,7 +2557,7 @@ _outRangeSubselect(StringInfo str, RangeSubselect *node) } static void -_outRangeFunction(StringInfo str, RangeFunction *node) +_outRangeFunction(StringInfo str, const RangeFunction *node) { WRITE_NODE_TYPE("RANGEFUNCTION"); @@ -2567,7 +2567,7 @@ _outRangeFunction(StringInfo str, RangeFunction *node) } static void -_outConstraint(StringInfo str, Constraint *node) +_outConstraint(StringInfo str, const Constraint *node) { WRITE_NODE_TYPE("CONSTRAINT"); @@ -2668,7 +2668,7 @@ _outConstraint(StringInfo str, Constraint *node) * converts a Node into ascii string and append it to 'str' */ static void -_outNode(StringInfo str, void *obj) +_outNode(StringInfo str, const void *obj) { if (obj == NULL) appendStringInfo(str, "<>"); @@ -3168,7 +3168,7 @@ _outNode(StringInfo str, void *obj) * returns the ascii representation of the Node as a palloc'd string */ char * -nodeToString(void *obj) +nodeToString(const void *obj) { StringInfoData str; |