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_UINT64_FIELD(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)
 
#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

static void outChar (StringInfo str, char c)
 
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 _outNextValueExpr (StringInfo str, const NextValueExpr *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 _outPartitionElem (StringInfo str, const PartitionElem *node)
 
static void _outPartitionSpec (StringInfo str, const PartitionSpec *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 109 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:109
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
#define CppAsString(identifier)
Definition: c.h:161

Definition at line 85 of file outfuncs.c.

Referenced by _outA_Indices(), _outAggref(), _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(), _outPartitionBoundSpec(), _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)
Value:
(appendStringInfo(str, " :" CppAsString(fldname) " "), \
outChar(str, node->fldname))
static void outChar(StringInfo str, char c)
Definition: outfuncs.c:156
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
#define CppAsString(identifier)
Definition: c.h:161

Definition at line 71 of file outfuncs.c.

Referenced by _outAggref(), _outColumnDef(), _outConstraint(), _outPartitionBoundSpec(), _outPlannerGlobal(), _outRangeTblEntry(), _outRangeVar(), and _outStatisticExtInfo().

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

Definition at line 67 of file outfuncs.c.

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

#define WRITE_NODE_FIELD (   fldname)
Value:
(appendStringInfoString(str, " :" CppAsString(fldname) " "), \
outNode(str, node->fldname))
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
void outNode(StringInfo str, const void *obj)
Definition: outfuncs.c:3602
#define CppAsString(identifier)
Definition: c.h:161

Definition at line 99 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 46 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(), _outNextValueExpr(), _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().

#define WRITE_UINT64_FIELD (   fldname)
Value:
appendStringInfo(str, " :" CppAsString(fldname) " " UINT64_FORMAT, \
node->fldname)
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
#define CppAsString(identifier)
Definition: c.h:161
#define UINT64_FORMAT
Definition: c.h:301

Definition at line 58 of file outfuncs.c.

Referenced by _outPlannedStmt().

Function Documentation

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

Definition at line 3306 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3307 {
3308  WRITE_NODE_TYPE("A_ARRAYEXPR");
3309 
3310  WRITE_NODE_FIELD(elements);
3311  WRITE_LOCATION_FIELD(location);
3312 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outA_Indices ( StringInfo  str,
const A_Indices node 
)
static

Definition at line 3287 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3288 {
3289  WRITE_NODE_TYPE("A_INDICES");
3290 
3291  WRITE_BOOL_FIELD(is_slice);
3292  WRITE_NODE_FIELD(lidx);
3293  WRITE_NODE_FIELD(uidx);
3294 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outA_Indirection ( StringInfo  str,
const A_Indirection node 
)
static

Definition at line 3297 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3298 {
3299  WRITE_NODE_TYPE("A_INDIRECTION");
3300 
3302  WRITE_NODE_FIELD(indirection);
3303 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outA_Star ( StringInfo  str,
const A_Star node 
)
static

Definition at line 3281 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3282 {
3283  WRITE_NODE_TYPE("A_STAR");
3284 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outAConst ( StringInfo  str,
const A_Const node 
)
static

Definition at line 3271 of file outfuncs.c.

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

Referenced by outNode().

3272 {
3273  WRITE_NODE_TYPE("A_CONST");
3274 
3275  appendStringInfoString(str, " :val ");
3276  _outValue(str, &(node->val));
3277  WRITE_LOCATION_FIELD(location);
3278 }
static void _outValue(StringInfo str, const Value *value)
Definition: outfuncs.c:3212
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
Value val
Definition: parsenodes.h:287
static void _outAExpr ( StringInfo  str,
const A_Expr node 
)
static

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

3131 {
3132  WRITE_NODE_TYPE("AEXPR");
3133 
3134  switch (node->kind)
3135  {
3136  case AEXPR_OP:
3137  appendStringInfoChar(str, ' ');
3139  break;
3140  case AEXPR_OP_ANY:
3141  appendStringInfoChar(str, ' ');
3143  appendStringInfoString(str, " ANY ");
3144  break;
3145  case AEXPR_OP_ALL:
3146  appendStringInfoChar(str, ' ');
3148  appendStringInfoString(str, " ALL ");
3149  break;
3150  case AEXPR_DISTINCT:
3151  appendStringInfoString(str, " DISTINCT ");
3153  break;
3154  case AEXPR_NOT_DISTINCT:
3155  appendStringInfoString(str, " NOT_DISTINCT ");
3157  break;
3158  case AEXPR_NULLIF:
3159  appendStringInfoString(str, " NULLIF ");
3161  break;
3162  case AEXPR_OF:
3163  appendStringInfoString(str, " OF ");
3165  break;
3166  case AEXPR_IN:
3167  appendStringInfoString(str, " IN ");
3169  break;
3170  case AEXPR_LIKE:
3171  appendStringInfoString(str, " LIKE ");
3173  break;
3174  case AEXPR_ILIKE:
3175  appendStringInfoString(str, " ILIKE ");
3177  break;
3178  case AEXPR_SIMILAR:
3179  appendStringInfoString(str, " SIMILAR ");
3181  break;
3182  case AEXPR_BETWEEN:
3183  appendStringInfoString(str, " BETWEEN ");
3185  break;
3186  case AEXPR_NOT_BETWEEN:
3187  appendStringInfoString(str, " NOT_BETWEEN ");
3189  break;
3190  case AEXPR_BETWEEN_SYM:
3191  appendStringInfoString(str, " BETWEEN_SYM ");
3193  break;
3194  case AEXPR_NOT_BETWEEN_SYM:
3195  appendStringInfoString(str, " NOT_BETWEEN_SYM ");
3197  break;
3198  case AEXPR_PAREN:
3199  appendStringInfoString(str, " PAREN");
3200  break;
3201  default:
3202  appendStringInfoString(str, " ??");
3203  break;
3204  }
3205 
3206  WRITE_NODE_FIELD(lexpr);
3207  WRITE_NODE_FIELD(rexpr);
3208  WRITE_LOCATION_FIELD(location);
3209 }
A_Expr_Kind kind
Definition: parsenodes.h:274
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:169
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAgg ( StringInfo  str,
const Agg node 
)
static

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

780 {
781  int i;
782 
783  WRITE_NODE_TYPE("AGG");
784 
785  _outPlanInfo(str, (const Plan *) node);
786 
787  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
788  WRITE_ENUM_FIELD(aggsplit, AggSplit);
789  WRITE_INT_FIELD(numCols);
790 
791  appendStringInfoString(str, " :grpColIdx");
792  for (i = 0; i < node->numCols; i++)
793  appendStringInfo(str, " %d", node->grpColIdx[i]);
794 
795  appendStringInfoString(str, " :grpOperators");
796  for (i = 0; i < node->numCols; i++)
797  appendStringInfo(str, " %u", node->grpOperators[i]);
798 
799  WRITE_LONG_FIELD(numGroups);
800  WRITE_BITMAPSET_FIELD(aggParams);
801  WRITE_NODE_FIELD(groupingSets);
802  WRITE_NODE_FIELD(chain);
803 }
int numCols
Definition: plannodes.h:785
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
AttrNumber * grpColIdx
Definition: plannodes.h:786
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_LONG_FIELD(fldname)
Definition: outfuncs.c:67
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AggSplit
Definition: nodes.h:758
AggStrategy
Definition: nodes.h:736
Oid * grpOperators
Definition: plannodes.h:787
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAggPath ( StringInfo  str,
const AggPath node 
)
static

Definition at line 1978 of file outfuncs.c.

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

Referenced by outNode().

1979 {
1980  WRITE_NODE_TYPE("AGGPATH");
1981 
1982  _outPathInfo(str, (const Path *) node);
1983 
1985  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
1986  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1987  WRITE_FLOAT_FIELD(numGroups, "%.0f");
1988  WRITE_NODE_FIELD(groupClause);
1989  WRITE_NODE_FIELD(qual);
1990 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AggSplit
Definition: nodes.h:758
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
AggStrategy
Definition: nodes.h:736
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAggref ( StringInfo  str,
const Aggref node 
)
static

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

1126 {
1127  WRITE_NODE_TYPE("AGGREF");
1128 
1129  WRITE_OID_FIELD(aggfnoid);
1130  WRITE_OID_FIELD(aggtype);
1131  WRITE_OID_FIELD(aggcollid);
1132  WRITE_OID_FIELD(inputcollid);
1133  WRITE_OID_FIELD(aggtranstype);
1134  WRITE_NODE_FIELD(aggargtypes);
1135  WRITE_NODE_FIELD(aggdirectargs);
1137  WRITE_NODE_FIELD(aggorder);
1138  WRITE_NODE_FIELD(aggdistinct);
1139  WRITE_NODE_FIELD(aggfilter);
1140  WRITE_BOOL_FIELD(aggstar);
1141  WRITE_BOOL_FIELD(aggvariadic);
1142  WRITE_CHAR_FIELD(aggkind);
1143  WRITE_UINT_FIELD(agglevelsup);
1144  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1145  WRITE_LOCATION_FIELD(location);
1146 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AggSplit
Definition: nodes.h:758
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAlias ( StringInfo  str,
const Alias node 
)
static

Definition at line 1016 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1017 {
1018  WRITE_NODE_TYPE("ALIAS");
1019 
1020  WRITE_STRING_FIELD(aliasname);
1021  WRITE_NODE_FIELD(colnames);
1022 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAlternativeSubPlan ( StringInfo  str,
const AlternativeSubPlan node 
)
static

Definition at line 1341 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1342 {
1343  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1344 
1345  WRITE_NODE_FIELD(subplans);
1346 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAppend ( StringInfo  str,
const Append node 
)
static

Definition at line 394 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

395 {
396  WRITE_NODE_TYPE("APPEND");
397 
398  _outPlanInfo(str, (const Plan *) node);
399 
400  WRITE_NODE_FIELD(partitioned_rels);
401  WRITE_NODE_FIELD(appendplans);
402 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAppendPath ( StringInfo  str,
const AppendPath node 
)
static

Definition at line 1856 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1857 {
1858  WRITE_NODE_TYPE("APPENDPATH");
1859 
1860  _outPathInfo(str, (const Path *) node);
1861 
1862  WRITE_NODE_FIELD(partitioned_rels);
1863  WRITE_NODE_FIELD(subpaths);
1864 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outAppendRelInfo ( StringInfo  str,
const AppendRelInfo node 
)
static

Definition at line 2506 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2507 {
2508  WRITE_NODE_TYPE("APPENDRELINFO");
2509 
2510  WRITE_UINT_FIELD(parent_relid);
2511  WRITE_UINT_FIELD(child_relid);
2512  WRITE_OID_FIELD(parent_reltype);
2513  WRITE_OID_FIELD(child_reltype);
2514  WRITE_NODE_FIELD(translated_vars);
2515  WRITE_OID_FIELD(parent_reloid);
2516 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outArrayCoerceExpr ( StringInfo  str,
const ArrayCoerceExpr node 
)
static

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

1398 {
1399  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1400 
1402  WRITE_NODE_FIELD(elemexpr);
1403  WRITE_OID_FIELD(resulttype);
1404  WRITE_INT_FIELD(resulttypmod);
1405  WRITE_OID_FIELD(resultcollid);
1406  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1407  WRITE_LOCATION_FIELD(location);
1408 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outArrayExpr ( StringInfo  str,
const ArrayExpr node 
)
static

Definition at line 1465 of file outfuncs.c.

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

Referenced by outNode().

1466 {
1467  WRITE_NODE_TYPE("ARRAY");
1468 
1469  WRITE_OID_FIELD(array_typeid);
1470  WRITE_OID_FIELD(array_collid);
1471  WRITE_OID_FIELD(element_typeid);
1472  WRITE_NODE_FIELD(elements);
1473  WRITE_BOOL_FIELD(multidims);
1474  WRITE_LOCATION_FIELD(location);
1475 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outArrayRef ( StringInfo  str,
const ArrayRef node 
)
static

Definition at line 1178 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1179 {
1180  WRITE_NODE_TYPE("ARRAYREF");
1181 
1182  WRITE_OID_FIELD(refarraytype);
1183  WRITE_OID_FIELD(refelemtype);
1184  WRITE_INT_FIELD(reftypmod);
1185  WRITE_OID_FIELD(refcollid);
1186  WRITE_NODE_FIELD(refupperindexpr);
1187  WRITE_NODE_FIELD(reflowerindexpr);
1188  WRITE_NODE_FIELD(refexpr);
1189  WRITE_NODE_FIELD(refassgnexpr);
1190 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapAnd ( StringInfo  str,
const BitmapAnd node 
)
static

Definition at line 459 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

460 {
461  WRITE_NODE_TYPE("BITMAPAND");
462 
463  _outPlanInfo(str, (const Plan *) node);
464 
465  WRITE_NODE_FIELD(bitmapplans);
466 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapAndPath ( StringInfo  str,
const BitmapAndPath node 
)
static

Definition at line 1789 of file outfuncs.c.

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

Referenced by outNode().

1790 {
1791  WRITE_NODE_TYPE("BITMAPANDPATH");
1792 
1793  _outPathInfo(str, (const Path *) node);
1794 
1795  WRITE_NODE_FIELD(bitmapquals);
1796  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1797 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapHeapPath ( StringInfo  str,
const BitmapHeapPath node 
)
static

Definition at line 1779 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1780 {
1781  WRITE_NODE_TYPE("BITMAPHEAPPATH");
1782 
1783  _outPathInfo(str, (const Path *) node);
1784 
1785  WRITE_NODE_FIELD(bitmapqual);
1786 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapHeapScan ( StringInfo  str,
const BitmapHeapScan node 
)
static

Definition at line 592 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

593 {
594  WRITE_NODE_TYPE("BITMAPHEAPSCAN");
595 
596  _outScanInfo(str, (const Scan *) node);
597 
598  WRITE_NODE_FIELD(bitmapqualorig);
599 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapIndexScan ( StringInfo  str,
const BitmapIndexScan node 
)
static

Definition at line 579 of file outfuncs.c.

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

Referenced by outNode().

580 {
581  WRITE_NODE_TYPE("BITMAPINDEXSCAN");
582 
583  _outScanInfo(str, (const Scan *) node);
584 
585  WRITE_OID_FIELD(indexid);
586  WRITE_BOOL_FIELD(isshared);
587  WRITE_NODE_FIELD(indexqual);
588  WRITE_NODE_FIELD(indexqualorig);
589 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapOr ( StringInfo  str,
const BitmapOr node 
)
static

Definition at line 469 of file outfuncs.c.

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

Referenced by outNode().

470 {
471  WRITE_NODE_TYPE("BITMAPOR");
472 
473  _outPlanInfo(str, (const Plan *) node);
474 
475  WRITE_BOOL_FIELD(isshared);
476  WRITE_NODE_FIELD(bitmapplans);
477 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBitmapOrPath ( StringInfo  str,
const BitmapOrPath node 
)
static

Definition at line 1800 of file outfuncs.c.

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

Referenced by outNode().

1801 {
1802  WRITE_NODE_TYPE("BITMAPORPATH");
1803 
1804  _outPathInfo(str, (const Path *) node);
1805 
1806  WRITE_NODE_FIELD(bitmapquals);
1807  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1808 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBooleanTest ( StringInfo  str,
const BooleanTest node 
)
static

Definition at line 1565 of file outfuncs.c.

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

Referenced by outNode().

1566 {
1567  WRITE_NODE_TYPE("BOOLEANTEST");
1568 
1570  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1571  WRITE_LOCATION_FIELD(location);
1572 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
BoolTestType
Definition: primnodes.h:1195
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outBoolExpr ( StringInfo  str,
const BoolExpr node 
)
static

Definition at line 1278 of file outfuncs.c.

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

Referenced by outNode().

1279 {
1280  char *opstr = NULL;
1281 
1282  WRITE_NODE_TYPE("BOOLEXPR");
1283 
1284  /* do-it-yourself enum representation */
1285  switch (node->boolop)
1286  {
1287  case AND_EXPR:
1288  opstr = "and";
1289  break;
1290  case OR_EXPR:
1291  opstr = "or";
1292  break;
1293  case NOT_EXPR:
1294  opstr = "not";
1295  break;
1296  }
1297  appendStringInfoString(str, " :boolop ");
1298  outToken(str, opstr);
1299 
1301  WRITE_LOCATION_FIELD(location);
1302 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:120
BoolExprType boolop
Definition: primnodes.h:562
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCaseExpr ( StringInfo  str,
const CaseExpr node 
)
static

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

1433 {
1434  WRITE_NODE_TYPE("CASE");
1435 
1436  WRITE_OID_FIELD(casetype);
1437  WRITE_OID_FIELD(casecollid);
1440  WRITE_NODE_FIELD(defresult);
1441  WRITE_LOCATION_FIELD(location);
1442 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCaseTestExpr ( StringInfo  str,
const CaseTestExpr node 
)
static

Definition at line 1455 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1456 {
1457  WRITE_NODE_TYPE("CASETESTEXPR");
1458 
1459  WRITE_OID_FIELD(typeId);
1460  WRITE_INT_FIELD(typeMod);
1461  WRITE_OID_FIELD(collation);
1462 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outCaseWhen ( StringInfo  str,
const CaseWhen node 
)
static

Definition at line 1445 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1446 {
1447  WRITE_NODE_TYPE("WHEN");
1448 
1449  WRITE_NODE_FIELD(expr);
1450  WRITE_NODE_FIELD(result);
1451  WRITE_LOCATION_FIELD(location);
1452 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCoalesceExpr ( StringInfo  str,
const CoalesceExpr node 
)
static

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

1504 {
1505  WRITE_NODE_TYPE("COALESCE");
1506 
1507  WRITE_OID_FIELD(coalescetype);
1508  WRITE_OID_FIELD(coalescecollid);
1510  WRITE_LOCATION_FIELD(location);
1511 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCoerceToDomain ( StringInfo  str,
const CoerceToDomain node 
)
static

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

1576 {
1577  WRITE_NODE_TYPE("COERCETODOMAIN");
1578 
1580  WRITE_OID_FIELD(resulttype);
1581  WRITE_INT_FIELD(resulttypmod);
1582  WRITE_OID_FIELD(resultcollid);
1583  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1584  WRITE_LOCATION_FIELD(location);
1585 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCoerceToDomainValue ( StringInfo  str,
const CoerceToDomainValue node 
)
static

Definition at line 1588 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1589 {
1590  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1591 
1592  WRITE_OID_FIELD(typeId);
1593  WRITE_INT_FIELD(typeMod);
1594  WRITE_OID_FIELD(collation);
1595  WRITE_LOCATION_FIELD(location);
1596 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outCoerceViaIO ( StringInfo  str,
const CoerceViaIO node 
)
static

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

1386 {
1387  WRITE_NODE_TYPE("COERCEVIAIO");
1388 
1390  WRITE_OID_FIELD(resulttype);
1391  WRITE_OID_FIELD(resultcollid);
1392  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1393  WRITE_LOCATION_FIELD(location);
1394 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCollateClause ( StringInfo  str,
const CollateClause node 
)
static

Definition at line 2841 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2842 {
2843  WRITE_NODE_TYPE("COLLATECLAUSE");
2844 
2846  WRITE_NODE_FIELD(collname);
2847  WRITE_LOCATION_FIELD(location);
2848 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCollateExpr ( StringInfo  str,
const CollateExpr node 
)
static

Definition at line 1422 of file outfuncs.c.

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

Referenced by outNode().

1423 {
1424  WRITE_NODE_TYPE("COLLATE");
1425 
1427  WRITE_OID_FIELD(collOid);
1428  WRITE_LOCATION_FIELD(location);
1429 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outColumnDef ( StringInfo  str,
const ColumnDef node 
)
static

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

2794 {
2795  WRITE_NODE_TYPE("COLUMNDEF");
2796 
2797  WRITE_STRING_FIELD(colname);
2798  WRITE_NODE_FIELD(typeName);
2799  WRITE_INT_FIELD(inhcount);
2800  WRITE_BOOL_FIELD(is_local);
2801  WRITE_BOOL_FIELD(is_not_null);
2802  WRITE_BOOL_FIELD(is_from_type);
2803  WRITE_BOOL_FIELD(is_from_parent);
2804  WRITE_CHAR_FIELD(storage);
2805  WRITE_NODE_FIELD(raw_default);
2806  WRITE_NODE_FIELD(cooked_default);
2807  WRITE_CHAR_FIELD(identity);
2808  WRITE_NODE_FIELD(collClause);
2809  WRITE_OID_FIELD(collOid);
2810  WRITE_NODE_FIELD(constraints);
2811  WRITE_NODE_FIELD(fdwoptions);
2812  WRITE_LOCATION_FIELD(location);
2813 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outColumnRef ( StringInfo  str,
const ColumnRef node 
)
static

Definition at line 3253 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3254 {
3255  WRITE_NODE_TYPE("COLUMNREF");
3256 
3257  WRITE_NODE_FIELD(fields);
3258  WRITE_LOCATION_FIELD(location);
3259 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCommonTableExpr ( StringInfo  str,
const CommonTableExpr node 
)
static

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

3005 {
3006  WRITE_NODE_TYPE("COMMONTABLEEXPR");
3007 
3008  WRITE_STRING_FIELD(ctename);
3009  WRITE_NODE_FIELD(aliascolnames);
3010  WRITE_NODE_FIELD(ctequery);
3011  WRITE_LOCATION_FIELD(location);
3012  WRITE_BOOL_FIELD(cterecursive);
3013  WRITE_INT_FIELD(cterefcount);
3014  WRITE_NODE_FIELD(ctecolnames);
3015  WRITE_NODE_FIELD(ctecoltypes);
3016  WRITE_NODE_FIELD(ctecoltypmods);
3017  WRITE_NODE_FIELD(ctecolcollations);
3018 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outConst ( StringInfo  str,
const Const node 
)
static

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

1093 {
1094  WRITE_NODE_TYPE("CONST");
1095 
1096  WRITE_OID_FIELD(consttype);
1097  WRITE_INT_FIELD(consttypmod);
1098  WRITE_OID_FIELD(constcollid);
1099  WRITE_INT_FIELD(constlen);
1100  WRITE_BOOL_FIELD(constbyval);
1101  WRITE_BOOL_FIELD(constisnull);
1102  WRITE_LOCATION_FIELD(location);
1103 
1104  appendStringInfoString(str, " :constvalue ");
1105  if (node->constisnull)
1106  appendStringInfoString(str, "<>");
1107  else
1108  outDatum(str, node->constvalue, node->constlen, node->constbyval);
1109 }
Datum constvalue
Definition: primnodes.h:196
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
bool constbyval
Definition: primnodes.h:199
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
void outDatum(StringInfo str, Datum value, int typlen, bool typbyval)
Definition: outfuncs.c:226
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
int constlen
Definition: primnodes.h:195
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
bool constisnull
Definition: primnodes.h:197
static void _outConstraint ( StringInfo  str,
const Constraint node 
)
static

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

3427 {
3428  WRITE_NODE_TYPE("CONSTRAINT");
3429 
3430  WRITE_STRING_FIELD(conname);
3431  WRITE_BOOL_FIELD(deferrable);
3432  WRITE_BOOL_FIELD(initdeferred);
3433  WRITE_LOCATION_FIELD(location);
3434 
3435  appendStringInfoString(str, " :contype ");
3436  switch (node->contype)
3437  {
3438  case CONSTR_NULL:
3439  appendStringInfoString(str, "NULL");
3440  break;
3441 
3442  case CONSTR_NOTNULL:
3443  appendStringInfoString(str, "NOT_NULL");
3444  break;
3445 
3446  case CONSTR_DEFAULT:
3447  appendStringInfoString(str, "DEFAULT");
3448  WRITE_NODE_FIELD(raw_expr);
3449  WRITE_STRING_FIELD(cooked_expr);
3450  break;
3451 
3452  case CONSTR_IDENTITY:
3453  appendStringInfoString(str, "IDENTITY");
3454  WRITE_NODE_FIELD(raw_expr);
3455  WRITE_STRING_FIELD(cooked_expr);
3456  WRITE_CHAR_FIELD(generated_when);
3457  break;
3458 
3459  case CONSTR_CHECK:
3460  appendStringInfoString(str, "CHECK");
3461  WRITE_BOOL_FIELD(is_no_inherit);
3462  WRITE_NODE_FIELD(raw_expr);
3463  WRITE_STRING_FIELD(cooked_expr);
3464  break;
3465 
3466  case CONSTR_PRIMARY:
3467  appendStringInfoString(str, "PRIMARY_KEY");
3468  WRITE_NODE_FIELD(keys);
3470  WRITE_STRING_FIELD(indexname);
3471  WRITE_STRING_FIELD(indexspace);
3472  /* access_method and where_clause not currently used */
3473  break;
3474 
3475  case CONSTR_UNIQUE:
3476  appendStringInfoString(str, "UNIQUE");
3477  WRITE_NODE_FIELD(keys);
3479  WRITE_STRING_FIELD(indexname);
3480  WRITE_STRING_FIELD(indexspace);
3481  /* access_method and where_clause not currently used */
3482  break;
3483 
3484  case CONSTR_EXCLUSION:
3485  appendStringInfoString(str, "EXCLUSION");
3486  WRITE_NODE_FIELD(exclusions);
3488  WRITE_STRING_FIELD(indexname);
3489  WRITE_STRING_FIELD(indexspace);
3490  WRITE_STRING_FIELD(access_method);
3491  WRITE_NODE_FIELD(where_clause);
3492  break;
3493 
3494  case CONSTR_FOREIGN:
3495  appendStringInfoString(str, "FOREIGN_KEY");
3496  WRITE_NODE_FIELD(pktable);
3497  WRITE_NODE_FIELD(fk_attrs);
3498  WRITE_NODE_FIELD(pk_attrs);
3499  WRITE_CHAR_FIELD(fk_matchtype);
3500  WRITE_CHAR_FIELD(fk_upd_action);
3501  WRITE_CHAR_FIELD(fk_del_action);
3502  WRITE_NODE_FIELD(old_conpfeqop);
3503  WRITE_OID_FIELD(old_pktable_oid);
3504  WRITE_BOOL_FIELD(skip_validation);
3505  WRITE_BOOL_FIELD(initially_valid);
3506  break;
3507 
3509  appendStringInfoString(str, "ATTR_DEFERRABLE");
3510  break;
3511 
3513  appendStringInfoString(str, "ATTR_NOT_DEFERRABLE");
3514  break;
3515 
3516  case CONSTR_ATTR_DEFERRED:
3517  appendStringInfoString(str, "ATTR_DEFERRED");
3518  break;
3519 
3520  case CONSTR_ATTR_IMMEDIATE:
3521  appendStringInfoString(str, "ATTR_IMMEDIATE");
3522  break;
3523 
3524  default:
3525  appendStringInfo(str, "<unrecognized_constraint %d>",
3526  (int) node->contype);
3527  break;
3528  }
3529 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
ConstrType contype
Definition: parsenodes.h:2081
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outConvertRowtypeExpr ( StringInfo  str,
const ConvertRowtypeExpr node 
)
static

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

1412 {
1413  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1414 
1416  WRITE_OID_FIELD(resulttype);
1417  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1418  WRITE_LOCATION_FIELD(location);
1419 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCreateForeignTableStmt ( StringInfo  str,
const CreateForeignTableStmt node 
)
static

Definition at line 2618 of file outfuncs.c.

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

Referenced by outNode().

2619 {
2620  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2621 
2622  _outCreateStmtInfo(str, (const CreateStmt *) node);
2623 
2624  WRITE_STRING_FIELD(servername);
2626 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2594
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCreateStatsStmt ( StringInfo  str,
const CreateStatsStmt node 
)
static

Definition at line 2668 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2669 {
2670  WRITE_NODE_TYPE("CREATESTATSSTMT");
2671 
2672  WRITE_NODE_FIELD(defnames);
2673  WRITE_NODE_FIELD(stat_types);
2674  WRITE_NODE_FIELD(exprs);
2675  WRITE_NODE_FIELD(relations);
2676  WRITE_BOOL_FIELD(if_not_exists);
2677 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCreateStmt ( StringInfo  str,
const CreateStmt node 
)
static

Definition at line 2610 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2611 {
2612  WRITE_NODE_TYPE("CREATESTMT");
2613 
2614  _outCreateStmtInfo(str, (const CreateStmt *) node);
2615 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2594
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outCreateStmtInfo ( StringInfo  str,
const CreateStmt node 
)
static

Definition at line 2594 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2595 {
2596  WRITE_NODE_FIELD(relation);
2597  WRITE_NODE_FIELD(tableElts);
2598  WRITE_NODE_FIELD(inhRelations);
2599  WRITE_NODE_FIELD(partspec);
2600  WRITE_NODE_FIELD(partbound);
2601  WRITE_NODE_FIELD(ofTypename);
2602  WRITE_NODE_FIELD(constraints);
2604  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2605  WRITE_STRING_FIELD(tablespacename);
2606  WRITE_BOOL_FIELD(if_not_exists);
2607 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCteScan ( StringInfo  str,
const CteScan node 
)
static

Definition at line 653 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

654 {
655  WRITE_NODE_TYPE("CTESCAN");
656 
657  _outScanInfo(str, (const Scan *) node);
658 
659  WRITE_INT_FIELD(ctePlanId);
660  WRITE_INT_FIELD(cteParam);
661 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outCurrentOfExpr ( StringInfo  str,
const CurrentOfExpr node 
)
static

Definition at line 1610 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1611 {
1612  WRITE_NODE_TYPE("CURRENTOFEXPR");
1613 
1614  WRITE_UINT_FIELD(cvarno);
1615  WRITE_STRING_FIELD(cursor_name);
1616  WRITE_INT_FIELD(cursor_param);
1617 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
static void _outCustomPath ( StringInfo  str,
const CustomPath node 
)
static

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

1843 {
1844  WRITE_NODE_TYPE("CUSTOMPATH");
1845 
1846  _outPathInfo(str, (const Path *) node);
1847 
1848  WRITE_UINT_FIELD(flags);
1849  WRITE_NODE_FIELD(custom_paths);
1850  WRITE_NODE_FIELD(custom_private);
1851  appendStringInfoString(str, " :methods ");
1852  outToken(str, node->methods->CustomName);
1853 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:120
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
const struct CustomPathMethods * methods
Definition: relation.h:1251
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
const char * CustomName
Definition: extensible.h:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outCustomScan ( StringInfo  str,
const CustomScan node 
)
static

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

702 {
703  WRITE_NODE_TYPE("CUSTOMSCAN");
704 
705  _outScanInfo(str, (const Scan *) node);
706 
707  WRITE_UINT_FIELD(flags);
708  WRITE_NODE_FIELD(custom_plans);
709  WRITE_NODE_FIELD(custom_exprs);
710  WRITE_NODE_FIELD(custom_private);
711  WRITE_NODE_FIELD(custom_scan_tlist);
712  WRITE_BITMAPSET_FIELD(custom_relids);
713  /* CustomName is a key to lookup CustomScanMethods */
714  appendStringInfoString(str, " :methods ");
715  outToken(str, node->methods->CustomName);
716 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:120
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
const struct CustomScanMethods * methods
Definition: plannodes.h:633
const char * CustomName
Definition: extensible.h:110
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outDeclareCursorStmt ( StringInfo  str,
const DeclareCursorStmt node 
)
static

Definition at line 2689 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2690 {
2691  WRITE_NODE_TYPE("DECLARECURSOR");
2692 
2693  WRITE_STRING_FIELD(portalname);
2695  WRITE_NODE_FIELD(query);
2696 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outDefElem ( StringInfo  str,
const DefElem node 
)
static

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

2742 {
2743  WRITE_NODE_TYPE("DEFELEM");
2744 
2745  WRITE_STRING_FIELD(defnamespace);
2746  WRITE_STRING_FIELD(defname);
2748  WRITE_ENUM_FIELD(defaction, DefElemAction);
2749  WRITE_LOCATION_FIELD(location);
2750 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
DefElemAction
Definition: parsenodes.h:707
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outDistinctExpr ( StringInfo  str,
const DistinctExpr node 
)
static

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

1236 {
1237  WRITE_NODE_TYPE("DISTINCTEXPR");
1238 
1239  WRITE_OID_FIELD(opno);
1240  WRITE_OID_FIELD(opfuncid);
1241  WRITE_OID_FIELD(opresulttype);
1242  WRITE_BOOL_FIELD(opretset);
1243  WRITE_OID_FIELD(opcollid);
1244  WRITE_OID_FIELD(inputcollid);
1246  WRITE_LOCATION_FIELD(location);
1247 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outEquivalenceClass ( StringInfo  str,
const EquivalenceClass node 
)
static

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

2366 {
2367  /*
2368  * To simplify reading, we just chase up to the topmost merged EC and
2369  * print that, without bothering to show the merge-ees separately.
2370  */
2371  while (node->ec_merged)
2372  node = node->ec_merged;
2373 
2374  WRITE_NODE_TYPE("EQUIVALENCECLASS");
2375 
2376  WRITE_NODE_FIELD(ec_opfamilies);
2377  WRITE_OID_FIELD(ec_collation);
2378  WRITE_NODE_FIELD(ec_members);
2379  WRITE_NODE_FIELD(ec_sources);
2380  WRITE_NODE_FIELD(ec_derives);
2381  WRITE_BITMAPSET_FIELD(ec_relids);
2382  WRITE_BOOL_FIELD(ec_has_const);
2383  WRITE_BOOL_FIELD(ec_has_volatile);
2384  WRITE_BOOL_FIELD(ec_below_outer_join);
2385  WRITE_BOOL_FIELD(ec_broken);
2386  WRITE_UINT_FIELD(ec_sortref);
2387  WRITE_UINT_FIELD(ec_min_security);
2388  WRITE_UINT_FIELD(ec_max_security);
2389 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
struct EquivalenceClass * ec_merged
Definition: relation.h:874
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outEquivalenceMember ( StringInfo  str,
const EquivalenceMember node 
)
static

Definition at line 2392 of file outfuncs.c.

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

Referenced by outNode().

2393 {
2394  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2395 
2396  WRITE_NODE_FIELD(em_expr);
2397  WRITE_BITMAPSET_FIELD(em_relids);
2398  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2399  WRITE_BOOL_FIELD(em_is_const);
2400  WRITE_BOOL_FIELD(em_is_child);
2401  WRITE_OID_FIELD(em_datatype);
2402 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outExtensibleNode ( StringInfo  str,
const ExtensibleNode node 
)
static

Definition at line 2570 of file outfuncs.c.

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

Referenced by outNode().

2571 {
2572  const ExtensibleNodeMethods *methods;
2573 
2574  methods = GetExtensibleNodeMethods(node->extnodename, false);
2575 
2576  WRITE_NODE_TYPE("EXTENSIBLENODE");
2577 
2578  WRITE_STRING_FIELD(extnodename);
2579 
2580  /* serialize the private fields */
2581  methods->nodeOut(str, node);
2582 }
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:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
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 1349 of file outfuncs.c.

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

Referenced by outNode().

1350 {
1351  WRITE_NODE_TYPE("FIELDSELECT");
1352 
1354  WRITE_INT_FIELD(fieldnum);
1355  WRITE_OID_FIELD(resulttype);
1356  WRITE_INT_FIELD(resulttypmod);
1357  WRITE_OID_FIELD(resultcollid);
1358 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outFieldStore ( StringInfo  str,
const FieldStore node 
)
static

Definition at line 1361 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1362 {
1363  WRITE_NODE_TYPE("FIELDSTORE");
1364 
1366  WRITE_NODE_FIELD(newvals);
1367  WRITE_NODE_FIELD(fieldnums);
1368  WRITE_OID_FIELD(resulttype);
1369 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outForeignKeyCacheInfo ( StringInfo  str,
const ForeignKeyCacheInfo node 
)
static

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

3533 {
3534  int i;
3535 
3536  WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
3537 
3538  WRITE_OID_FIELD(conrelid);
3539  WRITE_OID_FIELD(confrelid);
3540  WRITE_INT_FIELD(nkeys);
3541  appendStringInfoString(str, " :conkey");
3542  for (i = 0; i < node->nkeys; i++)
3543  appendStringInfo(str, " %d", node->conkey[i]);
3544  appendStringInfoString(str, " :confkey");
3545  for (i = 0; i < node->nkeys; i++)
3546  appendStringInfo(str, " %d", node->confkey[i]);
3547  appendStringInfoString(str, " :conpfeqop");
3548  for (i = 0; i < node->nkeys; i++)
3549  appendStringInfo(str, " %u", node->conpfeqop[i]);
3550 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:243
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: rel.h:245
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:244
int i
static void _outForeignKeyOptInfo ( StringInfo  str,
const ForeignKeyOptInfo node 
)
static

Definition at line 2322 of file outfuncs.c.

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

Referenced by outNode().

2323 {
2324  int i;
2325 
2326  WRITE_NODE_TYPE("FOREIGNKEYOPTINFO");
2327 
2328  WRITE_UINT_FIELD(con_relid);
2329  WRITE_UINT_FIELD(ref_relid);
2330  WRITE_INT_FIELD(nkeys);
2331  appendStringInfoString(str, " :conkey");
2332  for (i = 0; i < node->nkeys; i++)
2333  appendStringInfo(str, " %d", node->conkey[i]);
2334  appendStringInfoString(str, " :confkey");
2335  for (i = 0; i < node->nkeys; i++)
2336  appendStringInfo(str, " %d", node->confkey[i]);
2337  appendStringInfoString(str, " :conpfeqop");
2338  for (i = 0; i < node->nkeys; i++)
2339  appendStringInfo(str, " %u", node->conpfeqop[i]);
2340  WRITE_INT_FIELD(nmatched_ec);
2341  WRITE_INT_FIELD(nmatched_rcols);
2342  WRITE_INT_FIELD(nmatched_ri);
2343  /* for compactness, just print the number of matches per column: */
2344  appendStringInfoString(str, " :eclass");
2345  for (i = 0; i < node->nkeys; i++)
2346  appendStringInfo(str, " %d", (node->eclass[i] != NULL));
2347  appendStringInfoString(str, " :rinfos");
2348  for (i = 0; i < node->nkeys; i++)
2349  appendStringInfo(str, " %d", list_length(node->rinfos[i]));
2350 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
Oid conpfeqop[INDEX_MAX_KEYS]
Definition: relation.h:787
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
Definition: relation.h:794
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: relation.h:785
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static int list_length(const List *l)
Definition: pg_list.h:89
int i
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: relation.h:786
List * rinfos[INDEX_MAX_KEYS]
Definition: relation.h:796
static void _outForeignPath ( StringInfo  str,
const ForeignPath node 
)
static

Definition at line 1831 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1832 {
1833  WRITE_NODE_TYPE("FOREIGNPATH");
1834 
1835  _outPathInfo(str, (const Path *) node);
1836 
1837  WRITE_NODE_FIELD(fdw_outerpath);
1838  WRITE_NODE_FIELD(fdw_private);
1839 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outForeignScan ( StringInfo  str,
const ForeignScan node 
)
static

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

685 {
686  WRITE_NODE_TYPE("FOREIGNSCAN");
687 
688  _outScanInfo(str, (const Scan *) node);
689 
690  WRITE_ENUM_FIELD(operation, CmdType);
691  WRITE_OID_FIELD(fs_server);
692  WRITE_NODE_FIELD(fdw_exprs);
693  WRITE_NODE_FIELD(fdw_private);
694  WRITE_NODE_FIELD(fdw_scan_tlist);
695  WRITE_NODE_FIELD(fdw_recheck_quals);
696  WRITE_BITMAPSET_FIELD(fs_relids);
697  WRITE_BOOL_FIELD(fsSystemCol);
698 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
CmdType
Definition: nodes.h:650
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outFromExpr ( StringInfo  str,
const FromExpr node 
)
static

Definition at line 1676 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1677 {
1678  WRITE_NODE_TYPE("FROMEXPR");
1679 
1680  WRITE_NODE_FIELD(fromlist);
1681  WRITE_NODE_FIELD(quals);
1682 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outFuncCall ( StringInfo  str,
const FuncCall node 
)
static

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

2725 {
2726  WRITE_NODE_TYPE("FUNCCALL");
2727 
2728  WRITE_NODE_FIELD(funcname);
2730  WRITE_NODE_FIELD(agg_order);
2731  WRITE_NODE_FIELD(agg_filter);
2732  WRITE_BOOL_FIELD(agg_within_group);
2733  WRITE_BOOL_FIELD(agg_star);
2734  WRITE_BOOL_FIELD(agg_distinct);
2735  WRITE_BOOL_FIELD(func_variadic);
2736  WRITE_NODE_FIELD(over);
2737  WRITE_LOCATION_FIELD(location);
2738 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outFuncExpr ( StringInfo  str,
const FuncExpr node 
)
static

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

1194 {
1195  WRITE_NODE_TYPE("FUNCEXPR");
1196 
1197  WRITE_OID_FIELD(funcid);
1198  WRITE_OID_FIELD(funcresulttype);
1199  WRITE_BOOL_FIELD(funcretset);
1200  WRITE_BOOL_FIELD(funcvariadic);
1201  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1202  WRITE_OID_FIELD(funccollid);
1203  WRITE_OID_FIELD(inputcollid);
1205  WRITE_LOCATION_FIELD(location);
1206 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outFunctionScan ( StringInfo  str,
const FunctionScan node 
)
static

Definition at line 622 of file outfuncs.c.

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

Referenced by outNode().

623 {
624  WRITE_NODE_TYPE("FUNCTIONSCAN");
625 
626  _outScanInfo(str, (const Scan *) node);
627 
629  WRITE_BOOL_FIELD(funcordinality);
630 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static const struct fns functions
Definition: regcomp.c:299
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGather ( StringInfo  str,
const Gather node 
)
static

Definition at line 480 of file outfuncs.c.

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

Referenced by outNode().

481 {
482  WRITE_NODE_TYPE("GATHER");
483 
484  _outPlanInfo(str, (const Plan *) node);
485 
486  WRITE_INT_FIELD(num_workers);
487  WRITE_INT_FIELD(rescan_param);
488  WRITE_BOOL_FIELD(single_copy);
489  WRITE_BOOL_FIELD(invisible);
490 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outGatherMerge ( StringInfo  str,
const GatherMerge node 
)
static

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

494 {
495  int i;
496 
497  WRITE_NODE_TYPE("GATHERMERGE");
498 
499  _outPlanInfo(str, (const Plan *) node);
500 
501  WRITE_INT_FIELD(num_workers);
502  WRITE_INT_FIELD(rescan_param);
503  WRITE_INT_FIELD(numCols);
504 
505  appendStringInfoString(str, " :sortColIdx");
506  for (i = 0; i < node->numCols; i++)
507  appendStringInfo(str, " %d", node->sortColIdx[i]);
508 
509  appendStringInfoString(str, " :sortOperators");
510  for (i = 0; i < node->numCols; i++)
511  appendStringInfo(str, " %u", node->sortOperators[i]);
512 
513  appendStringInfoString(str, " :collations");
514  for (i = 0; i < node->numCols; i++)
515  appendStringInfo(str, " %u", node->collations[i]);
516 
517  appendStringInfoString(str, " :nullsFirst");
518  for (i = 0; i < node->numCols; i++)
519  appendStringInfo(str, " %s", booltostr(node->nullsFirst[i]));
520 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
Oid * collations
Definition: plannodes.h:859
AttrNumber * sortColIdx
Definition: plannodes.h:857
#define booltostr(x)
Definition: outfuncs.c:109
bool * nullsFirst
Definition: plannodes.h:860
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
Oid * sortOperators
Definition: plannodes.h:858
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
int i
static void _outGatherMergePath ( StringInfo  str,
const GatherMergePath node 
)
static

Definition at line 2126 of file outfuncs.c.

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

Referenced by outNode().

2127 {
2128  WRITE_NODE_TYPE("GATHERMERGEPATH");
2129 
2130  _outPathInfo(str, (const Path *) node);
2131 
2133  WRITE_INT_FIELD(num_workers);
2134 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGatherPath ( StringInfo  str,
const GatherPath node 
)
static

Definition at line 1912 of file outfuncs.c.

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

Referenced by outNode().

1913 {
1914  WRITE_NODE_TYPE("GATHERPATH");
1915 
1916  _outPathInfo(str, (const Path *) node);
1917 
1919  WRITE_BOOL_FIELD(single_copy);
1920  WRITE_INT_FIELD(num_workers);
1921 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGroup ( StringInfo  str,
const Group node 
)
static

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

842 {
843  int i;
844 
845  WRITE_NODE_TYPE("GROUP");
846 
847  _outPlanInfo(str, (const Plan *) node);
848 
849  WRITE_INT_FIELD(numCols);
850 
851  appendStringInfoString(str, " :grpColIdx");
852  for (i = 0; i < node->numCols; i++)
853  appendStringInfo(str, " %d", node->grpColIdx[i]);
854 
855  appendStringInfoString(str, " :grpOperators");
856  for (i = 0; i < node->numCols; i++)
857  appendStringInfo(str, " %u", node->grpOperators[i]);
858 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
int numCols
Definition: plannodes.h:761
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
int i
AttrNumber * grpColIdx
Definition: plannodes.h:762
Oid * grpOperators
Definition: plannodes.h:763
static void _outGroupingFunc ( StringInfo  str,
const GroupingFunc node 
)
static

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

1150 {
1151  WRITE_NODE_TYPE("GROUPINGFUNC");
1152 
1154  WRITE_NODE_FIELD(refs);
1155  WRITE_NODE_FIELD(cols);
1156  WRITE_UINT_FIELD(agglevelsup);
1157  WRITE_LOCATION_FIELD(location);
1158 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGroupingSet ( StringInfo  str,
const GroupingSet node 
)
static

Definition at line 2957 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2958 {
2959  WRITE_NODE_TYPE("GROUPINGSET");
2960 
2962  WRITE_NODE_FIELD(content);
2963  WRITE_LOCATION_FIELD(location);
2964 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
GroupingSetKind
Definition: parsenodes.h:1247
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGroupingSetData ( StringInfo  str,
const GroupingSetData node 
)
static

Definition at line 2006 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2007 {
2008  WRITE_NODE_TYPE("GSDATA");
2009 
2010  WRITE_NODE_FIELD(set);
2011  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2012 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGroupingSetsPath ( StringInfo  str,
const GroupingSetsPath node 
)
static

Definition at line 2015 of file outfuncs.c.

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

Referenced by outNode().

2016 {
2017  WRITE_NODE_TYPE("GROUPINGSETSPATH");
2018 
2019  _outPathInfo(str, (const Path *) node);
2020 
2022  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2023  WRITE_NODE_FIELD(rollups);
2024  WRITE_NODE_FIELD(qual);
2025 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
AggStrategy
Definition: nodes.h:736
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outGroupPath ( StringInfo  str,
const GroupPath node 
)
static

Definition at line 1955 of file outfuncs.c.

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

Referenced by outNode().

1956 {
1957  WRITE_NODE_TYPE("GROUPPATH");
1958 
1959  _outPathInfo(str, (const Path *) node);
1960 
1962  WRITE_NODE_FIELD(groupClause);
1963  WRITE_NODE_FIELD(qual);
1964 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outHash ( StringInfo  str,
const Hash node 
)
static

Definition at line 917 of file outfuncs.c.

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

Referenced by outNode().

918 {
919  WRITE_NODE_TYPE("HASH");
920 
921  _outPlanInfo(str, (const Plan *) node);
922 
923  WRITE_OID_FIELD(skewTable);
924  WRITE_INT_FIELD(skewColumn);
925  WRITE_BOOL_FIELD(skewInherit);
926 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outHashJoin ( StringInfo  str,
const HashJoin node 
)
static

Definition at line 769 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

770 {
771  WRITE_NODE_TYPE("HASHJOIN");
772 
773  _outJoinPlanInfo(str, (const Join *) node);
774 
775  WRITE_NODE_FIELD(hashclauses);
776 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:328
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outHashPath ( StringInfo  str,
const HashPath node 
)
static

Definition at line 2159 of file outfuncs.c.

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

Referenced by outNode().

2160 {
2161  WRITE_NODE_TYPE("HASHPATH");
2162 
2163  _outJoinPathInfo(str, (const JoinPath *) node);
2164 
2165  WRITE_NODE_FIELD(path_hashclauses);
2166  WRITE_INT_FIELD(num_batches);
2167 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1741
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outImportForeignSchemaStmt ( StringInfo  str,
const ImportForeignSchemaStmt node 
)
static

Definition at line 2629 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2630 {
2631  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2632 
2633  WRITE_STRING_FIELD(server_name);
2634  WRITE_STRING_FIELD(remote_schema);
2635  WRITE_STRING_FIELD(local_schema);
2637  WRITE_NODE_FIELD(table_list);
2639 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
ImportForeignSchemaType
Definition: parsenodes.h:2287
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIndexElem ( StringInfo  str,
const IndexElem node 
)
static

Definition at line 2851 of file outfuncs.c.

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

Referenced by outNode().

2852 {
2853  WRITE_NODE_TYPE("INDEXELEM");
2854 
2856  WRITE_NODE_FIELD(expr);
2857  WRITE_STRING_FIELD(indexcolname);
2858  WRITE_NODE_FIELD(collation);
2859  WRITE_NODE_FIELD(opclass);
2860  WRITE_ENUM_FIELD(ordering, SortByDir);
2861  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
2862 }
SortByDir
Definition: parsenodes.h:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
SortByNulls
Definition: parsenodes.h:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIndexOnlyScan ( StringInfo  str,
const IndexOnlyScan node 
)
static

Definition at line 565 of file outfuncs.c.

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

Referenced by outNode().

566 {
567  WRITE_NODE_TYPE("INDEXONLYSCAN");
568 
569  _outScanInfo(str, (const Scan *) node);
570 
571  WRITE_OID_FIELD(indexid);
572  WRITE_NODE_FIELD(indexqual);
573  WRITE_NODE_FIELD(indexorderby);
574  WRITE_NODE_FIELD(indextlist);
575  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
576 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
ScanDirection
Definition: sdir.h:22
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIndexOptInfo ( StringInfo  str,
const IndexOptInfo node 
)
static

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

2298 {
2299  WRITE_NODE_TYPE("INDEXOPTINFO");
2300 
2301  /* NB: this isn't a complete set of fields */
2302  WRITE_OID_FIELD(indexoid);
2303  /* Do NOT print rel field, else infinite recursion */
2304  WRITE_UINT_FIELD(pages);
2305  WRITE_FLOAT_FIELD(tuples, "%.0f");
2306  WRITE_INT_FIELD(tree_height);
2307  WRITE_INT_FIELD(ncolumns);
2308  /* array fields aren't really worth the trouble to print */
2309  WRITE_OID_FIELD(relam);
2310  /* indexprs is redundant since we print indextlist */
2311  WRITE_NODE_FIELD(indpred);
2312  WRITE_NODE_FIELD(indextlist);
2313  WRITE_NODE_FIELD(indrestrictinfo);
2314  WRITE_BOOL_FIELD(predOK);
2315  WRITE_BOOL_FIELD(unique);
2316  WRITE_BOOL_FIELD(immediate);
2317  WRITE_BOOL_FIELD(hypothetical);
2318  /* we don't bother with fields copied from the index AM's API struct */
2319 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIndexPath ( StringInfo  str,
const IndexPath node 
)
static

Definition at line 1761 of file outfuncs.c.

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

Referenced by outNode().

1762 {
1763  WRITE_NODE_TYPE("INDEXPATH");
1764 
1765  _outPathInfo(str, (const Path *) node);
1766 
1767  WRITE_NODE_FIELD(indexinfo);
1768  WRITE_NODE_FIELD(indexclauses);
1769  WRITE_NODE_FIELD(indexquals);
1770  WRITE_NODE_FIELD(indexqualcols);
1771  WRITE_NODE_FIELD(indexorderbys);
1772  WRITE_NODE_FIELD(indexorderbycols);
1773  WRITE_ENUM_FIELD(indexscandir, ScanDirection);
1774  WRITE_FLOAT_FIELD(indextotalcost, "%.2f");
1775  WRITE_FLOAT_FIELD(indexselectivity, "%.4f");
1776 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
ScanDirection
Definition: sdir.h:22
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIndexScan ( StringInfo  str,
const IndexScan node 
)
static

Definition at line 549 of file outfuncs.c.

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

Referenced by outNode().

550 {
551  WRITE_NODE_TYPE("INDEXSCAN");
552 
553  _outScanInfo(str, (const Scan *) node);
554 
555  WRITE_OID_FIELD(indexid);
556  WRITE_NODE_FIELD(indexqual);
557  WRITE_NODE_FIELD(indexqualorig);
558  WRITE_NODE_FIELD(indexorderby);
559  WRITE_NODE_FIELD(indexorderbyorig);
560  WRITE_NODE_FIELD(indexorderbyops);
561  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
562 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
ScanDirection
Definition: sdir.h:22
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIndexStmt ( StringInfo  str,
const IndexStmt node 
)
static

Definition at line 2642 of file outfuncs.c.

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

Referenced by outNode().

2643 {
2644  WRITE_NODE_TYPE("INDEXSTMT");
2645 
2646  WRITE_STRING_FIELD(idxname);
2647  WRITE_NODE_FIELD(relation);
2648  WRITE_STRING_FIELD(accessMethod);
2649  WRITE_STRING_FIELD(tableSpace);
2650  WRITE_NODE_FIELD(indexParams);
2652  WRITE_NODE_FIELD(whereClause);
2653  WRITE_NODE_FIELD(excludeOpNames);
2654  WRITE_STRING_FIELD(idxcomment);
2655  WRITE_OID_FIELD(indexOid);
2656  WRITE_OID_FIELD(oldNode);
2657  WRITE_BOOL_FIELD(unique);
2658  WRITE_BOOL_FIELD(primary);
2659  WRITE_BOOL_FIELD(isconstraint);
2660  WRITE_BOOL_FIELD(deferrable);
2661  WRITE_BOOL_FIELD(initdeferred);
2662  WRITE_BOOL_FIELD(transformed);
2663  WRITE_BOOL_FIELD(concurrent);
2664  WRITE_BOOL_FIELD(if_not_exists);
2665 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outInferenceElem ( StringInfo  str,
const InferenceElem node 
)
static

Definition at line 1629 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1630 {
1631  WRITE_NODE_TYPE("INFERENCEELEM");
1632 
1633  WRITE_NODE_FIELD(expr);
1634  WRITE_OID_FIELD(infercollid);
1635  WRITE_OID_FIELD(inferopclass);
1636 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outIntoClause ( StringInfo  str,
const IntoClause node 
)
static

Definition at line 1062 of file outfuncs.c.

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

Referenced by outNode().

1063 {
1064  WRITE_NODE_TYPE("INTOCLAUSE");
1065 
1066  WRITE_NODE_FIELD(rel);
1067  WRITE_NODE_FIELD(colNames);
1069  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1070  WRITE_STRING_FIELD(tableSpaceName);
1071  WRITE_NODE_FIELD(viewQuery);
1072  WRITE_BOOL_FIELD(skipData);
1073 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outJoin ( StringInfo  str,
const Join node 
)
static

Definition at line 719 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

720 {
721  WRITE_NODE_TYPE("JOIN");
722 
723  _outJoinPlanInfo(str, (const Join *) node);
724 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:328
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outJoinExpr ( StringInfo  str,
const JoinExpr node 
)
static

Definition at line 1661 of file outfuncs.c.

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

Referenced by outNode().

1662 {
1663  WRITE_NODE_TYPE("JOINEXPR");
1664 
1665  WRITE_ENUM_FIELD(jointype, JoinType);
1666  WRITE_BOOL_FIELD(isNatural);
1667  WRITE_NODE_FIELD(larg);
1668  WRITE_NODE_FIELD(rarg);
1669  WRITE_NODE_FIELD(usingClause);
1670  WRITE_NODE_FIELD(quals);
1671  WRITE_NODE_FIELD(alias);
1672  WRITE_INT_FIELD(rtindex);
1673 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
JoinType
Definition: nodes.h:674
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outJoinPathInfo ( StringInfo  str,
const JoinPath node 
)
static

Definition at line 1741 of file outfuncs.c.

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

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

1742 {
1743  _outPathInfo(str, (const Path *) node);
1744 
1745  WRITE_ENUM_FIELD(jointype, JoinType);
1746  WRITE_BOOL_FIELD(inner_unique);
1747  WRITE_NODE_FIELD(outerjoinpath);
1748  WRITE_NODE_FIELD(innerjoinpath);
1749  WRITE_NODE_FIELD(joinrestrictinfo);
1750 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
JoinType
Definition: nodes.h:674
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outJoinPlanInfo ( StringInfo  str,
const Join node 
)
static

Definition at line 328 of file outfuncs.c.

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

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

329 {
330  _outPlanInfo(str, (const Plan *) node);
331 
332  WRITE_ENUM_FIELD(jointype, JoinType);
333  WRITE_BOOL_FIELD(inner_unique);
334  WRITE_NODE_FIELD(joinqual);
335 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
JoinType
Definition: nodes.h:674
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outLimit ( StringInfo  str,
const Limit node 
)
static

Definition at line 966 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

967 {
968  WRITE_NODE_TYPE("LIMIT");
969 
970  _outPlanInfo(str, (const Plan *) node);
971 
972  WRITE_NODE_FIELD(limitOffset);
973  WRITE_NODE_FIELD(limitCount);
974 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outLimitPath ( StringInfo  str,
const LimitPath node 
)
static

Definition at line 2114 of file outfuncs.c.

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

Referenced by outNode().

2115 {
2116  WRITE_NODE_TYPE("LIMITPATH");
2117 
2118  _outPathInfo(str, (const Path *) node);
2119 
2121  WRITE_NODE_FIELD(limitOffset);
2122  WRITE_NODE_FIELD(limitCount);
2123 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outList ( StringInfo  str,
const List node 
)
static

Definition at line 167 of file outfuncs.c.

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

Referenced by outNode().

168 {
169  const ListCell *lc;
170 
171  appendStringInfoChar(str, '(');
172 
173  if (IsA(node, IntList))
174  appendStringInfoChar(str, 'i');
175  else if (IsA(node, OidList))
176  appendStringInfoChar(str, 'o');
177 
178  foreach(lc, node)
179  {
180  /*
181  * For the sake of backward compatibility, we emit a slightly
182  * different whitespace format for lists of nodes vs. other types of
183  * lists. XXX: is this necessary?
184  */
185  if (IsA(node, List))
186  {
187  outNode(str, lfirst(lc));
188  if (lnext(lc))
189  appendStringInfoChar(str, ' ');
190  }
191  else if (IsA(node, IntList))
192  appendStringInfo(str, " %d", lfirst_int(lc));
193  else if (IsA(node, OidList))
194  appendStringInfo(str, " %u", lfirst_oid(lc));
195  else
196  elog(ERROR, "unrecognized list node type: %d",
197  (int) node->type);
198  }
199 
200  appendStringInfoChar(str, ')');
201 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:561
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
#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:169
void outNode(StringInfo str, const void *obj)
Definition: outfuncs.c:3602
#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 2762 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2763 {
2764  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2765 
2766  WRITE_NODE_FIELD(lockedRels);
2768  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2769 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
LockClauseStrength
Definition: lockoptions.h:21
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
LockWaitPolicy
Definition: lockoptions.h:36
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outLockRows ( StringInfo  str,
const LockRows node 
)
static

Definition at line 955 of file outfuncs.c.

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

Referenced by outNode().

956 {
957  WRITE_NODE_TYPE("LOCKROWS");
958 
959  _outPlanInfo(str, (const Plan *) node);
960 
961  WRITE_NODE_FIELD(rowMarks);
962  WRITE_INT_FIELD(epqParam);
963 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outLockRowsPath ( StringInfo  str,
const LockRowsPath node 
)
static

Definition at line 2081 of file outfuncs.c.

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

Referenced by outNode().

2082 {
2083  WRITE_NODE_TYPE("LOCKROWSPATH");
2084 
2085  _outPathInfo(str, (const Path *) node);
2086 
2088  WRITE_NODE_FIELD(rowMarks);
2089  WRITE_INT_FIELD(epqParam);
2090 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMaterial ( StringInfo  str,
const Material node 
)
static

Definition at line 861 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

862 {
863  WRITE_NODE_TYPE("MATERIAL");
864 
865  _outPlanInfo(str, (const Plan *) node);
866 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outMaterialPath ( StringInfo  str,
const MaterialPath node 
)
static

Definition at line 1889 of file outfuncs.c.

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

Referenced by outNode().

1890 {
1891  WRITE_NODE_TYPE("MATERIALPATH");
1892 
1893  _outPathInfo(str, (const Path *) node);
1894 
1896 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMergeAppend ( StringInfo  str,
const MergeAppend node 
)
static

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

406 {
407  int i;
408 
409  WRITE_NODE_TYPE("MERGEAPPEND");
410 
411  _outPlanInfo(str, (const Plan *) node);
412 
413  WRITE_NODE_FIELD(partitioned_rels);
414  WRITE_NODE_FIELD(mergeplans);
415 
416  WRITE_INT_FIELD(numCols);
417 
418  appendStringInfoString(str, " :sortColIdx");
419  for (i = 0; i < node->numCols; i++)
420  appendStringInfo(str, " %d", node->sortColIdx[i]);
421 
422  appendStringInfoString(str, " :sortOperators");
423  for (i = 0; i < node->numCols; i++)
424  appendStringInfo(str, " %u", node->sortOperators[i]);
425 
426  appendStringInfoString(str, " :collations");
427  for (i = 0; i < node->numCols; i++)
428  appendStringInfo(str, " %u", node->collations[i]);
429 
430  appendStringInfoString(str, " :nullsFirst");
431  for (i = 0; i < node->numCols; i++)
432  appendStringInfo(str, " %s", booltostr(node->nullsFirst[i]));
433 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
Oid * collations
Definition: plannodes.h:268
#define booltostr(x)
Definition: outfuncs.c:109
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AttrNumber * sortColIdx
Definition: plannodes.h:266
bool * nullsFirst
Definition: plannodes.h:269
int i
Oid * sortOperators
Definition: plannodes.h:267
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMergeAppendPath ( StringInfo  str,
const MergeAppendPath node 
)
static

Definition at line 1867 of file outfuncs.c.

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

Referenced by outNode().

1868 {
1869  WRITE_NODE_TYPE("MERGEAPPENDPATH");
1870 
1871  _outPathInfo(str, (const Path *) node);
1872 
1873  WRITE_NODE_FIELD(partitioned_rels);
1874  WRITE_NODE_FIELD(subpaths);
1875  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1876 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMergeJoin ( StringInfo  str,
const MergeJoin node 
)
static

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

738 {
739  int numCols;
740  int i;
741 
742  WRITE_NODE_TYPE("MERGEJOIN");
743 
744  _outJoinPlanInfo(str, (const Join *) node);
745 
746  WRITE_BOOL_FIELD(skip_mark_restore);
747  WRITE_NODE_FIELD(mergeclauses);
748 
749  numCols = list_length(node->mergeclauses);
750 
751  appendStringInfoString(str, " :mergeFamilies");
752  for (i = 0; i < numCols; i++)
753  appendStringInfo(str, " %u", node->mergeFamilies[i]);
754 
755  appendStringInfoString(str, " :mergeCollations");
756  for (i = 0; i < numCols; i++)
757  appendStringInfo(str, " %u", node->mergeCollations[i]);
758 
759  appendStringInfoString(str, " :mergeStrategies");
760  for (i = 0; i < numCols; i++)
761  appendStringInfo(str, " %d", node->mergeStrategies[i]);
762 
763  appendStringInfoString(str, " :mergeNullsFirst");
764  for (i = 0; i < numCols; i++)
765  appendStringInfo(str, " %s", booltostr(node->mergeNullsFirst[i]));
766 }
#define booltostr(x)
Definition: outfuncs.c:109
List * mergeclauses
Definition: plannodes.h:711
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:328
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
Oid * mergeFamilies
Definition: plannodes.h:713
Oid * mergeCollations
Definition: plannodes.h:714
bool * mergeNullsFirst
Definition: plannodes.h:716
int * mergeStrategies
Definition: plannodes.h:715
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static int list_length(const List *l)
Definition: pg_list.h:89
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMergePath ( StringInfo  str,
const MergePath node 
)
static

Definition at line 2145 of file outfuncs.c.

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

Referenced by outNode().

2146 {
2147  WRITE_NODE_TYPE("MERGEPATH");
2148 
2149  _outJoinPathInfo(str, (const JoinPath *) node);
2150 
2151  WRITE_NODE_FIELD(path_mergeclauses);
2152  WRITE_NODE_FIELD(outersortkeys);
2153  WRITE_NODE_FIELD(innersortkeys);
2154  WRITE_BOOL_FIELD(skip_mark_restore);
2155  WRITE_BOOL_FIELD(materialize_inner);
2156 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1741
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMinMaxAggInfo ( StringInfo  str,
const MinMaxAggInfo node 
)
static

Definition at line 2541 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2542 {
2543  WRITE_NODE_TYPE("MINMAXAGGINFO");
2544 
2545  WRITE_OID_FIELD(aggfnoid);
2546  WRITE_OID_FIELD(aggsortop);
2547  WRITE_NODE_FIELD(target);
2548  /* We intentionally omit subroot --- too large, not interesting enough */
2549  WRITE_NODE_FIELD(path);
2550  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2551  WRITE_NODE_FIELD(param);
2552 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMinMaxAggPath ( StringInfo  str,
const MinMaxAggPath node 
)
static

Definition at line 2028 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2029 {
2030  WRITE_NODE_TYPE("MINMAXAGGPATH");
2031 
2032  _outPathInfo(str, (const Path *) node);
2033 
2034  WRITE_NODE_FIELD(mmaggregates);
2035  WRITE_NODE_FIELD(quals);
2036 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMinMaxExpr ( StringInfo  str,
const MinMaxExpr node 
)
static

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

1515 {
1516  WRITE_NODE_TYPE("MINMAX");
1517 
1518  WRITE_OID_FIELD(minmaxtype);
1519  WRITE_OID_FIELD(minmaxcollid);
1520  WRITE_OID_FIELD(inputcollid);
1523  WRITE_LOCATION_FIELD(location);
1524 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
MinMaxOp
Definition: primnodes.h:1054
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outModifyTable ( StringInfo  str,
const ModifyTable node 
)
static

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

366 {
367  WRITE_NODE_TYPE("MODIFYTABLE");
368 
369  _outPlanInfo(str, (const Plan *) node);
370 
371  WRITE_ENUM_FIELD(operation, CmdType);
372  WRITE_BOOL_FIELD(canSetTag);
373  WRITE_UINT_FIELD(nominalRelation);
374  WRITE_NODE_FIELD(partitioned_rels);
375  WRITE_NODE_FIELD(resultRelations);
376  WRITE_INT_FIELD(resultRelIndex);
377  WRITE_INT_FIELD(rootResultRelIndex);
378  WRITE_NODE_FIELD(plans);
379  WRITE_NODE_FIELD(withCheckOptionLists);
380  WRITE_NODE_FIELD(returningLists);
381  WRITE_NODE_FIELD(fdwPrivLists);
382  WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
383  WRITE_NODE_FIELD(rowMarks);
384  WRITE_INT_FIELD(epqParam);
385  WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
386  WRITE_NODE_FIELD(arbiterIndexes);
387  WRITE_NODE_FIELD(onConflictSet);
388  WRITE_NODE_FIELD(onConflictWhere);
389  WRITE_UINT_FIELD(exclRelRTI);
390  WRITE_NODE_FIELD(exclRelTlist);
391 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
OnConflictAction
Definition: nodes.h:800
CmdType
Definition: nodes.h:650
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outModifyTablePath ( StringInfo  str,
const ModifyTablePath node 
)
static

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

2094 {
2095  WRITE_NODE_TYPE("MODIFYTABLEPATH");
2096 
2097  _outPathInfo(str, (const Path *) node);
2098 
2099  WRITE_ENUM_FIELD(operation, CmdType);
2100  WRITE_BOOL_FIELD(canSetTag);
2101  WRITE_UINT_FIELD(nominalRelation);
2102  WRITE_NODE_FIELD(partitioned_rels);
2103  WRITE_NODE_FIELD(resultRelations);
2104  WRITE_NODE_FIELD(subpaths);
2105  WRITE_NODE_FIELD(subroots);
2106  WRITE_NODE_FIELD(withCheckOptionLists);
2107  WRITE_NODE_FIELD(returningLists);
2108  WRITE_NODE_FIELD(rowMarks);
2109  WRITE_NODE_FIELD(onconflict);
2110  WRITE_INT_FIELD(epqParam);
2111 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
CmdType
Definition: nodes.h:650
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outMultiAssignRef ( StringInfo  str,
const MultiAssignRef node 
)
static

Definition at line 3326 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3327 {
3328  WRITE_NODE_TYPE("MULTIASSIGNREF");
3329 
3330  WRITE_NODE_FIELD(source);
3331  WRITE_INT_FIELD(colno);
3332  WRITE_INT_FIELD(ncolumns);
3333 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outNamedArgExpr ( StringInfo  str,
const NamedArgExpr node 
)
static

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

1210 {
1211  WRITE_NODE_TYPE("NAMEDARGEXPR");
1212 
1215  WRITE_INT_FIELD(argnumber);
1216  WRITE_LOCATION_FIELD(location);
1217 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outNamedTuplestoreScan ( StringInfo  str,
const NamedTuplestoreScan node 
)
static

Definition at line 664 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

665 {
666  WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
667 
668  _outScanInfo(str, (const Scan *) node);
669 
670  WRITE_STRING_FIELD(enrname);
671 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:317
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
static void _outNestLoop ( StringInfo  str,
const NestLoop node 
)
static

Definition at line 727 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

728 {
729  WRITE_NODE_TYPE("NESTLOOP");
730 
731  _outJoinPlanInfo(str, (const Join *) node);
732 
733  WRITE_NODE_FIELD(nestParams);
734 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:328
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outNestLoopParam ( StringInfo  str,
const NestLoopParam node 
)
static

Definition at line 977 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

978 {
979  WRITE_NODE_TYPE("NESTLOOPPARAM");
980 
981  WRITE_INT_FIELD(paramno);
982  WRITE_NODE_FIELD(paramval);
983 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outNestPath ( StringInfo  str,
const NestPath node 
)
static

Definition at line 2137 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2138 {
2139  WRITE_NODE_TYPE("NESTPATH");
2140 
2141  _outJoinPathInfo(str, (const JoinPath *) node);
2142 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1741
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outNextValueExpr ( StringInfo  str,
const NextValueExpr node 
)
static

Definition at line 1620 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1621 {
1622  WRITE_NODE_TYPE("NEXTVALUEEXPR");
1623 
1624  WRITE_OID_FIELD(seqid);
1625  WRITE_OID_FIELD(typeId);
1626 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outNotifyStmt ( StringInfo  str,
const NotifyStmt node 
)
static

Definition at line 2680 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2681 {
2682  WRITE_NODE_TYPE("NOTIFY");
2683 
2684  WRITE_STRING_FIELD(conditionname);
2685  WRITE_STRING_FIELD(payload);
2686 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
static void _outNullIfExpr ( StringInfo  str,
const NullIfExpr node 
)
static

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

1251 {
1252  WRITE_NODE_TYPE("NULLIFEXPR");
1253 
1254  WRITE_OID_FIELD(opno);
1255  WRITE_OID_FIELD(opfuncid);
1256  WRITE_OID_FIELD(opresulttype);
1257  WRITE_BOOL_FIELD(opretset);
1258  WRITE_OID_FIELD(opcollid);
1259  WRITE_OID_FIELD(inputcollid);
1261  WRITE_LOCATION_FIELD(location);
1262 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outNullTest ( StringInfo  str,
const NullTest node 
)
static

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

1555 {
1556  WRITE_NODE_TYPE("NULLTEST");
1557 
1559  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1560  WRITE_BOOL_FIELD(argisrow);
1561  WRITE_LOCATION_FIELD(location);
1562 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
NullTestType
Definition: primnodes.h:1172
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outOnConflictExpr ( StringInfo  str,
const OnConflictExpr node 
)
static

Definition at line 1685 of file outfuncs.c.

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

Referenced by outNode().

1686 {
1687  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1688 
1690  WRITE_NODE_FIELD(arbiterElems);
1691  WRITE_NODE_FIELD(arbiterWhere);
1692  WRITE_OID_FIELD(constraint);
1693  WRITE_NODE_FIELD(onConflictSet);
1694  WRITE_NODE_FIELD(onConflictWhere);
1695  WRITE_INT_FIELD(exclRelIndex);
1696  WRITE_NODE_FIELD(exclRelTlist);
1697 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
OnConflictAction
Definition: nodes.h:800
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outOpExpr ( StringInfo  str,
const OpExpr node 
)
static

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

1221 {
1222  WRITE_NODE_TYPE("OPEXPR");
1223 
1224  WRITE_OID_FIELD(opno);
1225  WRITE_OID_FIELD(opfuncid);
1226  WRITE_OID_FIELD(opresulttype);
1227  WRITE_BOOL_FIELD(opretset);
1228  WRITE_OID_FIELD(opcollid);
1229  WRITE_OID_FIELD(inputcollid);
1231  WRITE_LOCATION_FIELD(location);
1232 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outParam ( StringInfo  str,
const Param node 
)
static

Definition at line 1112 of file outfuncs.c.

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

Referenced by outNode().

1113 {
1114  WRITE_NODE_TYPE("PARAM");
1115 
1116  WRITE_ENUM_FIELD(paramkind, ParamKind);
1117  WRITE_INT_FIELD(paramid);
1118  WRITE_OID_FIELD(paramtype);
1119  WRITE_INT_FIELD(paramtypmod);
1120  WRITE_OID_FIELD(paramcollid);
1121  WRITE_LOCATION_FIELD(location);
1122 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
ParamKind
Definition: primnodes.h:233
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outParamPathInfo ( StringInfo  str,
const ParamPathInfo node 
)
static

Definition at line 2435 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2436 {
2437  WRITE_NODE_TYPE("PARAMPATHINFO");
2438 
2439  WRITE_BITMAPSET_FIELD(ppi_req_outer);
2440  WRITE_FLOAT_FIELD(ppi_rows, "%.0f");
2441  WRITE_NODE_FIELD(ppi_clauses);
2442 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outParamRef ( StringInfo  str,
const ParamRef node 
)
static

Definition at line 3262 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3263 {
3264  WRITE_NODE_TYPE("PARAMREF");
3265 
3266  WRITE_INT_FIELD(number);
3267  WRITE_LOCATION_FIELD(location);
3268 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPartitionBoundSpec ( StringInfo  str,
const PartitionBoundSpec node 
)
static

Definition at line 3575 of file outfuncs.c.

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

Referenced by outNode().

3576 {
3577  WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
3578 
3579  WRITE_CHAR_FIELD(strategy);
3580  WRITE_BOOL_FIELD(is_default);
3581  WRITE_NODE_FIELD(listdatums);
3582  WRITE_NODE_FIELD(lowerdatums);
3583  WRITE_NODE_FIELD(upperdatums);
3584  WRITE_LOCATION_FIELD(location);
3585 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPartitionedChildRelInfo ( StringInfo  str,
const PartitionedChildRelInfo node 
)
static

Definition at line 2519 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2520 {
2521  WRITE_NODE_TYPE("PARTITIONEDCHILDRELINFO");
2522 
2523  WRITE_UINT_FIELD(parent_relid);
2524  WRITE_NODE_FIELD(child_rels);
2525 }
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPartitionElem ( StringInfo  str,
const PartitionElem node 
)
static

Definition at line 3553 of file outfuncs.c.

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

Referenced by outNode().

3554 {
3555  WRITE_NODE_TYPE("PARTITIONELEM");
3556 
3558  WRITE_NODE_FIELD(expr);
3559  WRITE_NODE_FIELD(collation);
3560  WRITE_NODE_FIELD(opclass);
3561  WRITE_LOCATION_FIELD(location);
3562 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPartitionRangeDatum ( StringInfo  str,
const PartitionRangeDatum node 
)
static

Definition at line 3588 of file outfuncs.c.

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

Referenced by outNode().

3589 {
3590  WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
3591 
3594  WRITE_LOCATION_FIELD(location);
3595 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
PartitionRangeDatumKind
Definition: parsenodes.h:817
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
static struct @121 value
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPartitionSpec ( StringInfo  str,
const PartitionSpec node 
)
static

Definition at line 3565 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3566 {
3567  WRITE_NODE_TYPE("PARTITIONSPEC");
3568 
3569  WRITE_STRING_FIELD(strategy);
3570  WRITE_NODE_FIELD(partParams);
3571  WRITE_LOCATION_FIELD(location);
3572 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPath ( StringInfo  str,
const Path node 
)
static

Definition at line 1753 of file outfuncs.c.

References _outPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

1754 {
1755  WRITE_NODE_TYPE("PATH");
1756 
1757  _outPathInfo(str, (const Path *) node);
1758 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1716
static void _outPathInfo ( StringInfo  str,
const Path node 
)
static

Definition at line 1716 of file outfuncs.c.

References appendStringInfoString(), 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().

1717 {
1718  WRITE_ENUM_FIELD(pathtype, NodeTag);
1719  appendStringInfoString(str, " :parent_relids ");
1720  outBitmapset(str, node->parent->relids);
1721  if (node->pathtarget != node->parent->reltarget)
1722  WRITE_NODE_FIELD(pathtarget);
1723  appendStringInfoString(str, " :required_outer ");
1724  if (node->param_info)
1725  outBitmapset(str, node->param_info->ppi_req_outer);
1726  else
1727  outBitmapset(str, NULL);
1728  WRITE_BOOL_FIELD(parallel_aware);
1729  WRITE_BOOL_FIELD(parallel_safe);
1730  WRITE_INT_FIELD(parallel_workers);
1731  WRITE_FLOAT_FIELD(rows, "%.0f");
1732  WRITE_FLOAT_FIELD(startup_cost, "%.2f");
1733  WRITE_FLOAT_FIELD(total_cost, "%.2f");
1734  WRITE_NODE_FIELD(pathkeys);
1735 }
PathTarget * pathtarget
Definition: relation.h:1043
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
ParamPathInfo * param_info
Definition: relation.h:1045
NodeTag
Definition: nodes.h:26
RelOptInfo * parent
Definition: relation.h:1042
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
Relids relids
Definition: relation.h:585
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
void outBitmapset(StringInfo str, const Bitmapset *bms)
Definition: outfuncs.c:210
Relids ppi_req_outer
Definition: relation.h:1001
struct PathTarget * reltarget
Definition: relation.h:596
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPathKey ( StringInfo  str,
const PathKey node 
)
static

Definition at line 2405 of file outfuncs.c.

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

Referenced by outNode().

2406 {
2407  WRITE_NODE_TYPE("PATHKEY");
2408 
2409  WRITE_NODE_FIELD(pk_eclass);
2410  WRITE_OID_FIELD(pk_opfamily);
2411  WRITE_INT_FIELD(pk_strategy);
2412  WRITE_BOOL_FIELD(pk_nulls_first);
2413 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPathTarget ( StringInfo  str,
const PathTarget node 
)
static

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

2417 {
2418  WRITE_NODE_TYPE("PATHTARGET");
2419 
2420  WRITE_NODE_FIELD(exprs);
2421  if (node->sortgrouprefs)
2422  {
2423  int i;
2424 
2425  appendStringInfoString(str, " :sortgrouprefs");
2426  for (i = 0; i < list_length(node->exprs); i++)
2427  appendStringInfo(str, " %u", node->sortgrouprefs[i]);
2428  }
2429  WRITE_FLOAT_FIELD(cost.startup, "%.2f");
2430  WRITE_FLOAT_FIELD(cost.per_tuple, "%.2f");
2431  WRITE_INT_FIELD(width);
2432 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
Index * sortgrouprefs
Definition: relation.h:973
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
List * exprs
Definition: relation.h:972
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static int list_length(const List *l)
Definition: pg_list.h:89
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPlaceHolderInfo ( StringInfo  str,
const PlaceHolderInfo node 
)
static

Definition at line 2528 of file outfuncs.c.

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

Referenced by outNode().

2529 {
2530  WRITE_NODE_TYPE("PLACEHOLDERINFO");
2531 
2532  WRITE_UINT_FIELD(phid);
2533  WRITE_NODE_FIELD(ph_var);
2534  WRITE_BITMAPSET_FIELD(ph_eval_at);
2535  WRITE_BITMAPSET_FIELD(ph_lateral);
2536  WRITE_BITMAPSET_FIELD(ph_needed);
2537  WRITE_INT_FIELD(ph_width);
2538 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPlaceHolderVar ( StringInfo  str,
const PlaceHolderVar node 
)
static

Definition at line 2477 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2478 {
2479  WRITE_NODE_TYPE("PLACEHOLDERVAR");
2480 
2481  WRITE_NODE_FIELD(phexpr);
2482  WRITE_BITMAPSET_FIELD(phrels);
2483  WRITE_UINT_FIELD(phid);
2484  WRITE_UINT_FIELD(phlevelsup);
2485 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPlan ( StringInfo  str,
const Plan node 
)
static

Definition at line 339 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

340 {
341  WRITE_NODE_TYPE("PLAN");
342 
343  _outPlanInfo(str, (const Plan *) node);
344 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPlanInfo ( StringInfo  str,
const Plan node 
)
static

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

296 {
297  WRITE_FLOAT_FIELD(startup_cost, "%.2f");
298  WRITE_FLOAT_FIELD(total_cost, "%.2f");
299  WRITE_FLOAT_FIELD(plan_rows, "%.0f");
300  WRITE_INT_FIELD(plan_width);
301  WRITE_BOOL_FIELD(parallel_aware);
302  WRITE_BOOL_FIELD(parallel_safe);
303  WRITE_INT_FIELD(plan_node_id);
304  WRITE_NODE_FIELD(targetlist);
305  WRITE_NODE_FIELD(qual);
306  WRITE_NODE_FIELD(lefttree);
307  WRITE_NODE_FIELD(righttree);
308  WRITE_NODE_FIELD(initPlan);
309  WRITE_BITMAPSET_FIELD(extParam);
310  WRITE_BITMAPSET_FIELD(allParam);
311 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPlanInvalItem ( StringInfo  str,
const PlanInvalItem node 
)
static

Definition at line 1001 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

1002 {
1003  WRITE_NODE_TYPE("PLANINVALITEM");
1004 
1005  WRITE_INT_FIELD(cacheId);
1006  WRITE_UINT_FIELD(hashValue);
1007 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPlannedStmt ( StringInfo  str,
const PlannedStmt node 
)
static

Definition at line 263 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_UINT64_FIELD.

Referenced by outNode().

264 {
265  WRITE_NODE_TYPE("PLANNEDSTMT");
266 
267  WRITE_ENUM_FIELD(commandType, CmdType);
268  WRITE_UINT64_FIELD(queryId);
269  WRITE_BOOL_FIELD(hasReturning);
270  WRITE_BOOL_FIELD(hasModifyingCTE);
271  WRITE_BOOL_FIELD(canSetTag);
272  WRITE_BOOL_FIELD(transientPlan);
273  WRITE_BOOL_FIELD(dependsOnRole);
274  WRITE_BOOL_FIELD(parallelModeNeeded);
275  WRITE_NODE_FIELD(planTree);
276  WRITE_NODE_FIELD(rtable);
277  WRITE_NODE_FIELD(resultRelations);
278  WRITE_NODE_FIELD(nonleafResultRelations);
279  WRITE_NODE_FIELD(rootResultRelations);
280  WRITE_NODE_FIELD(subplans);
281  WRITE_BITMAPSET_FIELD(rewindPlanIDs);
282  WRITE_NODE_FIELD(rowMarks);
283  WRITE_NODE_FIELD(relationOids);
284  WRITE_NODE_FIELD(invalItems);
285  WRITE_INT_FIELD(nParamExec);
286  WRITE_NODE_FIELD(utilityStmt);
287  WRITE_LOCATION_FIELD(stmt_location);
288  WRITE_LOCATION_FIELD(stmt_len);
289 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:58
CmdType
Definition: nodes.h:650
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99
static void _outPlannerGlobal ( StringInfo  str,
const PlannerGlobal node