PostgreSQL Source Code  git master
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 _outPartitionPruneStepOp (StringInfo str, const PartitionPruneStepOp *node)
 
static void _outPartitionPruneStepCombine (StringInfo str, const PartitionPruneStepCombine *node)
 
static void _outOnConflictExpr (StringInfo str, const OnConflictExpr *node)
 
static void _outPartitionPruneInfo (StringInfo str, const PartitionPruneInfo *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 _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

◆ booltostr

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

Definition at line 109 of file outfuncs.c.

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

◆ WRITE_BITMAPSET_FIELD

◆ WRITE_BOOL_FIELD

#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:223

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(), _outWindowAgg(), _outWindowClause(), _outWindowFunc(), _outWithCheckOption(), and _outWithClause().

◆ WRITE_CHAR_FIELD

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

Definition at line 71 of file outfuncs.c.

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

◆ WRITE_ENUM_FIELD

◆ WRITE_FLOAT_FIELD

◆ WRITE_INT_FIELD

#define WRITE_INT_FIELD (   fldname)    appendStringInfo(str, " :" CppAsString(fldname) " %d", node->fldname)

◆ WRITE_LOCATION_FIELD

◆ WRITE_LONG_FIELD

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

◆ WRITE_NODE_FIELD

#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
#define CppAsString(identifier)
Definition: c.h:223

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(), _outPartitionElem(), _outPartitionPruneInfo(), _outPartitionPruneStepCombine(), _outPartitionPruneStepOp(), _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().

◆ WRITE_NODE_TYPE

#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(), _outPartitionElem(), _outPartitionPruneInfo(), _outPartitionPruneStepCombine(), _outPartitionPruneStepOp(), _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().

◆ WRITE_OID_FIELD

◆ WRITE_STRING_FIELD

◆ WRITE_UINT64_FIELD

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

Definition at line 58 of file outfuncs.c.

Referenced by _outPlannedStmt().

◆ WRITE_UINT_FIELD

Function Documentation

◆ _outA_ArrayExpr()

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

Definition at line 3367 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3368 {
3369  WRITE_NODE_TYPE("A_ARRAYEXPR");
3370 
3371  WRITE_NODE_FIELD(elements);
3372  WRITE_LOCATION_FIELD(location);
3373 }
#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

◆ _outA_Indices()

static void _outA_Indices ( StringInfo  str,
const A_Indices node 
)
static

Definition at line 3348 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3349 {
3350  WRITE_NODE_TYPE("A_INDICES");
3351 
3352  WRITE_BOOL_FIELD(is_slice);
3353  WRITE_NODE_FIELD(lidx);
3354  WRITE_NODE_FIELD(uidx);
3355 }
#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

◆ _outA_Indirection()

static void _outA_Indirection ( StringInfo  str,
const A_Indirection node 
)
static

Definition at line 3358 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3359 {
3360  WRITE_NODE_TYPE("A_INDIRECTION");
3361 
3363  WRITE_NODE_FIELD(indirection);
3364 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outA_Star()

static void _outA_Star ( StringInfo  str,
const A_Star node 
)
static

Definition at line 3342 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3343 {
3344  WRITE_NODE_TYPE("A_STAR");
3345 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outAConst()

static void _outAConst ( StringInfo  str,
const A_Const node 
)
static

Definition at line 3332 of file outfuncs.c.

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

Referenced by outNode().

3333 {
3334  WRITE_NODE_TYPE("A_CONST");
3335 
3336  appendStringInfoString(str, " :val ");
3337  _outValue(str, &(node->val));
3338  WRITE_LOCATION_FIELD(location);
3339 }
static void _outValue(StringInfo str, const Value *value)
Definition: outfuncs.c:3273
#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:289

◆ _outAExpr()

static void _outAExpr ( StringInfo  str,
const A_Expr node 
)
static

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

3192 {
3193  WRITE_NODE_TYPE("AEXPR");
3194 
3195  switch (node->kind)
3196  {
3197  case AEXPR_OP:
3198  appendStringInfoChar(str, ' ');
3200  break;
3201  case AEXPR_OP_ANY:
3202  appendStringInfoChar(str, ' ');
3204  appendStringInfoString(str, " ANY ");
3205  break;
3206  case AEXPR_OP_ALL:
3207  appendStringInfoChar(str, ' ');
3209  appendStringInfoString(str, " ALL ");
3210  break;
3211  case AEXPR_DISTINCT:
3212  appendStringInfoString(str, " DISTINCT ");
3214  break;
3215  case AEXPR_NOT_DISTINCT:
3216  appendStringInfoString(str, " NOT_DISTINCT ");
3218  break;
3219  case AEXPR_NULLIF:
3220  appendStringInfoString(str, " NULLIF ");
3222  break;
3223  case AEXPR_OF:
3224  appendStringInfoString(str, " OF ");
3226  break;
3227  case AEXPR_IN:
3228  appendStringInfoString(str, " IN ");
3230  break;
3231  case AEXPR_LIKE:
3232  appendStringInfoString(str, " LIKE ");
3234  break;
3235  case AEXPR_ILIKE:
3236  appendStringInfoString(str, " ILIKE ");
3238  break;
3239  case AEXPR_SIMILAR:
3240  appendStringInfoString(str, " SIMILAR ");
3242  break;
3243  case AEXPR_BETWEEN:
3244  appendStringInfoString(str, " BETWEEN ");
3246  break;
3247  case AEXPR_NOT_BETWEEN:
3248  appendStringInfoString(str, " NOT_BETWEEN ");
3250  break;
3251  case AEXPR_BETWEEN_SYM:
3252  appendStringInfoString(str, " BETWEEN_SYM ");
3254  break;
3255  case AEXPR_NOT_BETWEEN_SYM:
3256  appendStringInfoString(str, " NOT_BETWEEN_SYM ");
3258  break;
3259  case AEXPR_PAREN:
3260  appendStringInfoString(str, " PAREN");
3261  break;
3262  default:
3263  appendStringInfoString(str, " ??");
3264  break;
3265  }
3266 
3267  WRITE_NODE_FIELD(lexpr);
3268  WRITE_NODE_FIELD(rexpr);
3269  WRITE_LOCATION_FIELD(location);
3270 }
A_Expr_Kind kind
Definition: parsenodes.h:276
#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

◆ _outAgg()

static void _outAgg ( StringInfo  str,
const Agg node 
)
static

Definition at line 786 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), i, WRITE_BITMAPSET_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LONG_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

787 {
788  int i;
789 
790  WRITE_NODE_TYPE("AGG");
791 
792  _outPlanInfo(str, (const Plan *) node);
793 
794  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
795  WRITE_ENUM_FIELD(aggsplit, AggSplit);
796  WRITE_INT_FIELD(numCols);
797 
798  appendStringInfoString(str, " :grpColIdx");
799  for (i = 0; i < node->numCols; i++)
800  appendStringInfo(str, " %d", node->grpColIdx[i]);
801 
802  appendStringInfoString(str, " :grpOperators");
803  for (i = 0; i < node->numCols; i++)
804  appendStringInfo(str, " %u", node->grpOperators[i]);
805 
806  WRITE_LONG_FIELD(numGroups);
807  WRITE_BITMAPSET_FIELD(aggParams);
808  WRITE_NODE_FIELD(groupingSets);
809  WRITE_NODE_FIELD(chain);
810 }
int numCols
Definition: plannodes.h:799
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
AttrNumber * grpColIdx
Definition: plannodes.h:800
#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:296
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:765
AggStrategy
Definition: nodes.h:743
Oid * grpOperators
Definition: plannodes.h:801
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAggPath()

static void _outAggPath ( StringInfo  str,
const AggPath node 
)
static

Definition at line 2037 of file outfuncs.c.

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

Referenced by outNode().

2038 {
2039  WRITE_NODE_TYPE("AGGPATH");
2040 
2041  _outPathInfo(str, (const Path *) node);
2042 
2044  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2045  WRITE_ENUM_FIELD(aggsplit, AggSplit);
2046  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2047  WRITE_NODE_FIELD(groupClause);
2048  WRITE_NODE_FIELD(qual);
2049 }
#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:765
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
AggStrategy
Definition: nodes.h:743
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAggref()

static void _outAggref ( StringInfo  str,
const Aggref node 
)
static

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

1139 {
1140  WRITE_NODE_TYPE("AGGREF");
1141 
1142  WRITE_OID_FIELD(aggfnoid);
1143  WRITE_OID_FIELD(aggtype);
1144  WRITE_OID_FIELD(aggcollid);
1145  WRITE_OID_FIELD(inputcollid);
1146  WRITE_OID_FIELD(aggtranstype);
1147  WRITE_NODE_FIELD(aggargtypes);
1148  WRITE_NODE_FIELD(aggdirectargs);
1150  WRITE_NODE_FIELD(aggorder);
1151  WRITE_NODE_FIELD(aggdistinct);
1152  WRITE_NODE_FIELD(aggfilter);
1153  WRITE_BOOL_FIELD(aggstar);
1154  WRITE_BOOL_FIELD(aggvariadic);
1155  WRITE_CHAR_FIELD(aggkind);
1156  WRITE_UINT_FIELD(agglevelsup);
1157  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1158  WRITE_LOCATION_FIELD(location);
1159 }
#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:765
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAlias()

static void _outAlias ( StringInfo  str,
const Alias node 
)
static

Definition at line 1029 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1030 {
1031  WRITE_NODE_TYPE("ALIAS");
1032 
1033  WRITE_STRING_FIELD(aliasname);
1034  WRITE_NODE_FIELD(colnames);
1035 }
#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

◆ _outAlternativeSubPlan()

static void _outAlternativeSubPlan ( StringInfo  str,
const AlternativeSubPlan node 
)
static

Definition at line 1354 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1355 {
1356  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1357 
1358  WRITE_NODE_FIELD(subplans);
1359 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAppend()

static void _outAppend ( StringInfo  str,
const Append node 
)
static

Definition at line 396 of file outfuncs.c.

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

Referenced by outNode().

397 {
398  WRITE_NODE_TYPE("APPEND");
399 
400  _outPlanInfo(str, (const Plan *) node);
401 
402  WRITE_NODE_FIELD(partitioned_rels);
403  WRITE_NODE_FIELD(appendplans);
404  WRITE_INT_FIELD(first_partial_plan);
405  WRITE_NODE_FIELD(part_prune_infos);
406 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAppendPath()

static void _outAppendPath ( StringInfo  str,
const AppendPath node 
)
static

Definition at line 1915 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1916 {
1917  WRITE_NODE_TYPE("APPENDPATH");
1918 
1919  _outPathInfo(str, (const Path *) node);
1920 
1921  WRITE_NODE_FIELD(partitioned_rels);
1922  WRITE_NODE_FIELD(subpaths);
1923 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAppendRelInfo()

static void _outAppendRelInfo ( StringInfo  str,
const AppendRelInfo node 
)
static

Definition at line 2567 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2568 {
2569  WRITE_NODE_TYPE("APPENDRELINFO");
2570 
2571  WRITE_UINT_FIELD(parent_relid);
2572  WRITE_UINT_FIELD(child_relid);
2573  WRITE_OID_FIELD(parent_reltype);
2574  WRITE_OID_FIELD(child_reltype);
2575  WRITE_NODE_FIELD(translated_vars);
2576  WRITE_OID_FIELD(parent_reloid);
2577 }
#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

◆ _outArrayCoerceExpr()

static void _outArrayCoerceExpr ( StringInfo  str,
const ArrayCoerceExpr node 
)
static

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

1411 {
1412  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1413 
1415  WRITE_NODE_FIELD(elemexpr);
1416  WRITE_OID_FIELD(resulttype);
1417  WRITE_INT_FIELD(resulttypmod);
1418  WRITE_OID_FIELD(resultcollid);
1419  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1420  WRITE_LOCATION_FIELD(location);
1421 }
#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:437
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outArrayExpr()

static void _outArrayExpr ( StringInfo  str,
const ArrayExpr node 
)
static

Definition at line 1478 of file outfuncs.c.

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

Referenced by outNode().

1479 {
1480  WRITE_NODE_TYPE("ARRAY");
1481 
1482  WRITE_OID_FIELD(array_typeid);
1483  WRITE_OID_FIELD(array_collid);
1484  WRITE_OID_FIELD(element_typeid);
1485  WRITE_NODE_FIELD(elements);
1486  WRITE_BOOL_FIELD(multidims);
1487  WRITE_LOCATION_FIELD(location);
1488 }
#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

◆ _outArrayRef()

static void _outArrayRef ( StringInfo  str,
const ArrayRef node 
)
static

Definition at line 1191 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1192 {
1193  WRITE_NODE_TYPE("ARRAYREF");
1194 
1195  WRITE_OID_FIELD(refarraytype);
1196  WRITE_OID_FIELD(refelemtype);
1197  WRITE_INT_FIELD(reftypmod);
1198  WRITE_OID_FIELD(refcollid);
1199  WRITE_NODE_FIELD(refupperindexpr);
1200  WRITE_NODE_FIELD(reflowerindexpr);
1201  WRITE_NODE_FIELD(refexpr);
1202  WRITE_NODE_FIELD(refassgnexpr);
1203 }
#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

◆ _outBitmapAnd()

static void _outBitmapAnd ( StringInfo  str,
const BitmapAnd node 
)
static

Definition at line 463 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

464 {
465  WRITE_NODE_TYPE("BITMAPAND");
466 
467  _outPlanInfo(str, (const Plan *) node);
468 
469  WRITE_NODE_FIELD(bitmapplans);
470 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapAndPath()

static void _outBitmapAndPath ( StringInfo  str,
const BitmapAndPath node 
)
static

Definition at line 1848 of file outfuncs.c.

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

Referenced by outNode().

1849 {
1850  WRITE_NODE_TYPE("BITMAPANDPATH");
1851 
1852  _outPathInfo(str, (const Path *) node);
1853 
1854  WRITE_NODE_FIELD(bitmapquals);
1855  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1856 }
#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:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapHeapPath()

static void _outBitmapHeapPath ( StringInfo  str,
const BitmapHeapPath node 
)
static

Definition at line 1838 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1839 {
1840  WRITE_NODE_TYPE("BITMAPHEAPPATH");
1841 
1842  _outPathInfo(str, (const Path *) node);
1843 
1844  WRITE_NODE_FIELD(bitmapqual);
1845 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapHeapScan()

static void _outBitmapHeapScan ( StringInfo  str,
const BitmapHeapScan node 
)
static

Definition at line 599 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

600 {
601  WRITE_NODE_TYPE("BITMAPHEAPSCAN");
602 
603  _outScanInfo(str, (const Scan *) node);
604 
605  WRITE_NODE_FIELD(bitmapqualorig);
606 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapIndexScan()

static void _outBitmapIndexScan ( StringInfo  str,
const BitmapIndexScan node 
)
static

Definition at line 586 of file outfuncs.c.

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

Referenced by outNode().

587 {
588  WRITE_NODE_TYPE("BITMAPINDEXSCAN");
589 
590  _outScanInfo(str, (const Scan *) node);
591 
592  WRITE_OID_FIELD(indexid);
593  WRITE_BOOL_FIELD(isshared);
594  WRITE_NODE_FIELD(indexqual);
595  WRITE_NODE_FIELD(indexqualorig);
596 }
#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:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapOr()

static void _outBitmapOr ( StringInfo  str,
const BitmapOr node 
)
static

Definition at line 473 of file outfuncs.c.

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

Referenced by outNode().

474 {
475  WRITE_NODE_TYPE("BITMAPOR");
476 
477  _outPlanInfo(str, (const Plan *) node);
478 
479  WRITE_BOOL_FIELD(isshared);
480  WRITE_NODE_FIELD(bitmapplans);
481 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#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

◆ _outBitmapOrPath()

static void _outBitmapOrPath ( StringInfo  str,
const BitmapOrPath node 
)
static

Definition at line 1859 of file outfuncs.c.

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

Referenced by outNode().

1860 {
1861  WRITE_NODE_TYPE("BITMAPORPATH");
1862 
1863  _outPathInfo(str, (const Path *) node);
1864 
1865  WRITE_NODE_FIELD(bitmapquals);
1866  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1867 }
#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:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBooleanTest()

static void _outBooleanTest ( StringInfo  str,
const BooleanTest node 
)
static

Definition at line 1578 of file outfuncs.c.

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

Referenced by outNode().

1579 {
1580  WRITE_NODE_TYPE("BOOLEANTEST");
1581 
1583  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1584  WRITE_LOCATION_FIELD(location);
1585 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
BoolTestType
Definition: primnodes.h:1203
#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

◆ _outBoolExpr()

static void _outBoolExpr ( StringInfo  str,
const BoolExpr node 
)
static

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

1292 {
1293  char *opstr = NULL;
1294 
1295  WRITE_NODE_TYPE("BOOLEXPR");
1296 
1297  /* do-it-yourself enum representation */
1298  switch (node->boolop)
1299  {
1300  case AND_EXPR:
1301  opstr = "and";
1302  break;
1303  case OR_EXPR:
1304  opstr = "or";
1305  break;
1306  case NOT_EXPR:
1307  opstr = "not";
1308  break;
1309  }
1310  appendStringInfoString(str, " :boolop ");
1311  outToken(str, opstr);
1312 
1314  WRITE_LOCATION_FIELD(location);
1315 }
#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:563
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

◆ _outCaseExpr()

static void _outCaseExpr ( StringInfo  str,
const CaseExpr node 
)
static

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

1446 {
1447  WRITE_NODE_TYPE("CASE");
1448 
1449  WRITE_OID_FIELD(casetype);
1450  WRITE_OID_FIELD(casecollid);
1453  WRITE_NODE_FIELD(defresult);
1454  WRITE_LOCATION_FIELD(location);
1455 }
#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

◆ _outCaseTestExpr()

static void _outCaseTestExpr ( StringInfo  str,
const CaseTestExpr node 
)
static

Definition at line 1468 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1469 {
1470  WRITE_NODE_TYPE("CASETESTEXPR");
1471 
1472  WRITE_OID_FIELD(typeId);
1473  WRITE_INT_FIELD(typeMod);
1474  WRITE_OID_FIELD(collation);
1475 }
#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

◆ _outCaseWhen()

static void _outCaseWhen ( StringInfo  str,
const CaseWhen node 
)
static

Definition at line 1458 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1459 {
1460  WRITE_NODE_TYPE("WHEN");
1461 
1462  WRITE_NODE_FIELD(expr);
1463  WRITE_NODE_FIELD(result);
1464  WRITE_LOCATION_FIELD(location);
1465 }
#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

◆ _outCoalesceExpr()

static void _outCoalesceExpr ( StringInfo  str,
const CoalesceExpr node 
)
static

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

1517 {
1518  WRITE_NODE_TYPE("COALESCE");
1519 
1520  WRITE_OID_FIELD(coalescetype);
1521  WRITE_OID_FIELD(coalescecollid);
1523  WRITE_LOCATION_FIELD(location);
1524 }
#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

◆ _outCoerceToDomain()

static void _outCoerceToDomain ( StringInfo  str,
const CoerceToDomain node 
)
static

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

1589 {
1590  WRITE_NODE_TYPE("COERCETODOMAIN");
1591 
1593  WRITE_OID_FIELD(resulttype);
1594  WRITE_INT_FIELD(resulttypmod);
1595  WRITE_OID_FIELD(resultcollid);
1596  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1597  WRITE_LOCATION_FIELD(location);
1598 }
#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:437
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCoerceToDomainValue()

static void _outCoerceToDomainValue ( StringInfo  str,
const CoerceToDomainValue node 
)
static

Definition at line 1601 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1602 {
1603  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1604 
1605  WRITE_OID_FIELD(typeId);
1606  WRITE_INT_FIELD(typeMod);
1607  WRITE_OID_FIELD(collation);
1608  WRITE_LOCATION_FIELD(location);
1609 }
#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

◆ _outCoerceViaIO()

static void _outCoerceViaIO ( StringInfo  str,
const CoerceViaIO node 
)
static

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

1399 {
1400  WRITE_NODE_TYPE("COERCEVIAIO");
1401 
1403  WRITE_OID_FIELD(resulttype);
1404  WRITE_OID_FIELD(resultcollid);
1405  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1406  WRITE_LOCATION_FIELD(location);
1407 }
#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:437
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCollateClause()

static void _outCollateClause ( StringInfo  str,
const CollateClause node 
)
static

Definition at line 2897 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2898 {
2899  WRITE_NODE_TYPE("COLLATECLAUSE");
2900 
2902  WRITE_NODE_FIELD(collname);
2903  WRITE_LOCATION_FIELD(location);
2904 }
#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

◆ _outCollateExpr()

static void _outCollateExpr ( StringInfo  str,
const CollateExpr node 
)
static

Definition at line 1435 of file outfuncs.c.

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

Referenced by outNode().

1436 {
1437  WRITE_NODE_TYPE("COLLATE");
1438 
1440  WRITE_OID_FIELD(collOid);
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

◆ _outColumnDef()

static void _outColumnDef ( StringInfo  str,
const ColumnDef node 
)
static

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

2849 {
2850  WRITE_NODE_TYPE("COLUMNDEF");
2851 
2852  WRITE_STRING_FIELD(colname);
2853  WRITE_NODE_FIELD(typeName);
2854  WRITE_INT_FIELD(inhcount);
2855  WRITE_BOOL_FIELD(is_local);
2856  WRITE_BOOL_FIELD(is_not_null);
2857  WRITE_BOOL_FIELD(is_from_type);
2858  WRITE_BOOL_FIELD(is_from_parent);
2859  WRITE_CHAR_FIELD(storage);
2860  WRITE_NODE_FIELD(raw_default);
2861  WRITE_NODE_FIELD(cooked_default);
2862  WRITE_CHAR_FIELD(identity);
2863  WRITE_NODE_FIELD(identitySequence);
2864  WRITE_NODE_FIELD(collClause);
2865  WRITE_OID_FIELD(collOid);
2866  WRITE_NODE_FIELD(constraints);
2867  WRITE_NODE_FIELD(fdwoptions);
2868  WRITE_LOCATION_FIELD(location);
2869 }
#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

◆ _outColumnRef()

static void _outColumnRef ( StringInfo  str,
const ColumnRef node 
)
static

Definition at line 3314 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3315 {
3316  WRITE_NODE_TYPE("COLUMNREF");
3317 
3318  WRITE_NODE_FIELD(fields);
3319  WRITE_LOCATION_FIELD(location);
3320 }
#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

◆ _outCommonTableExpr()

static void _outCommonTableExpr ( StringInfo  str,
const CommonTableExpr node 
)
static

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

3066 {
3067  WRITE_NODE_TYPE("COMMONTABLEEXPR");
3068 
3069  WRITE_STRING_FIELD(ctename);
3070  WRITE_NODE_FIELD(aliascolnames);
3071  WRITE_NODE_FIELD(ctequery);
3072  WRITE_LOCATION_FIELD(location);
3073  WRITE_BOOL_FIELD(cterecursive);
3074  WRITE_INT_FIELD(cterefcount);
3075  WRITE_NODE_FIELD(ctecolnames);
3076  WRITE_NODE_FIELD(ctecoltypes);
3077  WRITE_NODE_FIELD(ctecoltypmods);
3078  WRITE_NODE_FIELD(ctecolcollations);
3079 }
#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

◆ _outConst()

static void _outConst ( StringInfo  str,
const Const node 
)
static

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

1106 {
1107  WRITE_NODE_TYPE("CONST");
1108 
1109  WRITE_OID_FIELD(consttype);
1110  WRITE_INT_FIELD(consttypmod);
1111  WRITE_OID_FIELD(constcollid);
1112  WRITE_INT_FIELD(constlen);
1113  WRITE_BOOL_FIELD(constbyval);
1114  WRITE_BOOL_FIELD(constisnull);
1115  WRITE_LOCATION_FIELD(location);
1116 
1117  appendStringInfoString(str, " :constvalue ");
1118  if (node->constisnull)
1119  appendStringInfoString(str, "<>");
1120  else
1121  outDatum(str, node->constvalue, node->constlen, node->constbyval);
1122 }
Datum constvalue
Definition: primnodes.h:197
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
bool constbyval
Definition: primnodes.h:200
#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:196
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:198

◆ _outConstraint()

static void _outConstraint ( StringInfo  str,
const Constraint node 
)
static

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

3488 {
3489  WRITE_NODE_TYPE("CONSTRAINT");
3490 
3491  WRITE_STRING_FIELD(conname);
3492  WRITE_BOOL_FIELD(deferrable);
3493  WRITE_BOOL_FIELD(initdeferred);
3494  WRITE_LOCATION_FIELD(location);
3495 
3496  appendStringInfoString(str, " :contype ");
3497  switch (node->contype)
3498  {
3499  case CONSTR_NULL:
3500  appendStringInfoString(str, "NULL");
3501  break;
3502 
3503  case CONSTR_NOTNULL:
3504  appendStringInfoString(str, "NOT_NULL");
3505  break;
3506 
3507  case CONSTR_DEFAULT:
3508  appendStringInfoString(str, "DEFAULT");
3509  WRITE_NODE_FIELD(raw_expr);
3510  WRITE_STRING_FIELD(cooked_expr);
3511  break;
3512 
3513  case CONSTR_IDENTITY:
3514  appendStringInfoString(str, "IDENTITY");
3515  WRITE_NODE_FIELD(raw_expr);
3516  WRITE_STRING_FIELD(cooked_expr);
3517  WRITE_CHAR_FIELD(generated_when);
3518  break;
3519 
3520  case CONSTR_CHECK:
3521  appendStringInfoString(str, "CHECK");
3522  WRITE_BOOL_FIELD(is_no_inherit);
3523  WRITE_NODE_FIELD(raw_expr);
3524  WRITE_STRING_FIELD(cooked_expr);
3525  break;
3526 
3527  case CONSTR_PRIMARY:
3528  appendStringInfoString(str, "PRIMARY_KEY");
3529  WRITE_NODE_FIELD(keys);
3530  WRITE_NODE_FIELD(including);
3532  WRITE_STRING_FIELD(indexname);
3533  WRITE_STRING_FIELD(indexspace);
3534  /* access_method and where_clause not currently used */
3535  break;
3536 
3537  case CONSTR_UNIQUE:
3538  appendStringInfoString(str, "UNIQUE");
3539  WRITE_NODE_FIELD(keys);
3540  WRITE_NODE_FIELD(including);
3542  WRITE_STRING_FIELD(indexname);
3543  WRITE_STRING_FIELD(indexspace);
3544  /* access_method and where_clause not currently used */
3545  break;
3546 
3547  case CONSTR_EXCLUSION:
3548  appendStringInfoString(str, "EXCLUSION");
3549  WRITE_NODE_FIELD(exclusions);
3550  WRITE_NODE_FIELD(including);
3552  WRITE_STRING_FIELD(indexname);
3553  WRITE_STRING_FIELD(indexspace);
3554  WRITE_STRING_FIELD(access_method);
3555  WRITE_NODE_FIELD(where_clause);
3556  break;
3557 
3558  case CONSTR_FOREIGN:
3559  appendStringInfoString(str, "FOREIGN_KEY");
3560  WRITE_NODE_FIELD(pktable);
3561  WRITE_NODE_FIELD(fk_attrs);
3562  WRITE_NODE_FIELD(pk_attrs);
3563  WRITE_CHAR_FIELD(fk_matchtype);
3564  WRITE_CHAR_FIELD(fk_upd_action);
3565  WRITE_CHAR_FIELD(fk_del_action);
3566  WRITE_NODE_FIELD(old_conpfeqop);
3567  WRITE_OID_FIELD(old_pktable_oid);
3568  WRITE_BOOL_FIELD(skip_validation);
3569  WRITE_BOOL_FIELD(initially_valid);
3570  break;
3571 
3573  appendStringInfoString(str, "ATTR_DEFERRABLE");
3574  break;
3575 
3577  appendStringInfoString(str, "ATTR_NOT_DEFERRABLE");
3578  break;
3579 
3580  case CONSTR_ATTR_DEFERRED:
3581  appendStringInfoString(str, "ATTR_DEFERRED");
3582  break;
3583 
3584  case CONSTR_ATTR_IMMEDIATE:
3585  appendStringInfoString(str, "ATTR_IMMEDIATE");
3586  break;
3587 
3588  default:
3589  appendStringInfo(str, "<unrecognized_constraint %d>",
3590  (int) node->contype);
3591  break;
3592  }
3593 }
#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:2092
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outConvertRowtypeExpr()

static void _outConvertRowtypeExpr ( StringInfo  str,
const ConvertRowtypeExpr node 
)
static

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

1425 {
1426  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1427 
1429  WRITE_OID_FIELD(resulttype);
1430  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1431  WRITE_LOCATION_FIELD(location);
1432 }
#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:437
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCreateForeignTableStmt()

static void _outCreateForeignTableStmt ( StringInfo  str,
const CreateForeignTableStmt node 
)
static

Definition at line 2670 of file outfuncs.c.

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

Referenced by outNode().

2671 {
2672  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2673 
2674  _outCreateStmtInfo(str, (const CreateStmt *) node);
2675 
2676  WRITE_STRING_FIELD(servername);
2678 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2646
#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

◆ _outCreateStatsStmt()

static void _outCreateStatsStmt ( StringInfo  str,
const CreateStatsStmt node 
)
static

Definition at line 2722 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2723 {
2724  WRITE_NODE_TYPE("CREATESTATSSTMT");
2725 
2726  WRITE_NODE_FIELD(defnames);
2727  WRITE_NODE_FIELD(stat_types);
2728  WRITE_NODE_FIELD(exprs);
2729  WRITE_NODE_FIELD(relations);
2730  WRITE_STRING_FIELD(stxcomment);
2731  WRITE_BOOL_FIELD(if_not_exists);
2732 }
#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

◆ _outCreateStmt()

static void _outCreateStmt ( StringInfo  str,
const CreateStmt node 
)
static

Definition at line 2662 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2663 {
2664  WRITE_NODE_TYPE("CREATESTMT");
2665 
2666  _outCreateStmtInfo(str, (const CreateStmt *) node);
2667 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2646
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outCreateStmtInfo()

static void _outCreateStmtInfo ( StringInfo  str,
const CreateStmt node 
)
static

Definition at line 2646 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2647 {
2648  WRITE_NODE_FIELD(relation);
2649  WRITE_NODE_FIELD(tableElts);
2650  WRITE_NODE_FIELD(inhRelations);
2651  WRITE_NODE_FIELD(partspec);
2652  WRITE_NODE_FIELD(partbound);
2653  WRITE_NODE_FIELD(ofTypename);
2654  WRITE_NODE_FIELD(constraints);
2656  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2657  WRITE_STRING_FIELD(tablespacename);
2658  WRITE_BOOL_FIELD(if_not_exists);
2659 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
OnCommitAction
Definition: primnodes.h:48
#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

◆ _outCteScan()

static void _outCteScan ( StringInfo  str,
const CteScan node 
)
static

Definition at line 660 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

661 {
662  WRITE_NODE_TYPE("CTESCAN");
663 
664  _outScanInfo(str, (const Scan *) node);
665 
666  WRITE_INT_FIELD(ctePlanId);
667  WRITE_INT_FIELD(cteParam);
668 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outCurrentOfExpr()

static void _outCurrentOfExpr ( StringInfo  str,
const CurrentOfExpr node 
)
static

Definition at line 1623 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1624 {
1625  WRITE_NODE_TYPE("CURRENTOFEXPR");
1626 
1627  WRITE_UINT_FIELD(cvarno);
1628  WRITE_STRING_FIELD(cursor_name);
1629  WRITE_INT_FIELD(cursor_param);
1630 }
#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

◆ _outCustomPath()

static void _outCustomPath ( StringInfo  str,
const CustomPath node 
)
static

Definition at line 1901 of file outfuncs.c.

References _outPathInfo(), appendStringInfoString(), outToken(), WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

1902 {
1903  WRITE_NODE_TYPE("CUSTOMPATH");
1904 
1905  _outPathInfo(str, (const Path *) node);
1906 
1907  WRITE_UINT_FIELD(flags);
1908  WRITE_NODE_FIELD(custom_paths);
1909  WRITE_NODE_FIELD(custom_private);
1910  appendStringInfoString(str, " :methods ");
1911  outToken(str, node->methods->CustomName);
1912 }
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:1275
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:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCustomScan()

static void _outCustomScan ( StringInfo  str,
const CustomScan node 
)
static

Definition at line 708 of file outfuncs.c.

References _outScanInfo(), appendStringInfoString(), outToken(), WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

709 {
710  WRITE_NODE_TYPE("CUSTOMSCAN");
711 
712  _outScanInfo(str, (const Scan *) node);
713 
714  WRITE_UINT_FIELD(flags);
715  WRITE_NODE_FIELD(custom_plans);
716  WRITE_NODE_FIELD(custom_exprs);
717  WRITE_NODE_FIELD(custom_private);
718  WRITE_NODE_FIELD(custom_scan_tlist);
719  WRITE_BITMAPSET_FIELD(custom_relids);
720  /* CustomName is a key to lookup CustomScanMethods */
721  appendStringInfoString(str, " :methods ");
722  outToken(str, node->methods->CustomName);
723 }
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:647
const char * CustomName
Definition: extensible.h:110
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outDeclareCursorStmt()

static void _outDeclareCursorStmt ( StringInfo  str,
const DeclareCursorStmt node 
)
static

Definition at line 2744 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2745 {
2746  WRITE_NODE_TYPE("DECLARECURSOR");
2747 
2748  WRITE_STRING_FIELD(portalname);
2750  WRITE_NODE_FIELD(query);
2751 }
#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

◆ _outDefElem()

static void _outDefElem ( StringInfo  str,
const DefElem node 
)
static

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

2797 {
2798  WRITE_NODE_TYPE("DEFELEM");
2799 
2800  WRITE_STRING_FIELD(defnamespace);
2801  WRITE_STRING_FIELD(defname);
2803  WRITE_ENUM_FIELD(defaction, DefElemAction);
2804  WRITE_LOCATION_FIELD(location);
2805 }
#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:718
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outDistinctExpr()

static void _outDistinctExpr ( StringInfo  str,
const DistinctExpr node 
)
static

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

1249 {
1250  WRITE_NODE_TYPE("DISTINCTEXPR");
1251 
1252  WRITE_OID_FIELD(opno);
1253  WRITE_OID_FIELD(opfuncid);
1254  WRITE_OID_FIELD(opresulttype);
1255  WRITE_BOOL_FIELD(opretset);
1256  WRITE_OID_FIELD(opcollid);
1257  WRITE_OID_FIELD(inputcollid);
1259  WRITE_LOCATION_FIELD(location);
1260 }
#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

◆ _outEquivalenceClass()

static void _outEquivalenceClass ( StringInfo  str,
const EquivalenceClass node 
)
static

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

2427 {
2428  /*
2429  * To simplify reading, we just chase up to the topmost merged EC and
2430  * print that, without bothering to show the merge-ees separately.
2431  */
2432  while (node->ec_merged)
2433  node = node->ec_merged;
2434 
2435  WRITE_NODE_TYPE("EQUIVALENCECLASS");
2436 
2437  WRITE_NODE_FIELD(ec_opfamilies);
2438  WRITE_OID_FIELD(ec_collation);
2439  WRITE_NODE_FIELD(ec_members);
2440  WRITE_NODE_FIELD(ec_sources);
2441  WRITE_NODE_FIELD(ec_derives);
2442  WRITE_BITMAPSET_FIELD(ec_relids);
2443  WRITE_BOOL_FIELD(ec_has_const);
2444  WRITE_BOOL_FIELD(ec_has_volatile);
2445  WRITE_BOOL_FIELD(ec_below_outer_join);
2446  WRITE_BOOL_FIELD(ec_broken);
2447  WRITE_UINT_FIELD(ec_sortref);
2448  WRITE_UINT_FIELD(ec_min_security);
2449  WRITE_UINT_FIELD(ec_max_security);
2450 }
#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:898
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outEquivalenceMember()

static void _outEquivalenceMember ( StringInfo  str,
const EquivalenceMember node 
)
static

Definition at line 2453 of file outfuncs.c.

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

Referenced by outNode().

2454 {
2455  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2456 
2457  WRITE_NODE_FIELD(em_expr);
2458  WRITE_BITMAPSET_FIELD(em_relids);
2459  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2460  WRITE_BOOL_FIELD(em_is_const);
2461  WRITE_BOOL_FIELD(em_is_child);
2462  WRITE_OID_FIELD(em_datatype);
2463 }
#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

◆ _outExtensibleNode()

static void _outExtensibleNode ( StringInfo  str,
const ExtensibleNode node 
)
static

Definition at line 2622 of file outfuncs.c.

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

Referenced by outNode().

2623 {
2624  const ExtensibleNodeMethods *methods;
2625 
2626  methods = GetExtensibleNodeMethods(node->extnodename, false);
2627 
2628  WRITE_NODE_TYPE("EXTENSIBLENODE");
2629 
2630  WRITE_STRING_FIELD(extnodename);
2631 
2632  /* serialize the private fields */
2633  methods->nodeOut(str, node);
2634 }
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
void(* nodeOut)(struct StringInfoData *str, const struct ExtensibleNode *node)
Definition: extensible.h:68
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _outFieldSelect()

static void _outFieldSelect ( StringInfo  str,
const FieldSelect node 
)
static

Definition at line 1362 of file outfuncs.c.

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

Referenced by outNode().

1363 {
1364  WRITE_NODE_TYPE("FIELDSELECT");
1365 
1367  WRITE_INT_FIELD(fieldnum);
1368  WRITE_OID_FIELD(resulttype);
1369  WRITE_INT_FIELD(resulttypmod);
1370  WRITE_OID_FIELD(resultcollid);
1371 }
#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

◆ _outFieldStore()

static void _outFieldStore ( StringInfo  str,
const FieldStore node 
)
static

Definition at line 1374 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1375 {
1376  WRITE_NODE_TYPE("FIELDSTORE");
1377 
1379  WRITE_NODE_FIELD(newvals);
1380  WRITE_NODE_FIELD(fieldnums);
1381  WRITE_OID_FIELD(resulttype);
1382 }
#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

◆ _outForeignKeyCacheInfo()

static void _outForeignKeyCacheInfo ( StringInfo  str,
const ForeignKeyCacheInfo node 
)
static

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

3597 {
3598  int i;
3599 
3600  WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
3601 
3602  WRITE_OID_FIELD(conrelid);
3603  WRITE_OID_FIELD(confrelid);
3604  WRITE_INT_FIELD(nkeys);
3605  appendStringInfoString(str, " :conkey");
3606  for (i = 0; i < node->nkeys; i++)
3607  appendStringInfo(str, " %d", node->conkey[i]);
3608  appendStringInfoString(str, " :confkey");
3609  for (i = 0; i < node->nkeys; i++)
3610  appendStringInfo(str, " %d", node->confkey[i]);
3611  appendStringInfoString(str, " :conpfeqop");
3612  for (i = 0; i < node->nkeys; i++)
3613  appendStringInfo(str, " %u", node->conpfeqop[i]);
3614 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: rel.h:215
#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:217
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AttrNumber confkey[INDEX_MAX_KEYS]
Definition: rel.h:216
int i

◆ _outForeignKeyOptInfo()

static void _outForeignKeyOptInfo ( StringInfo  str,
const ForeignKeyOptInfo node 
)
static

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

2384 {
2385  int i;
2386 
2387  WRITE_NODE_TYPE("FOREIGNKEYOPTINFO");
2388 
2389  WRITE_UINT_FIELD(con_relid);
2390  WRITE_UINT_FIELD(ref_relid);
2391  WRITE_INT_FIELD(nkeys);
2392  appendStringInfoString(str, " :conkey");
2393  for (i = 0; i < node->nkeys; i++)
2394  appendStringInfo(str, " %d", node->conkey[i]);
2395  appendStringInfoString(str, " :confkey");
2396  for (i = 0; i < node->nkeys; i++)
2397  appendStringInfo(str, " %d", node->confkey[i]);
2398  appendStringInfoString(str, " :conpfeqop");
2399  for (i = 0; i < node->nkeys; i++)
2400  appendStringInfo(str, " %u", node->conpfeqop[i]);
2401  WRITE_INT_FIELD(nmatched_ec);
2402  WRITE_INT_FIELD(nmatched_rcols);
2403  WRITE_INT_FIELD(nmatched_ri);
2404  /* for compactness, just print the number of matches per column: */
2405  appendStringInfoString(str, " :eclass");
2406  for (i = 0; i < node->nkeys; i++)
2407  appendStringInfo(str, " %d", (node->eclass[i] != NULL));
2408  appendStringInfoString(str, " :rinfos");
2409  for (i = 0; i < node->nkeys; i++)
2410  appendStringInfo(str, " %d", list_length(node->rinfos[i]));
2411 }
#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:811
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
Definition: relation.h:818
AttrNumber conkey[INDEX_MAX_KEYS]
Definition: relation.h:809
#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:810
List * rinfos[INDEX_MAX_KEYS]
Definition: relation.h:820

◆ _outForeignPath()

static void _outForeignPath ( StringInfo  str,
const ForeignPath node 
)
static

Definition at line 1890 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1891 {
1892  WRITE_NODE_TYPE("FOREIGNPATH");
1893 
1894  _outPathInfo(str, (const Path *) node);
1895 
1896  WRITE_NODE_FIELD(fdw_outerpath);
1897  WRITE_NODE_FIELD(fdw_private);
1898 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outForeignScan()

static void _outForeignScan ( StringInfo  str,
const ForeignScan node 
)
static

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

692 {
693  WRITE_NODE_TYPE("FOREIGNSCAN");
694 
695  _outScanInfo(str, (const Scan *) node);
696 
697  WRITE_ENUM_FIELD(operation, CmdType);
698  WRITE_OID_FIELD(fs_server);
699  WRITE_NODE_FIELD(fdw_exprs);
700  WRITE_NODE_FIELD(fdw_private);
701  WRITE_NODE_FIELD(fdw_scan_tlist);
702  WRITE_NODE_FIELD(fdw_recheck_quals);
703  WRITE_BITMAPSET_FIELD(fs_relids);
704  WRITE_BOOL_FIELD(fsSystemCol);
705 }
#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:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
CmdType
Definition: nodes.h:657
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFromExpr()

static void _outFromExpr ( StringInfo  str,
const FromExpr node 
)
static

Definition at line 1689 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1690 {
1691  WRITE_NODE_TYPE("FROMEXPR");
1692 
1693  WRITE_NODE_FIELD(fromlist);
1694  WRITE_NODE_FIELD(quals);
1695 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFuncCall()

static void _outFuncCall ( StringInfo  str,
const FuncCall node 
)
static

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

2780 {
2781  WRITE_NODE_TYPE("FUNCCALL");
2782 
2783  WRITE_NODE_FIELD(funcname);
2785  WRITE_NODE_FIELD(agg_order);
2786  WRITE_NODE_FIELD(agg_filter);
2787  WRITE_BOOL_FIELD(agg_within_group);
2788  WRITE_BOOL_FIELD(agg_star);
2789  WRITE_BOOL_FIELD(agg_distinct);
2790  WRITE_BOOL_FIELD(func_variadic);
2791  WRITE_NODE_FIELD(over);
2792  WRITE_LOCATION_FIELD(location);
2793 }
#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

◆ _outFuncExpr()

static void _outFuncExpr ( StringInfo  str,
const FuncExpr node 
)
static

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

1207 {
1208  WRITE_NODE_TYPE("FUNCEXPR");
1209 
1210  WRITE_OID_FIELD(funcid);
1211  WRITE_OID_FIELD(funcresulttype);
1212  WRITE_BOOL_FIELD(funcretset);
1213  WRITE_BOOL_FIELD(funcvariadic);
1214  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1215  WRITE_OID_FIELD(funccollid);
1216  WRITE_OID_FIELD(inputcollid);
1218  WRITE_LOCATION_FIELD(location);
1219 }
#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:437
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFunctionScan()

static void _outFunctionScan ( StringInfo  str,
const FunctionScan node 
)
static

Definition at line 629 of file outfuncs.c.

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

Referenced by outNode().

630 {
631  WRITE_NODE_TYPE("FUNCTIONSCAN");
632 
633  _outScanInfo(str, (const Scan *) node);
634 
636  WRITE_BOOL_FIELD(funcordinality);
637 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:318
#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

◆ _outGather()

static void _outGather ( StringInfo  str,
const Gather node 
)
static

Definition at line 484 of file outfuncs.c.

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

Referenced by outNode().

485 {
486  WRITE_NODE_TYPE("GATHER");
487 
488  _outPlanInfo(str, (const Plan *) node);
489 
490  WRITE_INT_FIELD(num_workers);
491  WRITE_INT_FIELD(rescan_param);
492  WRITE_BOOL_FIELD(single_copy);
493  WRITE_BOOL_FIELD(invisible);
494  WRITE_BITMAPSET_FIELD(initParam);
495 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outGatherMerge()

static void _outGatherMerge ( StringInfo  str,
const GatherMerge node 
)
static

Definition at line 498 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), booltostr, i, WRITE_BITMAPSET_FIELD, WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

499 {
500  int i;
501 
502  WRITE_NODE_TYPE("GATHERMERGE");
503 
504  _outPlanInfo(str, (const Plan *) node);
505 
506  WRITE_INT_FIELD(num_workers);
507  WRITE_INT_FIELD(rescan_param);
508  WRITE_INT_FIELD(numCols);
509 
510  appendStringInfoString(str, " :sortColIdx");
511  for (i = 0; i < node->numCols; i++)
512  appendStringInfo(str, " %d", node->sortColIdx[i]);
513 
514  appendStringInfoString(str, " :sortOperators");
515  for (i = 0; i < node->numCols; i++)
516  appendStringInfo(str, " %u", node->sortOperators[i]);
517 
518  appendStringInfoString(str, " :collations");
519  for (i = 0; i < node->numCols; i++)
520  appendStringInfo(str, " %u", node->collations[i]);
521 
522  appendStringInfoString(str, " :nullsFirst");
523  for (i = 0; i < node->numCols; i++)
524  appendStringInfo(str, " %s", booltostr(node->nullsFirst[i]));
525 
526  WRITE_BITMAPSET_FIELD(initParam);
527 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
Oid * collations
Definition: plannodes.h:881
AttrNumber * sortColIdx
Definition: plannodes.h:879
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define booltostr(x)
Definition: outfuncs.c:109
bool * nullsFirst
Definition: plannodes.h:882
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
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:880
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
int i

◆ _outGatherMergePath()

static void _outGatherMergePath ( StringInfo  str,
const GatherMergePath node 
)
static

Definition at line 2186 of file outfuncs.c.

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

Referenced by outNode().

2187 {
2188  WRITE_NODE_TYPE("GATHERMERGEPATH");
2189 
2190  _outPathInfo(str, (const Path *) node);
2191 
2193  WRITE_INT_FIELD(num_workers);
2194 }
#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:1775
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGatherPath()

static void _outGatherPath ( StringInfo  str,
const GatherPath node 
)
static

Definition at line 1971 of file outfuncs.c.

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

Referenced by outNode().

1972 {
1973  WRITE_NODE_TYPE("GATHERPATH");
1974 
1975  _outPathInfo(str, (const Path *) node);
1976 
1978  WRITE_BOOL_FIELD(single_copy);
1979  WRITE_INT_FIELD(num_workers);
1980 }
#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:1775
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroup()

static void _outGroup ( StringInfo  str,
const Group node 
)
static

Definition at line 853 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), i, WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

854 {
855  int i;
856 
857  WRITE_NODE_TYPE("GROUP");
858 
859  _outPlanInfo(str, (const Plan *) node);
860 
861  WRITE_INT_FIELD(numCols);
862 
863  appendStringInfoString(str, " :grpColIdx");
864  for (i = 0; i < node->numCols; i++)
865  appendStringInfo(str, " %d", node->grpColIdx[i]);
866 
867  appendStringInfoString(str, " :grpOperators");
868  for (i = 0; i < node->numCols; i++)
869  appendStringInfo(str, " %u", node->grpOperators[i]);
870 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
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:775
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
int i
AttrNumber * grpColIdx
Definition: plannodes.h:776
Oid * grpOperators
Definition: plannodes.h:777

◆ _outGroupingFunc()

static void _outGroupingFunc ( StringInfo  str,
const GroupingFunc node 
)
static

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

1163 {
1164  WRITE_NODE_TYPE("GROUPINGFUNC");
1165 
1167  WRITE_NODE_FIELD(refs);
1168  WRITE_NODE_FIELD(cols);
1169  WRITE_UINT_FIELD(agglevelsup);
1170  WRITE_LOCATION_FIELD(location);
1171 }
#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

◆ _outGroupingSet()

static void _outGroupingSet ( StringInfo  str,
const GroupingSet node 
)
static

Definition at line 3013 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3014 {
3015  WRITE_NODE_TYPE("GROUPINGSET");
3016 
3018  WRITE_NODE_FIELD(content);
3019  WRITE_LOCATION_FIELD(location);
3020 }
#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:1264
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroupingSetData()

static void _outGroupingSetData ( StringInfo  str,
const GroupingSetData node 
)
static

Definition at line 2065 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2066 {
2067  WRITE_NODE_TYPE("GSDATA");
2068 
2069  WRITE_NODE_FIELD(set);
2070  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2071 }
#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

◆ _outGroupingSetsPath()

static void _outGroupingSetsPath ( StringInfo  str,
const GroupingSetsPath node 
)
static

Definition at line 2074 of file outfuncs.c.

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

Referenced by outNode().

2075 {
2076  WRITE_NODE_TYPE("GROUPINGSETSPATH");
2077 
2078  _outPathInfo(str, (const Path *) node);
2079 
2081  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2082  WRITE_NODE_FIELD(rollups);
2083  WRITE_NODE_FIELD(qual);
2084 }
#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:1775
AggStrategy
Definition: nodes.h:743
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroupPath()

static void _outGroupPath ( StringInfo  str,
const GroupPath node 
)
static

Definition at line 2014 of file outfuncs.c.

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

Referenced by outNode().

2015 {
2016  WRITE_NODE_TYPE("GROUPPATH");
2017 
2018  _outPathInfo(str, (const Path *) node);
2019 
2021  WRITE_NODE_FIELD(groupClause);
2022  WRITE_NODE_FIELD(qual);
2023 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outHash()

static void _outHash ( StringInfo  str,
const Hash node 
)
static

Definition at line 929 of file outfuncs.c.

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

Referenced by outNode().

930 {
931  WRITE_NODE_TYPE("HASH");
932 
933  _outPlanInfo(str, (const Plan *) node);
934 
935  WRITE_OID_FIELD(skewTable);
936  WRITE_INT_FIELD(skewColumn);
937  WRITE_BOOL_FIELD(skewInherit);
938  WRITE_FLOAT_FIELD(rows_total, "%.0f");
939 }
#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:296
#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

◆ _outHashJoin()

static void _outHashJoin ( StringInfo  str,
const HashJoin node 
)
static

Definition at line 776 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

777 {
778  WRITE_NODE_TYPE("HASHJOIN");
779 
780  _outJoinPlanInfo(str, (const Join *) node);
781 
782  WRITE_NODE_FIELD(hashclauses);
783 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outHashPath()

static void _outHashPath ( StringInfo  str,
const HashPath node 
)
static

Definition at line 2219 of file outfuncs.c.

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

Referenced by outNode().

2220 {
2221  WRITE_NODE_TYPE("HASHPATH");
2222 
2223  _outJoinPathInfo(str, (const JoinPath *) node);
2224 
2225  WRITE_NODE_FIELD(path_hashclauses);
2226  WRITE_INT_FIELD(num_batches);
2227 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1800
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outImportForeignSchemaStmt()

static void _outImportForeignSchemaStmt ( StringInfo  str,
const ImportForeignSchemaStmt node 
)
static

Definition at line 2681 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2682 {
2683  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2684 
2685  WRITE_STRING_FIELD(server_name);
2686  WRITE_STRING_FIELD(remote_schema);
2687  WRITE_STRING_FIELD(local_schema);
2689  WRITE_NODE_FIELD(table_list);
2691 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
ImportForeignSchemaType
Definition: parsenodes.h:2301
#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

◆ _outIndexElem()

static void _outIndexElem ( StringInfo  str,
const IndexElem node 
)
static

Definition at line 2907 of file outfuncs.c.

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

Referenced by outNode().

2908 {
2909  WRITE_NODE_TYPE("INDEXELEM");
2910 
2912  WRITE_NODE_FIELD(expr);
2913  WRITE_STRING_FIELD(indexcolname);
2914  WRITE_NODE_FIELD(collation);
2915  WRITE_NODE_FIELD(opclass);
2916  WRITE_ENUM_FIELD(ordering, SortByDir);
2917  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
2918 }
SortByDir
Definition: parsenodes.h:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
SortByNulls
Definition: parsenodes.h:58
#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

◆ _outIndexOnlyScan()

static void _outIndexOnlyScan ( StringInfo  str,
const IndexOnlyScan node 
)
static

Definition at line 572 of file outfuncs.c.

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

Referenced by outNode().

573 {
574  WRITE_NODE_TYPE("INDEXONLYSCAN");
575 
576  _outScanInfo(str, (const Scan *) node);
577 
578  WRITE_OID_FIELD(indexid);
579  WRITE_NODE_FIELD(indexqual);
580  WRITE_NODE_FIELD(indexorderby);
581  WRITE_NODE_FIELD(indextlist);
582  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
583 }
#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:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outIndexOptInfo()

static void _outIndexOptInfo ( StringInfo  str,
const IndexOptInfo node 
)
static

Definition at line 2358 of file outfuncs.c.

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

2359 {
2360  WRITE_NODE_TYPE("INDEXOPTINFO");
2361 
2362  /* NB: this isn't a complete set of fields */
2363  WRITE_OID_FIELD(indexoid);
2364  /* Do NOT print rel field, else infinite recursion */
2365  WRITE_UINT_FIELD(pages);
2366  WRITE_FLOAT_FIELD(tuples, "%.0f");
2367  WRITE_INT_FIELD(tree_height);
2368  WRITE_INT_FIELD(ncolumns);
2369  /* array fields aren't really worth the trouble to print */
2371  /* indexprs is redundant since we print indextlist */
2372  WRITE_NODE_FIELD(indpred);
2373  WRITE_NODE_FIELD(indextlist);
2374  WRITE_NODE_FIELD(indrestrictinfo);
2375  WRITE_BOOL_FIELD(predOK);
2376  WRITE_BOOL_FIELD(unique);
2377  WRITE_BOOL_FIELD(immediate);
2378  WRITE_BOOL_FIELD(hypothetical);
2379  /* we don't bother with fields copied from the index AM's API struct */
2380 }
#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
Oid relam
Definition: pg_class.h:38
#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

◆ _outIndexPath()

static void _outIndexPath ( StringInfo  str,
const IndexPath node 
)
static

Definition at line 1820 of file outfuncs.c.

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

Referenced by outNode().

1821 {
1822  WRITE_NODE_TYPE("INDEXPATH");
1823 
1824  _outPathInfo(str, (const Path *) node);
1825 
1826  WRITE_NODE_FIELD(indexinfo);
1827  WRITE_NODE_FIELD(indexclauses);
1828  WRITE_NODE_FIELD(indexquals);
1829  WRITE_NODE_FIELD(indexqualcols);
1830  WRITE_NODE_FIELD(indexorderbys);
1831  WRITE_NODE_FIELD(indexorderbycols);
1832  WRITE_ENUM_FIELD(indexscandir, ScanDirection);
1833  WRITE_FLOAT_FIELD(indextotalcost, "%.2f");
1834  WRITE_FLOAT_FIELD(indexselectivity, "%.4f");
1835 }
#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:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outIndexScan()

static void _outIndexScan ( StringInfo  str,
const IndexScan node 
)
static

Definition at line 556 of file outfuncs.c.

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

Referenced by outNode().

557 {
558  WRITE_NODE_TYPE("INDEXSCAN");
559 
560  _outScanInfo(str, (const Scan *) node);
561 
562  WRITE_OID_FIELD(indexid);
563  WRITE_NODE_FIELD(indexqual);
564  WRITE_NODE_FIELD(indexqualorig);
565  WRITE_NODE_FIELD(indexorderby);
566  WRITE_NODE_FIELD(indexorderbyorig);
567  WRITE_NODE_FIELD(indexorderbyops);
568  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
569 }
#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:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outIndexStmt()

static void _outIndexStmt ( StringInfo  str,
const IndexStmt node 
)
static

Definition at line 2694 of file outfuncs.c.

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

Referenced by outNode().

2695 {
2696  WRITE_NODE_TYPE("INDEXSTMT");
2697 
2698  WRITE_STRING_FIELD(idxname);
2699  WRITE_NODE_FIELD(relation);
2700  WRITE_OID_FIELD(relationId);
2701  WRITE_STRING_FIELD(accessMethod);
2702  WRITE_STRING_FIELD(tableSpace);
2703  WRITE_NODE_FIELD(indexParams);
2704  WRITE_NODE_FIELD(indexIncludingParams);
2706  WRITE_NODE_FIELD(whereClause);
2707  WRITE_NODE_FIELD(excludeOpNames);
2708  WRITE_STRING_FIELD(idxcomment);
2709  WRITE_OID_FIELD(indexOid);
2710  WRITE_OID_FIELD(oldNode);
2711  WRITE_BOOL_FIELD(unique);
2712  WRITE_BOOL_FIELD(primary);
2713  WRITE_BOOL_FIELD(isconstraint);
2714  WRITE_BOOL_FIELD(deferrable);
2715  WRITE_BOOL_FIELD(initdeferred);
2716  WRITE_BOOL_FIELD(transformed);
2717  WRITE_BOOL_FIELD(concurrent);
2718  WRITE_BOOL_FIELD(if_not_exists);
2719 }
#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

◆ _outInferenceElem()

static void _outInferenceElem ( StringInfo  str,
const InferenceElem node 
)
static

Definition at line 1642 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1643 {
1644  WRITE_NODE_TYPE("INFERENCEELEM");
1645 
1646  WRITE_NODE_FIELD(expr);
1647  WRITE_OID_FIELD(infercollid);
1648  WRITE_OID_FIELD(inferopclass);
1649 }
#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

◆ _outIntoClause()

static void _outIntoClause ( StringInfo  str,
const IntoClause node 
)
static

Definition at line 1075 of file outfuncs.c.

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

Referenced by outNode().

1076 {
1077  WRITE_NODE_TYPE("INTOCLAUSE");
1078 
1079  WRITE_NODE_FIELD(rel);
1080  WRITE_NODE_FIELD(colNames);
1082  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1083  WRITE_STRING_FIELD(tableSpaceName);
1084  WRITE_NODE_FIELD(viewQuery);
1085  WRITE_BOOL_FIELD(skipData);
1086 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
OnCommitAction
Definition: primnodes.h:48
#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

◆ _outJoin()

static void _outJoin ( StringInfo  str,
const Join node 
)
static

Definition at line 726 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

727 {
728  WRITE_NODE_TYPE("JOIN");
729 
730  _outJoinPlanInfo(str, (const Join *) node);
731 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outJoinExpr()

static void _outJoinExpr ( StringInfo  str,
const JoinExpr node 
)
static

Definition at line 1674 of file outfuncs.c.

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

Referenced by outNode().

1675 {
1676  WRITE_NODE_TYPE("JOINEXPR");
1677 
1678  WRITE_ENUM_FIELD(jointype, JoinType);
1679  WRITE_BOOL_FIELD(isNatural);
1680  WRITE_NODE_FIELD(larg);
1681  WRITE_NODE_FIELD(rarg);
1682  WRITE_NODE_FIELD(usingClause);
1683  WRITE_NODE_FIELD(quals);
1684  WRITE_NODE_FIELD(alias);
1685  WRITE_INT_FIELD(rtindex);
1686 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
JoinType
Definition: nodes.h:681
#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

◆ _outJoinPathInfo()

static void _outJoinPathInfo ( StringInfo  str,
const JoinPath node 
)
static

Definition at line 1800 of file outfuncs.c.

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

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

1801 {
1802  _outPathInfo(str, (const Path *) node);
1803 
1804  WRITE_ENUM_FIELD(jointype, JoinType);
1805  WRITE_BOOL_FIELD(inner_unique);
1806  WRITE_NODE_FIELD(outerjoinpath);
1807  WRITE_NODE_FIELD(innerjoinpath);
1808  WRITE_NODE_FIELD(joinrestrictinfo);
1809 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
JoinType
Definition: nodes.h:681
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outJoinPlanInfo()

static void _outJoinPlanInfo ( StringInfo  str,
const Join node 
)
static

Definition at line 329 of file outfuncs.c.

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

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

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

◆ _outLimit()

static void _outLimit ( StringInfo  str,
const Limit node 
)
static

Definition at line 979 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

980 {
981  WRITE_NODE_TYPE("LIMIT");
982 
983  _outPlanInfo(str, (const Plan *) node);
984 
985  WRITE_NODE_FIELD(limitOffset);
986  WRITE_NODE_FIELD(limitCount);
987 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outLimitPath()

static void _outLimitPath ( StringInfo  str,
const LimitPath node 
)
static

Definition at line 2174 of file outfuncs.c.

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

Referenced by outNode().

2175 {
2176  WRITE_NODE_TYPE("LIMITPATH");
2177 
2178  _outPathInfo(str, (const Path *) node);
2179 
2181  WRITE_NODE_FIELD(limitOffset);
2182  WRITE_NODE_FIELD(limitCount);
2183 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outList()

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:568
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:3668
#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

◆ _outLockingClause()

static void _outLockingClause ( StringInfo  str,
const LockingClause node 
)
static

Definition at line 2817 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2818 {
2819  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2820 
2821  WRITE_NODE_FIELD(lockedRels);
2823  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2824 }
#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

◆ _outLockRows()

static void _outLockRows ( StringInfo  str,
const LockRows node 
)
static

Definition at line 968 of file outfuncs.c.

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

Referenced by outNode().

969 {
970  WRITE_NODE_TYPE("LOCKROWS");
971 
972  _outPlanInfo(str, (const Plan *) node);
973 
974  WRITE_NODE_FIELD(rowMarks);
975  WRITE_INT_FIELD(epqParam);
976 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outLockRowsPath()

static void _outLockRowsPath ( StringInfo  str,
const LockRowsPath node 
)
static

Definition at line 2140 of file outfuncs.c.

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

Referenced by outNode().

2141 {
2142  WRITE_NODE_TYPE("LOCKROWSPATH");
2143 
2144  _outPathInfo(str, (const Path *) node);
2145 
2147  WRITE_NODE_FIELD(rowMarks);
2148  WRITE_INT_FIELD(epqParam);
2149 }
#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:1775
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMaterial()

static void _outMaterial ( StringInfo  str,
const Material node 
)
static

Definition at line 873 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

874 {
875  WRITE_NODE_TYPE("MATERIAL");
876 
877  _outPlanInfo(str, (const Plan *) node);
878 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outMaterialPath()

static void _outMaterialPath ( StringInfo  str,
const MaterialPath node 
)
static

Definition at line 1948 of file outfuncs.c.

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

Referenced by outNode().

1949 {
1950  WRITE_NODE_TYPE("MATERIALPATH");
1951 
1952  _outPathInfo(str, (const Path *) node);
1953 
1955 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMergeAppend()

static void _outMergeAppend ( StringInfo  str,
const MergeAppend node 
)
static

Definition at line 409 of file outfuncs.c.

References _outPlanInfo(), appendStringInfo(), appendStringInfoString(), booltostr, i, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

410 {
411  int i;
412 
413  WRITE_NODE_TYPE("MERGEAPPEND");
414 
415  _outPlanInfo(str, (const Plan *) node);
416 
417  WRITE_NODE_FIELD(partitioned_rels);
418  WRITE_NODE_FIELD(mergeplans);
419 
420  WRITE_INT_FIELD(numCols);
421 
422  appendStringInfoString(str, " :sortColIdx");
423  for (i = 0; i < node->numCols; i++)
424  appendStringInfo(str, " %d", node->sortColIdx[i]);
425 
426  appendStringInfoString(str, " :sortOperators");
427  for (i = 0; i < node->numCols; i++)
428  appendStringInfo(str, " %u", node->sortOperators[i]);
429 
430  appendStringInfoString(str, " :collations");
431  for (i = 0; i < node->numCols; i++)
432  appendStringInfo(str, " %u", node->collations[i]);
433 
434  appendStringInfoString(str, " :nullsFirst");
435  for (i = 0; i < node->numCols; i++)
436  appendStringInfo(str, " %s", booltostr(node->nullsFirst[i]));
437 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
Oid * collations
Definition: plannodes.h:282
#define booltostr(x)
Definition: outfuncs.c:109
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:296
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:280
bool * nullsFirst
Definition: plannodes.h:283
int i
Oid * sortOperators
Definition: plannodes.h:281
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMergeAppendPath()

static void _outMergeAppendPath ( StringInfo  str,
const MergeAppendPath node 
)
static

Definition at line 1926 of file outfuncs.c.

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

Referenced by outNode().

1927 {
1928  WRITE_NODE_TYPE("MERGEAPPENDPATH");
1929 
1930  _outPathInfo(str, (const Path *) node);
1931 
1932  WRITE_NODE_FIELD(partitioned_rels);
1933  WRITE_NODE_FIELD(subpaths);
1934  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1935 }
#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:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMergeJoin()

static void _outMergeJoin ( StringInfo  str,
const MergeJoin node 
)
static

Definition at line 744 of file outfuncs.c.

References _outJoinPlanInfo(), appendStringInfo(), appendStringInfoString(), booltostr, i, list_length(), WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

745 {
746  int numCols;
747  int i;
748 
749  WRITE_NODE_TYPE("MERGEJOIN");
750 
751  _outJoinPlanInfo(str, (const Join *) node);
752 
753  WRITE_BOOL_FIELD(skip_mark_restore);
754  WRITE_NODE_FIELD(mergeclauses);
755 
756  numCols = list_length(node->mergeclauses);
757 
758  appendStringInfoString(str, " :mergeFamilies");
759  for (i = 0; i < numCols; i++)
760  appendStringInfo(str, " %u", node->mergeFamilies[i]);
761 
762  appendStringInfoString(str, " :mergeCollations");
763  for (i = 0; i < numCols; i++)
764  appendStringInfo(str, " %u", node->mergeCollations[i]);
765 
766  appendStringInfoString(str, " :mergeStrategies");
767  for (i = 0; i < numCols; i++)
768  appendStringInfo(str, " %d", node->mergeStrategies[i]);
769 
770  appendStringInfoString(str, " :mergeNullsFirst");
771  for (i = 0; i < numCols; i++)
772  appendStringInfo(str, " %s", booltostr(node->mergeNullsFirst[i]));
773 }
#define booltostr(x)
Definition: outfuncs.c:109
List * mergeclauses
Definition: plannodes.h:725
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:329
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:727
Oid * mergeCollations
Definition: plannodes.h:728
bool * mergeNullsFirst
Definition: plannodes.h:730
int * mergeStrategies
Definition: plannodes.h:729
#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

◆ _outMergePath()

static void _outMergePath ( StringInfo  str,
const MergePath node 
)
static

Definition at line 2205 of file outfuncs.c.

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

Referenced by outNode().

2206 {
2207  WRITE_NODE_TYPE("MERGEPATH");
2208 
2209  _outJoinPathInfo(str, (const JoinPath *) node);
2210 
2211  WRITE_NODE_FIELD(path_mergeclauses);
2212  WRITE_NODE_FIELD(outersortkeys);
2213  WRITE_NODE_FIELD(innersortkeys);
2214  WRITE_BOOL_FIELD(skip_mark_restore);
2215  WRITE_BOOL_FIELD(materialize_inner);
2216 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1800
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMinMaxAggInfo()

static void _outMinMaxAggInfo ( StringInfo  str,
const MinMaxAggInfo node 
)
static

Definition at line 2593 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2594 {
2595  WRITE_NODE_TYPE("MINMAXAGGINFO");
2596 
2597  WRITE_OID_FIELD(aggfnoid);
2598  WRITE_OID_FIELD(aggsortop);
2599  WRITE_NODE_FIELD(target);
2600  /* We intentionally omit subroot --- too large, not interesting enough */
2601  WRITE_NODE_FIELD(path);
2602  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2603  WRITE_NODE_FIELD(param);
2604 }
#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

◆ _outMinMaxAggPath()

static void _outMinMaxAggPath ( StringInfo  str,
const MinMaxAggPath node 
)
static

Definition at line 2087 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2088 {
2089  WRITE_NODE_TYPE("MINMAXAGGPATH");
2090 
2091  _outPathInfo(str, (const Path *) node);
2092 
2093  WRITE_NODE_FIELD(mmaggregates);
2094  WRITE_NODE_FIELD(quals);
2095 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMinMaxExpr()

static void _outMinMaxExpr ( StringInfo  str,
const MinMaxExpr node 
)
static

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

1528 {
1529  WRITE_NODE_TYPE("MINMAX");
1530 
1531  WRITE_OID_FIELD(minmaxtype);
1532  WRITE_OID_FIELD(minmaxcollid);
1533  WRITE_OID_FIELD(inputcollid);
1536  WRITE_LOCATION_FIELD(location);
1537 }
#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:1062
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outModifyTable()

static void _outModifyTable ( StringInfo  str,
const ModifyTable node 
)
static

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

367 {
368  WRITE_NODE_TYPE("MODIFYTABLE");
369 
370  _outPlanInfo(str, (const Plan *) node);
371 
372  WRITE_ENUM_FIELD(operation, CmdType);
373  WRITE_BOOL_FIELD(canSetTag);
374  WRITE_UINT_FIELD(nominalRelation);
375  WRITE_NODE_FIELD(partitioned_rels);
376  WRITE_BOOL_FIELD(partColsUpdated);
377  WRITE_NODE_FIELD(resultRelations);
378  WRITE_INT_FIELD(resultRelIndex);
379  WRITE_INT_FIELD(rootResultRelIndex);
380  WRITE_NODE_FIELD(plans);
381  WRITE_NODE_FIELD(withCheckOptionLists);
382  WRITE_NODE_FIELD(returningLists);
383  WRITE_NODE_FIELD(fdwPrivLists);
384  WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
385  WRITE_NODE_FIELD(rowMarks);
386  WRITE_INT_FIELD(epqParam);
387  WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
388  WRITE_NODE_FIELD(arbiterIndexes);
389  WRITE_NODE_FIELD(onConflictSet);
390  WRITE_NODE_FIELD(onConflictWhere);
391  WRITE_UINT_FIELD(exclRelRTI);
392  WRITE_NODE_FIELD(exclRelTlist);
393 }
#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:296
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
OnConflictAction
Definition: nodes.h:807
CmdType
Definition: nodes.h:657
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outModifyTablePath()

static void _outModifyTablePath ( StringInfo  str,
const ModifyTablePath node 
)
static

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

2153 {
2154  WRITE_NODE_TYPE("MODIFYTABLEPATH");
2155 
2156  _outPathInfo(str, (const Path *) node);
2157 
2158  WRITE_ENUM_FIELD(operation, CmdType);
2159  WRITE_BOOL_FIELD(canSetTag);
2160  WRITE_UINT_FIELD(nominalRelation);
2161  WRITE_NODE_FIELD(partitioned_rels);
2162  WRITE_BOOL_FIELD(partColsUpdated);
2163  WRITE_NODE_FIELD(resultRelations);
2164  WRITE_NODE_FIELD(subpaths);
2165  WRITE_NODE_FIELD(subroots);
2166  WRITE_NODE_FIELD(withCheckOptionLists);
2167  WRITE_NODE_FIELD(returningLists);
2168  WRITE_NODE_FIELD(rowMarks);
2169  WRITE_NODE_FIELD(onconflict);
2170  WRITE_INT_FIELD(epqParam);
2171 }
#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:1775
CmdType
Definition: nodes.h:657
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMultiAssignRef()

static void _outMultiAssignRef ( StringInfo  str,
const MultiAssignRef node 
)
static

Definition at line 3387 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3388 {
3389  WRITE_NODE_TYPE("MULTIASSIGNREF");
3390 
3391  WRITE_NODE_FIELD(source);
3392  WRITE_INT_FIELD(colno);
3393  WRITE_INT_FIELD(ncolumns);
3394 }
#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

◆ _outNamedArgExpr()

static void _outNamedArgExpr ( StringInfo  str,
const NamedArgExpr node 
)
static

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

1223 {
1224  WRITE_NODE_TYPE("NAMEDARGEXPR");
1225 
1228  WRITE_INT_FIELD(argnumber);
1229  WRITE_LOCATION_FIELD(location);
1230 }
#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

◆ _outNamedTuplestoreScan()

static void _outNamedTuplestoreScan ( StringInfo  str,
const NamedTuplestoreScan node 
)
static

Definition at line 671 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

672 {
673  WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
674 
675  _outScanInfo(str, (const Scan *) node);
676 
677  WRITE_STRING_FIELD(enrname);
678 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:318
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90

◆ _outNestLoop()

static void _outNestLoop ( StringInfo  str,
const NestLoop node 
)
static

Definition at line 734 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

735 {
736  WRITE_NODE_TYPE("NESTLOOP");
737 
738  _outJoinPlanInfo(str, (const Join *) node);
739 
740  WRITE_NODE_FIELD(nestParams);
741 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outNestLoopParam()

static void _outNestLoopParam ( StringInfo  str,
const NestLoopParam node 
)
static

Definition at line 990 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

991 {
992  WRITE_NODE_TYPE("NESTLOOPPARAM");
993 
994  WRITE_INT_FIELD(paramno);
995  WRITE_NODE_FIELD(paramval);
996 }
#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

◆ _outNestPath()

static void _outNestPath ( StringInfo  str,
const NestPath node 
)
static

Definition at line 2197 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2198 {
2199  WRITE_NODE_TYPE("NESTPATH");
2200 
2201  _outJoinPathInfo(str, (const JoinPath *) node);
2202 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1800
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outNextValueExpr()

static void _outNextValueExpr ( StringInfo  str,
const NextValueExpr node 
)
static

Definition at line 1633 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1634 {
1635  WRITE_NODE_TYPE("NEXTVALUEEXPR");
1636 
1637  WRITE_OID_FIELD(seqid);
1638  WRITE_OID_FIELD(typeId);
1639 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outNotifyStmt()

static void _outNotifyStmt ( StringInfo  str,
const NotifyStmt node 
)
static

Definition at line 2735 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2736 {
2737  WRITE_NODE_TYPE("NOTIFY");
2738 
2739  WRITE_STRING_FIELD(conditionname);
2740  WRITE_STRING_FIELD(payload);
2741 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90

◆ _outNullIfExpr()

static void _outNullIfExpr ( StringInfo  str,
const NullIfExpr node 
)
static

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

1264 {
1265  WRITE_NODE_TYPE("NULLIFEXPR");
1266 
1267  WRITE_OID_FIELD(opno);
1268  WRITE_OID_FIELD(opfuncid);
1269  WRITE_OID_FIELD(opresulttype);
1270  WRITE_BOOL_FIELD(opretset);
1271  WRITE_OID_FIELD(opcollid);
1272  WRITE_OID_FIELD(inputcollid);
1274  WRITE_LOCATION_FIELD(location);
1275 }
#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

◆ _outNullTest()

static void _outNullTest ( StringInfo  str,
const NullTest node 
)
static

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

1568 {
1569  WRITE_NODE_TYPE("NULLTEST");
1570 
1572  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1573  WRITE_BOOL_FIELD(argisrow);
1574  WRITE_LOCATION_FIELD(location);
1575 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
NullTestType
Definition: primnodes.h:1180
#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

◆ _outOnConflictExpr()

static void _outOnConflictExpr ( StringInfo  str,
const OnConflictExpr node 
)
static

Definition at line 1720 of file outfuncs.c.

References generate_unaccent_rules::action, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1721 {
1722  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1723 
1725  WRITE_NODE_FIELD(arbiterElems);
1726  WRITE_NODE_FIELD(arbiterWhere);
1727  WRITE_OID_FIELD(constraint);
1728  WRITE_NODE_FIELD(onConflictSet);
1729  WRITE_NODE_FIELD(onConflictWhere);
1730  WRITE_INT_FIELD(exclRelIndex);
1731  WRITE_NODE_FIELD(exclRelTlist);
1732 }
#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:807
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outOpExpr()

static void _outOpExpr ( StringInfo  str,
const OpExpr node 
)
static

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

1234 {
1235  WRITE_NODE_TYPE("OPEXPR");
1236 
1237  WRITE_OID_FIELD(opno);
1238  WRITE_OID_FIELD(opfuncid);
1239  WRITE_OID_FIELD(opresulttype);
1240  WRITE_BOOL_FIELD(opretset);
1241  WRITE_OID_FIELD(opcollid);
1242  WRITE_OID_FIELD(inputcollid);
1244  WRITE_LOCATION_FIELD(location);
1245 }
#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

◆ _outParam()

static void _outParam ( StringInfo  str,
const Param node 
)
static

Definition at line 1125 of file outfuncs.c.

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

Referenced by outNode().

1126 {
1127  WRITE_NODE_TYPE("PARAM");
1128 
1129  WRITE_ENUM_FIELD(paramkind, ParamKind);
1130  WRITE_INT_FIELD(paramid);
1131  WRITE_OID_FIELD(paramtype);
1132  WRITE_INT_FIELD(paramtypmod);
1133  WRITE_OID_FIELD(paramcollid);
1134  WRITE_LOCATION_FIELD(location);
1135 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
ParamKind
Definition: primnodes.h:234
#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

◆ _outParamPathInfo()

static void _outParamPathInfo ( StringInfo  str,
const ParamPathInfo node 
)
static

Definition at line 2496 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2497 {
2498  WRITE_NODE_TYPE("PARAMPATHINFO");
2499 
2500  WRITE_BITMAPSET_FIELD(ppi_req_outer);
2501  WRITE_FLOAT_FIELD(ppi_rows, "%.0f");
2502  WRITE_NODE_FIELD(ppi_clauses);
2503 }
#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

◆ _outParamRef()

static void _outParamRef ( StringInfo  str,
const ParamRef node 
)
static

Definition at line 3323 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3324 {
3325  WRITE_NODE_TYPE("PARAMREF");
3326 
3327  WRITE_INT_FIELD(number);
3328  WRITE_LOCATION_FIELD(location);
3329 }
#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

◆ _outPartitionBoundSpec()

static void _outPartitionBoundSpec ( StringInfo  str,
const PartitionBoundSpec node 
)
static

Definition at line 3639 of file outfuncs.c.

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

Referenced by outNode().

3640 {
3641  WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
3642 
3643  WRITE_CHAR_FIELD(strategy);
3644  WRITE_BOOL_FIELD(is_default);
3645  WRITE_INT_FIELD(modulus);
3646  WRITE_INT_FIELD(remainder);
3647  WRITE_NODE_FIELD(listdatums);
3648  WRITE_NODE_FIELD(lowerdatums);
3649  WRITE_NODE_FIELD(upperdatums);
3650  WRITE_LOCATION_FIELD(location);
3651 }
#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_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

◆ _outPartitionElem()

static void _outPartitionElem ( StringInfo  str,
const PartitionElem node 
)
static

Definition at line 3617 of file outfuncs.c.

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

Referenced by outNode().

3618 {
3619  WRITE_NODE_TYPE("PARTITIONELEM");
3620 
3622  WRITE_NODE_FIELD(expr);
3623  WRITE_NODE_FIELD(collation);
3624  WRITE_NODE_FIELD(opclass);
3625  WRITE_LOCATION_FIELD(location);
3626 }
#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

◆ _outPartitionPruneInfo()

static void _outPartitionPruneInfo ( StringInfo  str,
const PartitionPruneInfo node 
)
static

Definition at line 1735 of file outfuncs.c.

References appendStringInfo(), appendStringInfoString(), i, PartitionPruneInfo::nparts, PartitionPruneInfo::subnode_map, PartitionPruneInfo::subpart_map, WRITE_BITMAPSET_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1736 {
1737  int i;
1738 
1739  WRITE_NODE_TYPE("PARTITIONPRUNEINFO");
1740 
1741  WRITE_OID_FIELD(reloid);
1742  WRITE_NODE_FIELD(pruning_steps);
1743  WRITE_BITMAPSET_FIELD(present_parts);
1744  WRITE_INT_FIELD(nparts);
1745 
1746  appendStringInfoString(str, " :subnode_map");
1747  for (i = 0; i < node->nparts; i++)
1748  appendStringInfo(str, " %d", node->subnode_map[i]);
1749 
1750  appendStringInfoString(str, " :subpart_map");
1751  for (i = 0; i < node->nparts; i++)
1752  appendStringInfo(str, " %d", node->subpart_map[i]);
1753 
1754  WRITE_BITMAPSET_FIELD(extparams);
1755  WRITE_BITMAPSET_FIELD(execparams);
1756 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#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_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
int i
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionPruneStepCombine()

static void _outPartitionPruneStepCombine ( StringInfo  str,
const PartitionPruneStepCombine node 
)
static

Definition at line 1710 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1711 {
1712  WRITE_NODE_TYPE("PARTITIONPRUNESTEPCOMBINE");
1713 
1714  WRITE_INT_FIELD(step.step_id);
1716  WRITE_NODE_FIELD(source_stepids);
1717 }
PartitionPruneCombineOp
Definition: primnodes.h:1570
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionPruneStepOp()

static void _outPartitionPruneStepOp ( StringInfo  str,
const PartitionPruneStepOp node 
)
static

Definition at line 1698 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1699 {
1700  WRITE_NODE_TYPE("PARTITIONPRUNESTEPOP");
1701 
1702  WRITE_INT_FIELD(step.step_id);
1703  WRITE_INT_FIELD(opstrategy);
1704  WRITE_NODE_FIELD(exprs);
1705  WRITE_NODE_FIELD(cmpfns);
1706  WRITE_BITMAPSET_FIELD(nullkeys);
1707 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionRangeDatum()

static void _outPartitionRangeDatum ( StringInfo  str,
const PartitionRangeDatum node 
)
static

Definition at line 3654 of file outfuncs.c.

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

Referenced by outNode().

3655 {
3656  WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
3657 
3660  WRITE_LOCATION_FIELD(location);
3661 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
PartitionRangeDatumKind
Definition: parsenodes.h:834
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
static struct @131 value
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionSpec()

static void _outPartitionSpec ( StringInfo  str,
const PartitionSpec node 
)
static

Definition at line 3629 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3630 {
3631  WRITE_NODE_TYPE("PARTITIONSPEC");
3632 
3633  WRITE_STRING_FIELD(strategy);
3634  WRITE_NODE_FIELD(partParams);
3635  WRITE_LOCATION_FIELD(location);
3636 }
#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

◆ _outPath()

static void _outPath ( StringInfo  str,
const Path node 
)
static

Definition at line 1812 of file outfuncs.c.

References _outPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

1813 {
1814  WRITE_NODE_TYPE("PATH");
1815 
1816  _outPathInfo(str, (const Path *) node);
1817 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1775

◆ _outPathInfo()

static void _outPathInfo ( StringInfo  str,
const Path node 
)
static

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

1776 {
1777  WRITE_ENUM_FIELD(pathtype, NodeTag);
1778  appendStringInfoString(str, " :parent_relids ");
1779  outBitmapset(str, node->parent->relids);
1780  if (node->pathtarget != node->parent->reltarget)
1781  WRITE_NODE_FIELD(pathtarget);
1782  appendStringInfoString(str, " :required_outer ");
1783  if (node->param_info)
1784  outBitmapset(str, node->param_info->ppi_req_outer);
1785  else
1786  outBitmapset(str, NULL);
1787  WRITE_BOOL_FIELD(parallel_aware);
1788  WRITE_BOOL_FIELD(parallel_safe);
1789  WRITE_INT_FIELD(parallel_workers);
1790  WRITE_FLOAT_FIELD(rows, "%.0f");
1791  WRITE_FLOAT_FIELD(startup_cost, "%.2f");
1792  WRITE_FLOAT_FIELD(total_cost, "%.2f");
1793  WRITE_NODE_FIELD(pathkeys);
1794 }
PathTarget * pathtarget
Definition: relation.h:1067
#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:1069
NodeTag
Definition: nodes.h:26
RelOptInfo * parent
Definition: relation.h:1066
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:600
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81