PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
outfuncs.c File Reference
#include "postgres.h"
#include <ctype.h>
#include "lib/stringinfo.h"
#include "nodes/extensible.h"
#include "nodes/plannodes.h"
#include "nodes/relation.h"
#include "utils/datum.h"
#include "utils/rel.h"
Include dependency graph for outfuncs.c:

Go to the source code of this file.

Macros

#define WRITE_NODE_TYPE(nodelabel)   appendStringInfoString(str, nodelabel)
 
#define WRITE_INT_FIELD(fldname)   appendStringInfo(str, " :" CppAsString(fldname) " %d", node->fldname)
 
#define WRITE_UINT_FIELD(fldname)   appendStringInfo(str, " :" CppAsString(fldname) " %u", node->fldname)
 
#define WRITE_OID_FIELD(fldname)   appendStringInfo(str, " :" CppAsString(fldname) " %u", node->fldname)
 
#define WRITE_LONG_FIELD(fldname)   appendStringInfo(str, " :" CppAsString(fldname) " %ld", node->fldname)
 
#define WRITE_CHAR_FIELD(fldname)   appendStringInfo(str, " :" CppAsString(fldname) " %c", node->fldname)
 
#define WRITE_ENUM_FIELD(fldname, enumtype)
 
#define WRITE_FLOAT_FIELD(fldname, format)   appendStringInfo(str, " :" CppAsString(fldname) " " format, node->fldname)
 
#define WRITE_BOOL_FIELD(fldname)
 
#define WRITE_STRING_FIELD(fldname)
 
#define WRITE_LOCATION_FIELD(fldname)   appendStringInfo(str, " :" CppAsString(fldname) " %d", node->fldname)
 
#define WRITE_NODE_FIELD(fldname)
 
#define WRITE_BITMAPSET_FIELD(fldname)
 
#define booltostr(x)   ((x) ? "true" : "false")
 

Functions

void outToken (StringInfo str, const char *s)
 
static void _outList (StringInfo str, const List *node)
 
void outBitmapset (StringInfo str, const Bitmapset *bms)
 
void outDatum (StringInfo str, Datum value, int typlen, bool typbyval)
 
static void _outPlannedStmt (StringInfo str, const PlannedStmt *node)
 
static void _outPlanInfo (StringInfo str, const Plan *node)
 
static void _outScanInfo (StringInfo str, const Scan *node)
 
static void _outJoinPlanInfo (StringInfo str, const Join *node)
 
static void _outPlan (StringInfo str, const Plan *node)
 
static void _outResult (StringInfo str, const Result *node)
 
static void _outProjectSet (StringInfo str, const ProjectSet *node)
 
static void _outModifyTable (StringInfo str, const ModifyTable *node)
 
static void _outAppend (StringInfo str, const Append *node)
 
static void _outMergeAppend (StringInfo str, const MergeAppend *node)
 
static void _outRecursiveUnion (StringInfo str, const RecursiveUnion *node)
 
static void _outBitmapAnd (StringInfo str, const BitmapAnd *node)
 
static void _outBitmapOr (StringInfo str, const BitmapOr *node)
 
static void _outGather (StringInfo str, const Gather *node)
 
static void _outGatherMerge (StringInfo str, const GatherMerge *node)
 
static void _outScan (StringInfo str, const Scan *node)
 
static void _outSeqScan (StringInfo str, const SeqScan *node)
 
static void _outSampleScan (StringInfo str, const SampleScan *node)
 
static void _outIndexScan (StringInfo str, const IndexScan *node)
 
static void _outIndexOnlyScan (StringInfo str, const IndexOnlyScan *node)
 
static void _outBitmapIndexScan (StringInfo str, const BitmapIndexScan *node)
 
static void _outBitmapHeapScan (StringInfo str, const BitmapHeapScan *node)
 
static void _outTidScan (StringInfo str, const TidScan *node)
 
static void _outSubqueryScan (StringInfo str, const SubqueryScan *node)
 
static void _outFunctionScan (StringInfo str, const FunctionScan *node)
 
static void _outTableFuncScan (StringInfo str, const TableFuncScan *node)
 
static void _outValuesScan (StringInfo str, const ValuesScan *node)
 
static void _outCteScan (StringInfo str, const CteScan *node)
 
static void _outNamedTuplestoreScan (StringInfo str, const NamedTuplestoreScan *node)
 
static void _outWorkTableScan (StringInfo str, const WorkTableScan *node)
 
static void _outForeignScan (StringInfo str, const ForeignScan *node)
 
static void _outCustomScan (StringInfo str, const CustomScan *node)
 
static void _outJoin (StringInfo str, const Join *node)
 
static void _outNestLoop (StringInfo str, const NestLoop *node)
 
static void _outMergeJoin (StringInfo str, const MergeJoin *node)
 
static void _outHashJoin (StringInfo str, const HashJoin *node)
 
static void _outAgg (StringInfo str, const Agg *node)
 
static void _outWindowAgg (StringInfo str, const WindowAgg *node)
 
static void _outGroup (StringInfo str, const Group *node)
 
static void _outMaterial (StringInfo str, const Material *node)
 
static void _outSort (StringInfo str, const Sort *node)
 
static void _outUnique (StringInfo str, const Unique *node)
 
static void _outHash (StringInfo str, const Hash *node)
 
static void _outSetOp (StringInfo str, const SetOp *node)
 
static void _outLockRows (StringInfo str, const LockRows *node)
 
static void _outLimit (StringInfo str, const Limit *node)
 
static void _outNestLoopParam (StringInfo str, const NestLoopParam *node)
 
static void _outPlanRowMark (StringInfo str, const PlanRowMark *node)
 
static void _outPlanInvalItem (StringInfo str, const PlanInvalItem *node)
 
static void _outAlias (StringInfo str, const Alias *node)
 
static void _outRangeVar (StringInfo str, const RangeVar *node)
 
static void _outTableFunc (StringInfo str, const TableFunc *node)
 
static void _outIntoClause (StringInfo str, const IntoClause *node)
 
static void _outVar (StringInfo str, const Var *node)
 
static void _outConst (StringInfo str, const Const *node)
 
static void _outParam (StringInfo str, const Param *node)
 
static void _outAggref (StringInfo str, const Aggref *node)
 
static void _outGroupingFunc (StringInfo str, const GroupingFunc *node)
 
static void _outWindowFunc (StringInfo str, const WindowFunc *node)
 
static void _outArrayRef (StringInfo str, const ArrayRef *node)
 
static void _outFuncExpr (StringInfo str, const FuncExpr *node)
 
static void _outNamedArgExpr (StringInfo str, const NamedArgExpr *node)
 
static void _outOpExpr (StringInfo str, const OpExpr *node)
 
static void _outDistinctExpr (StringInfo str, const DistinctExpr *node)
 
static void _outNullIfExpr (StringInfo str, const NullIfExpr *node)
 
static void _outScalarArrayOpExpr (StringInfo str, const ScalarArrayOpExpr *node)
 
static void _outBoolExpr (StringInfo str, const BoolExpr *node)
 
static void _outSubLink (StringInfo str, const SubLink *node)
 
static void _outSubPlan (StringInfo str, const SubPlan *node)
 
static void _outAlternativeSubPlan (StringInfo str, const AlternativeSubPlan *node)
 
static void _outFieldSelect (StringInfo str, const FieldSelect *node)
 
static void _outFieldStore (StringInfo str, const FieldStore *node)
 
static void _outRelabelType (StringInfo str, const RelabelType *node)
 
static void _outCoerceViaIO (StringInfo str, const CoerceViaIO *node)
 
static void _outArrayCoerceExpr (StringInfo str, const ArrayCoerceExpr *node)
 
static void _outConvertRowtypeExpr (StringInfo str, const ConvertRowtypeExpr *node)
 
static void _outCollateExpr (StringInfo str, const CollateExpr *node)
 
static void _outCaseExpr (StringInfo str, const CaseExpr *node)
 
static void _outCaseWhen (StringInfo str, const CaseWhen *node)
 
static void _outCaseTestExpr (StringInfo str, const CaseTestExpr *node)
 
static void _outArrayExpr (StringInfo str, const ArrayExpr *node)
 
static void _outRowExpr (StringInfo str, const RowExpr *node)
 
static void _outRowCompareExpr (StringInfo str, const RowCompareExpr *node)
 
static void _outCoalesceExpr (StringInfo str, const CoalesceExpr *node)
 
static void _outMinMaxExpr (StringInfo str, const MinMaxExpr *node)
 
static void _outSQLValueFunction (StringInfo str, const SQLValueFunction *node)
 
static void _outXmlExpr (StringInfo str, const XmlExpr *node)
 
static void _outNullTest (StringInfo str, const NullTest *node)
 
static void _outBooleanTest (StringInfo str, const BooleanTest *node)
 
static void _outCoerceToDomain (StringInfo str, const CoerceToDomain *node)
 
static void _outCoerceToDomainValue (StringInfo str, const CoerceToDomainValue *node)
 
static void _outSetToDefault (StringInfo str, const SetToDefault *node)
 
static void _outCurrentOfExpr (StringInfo str, const CurrentOfExpr *node)
 
static void _outInferenceElem (StringInfo str, const InferenceElem *node)
 
static void _outTargetEntry (StringInfo str, const TargetEntry *node)
 
static void _outRangeTblRef (StringInfo str, const RangeTblRef *node)
 
static void _outJoinExpr (StringInfo str, const JoinExpr *node)
 
static void _outFromExpr (StringInfo str, const FromExpr *node)
 
static void _outOnConflictExpr (StringInfo str, const OnConflictExpr *node)
 
static void _outPathInfo (StringInfo str, const Path *node)
 
static void _outJoinPathInfo (StringInfo str, const JoinPath *node)
 
static void _outPath (StringInfo str, const Path *node)
 
static void _outIndexPath (StringInfo str, const IndexPath *node)
 
static void _outBitmapHeapPath (StringInfo str, const BitmapHeapPath *node)
 
static void _outBitmapAndPath (StringInfo str, const BitmapAndPath *node)
 
static void _outBitmapOrPath (StringInfo str, const BitmapOrPath *node)
 
static void _outTidPath (StringInfo str, const TidPath *node)
 
static void _outSubqueryScanPath (StringInfo str, const SubqueryScanPath *node)
 
static void _outForeignPath (StringInfo str, const ForeignPath *node)
 
static void _outCustomPath (StringInfo str, const CustomPath *node)
 
static void _outAppendPath (StringInfo str, const AppendPath *node)
 
static void _outMergeAppendPath (StringInfo str, const MergeAppendPath *node)
 
static void _outResultPath (StringInfo str, const ResultPath *node)
 
static void _outMaterialPath (StringInfo str, const MaterialPath *node)
 
static void _outUniquePath (StringInfo str, const UniquePath *node)
 
static void _outGatherPath (StringInfo str, const GatherPath *node)
 
static void _outProjectionPath (StringInfo str, const ProjectionPath *node)
 
static void _outProjectSetPath (StringInfo str, const ProjectSetPath *node)
 
static void _outSortPath (StringInfo str, const SortPath *node)
 
static void _outGroupPath (StringInfo str, const GroupPath *node)
 
static void _outUpperUniquePath (StringInfo str, const UpperUniquePath *node)
 
static void _outAggPath (StringInfo str, const AggPath *node)
 
static void _outRollupData (StringInfo str, const RollupData *node)
 
static void _outGroupingSetData (StringInfo str, const GroupingSetData *node)
 
static void _outGroupingSetsPath (StringInfo str, const GroupingSetsPath *node)
 
static void _outMinMaxAggPath (StringInfo str, const MinMaxAggPath *node)
 
static void _outWindowAggPath (StringInfo str, const WindowAggPath *node)
 
static void _outSetOpPath (StringInfo str, const SetOpPath *node)
 
static void _outRecursiveUnionPath (StringInfo str, const RecursiveUnionPath *node)
 
static void _outLockRowsPath (StringInfo str, const LockRowsPath *node)
 
static void _outModifyTablePath (StringInfo str, const ModifyTablePath *node)
 
static void _outLimitPath (StringInfo str, const LimitPath *node)
 
static void _outGatherMergePath (StringInfo str, const GatherMergePath *node)
 
static void _outNestPath (StringInfo str, const NestPath *node)
 
static void _outMergePath (StringInfo str, const MergePath *node)
 
static void _outHashPath (StringInfo str, const HashPath *node)
 
static void _outPlannerGlobal (StringInfo str, const PlannerGlobal *node)
 
static void _outPlannerInfo (StringInfo str, const PlannerInfo *node)
 
static void _outRelOptInfo (StringInfo str, const RelOptInfo *node)
 
static void _outIndexOptInfo (StringInfo str, const IndexOptInfo *node)
 
static void _outForeignKeyOptInfo (StringInfo str, const ForeignKeyOptInfo *node)
 
static void _outStatisticExtInfo (StringInfo str, const StatisticExtInfo *node)
 
static void _outEquivalenceClass (StringInfo str, const EquivalenceClass *node)
 
static void _outEquivalenceMember (StringInfo str, const EquivalenceMember *node)
 
static void _outPathKey (StringInfo str, const PathKey *node)
 
static void _outPathTarget (StringInfo str, const PathTarget *node)
 
static void _outParamPathInfo (StringInfo str, const ParamPathInfo *node)
 
static void _outRestrictInfo (StringInfo str, const RestrictInfo *node)
 
static void _outPlaceHolderVar (StringInfo str, const PlaceHolderVar *node)
 
static void _outSpecialJoinInfo (StringInfo str, const SpecialJoinInfo *node)
 
static void _outAppendRelInfo (StringInfo str, const AppendRelInfo *node)
 
static void _outPartitionedChildRelInfo (StringInfo str, const PartitionedChildRelInfo *node)
 
static void _outPlaceHolderInfo (StringInfo str, const PlaceHolderInfo *node)
 
static void _outMinMaxAggInfo (StringInfo str, const MinMaxAggInfo *node)
 
static void _outPlannerParamItem (StringInfo str, const PlannerParamItem *node)
 
static void _outExtensibleNode (StringInfo str, const ExtensibleNode *node)
 
static void _outCreateStmtInfo (StringInfo str, const CreateStmt *node)
 
static void _outCreateStmt (StringInfo str, const CreateStmt *node)
 
static void _outCreateForeignTableStmt (StringInfo str, const CreateForeignTableStmt *node)
 
static void _outImportForeignSchemaStmt (StringInfo str, const ImportForeignSchemaStmt *node)
 
static void _outIndexStmt (StringInfo str, const IndexStmt *node)
 
static void _outCreateStatsStmt (StringInfo str, const CreateStatsStmt *node)
 
static void _outNotifyStmt (StringInfo str, const NotifyStmt *node)
 
static void _outDeclareCursorStmt (StringInfo str, const DeclareCursorStmt *node)
 
static void _outSelectStmt (StringInfo str, const SelectStmt *node)
 
static void _outFuncCall (StringInfo str, const FuncCall *node)
 
static void _outDefElem (StringInfo str, const DefElem *node)
 
static void _outTableLikeClause (StringInfo str, const TableLikeClause *node)
 
static void _outLockingClause (StringInfo str, const LockingClause *node)
 
static void _outXmlSerialize (StringInfo str, const XmlSerialize *node)
 
static void _outTriggerTransition (StringInfo str, const TriggerTransition *node)
 
static void _outColumnDef (StringInfo str, const ColumnDef *node)
 
static void _outTypeName (StringInfo str, const TypeName *node)
 
static void _outTypeCast (StringInfo str, const TypeCast *node)
 
static void _outCollateClause (StringInfo str, const CollateClause *node)
 
static void _outIndexElem (StringInfo str, const IndexElem *node)
 
static void _outQuery (StringInfo str, const Query *node)
 
static void _outWithCheckOption (StringInfo str, const WithCheckOption *node)
 
static void _outSortGroupClause (StringInfo str, const SortGroupClause *node)
 
static void _outGroupingSet (StringInfo str, const GroupingSet *node)
 
static void _outWindowClause (StringInfo str, const WindowClause *node)
 
static void _outRowMarkClause (StringInfo str, const RowMarkClause *node)
 
static void _outWithClause (StringInfo str, const WithClause *node)
 
static void _outCommonTableExpr (StringInfo str, const CommonTableExpr *node)
 
static void _outSetOperationStmt (StringInfo str, const SetOperationStmt *node)
 
static void _outRangeTblEntry (StringInfo str, const RangeTblEntry *node)
 
static void _outRangeTblFunction (StringInfo str, const RangeTblFunction *node)
 
static void _outTableSampleClause (StringInfo str, const TableSampleClause *node)
 
static void _outAExpr (StringInfo str, const A_Expr *node)
 
static void _outValue (StringInfo str, const Value *value)
 
static void _outColumnRef (StringInfo str, const ColumnRef *node)
 
static void _outParamRef (StringInfo str, const ParamRef *node)
 
static void _outAConst (StringInfo str, const A_Const *node)
 
static void _outA_Star (StringInfo str, const A_Star *node)
 
static void _outA_Indices (StringInfo str, const A_Indices *node)
 
static void _outA_Indirection (StringInfo str, const A_Indirection *node)
 
static void _outA_ArrayExpr (StringInfo str, const A_ArrayExpr *node)
 
static void _outResTarget (StringInfo str, const ResTarget *node)
 
static void _outMultiAssignRef (StringInfo str, const MultiAssignRef *node)
 
static void _outSortBy (StringInfo str, const SortBy *node)
 
static void _outWindowDef (StringInfo str, const WindowDef *node)
 
static void _outRangeSubselect (StringInfo str, const RangeSubselect *node)
 
static void _outRangeFunction (StringInfo str, const RangeFunction *node)
 
static void _outRangeTableSample (StringInfo str, const RangeTableSample *node)
 
static void _outRangeTableFunc (StringInfo str, const RangeTableFunc *node)
 
static void _outRangeTableFuncCol (StringInfo str, const RangeTableFuncCol *node)
 
static void _outConstraint (StringInfo str, const Constraint *node)
 
static void _outForeignKeyCacheInfo (StringInfo str, const ForeignKeyCacheInfo *node)
 
static void _outPartitionSpec (StringInfo str, const PartitionSpec *node)
 
static void _outPartitionElem (StringInfo str, const PartitionElem *node)
 
static void _outPartitionBoundSpec (StringInfo str, const PartitionBoundSpec *node)
 
static void _outPartitionRangeDatum (StringInfo str, const PartitionRangeDatum *node)
 
void outNode (StringInfo str, const void *obj)
 
char * nodeToString (const void *obj)
 
char * bmsToString (const Bitmapset *bms)
 

Macro Definition Documentation

#define booltostr (   x)    ((x) ? "true" : "false")

Definition at line 101 of file outfuncs.c.

Referenced by _outGatherMerge(), _outMergeAppend(), _outMergeJoin(), and _outSort().

#define WRITE_BITMAPSET_FIELD (   fldname)
#define WRITE_BOOL_FIELD (   fldname)
Value:
appendStringInfo(str, " :" CppAsString(fldname) " %s", \
booltostr(node->fldname))
#define booltostr(x)
Definition: outfuncs.c:101
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
#define CppAsString(identifier)
Definition: c.h:161

Definition at line 77 of file outfuncs.c.

Referenced by _outA_Indices(), _outAggref(), _outArrayCoerceExpr(), _outArrayExpr(), _outBitmapIndexScan(), _outBitmapOr(), _outColumnDef(), _outCommonTableExpr(), _outConst(), _outConstraint(), _outCreateStatsStmt(), _outCreateStmtInfo(), _outDistinctExpr(), _outEquivalenceClass(), _outEquivalenceMember(), _outForeignScan(), _outFuncCall(), _outFuncExpr(), _outFunctionScan(), _outGather(), _outGatherPath(), _outHash(), _outIndexOptInfo(), _outIndexStmt(), _outIntoClause(), _outJoinExpr(), _outJoinPathInfo(), _outJoinPlanInfo(), _outMergeJoin(), _outMergePath(), _outModifyTable(), _outModifyTablePath(), _outNullIfExpr(), _outNullTest(), _outOpExpr(), _outPartitionRangeDatum(), _outPathInfo(), _outPathKey(), _outPlanInfo(), _outPlannedStmt(), _outPlannerGlobal(), _outPlannerInfo(), _outPlanRowMark(), _outProjectionPath(), _outQuery(), _outRangeFunction(), _outRangeSubselect(), _outRangeTableFunc(), _outRangeTableFuncCol(), _outRangeTblEntry(), _outRangeVar(), _outRelOptInfo(), _outRestrictInfo(), _outRollupData(), _outRowMarkClause(), _outScalarArrayOpExpr(), _outSelectStmt(), _outSetOperationStmt(), _outSortGroupClause(), _outSpecialJoinInfo(), _outSubPlan(), _outTargetEntry(), _outTriggerTransition(), _outTypeName(), _outWindowClause(), _outWindowFunc(), _outWithCheckOption(), and _outWithClause().

#define WRITE_CHAR_FIELD (   fldname)    appendStringInfo(str, " :" CppAsString(fldname) " %c", node->fldname)
#define WRITE_LONG_FIELD (   fldname)    appendStringInfo(str, " :" CppAsString(fldname) " %ld", node->fldname)

Definition at line 60 of file outfuncs.c.

Referenced by _outAgg(), _outRecursiveUnion(), and _outSetOp().

#define WRITE_NODE_FIELD (   fldname)
Value:
(appendStringInfo(str, " :" CppAsString(fldname) " "), \
outNode(str, node->fldname))
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void outNode(StringInfo str, const void *obj)
Definition: outfuncs.c:3564
#define CppAsString(identifier)
Definition: c.h:161

Definition at line 91 of file outfuncs.c.

Referenced by _outA_ArrayExpr(), _outA_Indices(), _outA_Indirection(), _outAExpr(), _outAgg(), _outAggPath(), _outAggref(), _outAlias(), _outAlternativeSubPlan(), _outAppend(), _outAppendPath(), _outAppendRelInfo(), _outArrayCoerceExpr(), _outArrayExpr(), _outArrayRef(), _outBitmapAnd(), _outBitmapAndPath(), _outBitmapHeapPath(), _outBitmapHeapScan(), _outBitmapIndexScan(), _outBitmapOr(), _outBitmapOrPath(), _outBooleanTest(), _outBoolExpr(), _outCaseExpr(), _outCaseWhen(), _outCoalesceExpr(), _outCoerceToDomain(), _outCoerceViaIO(), _outCollateClause(), _outCollateExpr(), _outColumnDef(), _outColumnRef(), _outCommonTableExpr(), _outConstraint(), _outConvertRowtypeExpr(), _outCreateForeignTableStmt(), _outCreateStatsStmt(), _outCreateStmtInfo(), _outCustomPath(), _outCustomScan(), _outDeclareCursorStmt(), _outDefElem(), _outDistinctExpr(), _outEquivalenceClass(), _outEquivalenceMember(), _outFieldSelect(), _outFieldStore(), _outForeignPath(), _outForeignScan(), _outFromExpr(), _outFuncCall(), _outFuncExpr(), _outFunctionScan(), _outGatherMergePath(), _outGatherPath(), _outGroupingFunc(), _outGroupingSet(), _outGroupingSetData(), _outGroupingSetsPath(), _outGroupPath(), _outHashJoin(), _outHashPath(), _outImportForeignSchemaStmt(), _outIndexElem(), _outIndexOnlyScan(), _outIndexOptInfo(), _outIndexPath(), _outIndexScan(), _outIndexStmt(), _outInferenceElem(), _outIntoClause(), _outJoinExpr(), _outJoinPathInfo(), _outJoinPlanInfo(), _outLimit(), _outLimitPath(), _outLockingClause(), _outLockRows(), _outLockRowsPath(), _outMaterialPath(), _outMergeAppend(), _outMergeAppendPath(), _outMergeJoin(), _outMergePath(), _outMinMaxAggInfo(), _outMinMaxAggPath(), _outMinMaxExpr(), _outModifyTable(), _outModifyTablePath(), _outMultiAssignRef(), _outNamedArgExpr(), _outNestLoop(), _outNestLoopParam(), _outNullIfExpr(), _outNullTest(), _outOnConflictExpr(), _outOpExpr(), _outParamPathInfo(), _outPartitionBoundSpec(), _outPartitionedChildRelInfo(), _outPartitionElem(), _outPartitionRangeDatum(), _outPartitionSpec(), _outPathInfo(), _outPathKey(), _outPathTarget(), _outPlaceHolderInfo(), _outPlaceHolderVar(), _outPlanInfo(), _outPlannedStmt(), _outPlannerGlobal(), _outPlannerInfo(), _outPlannerParamItem(), _outProjectionPath(), _outProjectSetPath(), _outQuery(), _outRangeFunction(), _outRangeSubselect(), _outRangeTableFunc(), _outRangeTableFuncCol(), _outRangeTableSample(), _outRangeTblEntry(), _outRangeTblFunction(), _outRangeVar(), _outRecursiveUnionPath(), _outRelabelType(), _outRelOptInfo(), _outResTarget(), _outRestrictInfo(), _outResult(), _outResultPath(), _outRollupData(), _outRowCompareExpr(), _outRowExpr(), _outSampleScan(), _outScalarArrayOpExpr(), _outSelectStmt(), _outSetOperationStmt(), _outSetOpPath(), _outSortBy(), _outSortPath(), _outSpecialJoinInfo(), _outSubLink(), _outSubPlan(), _outSubqueryScan(), _outSubqueryScanPath(), _outTableFunc(), _outTableFuncScan(), _outTableLikeClause(), _outTableSampleClause(), _outTargetEntry(), _outTidPath(), _outTidScan(), _outTypeCast(), _outTypeName(), _outUniquePath(), _outUpperUniquePath(), _outValuesScan(), _outWindowAgg(), _outWindowAggPath(), _outWindowClause(), _outWindowDef(), _outWindowFunc(), _outWithCheckOption(), _outWithClause(), _outXmlExpr(), and _outXmlSerialize().

#define WRITE_NODE_TYPE (   nodelabel)    appendStringInfoString(str, nodelabel)

Definition at line 44 of file outfuncs.c.

Referenced by _outA_ArrayExpr(), _outA_Indices(), _outA_Indirection(), _outA_Star(), _outAConst(), _outAExpr(), _outAgg(), _outAggPath(), _outAggref(), _outAlias(), _outAlternativeSubPlan(), _outAppend(), _outAppendPath(), _outAppendRelInfo(), _outArrayCoerceExpr(), _outArrayExpr(), _outArrayRef(), _outBitmapAnd(), _outBitmapAndPath(), _outBitmapHeapPath(), _outBitmapHeapScan(), _outBitmapIndexScan(), _outBitmapOr(), _outBitmapOrPath(), _outBooleanTest(), _outBoolExpr(), _outCaseExpr(), _outCaseTestExpr(), _outCaseWhen(), _outCoalesceExpr(), _outCoerceToDomain(), _outCoerceToDomainValue(), _outCoerceViaIO(), _outCollateClause(), _outCollateExpr(), _outColumnDef(), _outColumnRef(), _outCommonTableExpr(), _outConst(), _outConstraint(), _outConvertRowtypeExpr(), _outCreateForeignTableStmt(), _outCreateStatsStmt(), _outCreateStmt(), _outCteScan(), _outCurrentOfExpr(), _outCustomPath(), _outCustomScan(), _outDeclareCursorStmt(), _outDefElem(), _outDistinctExpr(), _outEquivalenceClass(), _outEquivalenceMember(), _outExtensibleNode(), _outFieldSelect(), _outFieldStore(), _outForeignKeyCacheInfo(), _outForeignKeyOptInfo(), _outForeignPath(), _outForeignScan(), _outFromExpr(), _outFuncCall(), _outFuncExpr(), _outFunctionScan(), _outGather(), _outGatherMerge(), _outGatherMergePath(), _outGatherPath(), _outGroup(), _outGroupingFunc(), _outGroupingSet(), _outGroupingSetData(), _outGroupingSetsPath(), _outGroupPath(), _outHash(), _outHashJoin(), _outHashPath(), _outImportForeignSchemaStmt(), _outIndexElem(), _outIndexOnlyScan(), _outIndexOptInfo(), _outIndexPath(), _outIndexScan(), _outIndexStmt(), _outInferenceElem(), _outIntoClause(), _outJoin(), _outJoinExpr(), _outLimit(), _outLimitPath(), _outLockingClause(), _outLockRows(), _outLockRowsPath(), _outMaterial(), _outMaterialPath(), _outMergeAppend(), _outMergeAppendPath(), _outMergeJoin(), _outMergePath(), _outMinMaxAggInfo(), _outMinMaxAggPath(), _outMinMaxExpr(), _outModifyTable(), _outModifyTablePath(), _outMultiAssignRef(), _outNamedArgExpr(), _outNamedTuplestoreScan(), _outNestLoop(), _outNestLoopParam(), _outNestPath(), _outNotifyStmt(), _outNullIfExpr(), _outNullTest(), _outOnConflictExpr(), _outOpExpr(), _outParam(), _outParamPathInfo(), _outParamRef(), _outPartitionBoundSpec(), _outPartitionedChildRelInfo(), _outPartitionElem(), _outPartitionRangeDatum(), _outPartitionSpec(), _outPath(), _outPathKey(), _outPathTarget(), _outPlaceHolderInfo(), _outPlaceHolderVar(), _outPlan(), _outPlanInvalItem(), _outPlannedStmt(), _outPlannerGlobal(), _outPlannerInfo(), _outPlannerParamItem(), _outPlanRowMark(), _outProjectionPath(), _outProjectSet(), _outProjectSetPath(), _outQuery(), _outRangeFunction(), _outRangeSubselect(), _outRangeTableFunc(), _outRangeTableFuncCol(), _outRangeTableSample(), _outRangeTblEntry(), _outRangeTblFunction(), _outRangeTblRef(), _outRangeVar(), _outRecursiveUnion(), _outRecursiveUnionPath(), _outRelabelType(), _outRelOptInfo(), _outResTarget(), _outRestrictInfo(), _outResult(), _outResultPath(), _outRollupData(), _outRowCompareExpr(), _outRowExpr(), _outRowMarkClause(), _outSampleScan(), _outScalarArrayOpExpr(), _outScan(), _outSelectStmt(), _outSeqScan(), _outSetOp(), _outSetOperationStmt(), _outSetOpPath(), _outSetToDefault(), _outSort(), _outSortBy(), _outSortGroupClause(), _outSortPath(), _outSpecialJoinInfo(), _outSQLValueFunction(), _outStatisticExtInfo(), _outSubLink(), _outSubPlan(), _outSubqueryScan(), _outSubqueryScanPath(), _outTableFunc(), _outTableFuncScan(), _outTableLikeClause(), _outTableSampleClause(), _outTargetEntry(), _outTidPath(), _outTidScan(), _outTriggerTransition(), _outTypeCast(), _outTypeName(), _outUnique(), _outUniquePath(), _outUpperUniquePath(), _outValuesScan(), _outVar(), _outWindowAgg(), _outWindowAggPath(), _outWindowClause(), _outWindowDef(), _outWindowFunc(), _outWithCheckOption(), _outWithClause(), _outWorkTableScan(), _outXmlExpr(), and _outXmlSerialize().

Function Documentation

static void _outA_ArrayExpr ( StringInfo  str,
const A_ArrayExpr node 
)
static

Definition at line 3271 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3272 {
3273  WRITE_NODE_TYPE("A_ARRAYEXPR");
3274 
3275  WRITE_NODE_FIELD(elements);
3276  WRITE_LOCATION_FIELD(location);
3277 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outA_Indices ( StringInfo  str,
const A_Indices node 
)
static

Definition at line 3252 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3253 {
3254  WRITE_NODE_TYPE("A_INDICES");
3255 
3256  WRITE_BOOL_FIELD(is_slice);
3257  WRITE_NODE_FIELD(lidx);
3258  WRITE_NODE_FIELD(uidx);
3259 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outA_Indirection ( StringInfo  str,
const A_Indirection node 
)
static

Definition at line 3262 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3263 {
3264  WRITE_NODE_TYPE("A_INDIRECTION");
3265 
3267  WRITE_NODE_FIELD(indirection);
3268 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outA_Star ( StringInfo  str,
const A_Star node 
)
static

Definition at line 3246 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3247 {
3248  WRITE_NODE_TYPE("A_STAR");
3249 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outAConst ( StringInfo  str,
const A_Const node 
)
static

Definition at line 3236 of file outfuncs.c.

References _outValue(), appendStringInfoString(), A_Const::val, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3237 {
3238  WRITE_NODE_TYPE("A_CONST");
3239 
3240  appendStringInfoString(str, " :val ");
3241  _outValue(str, &(node->val));
3242  WRITE_LOCATION_FIELD(location);
3243 }
static void _outValue(StringInfo str, const Value *value)
Definition: outfuncs.c:3177
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
Value val
Definition: parsenodes.h:288
static void _outAExpr ( StringInfo  str,
const A_Expr node 
)
static

Definition at line 3095 of file outfuncs.c.

References AEXPR_BETWEEN, AEXPR_BETWEEN_SYM, AEXPR_DISTINCT, AEXPR_ILIKE, AEXPR_IN, AEXPR_LIKE, AEXPR_NOT_BETWEEN, AEXPR_NOT_BETWEEN_SYM, AEXPR_NOT_DISTINCT, AEXPR_NULLIF, AEXPR_OF, AEXPR_OP, AEXPR_OP_ALL, AEXPR_OP_ANY, AEXPR_PAREN, AEXPR_SIMILAR, appendStringInfoChar(), appendStringInfoString(), A_Expr::kind, name, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3096 {
3097  WRITE_NODE_TYPE("AEXPR");
3098 
3099  switch (node->kind)
3100  {
3101  case AEXPR_OP:
3102  appendStringInfoChar(str, ' ');
3104  break;
3105  case AEXPR_OP_ANY:
3106  appendStringInfoChar(str, ' ');
3108  appendStringInfoString(str, " ANY ");
3109  break;
3110  case AEXPR_OP_ALL:
3111  appendStringInfoChar(str, ' ');
3113  appendStringInfoString(str, " ALL ");
3114  break;
3115  case AEXPR_DISTINCT:
3116  appendStringInfoString(str, " DISTINCT ");
3118  break;
3119  case AEXPR_NOT_DISTINCT:
3120  appendStringInfoString(str, " NOT_DISTINCT ");
3122  break;
3123  case AEXPR_NULLIF:
3124  appendStringInfoString(str, " NULLIF ");
3126  break;
3127  case AEXPR_OF:
3128  appendStringInfoString(str, " OF ");
3130  break;
3131  case AEXPR_IN:
3132  appendStringInfoString(str, " IN ");
3134  break;
3135  case AEXPR_LIKE:
3136  appendStringInfoString(str, " LIKE ");
3138  break;
3139  case AEXPR_ILIKE:
3140  appendStringInfoString(str, " ILIKE ");
3142  break;
3143  case AEXPR_SIMILAR:
3144  appendStringInfoString(str, " SIMILAR ");
3146  break;
3147  case AEXPR_BETWEEN:
3148  appendStringInfoString(str, " BETWEEN ");
3150  break;
3151  case AEXPR_NOT_BETWEEN:
3152  appendStringInfoString(str, " NOT_BETWEEN ");
3154  break;
3155  case AEXPR_BETWEEN_SYM:
3156  appendStringInfoString(str, " BETWEEN_SYM ");
3158  break;
3159  case AEXPR_NOT_BETWEEN_SYM:
3160  appendStringInfoString(str, " NOT_BETWEEN_SYM ");
3162  break;
3163  case AEXPR_PAREN:
3164  appendStringInfoString(str, " PAREN");
3165  break;
3166  default:
3167  appendStringInfoString(str, " ??");
3168  break;
3169  }
3170 
3171  WRITE_NODE_FIELD(lexpr);
3172  WRITE_NODE_FIELD(rexpr);
3173  WRITE_LOCATION_FIELD(location);
3174 }
A_Expr_Kind kind
Definition: parsenodes.h:275
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:201
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
const char * name
Definition: encode.c:521
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAgg ( StringInfo  str,
const Agg node 
)
static

Definition at line 752 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), Agg::grpColIdx, Agg::grpOperators, i, Agg::numCols, WRITE_BITMAPSET_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LONG_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

753 {
754  int i;
755 
756  WRITE_NODE_TYPE("AGG");
757 
758  _outPlanInfo(str, (const Plan *) node);
759 
760  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
761  WRITE_ENUM_FIELD(aggsplit, AggSplit);
762  WRITE_INT_FIELD(numCols);
763 
764  appendStringInfoString(str, " :grpColIdx");
765  for (i = 0; i < node->numCols; i++)
766  appendStringInfo(str, " %d", node->grpColIdx[i]);
767 
768  appendStringInfoString(str, " :grpOperators");
769  for (i = 0; i < node->numCols; i++)
770  appendStringInfo(str, " %u", node->grpOperators[i]);
771 
772  WRITE_LONG_FIELD(numGroups);
773  WRITE_BITMAPSET_FIELD(aggParams);
774  WRITE_NODE_FIELD(groupingSets);
775  WRITE_NODE_FIELD(chain);
776 }
int numCols
Definition: plannodes.h:776
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
AttrNumber * grpColIdx
Definition: plannodes.h:777
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_LONG_FIELD(fldname)
Definition: outfuncs.c:60
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
AggSplit
Definition: nodes.h:756
AggStrategy
Definition: nodes.h:734
Oid * grpOperators
Definition: plannodes.h:778
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAggPath ( StringInfo  str,
const AggPath node 
)
static

Definition at line 1945 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_ENUM_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1946 {
1947  WRITE_NODE_TYPE("AGGPATH");
1948 
1949  _outPathInfo(str, (const Path *) node);
1950 
1952  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
1953  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1954  WRITE_FLOAT_FIELD(numGroups, "%.0f");
1955  WRITE_NODE_FIELD(groupClause);
1956  WRITE_NODE_FIELD(qual);
1957 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
AggSplit
Definition: nodes.h:756
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
AggStrategy
Definition: nodes.h:734
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAggref ( StringInfo  str,
const Aggref node 
)
static

Definition at line 1100 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_CHAR_FIELD, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1101 {
1102  WRITE_NODE_TYPE("AGGREF");
1103 
1104  WRITE_OID_FIELD(aggfnoid);
1105  WRITE_OID_FIELD(aggtype);
1106  WRITE_OID_FIELD(aggcollid);
1107  WRITE_OID_FIELD(inputcollid);
1108  WRITE_OID_FIELD(aggtranstype);
1109  WRITE_NODE_FIELD(aggargtypes);
1110  WRITE_NODE_FIELD(aggdirectargs);
1112  WRITE_NODE_FIELD(aggorder);
1113  WRITE_NODE_FIELD(aggdistinct);
1114  WRITE_NODE_FIELD(aggfilter);
1115  WRITE_BOOL_FIELD(aggstar);
1116  WRITE_BOOL_FIELD(aggvariadic);
1117  WRITE_CHAR_FIELD(aggkind);
1118  WRITE_UINT_FIELD(agglevelsup);
1119  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1120  WRITE_LOCATION_FIELD(location);
1121 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:64
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
AggSplit
Definition: nodes.h:756
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAlias ( StringInfo  str,
const Alias node 
)
static

Definition at line 991 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

992 {
993  WRITE_NODE_TYPE("ALIAS");
994 
995  WRITE_STRING_FIELD(aliasname);
996  WRITE_NODE_FIELD(colnames);
997 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAlternativeSubPlan ( StringInfo  str,
const AlternativeSubPlan node 
)
static

Definition at line 1316 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1317 {
1318  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1319 
1320  WRITE_NODE_FIELD(subplans);
1321 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAppend ( StringInfo  str,
const Append node 
)
static

Definition at line 369 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

370 {
371  WRITE_NODE_TYPE("APPEND");
372 
373  _outPlanInfo(str, (const Plan *) node);
374 
375  WRITE_NODE_FIELD(partitioned_rels);
376  WRITE_NODE_FIELD(appendplans);
377 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAppendPath ( StringInfo  str,
const AppendPath node 
)
static

Definition at line 1823 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1824 {
1825  WRITE_NODE_TYPE("APPENDPATH");
1826 
1827  _outPathInfo(str, (const Path *) node);
1828 
1829  WRITE_NODE_FIELD(partitioned_rels);
1830  WRITE_NODE_FIELD(subpaths);
1831 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outAppendRelInfo ( StringInfo  str,
const AppendRelInfo node 
)
static

Definition at line 2472 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2473 {
2474  WRITE_NODE_TYPE("APPENDRELINFO");
2475 
2476  WRITE_UINT_FIELD(parent_relid);
2477  WRITE_UINT_FIELD(child_relid);
2478  WRITE_OID_FIELD(parent_reltype);
2479  WRITE_OID_FIELD(child_reltype);
2480  WRITE_NODE_FIELD(translated_vars);
2481  WRITE_OID_FIELD(parent_reloid);
2482 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outArrayCoerceExpr ( StringInfo  str,
const ArrayCoerceExpr node 
)
static

Definition at line 1372 of file outfuncs.c.

References arg, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1373 {
1374  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1375 
1377  WRITE_OID_FIELD(elemfuncid);
1378  WRITE_OID_FIELD(resulttype);
1379  WRITE_INT_FIELD(resulttypmod);
1380  WRITE_OID_FIELD(resultcollid);
1381  WRITE_BOOL_FIELD(isExplicit);
1382  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1383  WRITE_LOCATION_FIELD(location);
1384 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
CoercionForm
Definition: primnodes.h:435
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outArrayExpr ( StringInfo  str,
const ArrayExpr node 
)
static

Definition at line 1441 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1442 {
1443  WRITE_NODE_TYPE("ARRAY");
1444 
1445  WRITE_OID_FIELD(array_typeid);
1446  WRITE_OID_FIELD(array_collid);
1447  WRITE_OID_FIELD(element_typeid);
1448  WRITE_NODE_FIELD(elements);
1449  WRITE_BOOL_FIELD(multidims);
1450  WRITE_LOCATION_FIELD(location);
1451 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outArrayRef ( StringInfo  str,
const ArrayRef node 
)
static

Definition at line 1153 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1154 {
1155  WRITE_NODE_TYPE("ARRAYREF");
1156 
1157  WRITE_OID_FIELD(refarraytype);
1158  WRITE_OID_FIELD(refelemtype);
1159  WRITE_INT_FIELD(reftypmod);
1160  WRITE_OID_FIELD(refcollid);
1161  WRITE_NODE_FIELD(refupperindexpr);
1162  WRITE_NODE_FIELD(reflowerindexpr);
1163  WRITE_NODE_FIELD(refexpr);
1164  WRITE_NODE_FIELD(refassgnexpr);
1165 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapAnd ( StringInfo  str,
const BitmapAnd node 
)
static

Definition at line 434 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

435 {
436  WRITE_NODE_TYPE("BITMAPAND");
437 
438  _outPlanInfo(str, (const Plan *) node);
439 
440  WRITE_NODE_FIELD(bitmapplans);
441 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapAndPath ( StringInfo  str,
const BitmapAndPath node 
)
static

Definition at line 1756 of file outfuncs.c.

References _outPathInfo(), WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1757 {
1758  WRITE_NODE_TYPE("BITMAPANDPATH");
1759 
1760  _outPathInfo(str, (const Path *) node);
1761 
1762  WRITE_NODE_FIELD(bitmapquals);
1763  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1764 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapHeapPath ( StringInfo  str,
const BitmapHeapPath node 
)
static

Definition at line 1746 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1747 {
1748  WRITE_NODE_TYPE("BITMAPHEAPPATH");
1749 
1750  _outPathInfo(str, (const Path *) node);
1751 
1752  WRITE_NODE_FIELD(bitmapqual);
1753 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapHeapScan ( StringInfo  str,
const BitmapHeapScan node 
)
static

Definition at line 565 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

566 {
567  WRITE_NODE_TYPE("BITMAPHEAPSCAN");
568 
569  _outScanInfo(str, (const Scan *) node);
570 
571  WRITE_NODE_FIELD(bitmapqualorig);
572 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapIndexScan ( StringInfo  str,
const BitmapIndexScan node 
)
static

Definition at line 552 of file outfuncs.c.

References _outScanInfo(), WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

553 {
554  WRITE_NODE_TYPE("BITMAPINDEXSCAN");
555 
556  _outScanInfo(str, (const Scan *) node);
557 
558  WRITE_OID_FIELD(indexid);
559  WRITE_BOOL_FIELD(isshared);
560  WRITE_NODE_FIELD(indexqual);
561  WRITE_NODE_FIELD(indexqualorig);
562 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapOr ( StringInfo  str,
const BitmapOr node 
)
static

Definition at line 444 of file outfuncs.c.

References _outPlanInfo(), WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

445 {
446  WRITE_NODE_TYPE("BITMAPOR");
447 
448  _outPlanInfo(str, (const Plan *) node);
449 
450  WRITE_BOOL_FIELD(isshared);
451  WRITE_NODE_FIELD(bitmapplans);
452 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBitmapOrPath ( StringInfo  str,
const BitmapOrPath node 
)
static

Definition at line 1767 of file outfuncs.c.

References _outPathInfo(), WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1768 {
1769  WRITE_NODE_TYPE("BITMAPORPATH");
1770 
1771  _outPathInfo(str, (const Path *) node);
1772 
1773  WRITE_NODE_FIELD(bitmapquals);
1774  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1775 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBooleanTest ( StringInfo  str,
const BooleanTest node 
)
static

Definition at line 1541 of file outfuncs.c.

References arg, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1542 {
1543  WRITE_NODE_TYPE("BOOLEANTEST");
1544 
1546  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1547  WRITE_LOCATION_FIELD(location);
1548 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
BoolTestType
Definition: primnodes.h:1194
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outBoolExpr ( StringInfo  str,
const BoolExpr node 
)
static

Definition at line 1253 of file outfuncs.c.

References AND_EXPR, appendStringInfoString(), generate_unaccent_rules::args, BoolExpr::boolop, NOT_EXPR, NULL, OR_EXPR, outToken(), WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1254 {
1255  char *opstr = NULL;
1256 
1257  WRITE_NODE_TYPE("BOOLEXPR");
1258 
1259  /* do-it-yourself enum representation */
1260  switch (node->boolop)
1261  {
1262  case AND_EXPR:
1263  opstr = "and";
1264  break;
1265  case OR_EXPR:
1266  opstr = "or";
1267  break;
1268  case NOT_EXPR:
1269  opstr = "not";
1270  break;
1271  }
1272  appendStringInfoString(str, " :boolop ");
1273  outToken(str, opstr);
1274 
1276  WRITE_LOCATION_FIELD(location);
1277 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:112
BoolExprType boolop
Definition: primnodes.h:561
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define NULL
Definition: c.h:229
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCaseExpr ( StringInfo  str,
const CaseExpr node 
)
static

Definition at line 1408 of file outfuncs.c.

References arg, generate_unaccent_rules::args, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1409 {
1410  WRITE_NODE_TYPE("CASE");
1411 
1412  WRITE_OID_FIELD(casetype);
1413  WRITE_OID_FIELD(casecollid);
1416  WRITE_NODE_FIELD(defresult);
1417  WRITE_LOCATION_FIELD(location);
1418 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCaseTestExpr ( StringInfo  str,
const CaseTestExpr node 
)
static

Definition at line 1431 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1432 {
1433  WRITE_NODE_TYPE("CASETESTEXPR");
1434 
1435  WRITE_OID_FIELD(typeId);
1436  WRITE_INT_FIELD(typeMod);
1437  WRITE_OID_FIELD(collation);
1438 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outCaseWhen ( StringInfo  str,
const CaseWhen node 
)
static

Definition at line 1421 of file outfuncs.c.

References result, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1422 {
1423  WRITE_NODE_TYPE("WHEN");
1424 
1425  WRITE_NODE_FIELD(expr);
1427  WRITE_LOCATION_FIELD(location);
1428 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
return result
Definition: formatting.c:1618
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCoalesceExpr ( StringInfo  str,
const CoalesceExpr node 
)
static

Definition at line 1479 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1480 {
1481  WRITE_NODE_TYPE("COALESCE");
1482 
1483  WRITE_OID_FIELD(coalescetype);
1484  WRITE_OID_FIELD(coalescecollid);
1486  WRITE_LOCATION_FIELD(location);
1487 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCoerceToDomain ( StringInfo  str,
const CoerceToDomain node 
)
static

Definition at line 1551 of file outfuncs.c.

References arg, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1552 {
1553  WRITE_NODE_TYPE("COERCETODOMAIN");
1554 
1556  WRITE_OID_FIELD(resulttype);
1557  WRITE_INT_FIELD(resulttypmod);
1558  WRITE_OID_FIELD(resultcollid);
1559  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1560  WRITE_LOCATION_FIELD(location);
1561 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
CoercionForm
Definition: primnodes.h:435
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCoerceToDomainValue ( StringInfo  str,
const CoerceToDomainValue node 
)
static

Definition at line 1564 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1565 {
1566  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1567 
1568  WRITE_OID_FIELD(typeId);
1569  WRITE_INT_FIELD(typeMod);
1570  WRITE_OID_FIELD(collation);
1571  WRITE_LOCATION_FIELD(location);
1572 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outCoerceViaIO ( StringInfo  str,
const CoerceViaIO node 
)
static

Definition at line 1360 of file outfuncs.c.

References arg, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1361 {
1362  WRITE_NODE_TYPE("COERCEVIAIO");
1363 
1365  WRITE_OID_FIELD(resulttype);
1366  WRITE_OID_FIELD(resultcollid);
1367  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1368  WRITE_LOCATION_FIELD(location);
1369 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
CoercionForm
Definition: primnodes.h:435
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCollateClause ( StringInfo  str,
const CollateClause node 
)
static

Definition at line 2807 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2808 {
2809  WRITE_NODE_TYPE("COLLATECLAUSE");
2810 
2812  WRITE_NODE_FIELD(collname);
2813  WRITE_LOCATION_FIELD(location);
2814 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCollateExpr ( StringInfo  str,
const CollateExpr node 
)
static

Definition at line 1398 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1399 {
1400  WRITE_NODE_TYPE("COLLATE");
1401 
1403  WRITE_OID_FIELD(collOid);
1404  WRITE_LOCATION_FIELD(location);
1405 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outColumnDef ( StringInfo  str,
const ColumnDef node 
)
static

Definition at line 2759 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_CHAR_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_STRING_FIELD.

Referenced by outNode().

2760 {
2761  WRITE_NODE_TYPE("COLUMNDEF");
2762 
2763  WRITE_STRING_FIELD(colname);
2764  WRITE_NODE_FIELD(typeName);
2765  WRITE_INT_FIELD(inhcount);
2766  WRITE_BOOL_FIELD(is_local);
2767  WRITE_BOOL_FIELD(is_not_null);
2768  WRITE_BOOL_FIELD(is_from_type);
2769  WRITE_BOOL_FIELD(is_from_parent);
2770  WRITE_CHAR_FIELD(storage);
2771  WRITE_NODE_FIELD(raw_default);
2772  WRITE_NODE_FIELD(cooked_default);
2773  WRITE_CHAR_FIELD(identity);
2774  WRITE_NODE_FIELD(collClause);
2775  WRITE_OID_FIELD(collOid);
2776  WRITE_NODE_FIELD(constraints);
2777  WRITE_NODE_FIELD(fdwoptions);
2778  WRITE_LOCATION_FIELD(location);
2779 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:64
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outColumnRef ( StringInfo  str,
const ColumnRef node 
)
static

Definition at line 3218 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3219 {
3220  WRITE_NODE_TYPE("COLUMNREF");
3221 
3222  WRITE_NODE_FIELD(fields);
3223  WRITE_LOCATION_FIELD(location);
3224 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCommonTableExpr ( StringInfo  str,
const CommonTableExpr node 
)
static

Definition at line 2970 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2971 {
2972  WRITE_NODE_TYPE("COMMONTABLEEXPR");
2973 
2974  WRITE_STRING_FIELD(ctename);
2975  WRITE_NODE_FIELD(aliascolnames);
2976  WRITE_NODE_FIELD(ctequery);
2977  WRITE_LOCATION_FIELD(location);
2978  WRITE_BOOL_FIELD(cterecursive);
2979  WRITE_INT_FIELD(cterefcount);
2980  WRITE_NODE_FIELD(ctecolnames);
2981  WRITE_NODE_FIELD(ctecoltypes);
2982  WRITE_NODE_FIELD(ctecoltypmods);
2983  WRITE_NODE_FIELD(ctecolcollations);
2984 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outConst ( StringInfo  str,
const Const node 
)
static

Definition at line 1067 of file outfuncs.c.

References appendStringInfoString(), Const::constbyval, Const::constisnull, Const::constlen, Const::constvalue, outDatum(), WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1068 {
1069  WRITE_NODE_TYPE("CONST");
1070 
1071  WRITE_OID_FIELD(consttype);
1072  WRITE_INT_FIELD(consttypmod);
1073  WRITE_OID_FIELD(constcollid);
1074  WRITE_INT_FIELD(constlen);
1075  WRITE_BOOL_FIELD(constbyval);
1076  WRITE_BOOL_FIELD(constisnull);
1077  WRITE_LOCATION_FIELD(location);
1078 
1079  appendStringInfoString(str, " :constvalue ");
1080  if (node->constisnull)
1081  appendStringInfoString(str, "<>");
1082  else
1083  outDatum(str, node->constvalue, node->constlen, node->constbyval);
1084 }
Datum constvalue
Definition: primnodes.h:196
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
bool constbyval
Definition: primnodes.h:199
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
void outDatum(StringInfo str, Datum value, int typlen, bool typbyval)
Definition: outfuncs.c:203
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
int constlen
Definition: primnodes.h:195
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
bool constisnull
Definition: primnodes.h:197
static void _outConstraint ( StringInfo  str,
const Constraint node 
)
static

Definition at line 3391 of file outfuncs.c.

References appendStringInfo(), appendStringInfoString(), CONSTR_ATTR_DEFERRABLE, CONSTR_ATTR_DEFERRED, CONSTR_ATTR_IMMEDIATE, CONSTR_ATTR_NOT_DEFERRABLE, CONSTR_CHECK, CONSTR_DEFAULT, CONSTR_EXCLUSION, CONSTR_FOREIGN, CONSTR_IDENTITY, CONSTR_NOTNULL, CONSTR_NULL, CONSTR_PRIMARY, CONSTR_UNIQUE, Constraint::contype, WRITE_BOOL_FIELD, WRITE_CHAR_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_STRING_FIELD.

Referenced by outNode().

3392 {
3393  WRITE_NODE_TYPE("CONSTRAINT");
3394 
3395  WRITE_STRING_FIELD(conname);
3396  WRITE_BOOL_FIELD(deferrable);
3397  WRITE_BOOL_FIELD(initdeferred);
3398  WRITE_LOCATION_FIELD(location);
3399 
3400  appendStringInfoString(str, " :contype ");
3401  switch (node->contype)
3402  {
3403  case CONSTR_NULL:
3404  appendStringInfoString(str, "NULL");
3405  break;
3406 
3407  case CONSTR_NOTNULL:
3408  appendStringInfoString(str, "NOT_NULL");
3409  break;
3410 
3411  case CONSTR_DEFAULT:
3412  appendStringInfoString(str, "DEFAULT");
3413  WRITE_NODE_FIELD(raw_expr);
3414  WRITE_STRING_FIELD(cooked_expr);
3415  break;
3416 
3417  case CONSTR_IDENTITY:
3418  appendStringInfoString(str, "IDENTITY");
3419  WRITE_NODE_FIELD(raw_expr);
3420  WRITE_STRING_FIELD(cooked_expr);
3421  WRITE_CHAR_FIELD(generated_when);
3422  break;
3423 
3424  case CONSTR_CHECK:
3425  appendStringInfoString(str, "CHECK");
3426  WRITE_BOOL_FIELD(is_no_inherit);
3427  WRITE_NODE_FIELD(raw_expr);
3428  WRITE_STRING_FIELD(cooked_expr);
3429  break;
3430 
3431  case CONSTR_PRIMARY:
3432  appendStringInfoString(str, "PRIMARY_KEY");
3433  WRITE_NODE_FIELD(keys);
3435  WRITE_STRING_FIELD(indexname);
3436  WRITE_STRING_FIELD(indexspace);
3437  /* access_method and where_clause not currently used */
3438  break;
3439 
3440  case CONSTR_UNIQUE:
3441  appendStringInfoString(str, "UNIQUE");
3442  WRITE_NODE_FIELD(keys);
3444  WRITE_STRING_FIELD(indexname);
3445  WRITE_STRING_FIELD(indexspace);
3446  /* access_method and where_clause not currently used */
3447  break;
3448 
3449  case CONSTR_EXCLUSION:
3450  appendStringInfoString(str, "EXCLUSION");
3451  WRITE_NODE_FIELD(exclusions);
3453  WRITE_STRING_FIELD(indexname);
3454  WRITE_STRING_FIELD(indexspace);
3455  WRITE_STRING_FIELD(access_method);
3456  WRITE_NODE_FIELD(where_clause);
3457  break;
3458 
3459  case CONSTR_FOREIGN:
3460  appendStringInfoString(str, "FOREIGN_KEY");
3461  WRITE_NODE_FIELD(pktable);
3462  WRITE_NODE_FIELD(fk_attrs);
3463  WRITE_NODE_FIELD(pk_attrs);
3464  WRITE_CHAR_FIELD(fk_matchtype);
3465  WRITE_CHAR_FIELD(fk_upd_action);
3466  WRITE_CHAR_FIELD(fk_del_action);
3467  WRITE_NODE_FIELD(old_conpfeqop);
3468  WRITE_OID_FIELD(old_pktable_oid);
3469  WRITE_BOOL_FIELD(skip_validation);
3470  WRITE_BOOL_FIELD(initially_valid);
3471  break;
3472 
3474  appendStringInfoString(str, "ATTR_DEFERRABLE");
3475  break;
3476 
3478  appendStringInfoString(str, "ATTR_NOT_DEFERRABLE");
3479  break;
3480 
3481  case CONSTR_ATTR_DEFERRED:
3482  appendStringInfoString(str, "ATTR_DEFERRED");
3483  break;
3484 
3485  case CONSTR_ATTR_IMMEDIATE:
3486  appendStringInfoString(str, "ATTR_IMMEDIATE");
3487  break;
3488 
3489  default:
3490  appendStringInfo(str, "<unrecognized_constraint %d>",
3491  (int) node->contype);
3492  break;
3493  }
3494 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:64
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
ConstrType contype
Definition: parsenodes.h:2046
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outConvertRowtypeExpr ( StringInfo  str,
const ConvertRowtypeExpr node 
)
static

Definition at line 1387 of file outfuncs.c.

References arg, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1388 {
1389  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1390 
1392  WRITE_OID_FIELD(resulttype);
1393  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1394  WRITE_LOCATION_FIELD(location);
1395 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
CoercionForm
Definition: primnodes.h:435
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCreateForeignTableStmt ( StringInfo  str,
const CreateForeignTableStmt node 
)
static

Definition at line 2584 of file outfuncs.c.

References _outCreateStmtInfo(), WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2585 {
2586  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2587 
2588  _outCreateStmtInfo(str, (const CreateStmt *) node);
2589 
2590  WRITE_STRING_FIELD(servername);
2592 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2560
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCreateStatsStmt ( StringInfo  str,
const CreateStatsStmt node 
)
static

Definition at line 2634 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2635 {
2636  WRITE_NODE_TYPE("CREATESTATSSTMT");
2637 
2638  WRITE_NODE_FIELD(defnames);
2639  WRITE_NODE_FIELD(relation);
2640  WRITE_NODE_FIELD(keys);
2642  WRITE_BOOL_FIELD(if_not_exists);
2643 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCreateStmt ( StringInfo  str,
const CreateStmt node 
)
static

Definition at line 2576 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2577 {
2578  WRITE_NODE_TYPE("CREATESTMT");
2579 
2580  _outCreateStmtInfo(str, (const CreateStmt *) node);
2581 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2560
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outCreateStmtInfo ( StringInfo  str,
const CreateStmt node 
)
static

Definition at line 2560 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2561 {
2562  WRITE_NODE_FIELD(relation);
2563  WRITE_NODE_FIELD(tableElts);
2564  WRITE_NODE_FIELD(inhRelations);
2565  WRITE_NODE_FIELD(partspec);
2566  WRITE_NODE_FIELD(partbound);
2567  WRITE_NODE_FIELD(ofTypename);
2568  WRITE_NODE_FIELD(constraints);
2570  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2571  WRITE_STRING_FIELD(tablespacename);
2572  WRITE_BOOL_FIELD(if_not_exists);
2573 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCteScan ( StringInfo  str,
const CteScan node 
)
static

Definition at line 626 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

627 {
628  WRITE_NODE_TYPE("CTESCAN");
629 
630  _outScanInfo(str, (const Scan *) node);
631 
632  WRITE_INT_FIELD(ctePlanId);
633  WRITE_INT_FIELD(cteParam);
634 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outCurrentOfExpr ( StringInfo  str,
const CurrentOfExpr node 
)
static

Definition at line 1586 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1587 {
1588  WRITE_NODE_TYPE("CURRENTOFEXPR");
1589 
1590  WRITE_UINT_FIELD(cvarno);
1591  WRITE_STRING_FIELD(cursor_name);
1592  WRITE_INT_FIELD(cursor_param);
1593 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
static void _outCustomPath ( StringInfo  str,
const CustomPath node 
)
static

Definition at line 1809 of file outfuncs.c.

References _outPathInfo(), appendStringInfoString(), CustomPathMethods::CustomName, CustomPath::methods, outToken(), WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

1810 {
1811  WRITE_NODE_TYPE("CUSTOMPATH");
1812 
1813  _outPathInfo(str, (const Path *) node);
1814 
1815  WRITE_UINT_FIELD(flags);
1816  WRITE_NODE_FIELD(custom_paths);
1817  WRITE_NODE_FIELD(custom_private);
1818  appendStringInfoString(str, " :methods ");
1819  outToken(str, node->methods->CustomName);
1820 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:112
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
const struct CustomPathMethods * methods
Definition: relation.h:1162
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
const char * CustomName
Definition: extensible.h:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outCustomScan ( StringInfo  str,
const CustomScan node 
)
static

Definition at line 674 of file outfuncs.c.

References _outScanInfo(), appendStringInfoString(), CustomScanMethods::CustomName, CustomScan::methods, outToken(), WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

675 {
676  WRITE_NODE_TYPE("CUSTOMSCAN");
677 
678  _outScanInfo(str, (const Scan *) node);
679 
680  WRITE_UINT_FIELD(flags);
681  WRITE_NODE_FIELD(custom_plans);
682  WRITE_NODE_FIELD(custom_exprs);
683  WRITE_NODE_FIELD(custom_private);
684  WRITE_NODE_FIELD(custom_scan_tlist);
685  WRITE_BITMAPSET_FIELD(custom_relids);
686  /* CustomName is a key to lookup CustomScanMethods */
687  appendStringInfoString(str, " :methods ");
688  outToken(str, node->methods->CustomName);
689 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:112
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
const struct CustomScanMethods * methods
Definition: plannodes.h:624
const char * CustomName
Definition: extensible.h:107
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outDeclareCursorStmt ( StringInfo  str,
const DeclareCursorStmt node 
)
static

Definition at line 2655 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2656 {
2657  WRITE_NODE_TYPE("DECLARECURSOR");
2658 
2659  WRITE_STRING_FIELD(portalname);
2661  WRITE_NODE_FIELD(query);
2662 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outDefElem ( StringInfo  str,
const DefElem node 
)
static

Definition at line 2707 of file outfuncs.c.

References arg, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2708 {
2709  WRITE_NODE_TYPE("DEFELEM");
2710 
2711  WRITE_STRING_FIELD(defnamespace);
2712  WRITE_STRING_FIELD(defname);
2714  WRITE_ENUM_FIELD(defaction, DefElemAction);
2715  WRITE_LOCATION_FIELD(location);
2716 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
DefElemAction
Definition: parsenodes.h:708
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outDistinctExpr ( StringInfo  str,
const DistinctExpr node 
)
static

Definition at line 1210 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1211 {
1212  WRITE_NODE_TYPE("DISTINCTEXPR");
1213 
1214  WRITE_OID_FIELD(opno);
1215  WRITE_OID_FIELD(opfuncid);
1216  WRITE_OID_FIELD(opresulttype);
1217  WRITE_BOOL_FIELD(opretset);
1218  WRITE_OID_FIELD(opcollid);
1219  WRITE_OID_FIELD(inputcollid);
1221  WRITE_LOCATION_FIELD(location);
1222 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outEquivalenceClass ( StringInfo  str,
const EquivalenceClass node 
)
static

Definition at line 2331 of file outfuncs.c.

References EquivalenceClass::ec_merged, WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2332 {
2333  /*
2334  * To simplify reading, we just chase up to the topmost merged EC and
2335  * print that, without bothering to show the merge-ees separately.
2336  */
2337  while (node->ec_merged)
2338  node = node->ec_merged;
2339 
2340  WRITE_NODE_TYPE("EQUIVALENCECLASS");
2341 
2342  WRITE_NODE_FIELD(ec_opfamilies);
2343  WRITE_OID_FIELD(ec_collation);
2344  WRITE_NODE_FIELD(ec_members);
2345  WRITE_NODE_FIELD(ec_sources);
2346  WRITE_NODE_FIELD(ec_derives);
2347  WRITE_BITMAPSET_FIELD(ec_relids);
2348  WRITE_BOOL_FIELD(ec_has_const);
2349  WRITE_BOOL_FIELD(ec_has_volatile);
2350  WRITE_BOOL_FIELD(ec_below_outer_join);
2351  WRITE_BOOL_FIELD(ec_broken);
2352  WRITE_UINT_FIELD(ec_sortref);
2353  WRITE_UINT_FIELD(ec_min_security);
2354  WRITE_UINT_FIELD(ec_max_security);
2355 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
struct EquivalenceClass * ec_merged
Definition: relation.h:784
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outEquivalenceMember ( StringInfo  str,
const EquivalenceMember node 
)
static

Definition at line 2358 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2359 {
2360  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2361 
2362  WRITE_NODE_FIELD(em_expr);
2363  WRITE_BITMAPSET_FIELD(em_relids);
2364  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2365  WRITE_BOOL_FIELD(em_is_const);
2366  WRITE_BOOL_FIELD(em_is_child);
2367  WRITE_OID_FIELD(em_datatype);
2368 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outExtensibleNode ( StringInfo  str,
const ExtensibleNode node 
)
static

Definition at line 2536 of file outfuncs.c.

References ExtensibleNode::extnodename, GetExtensibleNodeMethods(), ExtensibleNodeMethods::nodeOut, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2537 {
2538  const ExtensibleNodeMethods *methods;
2539 
2540  methods = GetExtensibleNodeMethods(node->extnodename, false);
2541 
2542  WRITE_NODE_TYPE("EXTENSIBLENODE");
2543 
2544  WRITE_STRING_FIELD(extnodename);
2545 
2546  /* serialize the private fields */
2547  methods->nodeOut(str, node);
2548 }
void(* nodeOut)(struct StringInfoData *str, const struct ExtensibleNode *node)
Definition: extensible.h:68
const char * extnodename
Definition: extensible.h:35
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125
static void _outFieldSelect ( StringInfo  str,
const FieldSelect node 
)
static

Definition at line 1324 of file outfuncs.c.

References arg, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1325 {
1326  WRITE_NODE_TYPE("FIELDSELECT");
1327 
1329  WRITE_INT_FIELD(fieldnum);
1330  WRITE_OID_FIELD(resulttype);
1331  WRITE_INT_FIELD(resulttypmod);
1332  WRITE_OID_FIELD(resultcollid);
1333 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outFieldStore ( StringInfo  str,
const FieldStore node 
)
static

Definition at line 1336 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1337 {
1338  WRITE_NODE_TYPE("FIELDSTORE");
1339 
1341  WRITE_NODE_FIELD(newvals);
1342  WRITE_NODE_FIELD(fieldnums);
1343  WRITE_OID_FIELD(resulttype);
1344 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outForeignKeyCacheInfo ( StringInfo  str,
const ForeignKeyCacheInfo node 
)
static

Definition at line 3497 of file outfuncs.c.

References appendStringInfo(), appendStringInfoString(), ForeignKeyCacheInfo::confkey, ForeignKeyCacheInfo::conkey, ForeignKeyCacheInfo::conpfeqop, i, ForeignKeyCacheInfo::nkeys, WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

3498 {
3499  int i;
3500 
3501  WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
3502 
3503  WRITE_OID_FIELD(conrelid);
3504  WRITE_OID_FIELD(confrelid);
3505  WRITE_INT_FIELD(nkeys);
3506  appendStringInfoString(str, " :conkey");
3507  for (i = 0; i < node->nkeys; i++)
3508  appendStringInfo(str, " %d", node->conkey[i]);
3509  appendStringInfoString(str, " :confkey");
3510  for (i = 0; i < node->nkeys; i++)
3511  appendStringInfo(str, " %d", node->confkey[i]);
3512  appendStringInfoString(str, " :conpfeqop");
3513  for (i = 0; i < node->nkeys; i++)
3514  appendStringInfo(str, " %u", node->conpfeqop[i]);
3515 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:243
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:245
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:244
int i
static void _outForeignKeyOptInfo ( StringInfo  str,
const ForeignKeyOptInfo node 
)
static

Definition at line 2288 of file outfuncs.c.

References appendStringInfo(), appendStringInfoString(), ForeignKeyOptInfo::confkey, ForeignKeyOptInfo::conkey, ForeignKeyOptInfo::conpfeqop, ForeignKeyOptInfo::eclass, i, list_length(), ForeignKeyOptInfo::nkeys, NULL, ForeignKeyOptInfo::rinfos, WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2289 {
2290  int i;
2291 
2292  WRITE_NODE_TYPE("FOREIGNKEYOPTINFO");
2293 
2294  WRITE_UINT_FIELD(con_relid);
2295  WRITE_UINT_FIELD(ref_relid);
2296  WRITE_INT_FIELD(nkeys);
2297  appendStringInfoString(str, " :conkey");
2298  for (i = 0; i < node->nkeys; i++)
2299  appendStringInfo(str, " %d", node->conkey[i]);
2300  appendStringInfoString(str, " :confkey");
2301  for (i = 0; i < node->nkeys; i++)
2302  appendStringInfo(str, " %d", node->confkey[i]);
2303  appendStringInfoString(str, " :conpfeqop");
2304  for (i = 0; i < node->nkeys; i++)
2305  appendStringInfo(str, " %u", node->conpfeqop[i]);
2306  WRITE_INT_FIELD(nmatched_ec);
2307  WRITE_INT_FIELD(nmatched_rcols);
2308  WRITE_INT_FIELD(nmatched_ri);
2309  /* for compactness, just print the number of matches per column: */
2310  appendStringInfoString(str, " :eclass");
2311  for (i = 0; i < node->nkeys; i++)
2312  appendStringInfo(str, " %d", (node->eclass[i] != NULL));
2313  appendStringInfoString(str, " :rinfos");
2314  for (i = 0; i < node->nkeys; i++)
2315  appendStringInfo(str, " %d", list_length(node->rinfos[i]));
2316 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: relation.h:697
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
Definition: relation.h:704
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: relation.h:695
#define NULL
Definition: c.h:229
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static int list_length(const List *l)
Definition: pg_list.h:89
int i
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: relation.h:696
List * rinfos[INDEX_MAX_KEYS]
Definition: relation.h:706
static void _outForeignPath ( StringInfo  str,
const ForeignPath node 
)
static

Definition at line 1798 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1799 {
1800  WRITE_NODE_TYPE("FOREIGNPATH");
1801 
1802  _outPathInfo(str, (const Path *) node);
1803 
1804  WRITE_NODE_FIELD(fdw_outerpath);
1805  WRITE_NODE_FIELD(fdw_private);
1806 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outForeignScan ( StringInfo  str,
const ForeignScan node 
)
static

Definition at line 657 of file outfuncs.c.

References _outScanInfo(), WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

658 {
659  WRITE_NODE_TYPE("FOREIGNSCAN");
660 
661  _outScanInfo(str, (const Scan *) node);
662 
663  WRITE_ENUM_FIELD(operation, CmdType);
664  WRITE_OID_FIELD(fs_server);
665  WRITE_NODE_FIELD(fdw_exprs);
666  WRITE_NODE_FIELD(fdw_private);
667  WRITE_NODE_FIELD(fdw_scan_tlist);
668  WRITE_NODE_FIELD(fdw_recheck_quals);
669  WRITE_BITMAPSET_FIELD(fs_relids);
670  WRITE_BOOL_FIELD(fsSystemCol);
671 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
CmdType
Definition: nodes.h:648
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outFromExpr ( StringInfo  str,
const FromExpr node 
)
static

Definition at line 1643 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1644 {
1645  WRITE_NODE_TYPE("FROMEXPR");
1646 
1647  WRITE_NODE_FIELD(fromlist);
1648  WRITE_NODE_FIELD(quals);
1649 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outFuncCall ( StringInfo  str,
const FuncCall node 
)
static

Definition at line 2690 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2691 {
2692  WRITE_NODE_TYPE("FUNCCALL");
2693 
2694  WRITE_NODE_FIELD(funcname);
2696  WRITE_NODE_FIELD(agg_order);
2697  WRITE_NODE_FIELD(agg_filter);
2698  WRITE_BOOL_FIELD(agg_within_group);
2699  WRITE_BOOL_FIELD(agg_star);
2700  WRITE_BOOL_FIELD(agg_distinct);
2701  WRITE_BOOL_FIELD(func_variadic);
2702  WRITE_NODE_FIELD(over);
2703  WRITE_LOCATION_FIELD(location);
2704 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outFuncExpr ( StringInfo  str,
const FuncExpr node 
)
static

Definition at line 1168 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1169 {
1170  WRITE_NODE_TYPE("FUNCEXPR");
1171 
1172  WRITE_OID_FIELD(funcid);
1173  WRITE_OID_FIELD(funcresulttype);
1174  WRITE_BOOL_FIELD(funcretset);
1175  WRITE_BOOL_FIELD(funcvariadic);
1176  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1177  WRITE_OID_FIELD(funccollid);
1178  WRITE_OID_FIELD(inputcollid);
1180  WRITE_LOCATION_FIELD(location);
1181 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
CoercionForm
Definition: primnodes.h:435
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outFunctionScan ( StringInfo  str,
const FunctionScan node 
)
static

Definition at line 595 of file outfuncs.c.

References _outScanInfo(), functions, WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

596 {
597  WRITE_NODE_TYPE("FUNCTIONSCAN");
598 
599  _outScanInfo(str, (const Scan *) node);
600 
602  WRITE_BOOL_FIELD(funcordinality);
603 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static const struct fns functions
Definition: regcomp.c:299
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGather ( StringInfo  str,
const Gather node 
)
static

Definition at line 455 of file outfuncs.c.

References _outPlanInfo(), WRITE_BOOL_FIELD, WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

456 {
457  WRITE_NODE_TYPE("GATHER");
458 
459  _outPlanInfo(str, (const Plan *) node);
460 
461  WRITE_INT_FIELD(num_workers);
462  WRITE_BOOL_FIELD(single_copy);
463  WRITE_BOOL_FIELD(invisible);
464 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outGatherMerge ( StringInfo  str,
const GatherMerge node 
)
static

Definition at line 467 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), booltostr, GatherMerge::collations, i, GatherMerge::nullsFirst, GatherMerge::numCols, GatherMerge::sortColIdx, GatherMerge::sortOperators, WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

468 {
469  int i;
470 
471  WRITE_NODE_TYPE("GATHERMERGE");
472 
473  _outPlanInfo(str, (const Plan *) node);
474 
475  WRITE_INT_FIELD(num_workers);
476  WRITE_INT_FIELD(numCols);
477 
478  appendStringInfoString(str, " :sortColIdx");
479  for (i = 0; i < node->numCols; i++)
480  appendStringInfo(str, " %d", node->sortColIdx[i]);
481 
482  appendStringInfoString(str, " :sortOperators");
483  for (i = 0; i < node->numCols; i++)
484  appendStringInfo(str, " %u", node->sortOperators[i]);
485 
486  appendStringInfoString(str, " :collations");
487  for (i = 0; i < node->numCols; i++)
488  appendStringInfo(str, " %u", node->collations[i]);
489 
490  appendStringInfoString(str, " :nullsFirst");
491  for (i = 0; i < node->numCols; i++)
492  appendStringInfo(str, " %s", booltostr(node->nullsFirst[i]));
493 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
Oid * collations
Definition: plannodes.h:841
AttrNumber * sortColIdx
Definition: plannodes.h:839
#define booltostr(x)
Definition: outfuncs.c:101
bool * nullsFirst
Definition: plannodes.h:842
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
Oid * sortOperators
Definition: plannodes.h:840
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
int i
static void _outGatherMergePath ( StringInfo  str,
const GatherMergePath node 
)
static

Definition at line 2093 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2094 {
2095  WRITE_NODE_TYPE("GATHERMERGEPATH");
2096 
2097  _outPathInfo(str, (const Path *) node);
2098 
2100  WRITE_INT_FIELD(num_workers);
2101 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGatherPath ( StringInfo  str,
const GatherPath node 
)
static

Definition at line 1879 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1880 {
1881  WRITE_NODE_TYPE("GATHERPATH");
1882 
1883  _outPathInfo(str, (const Path *) node);
1884 
1886  WRITE_BOOL_FIELD(single_copy);
1887  WRITE_INT_FIELD(num_workers);
1888 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGroup ( StringInfo  str,
const Group node 
)
static

Definition at line 814 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), Group::grpColIdx, Group::grpOperators, i, Group::numCols, WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

815 {
816  int i;
817 
818  WRITE_NODE_TYPE("GROUP");
819 
820  _outPlanInfo(str, (const Plan *) node);
821 
822  WRITE_INT_FIELD(numCols);
823 
824  appendStringInfoString(str, " :grpColIdx");
825  for (i = 0; i < node->numCols; i++)
826  appendStringInfo(str, " %d", node->grpColIdx[i]);
827 
828  appendStringInfoString(str, " :grpOperators");
829  for (i = 0; i < node->numCols; i++)
830  appendStringInfo(str, " %u", node->grpOperators[i]);
831 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
int numCols
Definition: plannodes.h:752
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
int i
AttrNumber * grpColIdx
Definition: plannodes.h:753
Oid * grpOperators
Definition: plannodes.h:754
static void _outGroupingFunc ( StringInfo  str,
const GroupingFunc node 
)
static

Definition at line 1124 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

1125 {
1126  WRITE_NODE_TYPE("GROUPINGFUNC");
1127 
1129  WRITE_NODE_FIELD(refs);
1130  WRITE_NODE_FIELD(cols);
1131  WRITE_UINT_FIELD(agglevelsup);
1132  WRITE_LOCATION_FIELD(location);
1133 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGroupingSet ( StringInfo  str,
const GroupingSet node 
)
static

Definition at line 2923 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2924 {
2925  WRITE_NODE_TYPE("GROUPINGSET");
2926 
2928  WRITE_NODE_FIELD(content);
2929  WRITE_LOCATION_FIELD(location);
2930 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
GroupingSetKind
Definition: parsenodes.h:1214
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGroupingSetData ( StringInfo  str,
const GroupingSetData node 
)
static

Definition at line 1973 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1974 {
1975  WRITE_NODE_TYPE("GSDATA");
1976 
1977  WRITE_NODE_FIELD(set);
1978  WRITE_FLOAT_FIELD(numGroups, "%.0f");
1979 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGroupingSetsPath ( StringInfo  str,
const GroupingSetsPath node 
)
static

Definition at line 1982 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1983 {
1984  WRITE_NODE_TYPE("GROUPINGSETSPATH");
1985 
1986  _outPathInfo(str, (const Path *) node);
1987 
1989  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
1990  WRITE_NODE_FIELD(rollups);
1991  WRITE_NODE_FIELD(qual);
1992 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
AggStrategy
Definition: nodes.h:734
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outGroupPath ( StringInfo  str,
const GroupPath node 
)
static

Definition at line 1922 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1923 {
1924  WRITE_NODE_TYPE("GROUPPATH");
1925 
1926  _outPathInfo(str, (const Path *) node);
1927 
1929  WRITE_NODE_FIELD(groupClause);
1930  WRITE_NODE_FIELD(qual);
1931 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outHash ( StringInfo  str,
const Hash node 
)
static

Definition at line 890 of file outfuncs.c.

References _outPlanInfo(), WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

891 {
892  WRITE_NODE_TYPE("HASH");
893 
894  _outPlanInfo(str, (const Plan *) node);
895 
896  WRITE_OID_FIELD(skewTable);
897  WRITE_INT_FIELD(skewColumn);
898  WRITE_BOOL_FIELD(skewInherit);
899  WRITE_OID_FIELD(skewColType);
900  WRITE_INT_FIELD(skewColTypmod);
901 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outHashJoin ( StringInfo  str,
const HashJoin node 
)
static

Definition at line 742 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

743 {
744  WRITE_NODE_TYPE("HASHJOIN");
745 
746  _outJoinPlanInfo(str, (const Join *) node);
747 
748  WRITE_NODE_FIELD(hashclauses);
749 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:304
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outHashPath ( StringInfo  str,
const HashPath node 
)
static

Definition at line 2126 of file outfuncs.c.

References _outJoinPathInfo(), WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2127 {
2128  WRITE_NODE_TYPE("HASHPATH");
2129 
2130  _outJoinPathInfo(str, (const JoinPath *) node);
2131 
2132  WRITE_NODE_FIELD(path_hashclauses);
2133  WRITE_INT_FIELD(num_batches);
2134 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outImportForeignSchemaStmt ( StringInfo  str,
const ImportForeignSchemaStmt node 
)
static

Definition at line 2595 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2596 {
2597  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2598 
2599  WRITE_STRING_FIELD(server_name);
2600  WRITE_STRING_FIELD(remote_schema);
2601  WRITE_STRING_FIELD(local_schema);
2603  WRITE_NODE_FIELD(table_list);
2605 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
ImportForeignSchemaType
Definition: parsenodes.h:2251
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIndexElem ( StringInfo  str,
const IndexElem node 
)
static

Definition at line 2817 of file outfuncs.c.

References name, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2818 {
2819  WRITE_NODE_TYPE("INDEXELEM");
2820 
2822  WRITE_NODE_FIELD(expr);
2823  WRITE_STRING_FIELD(indexcolname);
2824  WRITE_NODE_FIELD(collation);
2825  WRITE_NODE_FIELD(opclass);
2826  WRITE_ENUM_FIELD(ordering, SortByDir);
2827  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
2828 }
SortByDir
Definition: parsenodes.h:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
SortByNulls
Definition: parsenodes.h:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIndexOnlyScan ( StringInfo  str,
const IndexOnlyScan node 
)
static

Definition at line 538 of file outfuncs.c.

References _outScanInfo(), WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

539 {
540  WRITE_NODE_TYPE("INDEXONLYSCAN");
541 
542  _outScanInfo(str, (const Scan *) node);
543 
544  WRITE_OID_FIELD(indexid);
545  WRITE_NODE_FIELD(indexqual);
546  WRITE_NODE_FIELD(indexorderby);
547  WRITE_NODE_FIELD(indextlist);
548  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
549 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
ScanDirection
Definition: sdir.h:22
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIndexOptInfo ( StringInfo  str,
const IndexOptInfo node 
)
static

Definition at line 2263 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_FLOAT_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2264 {
2265  WRITE_NODE_TYPE("INDEXOPTINFO");
2266 
2267  /* NB: this isn't a complete set of fields */
2268  WRITE_OID_FIELD(indexoid);
2269  /* Do NOT print rel field, else infinite recursion */
2270  WRITE_UINT_FIELD(pages);
2271  WRITE_FLOAT_FIELD(tuples, "%.0f");
2272  WRITE_INT_FIELD(tree_height);
2273  WRITE_INT_FIELD(ncolumns);
2274  /* array fields aren't really worth the trouble to print */
2275  WRITE_OID_FIELD(relam);
2276  /* indexprs is redundant since we print indextlist */
2277  WRITE_NODE_FIELD(indpred);
2278  WRITE_NODE_FIELD(indextlist);
2279  WRITE_NODE_FIELD(indrestrictinfo);
2280  WRITE_BOOL_FIELD(predOK);
2281  WRITE_BOOL_FIELD(unique);
2282  WRITE_BOOL_FIELD(immediate);
2283  WRITE_BOOL_FIELD(hypothetical);
2284  /* we don't bother with fields copied from the index AM's API struct */
2285 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIndexPath ( StringInfo  str,
const IndexPath node 
)
static

Definition at line 1728 of file outfuncs.c.

References _outPathInfo(), WRITE_ENUM_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1729 {
1730  WRITE_NODE_TYPE("INDEXPATH");
1731 
1732  _outPathInfo(str, (const Path *) node);
1733 
1734  WRITE_NODE_FIELD(indexinfo);
1735  WRITE_NODE_FIELD(indexclauses);
1736  WRITE_NODE_FIELD(indexquals);
1737  WRITE_NODE_FIELD(indexqualcols);
1738  WRITE_NODE_FIELD(indexorderbys);
1739  WRITE_NODE_FIELD(indexorderbycols);
1740  WRITE_ENUM_FIELD(indexscandir, ScanDirection);
1741  WRITE_FLOAT_FIELD(indextotalcost, "%.2f");
1742  WRITE_FLOAT_FIELD(indexselectivity, "%.4f");
1743 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
ScanDirection
Definition: sdir.h:22
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIndexScan ( StringInfo  str,
const IndexScan node 
)
static

Definition at line 522 of file outfuncs.c.

References _outScanInfo(), WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

523 {
524  WRITE_NODE_TYPE("INDEXSCAN");
525 
526  _outScanInfo(str, (const Scan *) node);
527 
528  WRITE_OID_FIELD(indexid);
529  WRITE_NODE_FIELD(indexqual);
530  WRITE_NODE_FIELD(indexqualorig);
531  WRITE_NODE_FIELD(indexorderby);
532  WRITE_NODE_FIELD(indexorderbyorig);
533  WRITE_NODE_FIELD(indexorderbyops);
534  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
535 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
ScanDirection
Definition: sdir.h:22
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIndexStmt ( StringInfo  str,
const IndexStmt node 
)
static

Definition at line 2608 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_STRING_FIELD.

Referenced by outNode().

2609 {
2610  WRITE_NODE_TYPE("INDEXSTMT");
2611 
2612  WRITE_STRING_FIELD(idxname);
2613  WRITE_NODE_FIELD(relation);
2614  WRITE_STRING_FIELD(accessMethod);
2615  WRITE_STRING_FIELD(tableSpace);
2616  WRITE_NODE_FIELD(indexParams);
2618  WRITE_NODE_FIELD(whereClause);
2619  WRITE_NODE_FIELD(excludeOpNames);
2620  WRITE_STRING_FIELD(idxcomment);
2621  WRITE_OID_FIELD(indexOid);
2622  WRITE_OID_FIELD(oldNode);
2623  WRITE_BOOL_FIELD(unique);
2624  WRITE_BOOL_FIELD(primary);
2625  WRITE_BOOL_FIELD(isconstraint);
2626  WRITE_BOOL_FIELD(deferrable);
2627  WRITE_BOOL_FIELD(initdeferred);
2628  WRITE_BOOL_FIELD(transformed);
2629  WRITE_BOOL_FIELD(concurrent);
2630  WRITE_BOOL_FIELD(if_not_exists);
2631 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outInferenceElem ( StringInfo  str,
const InferenceElem node 
)
static

Definition at line 1596 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1597 {
1598  WRITE_NODE_TYPE("INFERENCEELEM");
1599 
1600  WRITE_NODE_FIELD(expr);
1601  WRITE_OID_FIELD(infercollid);
1602  WRITE_OID_FIELD(inferopclass);
1603 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outIntoClause ( StringInfo  str,
const IntoClause node 
)
static

Definition at line 1037 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1038 {
1039  WRITE_NODE_TYPE("INTOCLAUSE");
1040 
1041  WRITE_NODE_FIELD(rel);
1042  WRITE_NODE_FIELD(colNames);
1044  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1045  WRITE_STRING_FIELD(tableSpaceName);
1046  WRITE_NODE_FIELD(viewQuery);
1047  WRITE_BOOL_FIELD(skipData);
1048 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outJoin ( StringInfo  str,
const Join node 
)
static

Definition at line 692 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

693 {
694  WRITE_NODE_TYPE("JOIN");
695 
696  _outJoinPlanInfo(str, (const Join *) node);
697 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:304
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outJoinExpr ( StringInfo  str,
const JoinExpr node 
)
static

Definition at line 1628 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1629 {
1630  WRITE_NODE_TYPE("JOINEXPR");
1631 
1632  WRITE_ENUM_FIELD(jointype, JoinType);
1633  WRITE_BOOL_FIELD(isNatural);
1634  WRITE_NODE_FIELD(larg);
1635  WRITE_NODE_FIELD(rarg);
1636  WRITE_NODE_FIELD(usingClause);
1637  WRITE_NODE_FIELD(quals);
1638  WRITE_NODE_FIELD(alias);
1639  WRITE_INT_FIELD(rtindex);
1640 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
JoinType
Definition: nodes.h:672
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outJoinPathInfo ( StringInfo  str,
const JoinPath node 
)
static

Definition at line 1708 of file outfuncs.c.

References _outPathInfo(), WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, and WRITE_NODE_FIELD.

Referenced by _outHashPath(), _outMergePath(), and _outNestPath().

1709 {
1710  _outPathInfo(str, (const Path *) node);
1711 
1712  WRITE_ENUM_FIELD(jointype, JoinType);
1713  WRITE_BOOL_FIELD(inner_unique);
1714  WRITE_NODE_FIELD(outerjoinpath);
1715  WRITE_NODE_FIELD(innerjoinpath);
1716  WRITE_NODE_FIELD(joinrestrictinfo);
1717 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
JoinType
Definition: nodes.h:672
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outJoinPlanInfo ( StringInfo  str,
const Join node 
)
static

Definition at line 304 of file outfuncs.c.

References _outPlanInfo(), WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, and WRITE_NODE_FIELD.

Referenced by _outHashJoin(), _outJoin(), _outMergeJoin(), and _outNestLoop().

305 {
306  _outPlanInfo(str, (const Plan *) node);
307 
308  WRITE_ENUM_FIELD(jointype, JoinType);
309  WRITE_BOOL_FIELD(inner_unique);
310  WRITE_NODE_FIELD(joinqual);
311 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
JoinType
Definition: nodes.h:672
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outLimit ( StringInfo  str,
const Limit node 
)
static

Definition at line 941 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

942 {
943  WRITE_NODE_TYPE("LIMIT");
944 
945  _outPlanInfo(str, (const Plan *) node);
946 
947  WRITE_NODE_FIELD(limitOffset);
948  WRITE_NODE_FIELD(limitCount);
949 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outLimitPath ( StringInfo  str,
const LimitPath node 
)
static

Definition at line 2081 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2082 {
2083  WRITE_NODE_TYPE("LIMITPATH");
2084 
2085  _outPathInfo(str, (const Path *) node);
2086 
2088  WRITE_NODE_FIELD(limitOffset);
2089  WRITE_NODE_FIELD(limitCount);
2090 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outList ( StringInfo  str,
const List node 
)
static

Definition at line 144 of file outfuncs.c.

References appendStringInfo(), appendStringInfoChar(), elog, ERROR, IsA, lfirst, lfirst_int, lfirst_oid, lnext, outNode(), and List::type.

Referenced by outNode().

145 {
146  const ListCell *lc;
147 
148  appendStringInfoChar(str, '(');
149 
150  if (IsA(node, IntList))
151  appendStringInfoChar(str, 'i');
152  else if (IsA(node, OidList))
153  appendStringInfoChar(str, 'o');
154 
155  foreach(lc, node)
156  {
157  /*
158  * For the sake of backward compatibility, we emit a slightly
159  * different whitespace format for lists of nodes vs. other types of
160  * lists. XXX: is this necessary?
161  */
162  if (IsA(node, List))
163  {
164  outNode(str, lfirst(lc));
165  if (lnext(lc))
166  appendStringInfoChar(str, ' ');
167  }
168  else if (IsA(node, IntList))
169  appendStringInfo(str, " %d", lfirst_int(lc));
170  else if (IsA(node, OidList))
171  appendStringInfo(str, " %u", lfirst_oid(lc));
172  else
173  elog(ERROR, "unrecognized list node type: %d",
174  (int) node->type);
175  }
176 
177  appendStringInfoChar(str, ')');
178 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:560
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:107
#define lnext(lc)
Definition: pg_list.h:105
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:201
void outNode(StringInfo str, const void *obj)
Definition: outfuncs.c:3564
#define lfirst(lc)
Definition: pg_list.h:106
NodeTag type
Definition: pg_list.h:47
#define elog
Definition: elog.h:219
Definition: pg_list.h:45
#define lfirst_oid(lc)
Definition: pg_list.h:108
static void _outLockingClause ( StringInfo  str,
const LockingClause node 
)
static

Definition at line 2728 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2729 {
2730  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2731 
2732  WRITE_NODE_FIELD(lockedRels);
2734  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2735 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
LockClauseStrength
Definition: lockoptions.h:21
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
LockWaitPolicy
Definition: lockoptions.h:36
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outLockRows ( StringInfo  str,
const LockRows node 
)
static

Definition at line 930 of file outfuncs.c.

References _outPlanInfo(), WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

931 {
932  WRITE_NODE_TYPE("LOCKROWS");
933 
934  _outPlanInfo(str, (const Plan *) node);
935 
936  WRITE_NODE_FIELD(rowMarks);
937  WRITE_INT_FIELD(epqParam);
938 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outLockRowsPath ( StringInfo  str,
const LockRowsPath node 
)
static

Definition at line 2048 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2049 {
2050  WRITE_NODE_TYPE("LOCKROWSPATH");
2051 
2052  _outPathInfo(str, (const Path *) node);
2053 
2055  WRITE_NODE_FIELD(rowMarks);
2056  WRITE_INT_FIELD(epqParam);
2057 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMaterial ( StringInfo  str,
const Material node 
)
static

Definition at line 834 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

835 {
836  WRITE_NODE_TYPE("MATERIAL");
837 
838  _outPlanInfo(str, (const Plan *) node);
839 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outMaterialPath ( StringInfo  str,
const MaterialPath node 
)
static

Definition at line 1856 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1857 {
1858  WRITE_NODE_TYPE("MATERIALPATH");
1859 
1860  _outPathInfo(str, (const Path *) node);
1861 
1863 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMergeAppend ( StringInfo  str,
const MergeAppend node 
)
static

Definition at line 380 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), booltostr, MergeAppend::collations, i, MergeAppend::nullsFirst, MergeAppend::numCols, MergeAppend::sortColIdx, MergeAppend::sortOperators, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

381 {
382  int i;
383 
384  WRITE_NODE_TYPE("MERGEAPPEND");
385 
386  _outPlanInfo(str, (const Plan *) node);
387 
388  WRITE_NODE_FIELD(partitioned_rels);
389  WRITE_NODE_FIELD(mergeplans);
390 
391  WRITE_INT_FIELD(numCols);
392 
393  appendStringInfoString(str, " :sortColIdx");
394  for (i = 0; i < node->numCols; i++)
395  appendStringInfo(str, " %d", node->sortColIdx[i]);
396 
397  appendStringInfoString(str, " :sortOperators");
398  for (i = 0; i < node->numCols; i++)
399  appendStringInfo(str, " %u", node->sortOperators[i]);
400 
401  appendStringInfoString(str, " :collations");
402  for (i = 0; i < node->numCols; i++)
403  appendStringInfo(str, " %u", node->collations[i]);
404 
405  appendStringInfoString(str, " :nullsFirst");
406  for (i = 0; i < node->numCols; i++)
407  appendStringInfo(str, " %s", booltostr(node->nullsFirst[i]));
408 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
Oid * collations
Definition: plannodes.h:257
#define booltostr(x)
Definition: outfuncs.c:101
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
AttrNumber * sortColIdx
Definition: plannodes.h:255
bool * nullsFirst
Definition: plannodes.h:258
int i
Oid * sortOperators
Definition: plannodes.h:256
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMergeAppendPath ( StringInfo  str,
const MergeAppendPath node 
)
static

Definition at line 1834 of file outfuncs.c.

References _outPathInfo(), WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1835 {
1836  WRITE_NODE_TYPE("MERGEAPPENDPATH");
1837 
1838  _outPathInfo(str, (const Path *) node);
1839 
1840  WRITE_NODE_FIELD(partitioned_rels);
1841  WRITE_NODE_FIELD(subpaths);
1842  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1843 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMergeJoin ( StringInfo  str,
const MergeJoin node 
)
static

Definition at line 710 of file outfuncs.c.

References _outJoinPlanInfo(), appendStringInfo(), appendStringInfoString(), booltostr, i, list_length(), MergeJoin::mergeclauses, MergeJoin::mergeCollations, MergeJoin::mergeFamilies, MergeJoin::mergeNullsFirst, MergeJoin::mergeStrategies, WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

711 {
712  int numCols;
713  int i;
714 
715  WRITE_NODE_TYPE("MERGEJOIN");
716 
717  _outJoinPlanInfo(str, (const Join *) node);
718 
719  WRITE_BOOL_FIELD(skip_mark_restore);
720  WRITE_NODE_FIELD(mergeclauses);
721 
722  numCols = list_length(node->mergeclauses);
723 
724  appendStringInfoString(str, " :mergeFamilies");
725  for (i = 0; i < numCols; i++)
726  appendStringInfo(str, " %u", node->mergeFamilies[i]);
727 
728  appendStringInfoString(str, " :mergeCollations");
729  for (i = 0; i < numCols; i++)
730  appendStringInfo(str, " %u", node->mergeCollations[i]);
731 
732  appendStringInfoString(str, " :mergeStrategies");
733  for (i = 0; i < numCols; i++)
734  appendStringInfo(str, " %d", node->mergeStrategies[i]);
735 
736  appendStringInfoString(str, " :mergeNullsFirst");
737  for (i = 0; i < numCols; i++)
738  appendStringInfo(str, " %s", booltostr(node->mergeNullsFirst[i]));
739 }
#define booltostr(x)
Definition: outfuncs.c:101
List * mergeclauses
Definition: plannodes.h:702
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:304
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
Oid * mergeFamilies
Definition: plannodes.h:704
Oid * mergeCollations
Definition: plannodes.h:705
bool * mergeNullsFirst
Definition: plannodes.h:707
int * mergeStrategies
Definition: plannodes.h:706
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static int list_length(const List *l)
Definition: pg_list.h:89
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMergePath ( StringInfo  str,
const MergePath node 
)
static

Definition at line 2112 of file outfuncs.c.

References _outJoinPathInfo(), WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2113 {
2114  WRITE_NODE_TYPE("MERGEPATH");
2115 
2116  _outJoinPathInfo(str, (const JoinPath *) node);
2117 
2118  WRITE_NODE_FIELD(path_mergeclauses);
2119  WRITE_NODE_FIELD(outersortkeys);
2120  WRITE_NODE_FIELD(innersortkeys);
2121  WRITE_BOOL_FIELD(skip_mark_restore);
2122  WRITE_BOOL_FIELD(materialize_inner);
2123 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMinMaxAggInfo ( StringInfo  str,
const MinMaxAggInfo node 
)
static

Definition at line 2507 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2508 {
2509  WRITE_NODE_TYPE("MINMAXAGGINFO");
2510 
2511  WRITE_OID_FIELD(aggfnoid);
2512  WRITE_OID_FIELD(aggsortop);
2513  WRITE_NODE_FIELD(target);
2514  /* We intentionally omit subroot --- too large, not interesting enough */
2515  WRITE_NODE_FIELD(path);
2516  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2517  WRITE_NODE_FIELD(param);
2518 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMinMaxAggPath ( StringInfo  str,
const MinMaxAggPath node 
)
static

Definition at line 1995 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1996 {
1997  WRITE_NODE_TYPE("MINMAXAGGPATH");
1998 
1999  _outPathInfo(str, (const Path *) node);
2000 
2001  WRITE_NODE_FIELD(mmaggregates);
2002  WRITE_NODE_FIELD(quals);
2003 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMinMaxExpr ( StringInfo  str,
const MinMaxExpr node 
)
static

Definition at line 1490 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1491 {
1492  WRITE_NODE_TYPE("MINMAX");
1493 
1494  WRITE_OID_FIELD(minmaxtype);
1495  WRITE_OID_FIELD(minmaxcollid);
1496  WRITE_OID_FIELD(inputcollid);
1499  WRITE_LOCATION_FIELD(location);
1500 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
MinMaxOp
Definition: primnodes.h:1053
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outModifyTable ( StringInfo  str,
const ModifyTable node 
)
static

Definition at line 341 of file outfuncs.c.

References _outPlanInfo(), WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

342 {
343  WRITE_NODE_TYPE("MODIFYTABLE");
344 
345  _outPlanInfo(str, (const Plan *) node);
346 
347  WRITE_ENUM_FIELD(operation, CmdType);
348  WRITE_BOOL_FIELD(canSetTag);
349  WRITE_UINT_FIELD(nominalRelation);
350  WRITE_NODE_FIELD(partitioned_rels);
351  WRITE_NODE_FIELD(resultRelations);
352  WRITE_INT_FIELD(resultRelIndex);
353  WRITE_NODE_FIELD(plans);
354  WRITE_NODE_FIELD(withCheckOptionLists);
355  WRITE_NODE_FIELD(returningLists);
356  WRITE_NODE_FIELD(fdwPrivLists);
357  WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
358  WRITE_NODE_FIELD(rowMarks);
359  WRITE_INT_FIELD(epqParam);
360  WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
361  WRITE_NODE_FIELD(arbiterIndexes);
362  WRITE_NODE_FIELD(onConflictSet);
363  WRITE_NODE_FIELD(onConflictWhere);
364  WRITE_UINT_FIELD(exclRelRTI);
365  WRITE_NODE_FIELD(exclRelTlist);
366 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
OnConflictAction
Definition: nodes.h:798
CmdType
Definition: nodes.h:648
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outModifyTablePath ( StringInfo  str,
const ModifyTablePath node 
)
static

Definition at line 2060 of file outfuncs.c.

References _outPathInfo(), WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2061 {
2062  WRITE_NODE_TYPE("MODIFYTABLEPATH");
2063 
2064  _outPathInfo(str, (const Path *) node);
2065 
2066  WRITE_ENUM_FIELD(operation, CmdType);
2067  WRITE_BOOL_FIELD(canSetTag);
2068  WRITE_UINT_FIELD(nominalRelation);
2069  WRITE_NODE_FIELD(partitioned_rels);
2070  WRITE_NODE_FIELD(resultRelations);
2071  WRITE_NODE_FIELD(subpaths);
2072  WRITE_NODE_FIELD(subroots);
2073  WRITE_NODE_FIELD(withCheckOptionLists);
2074  WRITE_NODE_FIELD(returningLists);
2075  WRITE_NODE_FIELD(rowMarks);
2076  WRITE_NODE_FIELD(onconflict);
2077  WRITE_INT_FIELD(epqParam);
2078 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
CmdType
Definition: nodes.h:648
Definition: relation.h:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outMultiAssignRef ( StringInfo  str,
const MultiAssignRef node 
)
static

Definition at line 3291 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3292 {
3293  WRITE_NODE_TYPE("MULTIASSIGNREF");
3294 
3295  WRITE_NODE_FIELD(source);
3296  WRITE_INT_FIELD(colno);
3297  WRITE_INT_FIELD(ncolumns);
3298 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outNamedArgExpr ( StringInfo  str,
const NamedArgExpr node 
)
static

Definition at line 1184 of file outfuncs.c.

References arg, name, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1185 {
1186  WRITE_NODE_TYPE("NAMEDARGEXPR");
1187 
1190  WRITE_INT_FIELD(argnumber);
1191  WRITE_LOCATION_FIELD(location);
1192 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outNamedTuplestoreScan ( StringInfo  str,
const NamedTuplestoreScan node 
)
static

Definition at line 637 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

638 {
639  WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
640 
641  _outScanInfo(str, (const Scan *) node);
642 
643  WRITE_STRING_FIELD(enrname);
644 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:293
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
static void _outNestLoop ( StringInfo  str,
const NestLoop node 
)
static

Definition at line 700 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

701 {
702  WRITE_NODE_TYPE("NESTLOOP");
703 
704  _outJoinPlanInfo(str, (const Join *) node);
705 
706  WRITE_NODE_FIELD(nestParams);
707 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:304
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outNestLoopParam ( StringInfo  str,
const NestLoopParam node 
)
static

Definition at line 952 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

953 {
954  WRITE_NODE_TYPE("NESTLOOPPARAM");
955 
956  WRITE_INT_FIELD(paramno);
957  WRITE_NODE_FIELD(paramval);
958 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outNestPath ( StringInfo  str,
const NestPath node 
)
static

Definition at line 2104 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2105 {
2106  WRITE_NODE_TYPE("NESTPATH");
2107 
2108  _outJoinPathInfo(str, (const JoinPath *) node);
2109 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outNotifyStmt ( StringInfo  str,
const NotifyStmt node 
)
static

Definition at line 2646 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2647 {
2648  WRITE_NODE_TYPE("NOTIFY");
2649 
2650  WRITE_STRING_FIELD(conditionname);
2651  WRITE_STRING_FIELD(payload);
2652 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
static void _outNullIfExpr ( StringInfo  str,
const NullIfExpr node 
)
static

Definition at line 1225 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1226 {
1227  WRITE_NODE_TYPE("NULLIFEXPR");
1228 
1229  WRITE_OID_FIELD(opno);
1230  WRITE_OID_FIELD(opfuncid);
1231  WRITE_OID_FIELD(opresulttype);
1232  WRITE_BOOL_FIELD(opretset);
1233  WRITE_OID_FIELD(opcollid);
1234  WRITE_OID_FIELD(inputcollid);
1236  WRITE_LOCATION_FIELD(location);
1237 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outNullTest ( StringInfo  str,
const NullTest node 
)
static

Definition at line 1530 of file outfuncs.c.

References arg, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1531 {
1532  WRITE_NODE_TYPE("NULLTEST");
1533 
1535  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1536  WRITE_BOOL_FIELD(argisrow);
1537  WRITE_LOCATION_FIELD(location);
1538 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
NullTestType
Definition: primnodes.h:1171
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outOnConflictExpr ( StringInfo  str,
const OnConflictExpr node 
)
static

Definition at line 1652 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1653 {
1654  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1655 
1657  WRITE_NODE_FIELD(arbiterElems);
1658  WRITE_NODE_FIELD(arbiterWhere);
1659  WRITE_OID_FIELD(constraint);
1660  WRITE_NODE_FIELD(onConflictSet);
1661  WRITE_NODE_FIELD(onConflictWhere);
1662  WRITE_INT_FIELD(exclRelIndex);
1663  WRITE_NODE_FIELD(exclRelTlist);
1664 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
OnConflictAction
Definition: nodes.h:798
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outOpExpr ( StringInfo  str,
const OpExpr node 
)
static

Definition at line 1195 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1196 {
1197  WRITE_NODE_TYPE("OPEXPR");
1198 
1199  WRITE_OID_FIELD(opno);
1200  WRITE_OID_FIELD(opfuncid);
1201  WRITE_OID_FIELD(opresulttype);
1202  WRITE_BOOL_FIELD(opretset);
1203  WRITE_OID_FIELD(opcollid);
1204  WRITE_OID_FIELD(inputcollid);
1206  WRITE_LOCATION_FIELD(location);
1207 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outParam ( StringInfo  str,
const Param node 
)
static

Definition at line 1087 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1088 {
1089  WRITE_NODE_TYPE("PARAM");
1090 
1091  WRITE_ENUM_FIELD(paramkind, ParamKind);
1092  WRITE_INT_FIELD(paramid);
1093  WRITE_OID_FIELD(paramtype);
1094  WRITE_INT_FIELD(paramtypmod);
1095  WRITE_OID_FIELD(paramcollid);
1096  WRITE_LOCATION_FIELD(location);
1097 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
ParamKind
Definition: primnodes.h:233
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outParamPathInfo ( StringInfo  str,
const ParamPathInfo node 
)
static

Definition at line 2401 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2402 {
2403  WRITE_NODE_TYPE("PARAMPATHINFO");
2404 
2405  WRITE_BITMAPSET_FIELD(ppi_req_outer);
2406  WRITE_FLOAT_FIELD(ppi_rows, "%.0f");
2407  WRITE_NODE_FIELD(ppi_clauses);
2408 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outParamRef ( StringInfo  str,
const ParamRef node 
)
static

Definition at line 3227 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3228 {
3229  WRITE_NODE_TYPE("PARAMREF");
3230 
3231  WRITE_INT_FIELD(number);
3232  WRITE_LOCATION_FIELD(location);
3233 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPartitionBoundSpec ( StringInfo  str,
const PartitionBoundSpec node 
)
static

Definition at line 3540 of file outfuncs.c.

References WRITE_CHAR_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3541 {
3542  WRITE_NODE_TYPE("PARTITIONBOUND");
3543 
3544  WRITE_CHAR_FIELD(strategy);
3545  WRITE_NODE_FIELD(listdatums);
3546  WRITE_NODE_FIELD(lowerdatums);
3547  WRITE_NODE_FIELD(upperdatums);
3548 }
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:64
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPartitionedChildRelInfo ( StringInfo  str,
const PartitionedChildRelInfo node 
)
static

Definition at line 2485 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2486 {
2487  WRITE_NODE_TYPE("PARTITIONEDCHILDRELINFO");
2488 
2489  WRITE_UINT_FIELD(parent_relid);
2490  WRITE_NODE_FIELD(child_rels);
2491 }
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPartitionElem ( StringInfo  str,
const PartitionElem node 
)
static

Definition at line 3528 of file outfuncs.c.

References name, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3529 {
3530  WRITE_NODE_TYPE("PARTITIONELEM");
3531 
3533  WRITE_NODE_FIELD(expr);
3534  WRITE_NODE_FIELD(collation);
3535  WRITE_NODE_FIELD(opclass);
3536  WRITE_LOCATION_FIELD(location);
3537 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPartitionRangeDatum ( StringInfo  str,
const PartitionRangeDatum node 
)
static

Definition at line 3551 of file outfuncs.c.

References value, WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3552 {
3553  WRITE_NODE_TYPE("PARTRANGEDATUM");
3554 
3555  WRITE_BOOL_FIELD(infinite);
3557 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static struct @121 value
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPartitionSpec ( StringInfo  str,
const PartitionSpec node 
)
static

Definition at line 3518 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3519 {
3520  WRITE_NODE_TYPE("PARTITIONBY");
3521 
3522  WRITE_STRING_FIELD(strategy);
3523  WRITE_NODE_FIELD(partParams);
3524  WRITE_LOCATION_FIELD(location);
3525 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:82
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPath ( StringInfo  str,
const Path node 
)
static

Definition at line 1720 of file outfuncs.c.

References _outPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

1721 {
1722  WRITE_NODE_TYPE("PATH");
1723 
1724  _outPathInfo(str, (const Path *) node);
1725 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1683
Definition: relation.h:946
static void _outPathInfo ( StringInfo  str,
const Path node 
)
static

Definition at line 1683 of file outfuncs.c.

References appendStringInfoString(), NULL, outBitmapset(), Path::param_info, Path::parent, Path::pathtarget, ParamPathInfo::ppi_req_outer, RelOptInfo::relids, RelOptInfo::reltarget, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_FLOAT_FIELD, WRITE_INT_FIELD, and WRITE_NODE_FIELD.

Referenced by _outAggPath(), _outAppendPath(), _outBitmapAndPath(), _outBitmapHeapPath(), _outBitmapOrPath(), _outCustomPath(), _outForeignPath(), _outGatherMergePath(), _outGatherPath(), _outGroupingSetsPath(), _outGroupPath(), _outIndexPath(), _outJoinPathInfo(), _outLimitPath(), _outLockRowsPath(), _outMaterialPath(), _outMergeAppendPath(), _outMinMaxAggPath(), _outModifyTablePath(), _outPath(), _outProjectionPath(), _outProjectSetPath(), _outRecursiveUnionPath(), _outResultPath(), _outSetOpPath(), _outSortPath(), _outSubqueryScanPath(), _outTidPath(), _outUniquePath(), _outUpperUniquePath(), and _outWindowAggPath().

1684 {
1685  WRITE_ENUM_FIELD(pathtype, NodeTag);
1686  appendStringInfoString(str, " :parent_relids ");
1687  outBitmapset(str, node->parent->relids);
1688  if (node->pathtarget != node->parent->reltarget)
1689  WRITE_NODE_FIELD(pathtarget);
1690  appendStringInfoString(str, " :required_outer ");
1691  if (node->param_info)
1692  outBitmapset(str, node->param_info->ppi_req_outer);
1693  else
1694  outBitmapset(str, NULL);
1695  WRITE_BOOL_FIELD(parallel_aware);
1696  WRITE_BOOL_FIELD(parallel_safe);
1697  WRITE_INT_FIELD(parallel_workers);
1698  WRITE_FLOAT_FIELD(rows, "%.0f");
1699  WRITE_FLOAT_FIELD(startup_cost, "%.2f");
1700  WRITE_FLOAT_FIELD(total_cost, "%.2f");
1701  WRITE_NODE_FIELD(pathkeys);
1702 }
PathTarget * pathtarget
Definition: relation.h:953
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
ParamPathInfo * param_info
Definition: relation.h:955
NodeTag
Definition: nodes.h:26
RelOptInfo * parent
Definition: relation.h:952
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
Relids relids
Definition: relation.h:524
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define NULL
Definition: c.h:229
void outBitmapset(StringInfo str, const Bitmapset *bms)
Definition: outfuncs.c:187
Relids ppi_req_outer
Definition: relation.h:911
struct PathTarget * reltarget
Definition: relation.h:535
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPathKey ( StringInfo  str,
const PathKey node 
)
static

Definition at line 2371 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2372 {
2373  WRITE_NODE_TYPE("PATHKEY");
2374 
2375  WRITE_NODE_FIELD(pk_eclass);
2376  WRITE_OID_FIELD(pk_opfamily);
2377  WRITE_INT_FIELD(pk_strategy);
2378  WRITE_BOOL_FIELD(pk_nulls_first);
2379 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:56
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPathTarget ( StringInfo  str,
const PathTarget node 
)
static

Definition at line 2382 of file outfuncs.c.

References appendStringInfo(), appendStringInfoString(), PathTarget::exprs, i, list_length(), PathTarget::sortgrouprefs, WRITE_FLOAT_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2383 {
2384  WRITE_NODE_TYPE("PATHTARGET");
2385 
2386  WRITE_NODE_FIELD(exprs);
2387  if (node->sortgrouprefs)
2388  {
2389  int i;
2390 
2391  appendStringInfoString(str, " :sortgrouprefs");
2392  for (i = 0; i < list_length(node->exprs); i++)
2393  appendStringInfo(str, " %u", node->sortgrouprefs[i]);
2394  }
2395  WRITE_FLOAT_FIELD(cost.startup, "%.2f");
2396  WRITE_FLOAT_FIELD(cost.per_tuple, "%.2f");
2397  WRITE_INT_FIELD(width);
2398 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:189
Index * sortgrouprefs
Definition: relation.h:883
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
List * exprs
Definition: relation.h:882
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static int list_length(const List *l)
Definition: pg_list.h:89
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPlaceHolderInfo ( StringInfo  str,
const PlaceHolderInfo node 
)
static

Definition at line 2494 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2495 {
2496  WRITE_NODE_TYPE("PLACEHOLDERINFO");
2497 
2498  WRITE_UINT_FIELD(phid);
2499  WRITE_NODE_FIELD(ph_var);
2500  WRITE_BITMAPSET_FIELD(ph_eval_at);
2501  WRITE_BITMAPSET_FIELD(ph_lateral);
2502  WRITE_BITMAPSET_FIELD(ph_needed);
2503  WRITE_INT_FIELD(ph_width);
2504 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPlaceHolderVar ( StringInfo  str,
const PlaceHolderVar node 
)
static

Definition at line 2443 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2444 {
2445  WRITE_NODE_TYPE("PLACEHOLDERVAR");
2446 
2447  WRITE_NODE_FIELD(phexpr);
2448  WRITE_BITMAPSET_FIELD(phrels);
2449  WRITE_UINT_FIELD(phid);
2450  WRITE_UINT_FIELD(phlevelsup);
2451 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPlan ( StringInfo  str,
const Plan node 
)
static

Definition at line 315 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

316 {
317  WRITE_NODE_TYPE("PLAN");
318 
319  _outPlanInfo(str, (const Plan *) node);
320 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:271
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPlanInfo ( StringInfo  str,
const Plan node 
)
static

Definition at line 271 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_FLOAT_FIELD, WRITE_INT_FIELD, and WRITE_NODE_FIELD.

Referenced by _outAgg(), _outAppend(), _outBitmapAnd(), _outBitmapOr(), _outGather(), _outGatherMerge(), _outGroup(), _outHash(), _outJoinPlanInfo(), _outLimit(), _outLockRows(), _outMaterial(), _outMergeAppend(), _outModifyTable(), _outPlan(), _outProjectSet(), _outRecursiveUnion(), _outResult(), _outScanInfo(), _outSetOp(), _outSort(), _outUnique(), and _outWindowAgg().

272 {
273  WRITE_FLOAT_FIELD(startup_cost, "%.2f");
274  WRITE_FLOAT_FIELD(total_cost, "%.2f");
275  WRITE_FLOAT_FIELD(plan_rows, "%.0f");
276  WRITE_INT_FIELD(plan_width);
277  WRITE_BOOL_FIELD(parallel_aware);
278  WRITE_BOOL_FIELD(parallel_safe);
279  WRITE_INT_FIELD(plan_node_id);
280  WRITE_NODE_FIELD(targetlist);
281  WRITE_NODE_FIELD(qual);
282  WRITE_NODE_FIELD(lefttree);
283  WRITE_NODE_FIELD(righttree);
284  WRITE_NODE_FIELD(initPlan);
285  WRITE_BITMAPSET_FIELD(extParam);
286  WRITE_BITMAPSET_FIELD(allParam);
287 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:73
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPlanInvalItem ( StringInfo  str,
const PlanInvalItem node 
)
static

Definition at line 976 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

977 {
978  WRITE_NODE_TYPE("PLANINVALITEM");
979 
980  WRITE_INT_FIELD(cacheId);
981  WRITE_UINT_FIELD(hashValue);
982 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
static void _outPlannedStmt ( StringInfo  str,
const PlannedStmt node 
)
static

Definition at line 240 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

241 {
242  WRITE_NODE_TYPE("PLANNEDSTMT");
243 
244  WRITE_ENUM_FIELD(commandType, CmdType);
245  WRITE_UINT_FIELD(queryId);
246  WRITE_BOOL_FIELD(hasReturning);
247  WRITE_BOOL_FIELD(hasModifyingCTE);
248  WRITE_BOOL_FIELD(canSetTag);
249  WRITE_BOOL_FIELD(transientPlan);
250  WRITE_BOOL_FIELD(dependsOnRole);
251  WRITE_BOOL_FIELD(parallelModeNeeded);
252  WRITE_NODE_FIELD(planTree);
253  WRITE_NODE_FIELD(rtable);
254  WRITE_NODE_FIELD(resultRelations);
255  WRITE_NODE_FIELD(nonleafResultRelations);
256  WRITE_NODE_FIELD(subplans);
257  WRITE_BITMAPSET_FIELD(rewindPlanIDs);
258  WRITE_NODE_FIELD(rowMarks);
259  WRITE_NODE_FIELD(relationOids);
260  WRITE_NODE_FIELD(invalItems);
261  WRITE_INT_FIELD(nParamExec);
262  WRITE_NODE_FIELD(utilityStmt);
263  WRITE_LOCATION_FIELD(stmt_location);
264  WRITE_LOCATION_FIELD(stmt_len);
265 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:87
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
CmdType
Definition: nodes.h:648
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPlannerGlobal ( StringInfo  str,
const PlannerGlobal node 
)
static

Definition at line 2137 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_CHAR_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2138 {
2139  WRITE_NODE_TYPE("PLANNERGLOBAL");
2140 
2141  /* NB: this isn't a complete set of fields */
2142  WRITE_NODE_FIELD(subplans);
2143  WRITE_BITMAPSET_FIELD(rewindPlanIDs);
2144  WRITE_NODE_FIELD(finalrtable);
2145  WRITE_NODE_FIELD(finalrowmarks);
2146  WRITE_NODE_FIELD(resultRelations);
2147  WRITE_NODE_FIELD(nonleafResultRelations);
2148  WRITE_NODE_FIELD(relationOids);
2149  WRITE_NODE_FIELD(invalItems);
2150  WRITE_INT_FIELD(nParamExec);
2151  WRITE_UINT_FIELD(lastPHId);
2152  WRITE_UINT_FIELD(lastRowMarkId);
2153  WRITE_INT_FIELD(lastPlanNodeId);
2154  WRITE_BOOL_FIELD(transientPlan);
2155  WRITE_BOOL_FIELD(dependsOnRole);
2156  WRITE_BOOL_FIELD(parallelModeOK);
2157  WRITE_BOOL_FIELD(parallelModeNeeded);
2158  WRITE_CHAR_FIELD(maxParallelHazard);
2159 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:48
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:96
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:52
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:77
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:64
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:44
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:91
static void _outPlannerInfo ( StringInfo  str,
const PlannerInfo node 
)