PostgreSQL Source Code  git master
outfuncs.c File Reference
#include "postgres.h"
#include <ctype.h>
#include "lib/stringinfo.h"
#include "miscadmin.h"
#include "nodes/extensible.h"
#include "nodes/pathnodes.h"
#include "nodes/plannodes.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 WRITE_ATTRNUMBER_ARRAY(fldname, len)
 
#define WRITE_OID_ARRAY(fldname, len)
 
#define WRITE_INT_ARRAY(fldname, len)
 
#define WRITE_BOOL_ARRAY(fldname, len)
 
#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 _outPartitionPruneInfo (StringInfo str, const PartitionPruneInfo *node)
 
static void _outPartitionedRelPruneInfo (StringInfo str, const PartitionedRelPruneInfo *node)
 
static void _outPartitionPruneStepOp (StringInfo str, const PartitionPruneStepOp *node)
 
static void _outPartitionPruneStepCombine (StringInfo str, const PartitionPruneStepCombine *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 _outSubscriptingRef (StringInfo str, const SubscriptingRef *node)
 
static void _outFuncExpr (StringInfo str, const FuncExpr *node)
 
static void _outNamedArgExpr (StringInfo str, const NamedArgExpr *node)
 
static void _outOpExpr (StringInfo str, const OpExpr *node)
 
static void _outDistinctExpr (StringInfo str, const DistinctExpr *node)
 
static void _outNullIfExpr (StringInfo str, const NullIfExpr *node)
 
static void _outScalarArrayOpExpr (StringInfo str, const ScalarArrayOpExpr *node)
 
static void _outBoolExpr (StringInfo str, const BoolExpr *node)
 
static void _outSubLink (StringInfo str, const SubLink *node)
 
static void _outSubPlan (StringInfo str, const SubPlan *node)
 
static void _outAlternativeSubPlan (StringInfo str, const AlternativeSubPlan *node)
 
static void _outFieldSelect (StringInfo str, const FieldSelect *node)
 
static void _outFieldStore (StringInfo str, const FieldStore *node)
 
static void _outRelabelType (StringInfo str, const RelabelType *node)
 
static void _outCoerceViaIO (StringInfo str, const CoerceViaIO *node)
 
static void _outArrayCoerceExpr (StringInfo str, const ArrayCoerceExpr *node)
 
static void _outConvertRowtypeExpr (StringInfo str, const ConvertRowtypeExpr *node)
 
static void _outCollateExpr (StringInfo str, const CollateExpr *node)
 
static void _outCaseExpr (StringInfo str, const CaseExpr *node)
 
static void _outCaseWhen (StringInfo str, const CaseWhen *node)
 
static void _outCaseTestExpr (StringInfo str, const CaseTestExpr *node)
 
static void _outArrayExpr (StringInfo str, const ArrayExpr *node)
 
static void _outRowExpr (StringInfo str, const RowExpr *node)
 
static void _outRowCompareExpr (StringInfo str, const RowCompareExpr *node)
 
static void _outCoalesceExpr (StringInfo str, const CoalesceExpr *node)
 
static void _outMinMaxExpr (StringInfo str, const MinMaxExpr *node)
 
static void _outSQLValueFunction (StringInfo str, const SQLValueFunction *node)
 
static void _outXmlExpr (StringInfo str, const XmlExpr *node)
 
static void _outNullTest (StringInfo str, const NullTest *node)
 
static void _outBooleanTest (StringInfo str, const BooleanTest *node)
 
static void _outCoerceToDomain (StringInfo str, const CoerceToDomain *node)
 
static void _outCoerceToDomainValue (StringInfo str, const CoerceToDomainValue *node)
 
static void _outSetToDefault (StringInfo str, const SetToDefault *node)
 
static void _outCurrentOfExpr (StringInfo str, const CurrentOfExpr *node)
 
static void _outNextValueExpr (StringInfo str, const NextValueExpr *node)
 
static void _outInferenceElem (StringInfo str, const InferenceElem *node)
 
static void _outTargetEntry (StringInfo str, const TargetEntry *node)
 
static void _outRangeTblRef (StringInfo str, const RangeTblRef *node)
 
static void _outJoinExpr (StringInfo str, const JoinExpr *node)
 
static void _outFromExpr (StringInfo str, const FromExpr *node)
 
static void _outOnConflictExpr (StringInfo str, const OnConflictExpr *node)
 
static void _outPathInfo (StringInfo str, const Path *node)
 
static void _outJoinPathInfo (StringInfo str, const JoinPath *node)
 
static void _outPath (StringInfo str, const Path *node)
 
static void _outIndexPath (StringInfo str, const IndexPath *node)
 
static void _outBitmapHeapPath (StringInfo str, const BitmapHeapPath *node)
 
static void _outBitmapAndPath (StringInfo str, const BitmapAndPath *node)
 
static void _outBitmapOrPath (StringInfo str, const BitmapOrPath *node)
 
static void _outTidPath (StringInfo str, const TidPath *node)
 
static void _outSubqueryScanPath (StringInfo str, const SubqueryScanPath *node)
 
static void _outForeignPath (StringInfo str, const ForeignPath *node)
 
static void _outCustomPath (StringInfo str, const CustomPath *node)
 
static void _outAppendPath (StringInfo str, const AppendPath *node)
 
static void _outMergeAppendPath (StringInfo str, const MergeAppendPath *node)
 
static void _outGroupResultPath (StringInfo str, const GroupResultPath *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 _outIndexClause (StringInfo str, const IndexClause *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 _outAlterStatsStmt (StringInfo str, const AlterStatsStmt *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 _outRawStmt (StringInfo str, const RawStmt *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 142 of file outfuncs.c.

◆ WRITE_ATTRNUMBER_ARRAY

#define WRITE_ATTRNUMBER_ARRAY (   fldname,
  len 
)
Value:
do { \
appendStringInfoString(str, " :" CppAsString(fldname) " "); \
for (int i = 0; i < len; i++) \
appendStringInfo(str, " %d", node->fldname[i]); \
} while(0)
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
#define CppAsString(identifier)
Definition: c.h:221
int i

Definition at line 113 of file outfuncs.c.

Referenced by _outAgg(), _outAppendRelInfo(), _outForeignKeyCacheInfo(), _outForeignKeyOptInfo(), _outGatherMerge(), _outGroup(), _outMergeAppend(), _outRecursiveUnion(), _outSetOp(), _outSort(), _outUnique(), and _outWindowAgg().

◆ WRITE_BITMAPSET_FIELD

◆ WRITE_BOOL_ARRAY

#define WRITE_BOOL_ARRAY (   fldname,
  len 
)
Value:
do { \
appendStringInfoString(str, " :" CppAsString(fldname) " "); \
for (int i = 0; i < len; i++) \
appendStringInfo(str, " %s", booltostr(node->fldname[i])); \
} while(0)
#define booltostr(x)
Definition: outfuncs.c:142
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
#define CppAsString(identifier)
Definition: c.h:221
int i

Definition at line 134 of file outfuncs.c.

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

◆ WRITE_BOOL_FIELD

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

Definition at line 90 of file outfuncs.c.

Referenced by _outA_Indices(), _outAggref(), _outAlterStatsStmt(), _outArrayExpr(), _outBitmapIndexScan(), _outBitmapOr(), _outColumnDef(), _outCommonTableExpr(), _outConst(), _outConstraint(), _outCreateStatsStmt(), _outCreateStmtInfo(), _outDistinctExpr(), _outEquivalenceClass(), _outEquivalenceMember(), _outForeignScan(), _outFuncCall(), _outFuncExpr(), _outFunctionScan(), _outGather(), _outGatherPath(), _outHash(), _outIndexClause(), _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:91
#define CppAsString(identifier)
Definition: c.h:221

Definition at line 76 of file outfuncs.c.

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

◆ WRITE_ENUM_FIELD

#define WRITE_ENUM_FIELD (   fldname,
  enumtype 
)

◆ WRITE_FLOAT_FIELD

◆ WRITE_INT_ARRAY

#define WRITE_INT_ARRAY (   fldname,
  len 
)
Value:
do { \
appendStringInfoString(str, " :" CppAsString(fldname) " "); \
for (int i = 0; i < len; i++) \
appendStringInfo(str, " %d", node->fldname[i]); \
} while(0)
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
#define CppAsString(identifier)
Definition: c.h:221
int i

Definition at line 127 of file outfuncs.c.

Referenced by _outMergeJoin(), and _outPartitionedRelPruneInfo().

◆ WRITE_INT_FIELD

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

Definition at line 55 of file outfuncs.c.

Referenced by _outAgg(), _outAlterStatsStmt(), _outAppend(), _outAppendPath(), _outAppendRelInfo(), _outArrayCoerceExpr(), _outCaseTestExpr(), _outCoerceToDomain(), _outCoerceToDomainValue(), _outColumnDef(), _outCommonTableExpr(), _outConst(), _outCteScan(), _outCurrentOfExpr(), _outDeclareCursorStmt(), _outFieldSelect(), _outForeignKeyCacheInfo(), _outForeignKeyOptInfo(), _outGather(), _outGatherMerge(), _outGatherMergePath(), _outGatherPath(), _outGroup(), _outHash(), _outHashPath(), _outIndexClause(), _outIndexOptInfo(), _outJoinExpr(), _outLockRows(), _outLockRowsPath(), _outMergeAppend(), _outModifyTable(), _outModifyTablePath(), _outMultiAssignRef(), _outNamedArgExpr(), _outNestLoopParam(), _outOnConflictExpr(), _outParam(), _outParamRef(), _outPartitionBoundSpec(), _outPartitionedRelPruneInfo(), _outPartitionPruneStepCombine(), _outPartitionPruneStepOp(), _outPathInfo(), _outPathKey(), _outPathTarget(), _outPlaceHolderInfo(), _outPlanInfo(), _outPlanInvalItem(), _outPlannedStmt(), _outPlannerGlobal(), _outPlannerInfo(), _outPlannerParamItem(), _outPlanRowMark(), _outQuery(), _outRangeTblEntry(), _outRangeTblFunction(), _outRangeTblRef(), _outRawStmt(), _outRecursiveUnion(), _outRecursiveUnionPath(), _outRelabelType(), _outRelOptInfo(), _outSetOp(), _outSetOpPath(), _outSetToDefault(), _outSort(), _outSQLValueFunction(), _outSubLink(), _outSubPlan(), _outSubscriptingRef(), _outTableFunc(), _outTargetEntry(), _outTypeName(), _outUnique(), _outUpperUniquePath(), _outVar(), _outWindowAgg(), _outWindowClause(), _outWindowDef(), _outWorkTableScan(), and _outXmlExpr().

◆ WRITE_LOCATION_FIELD

◆ WRITE_LONG_FIELD

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

Definition at line 72 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:176
#define CppAsString(identifier)
Definition: c.h:221

Definition at line 104 of file outfuncs.c.

Referenced by _outA_ArrayExpr(), _outA_Indices(), _outA_Indirection(), _outAExpr(), _outAgg(), _outAggPath(), _outAggref(), _outAlias(), _outAlternativeSubPlan(), _outAlterStatsStmt(), _outAppend(), _outAppendPath(), _outAppendRelInfo(), _outArrayCoerceExpr(), _outArrayExpr(), _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(), _outGroupResultPath(), _outHash(), _outHashJoin(), _outHashPath(), _outImportForeignSchemaStmt(), _outIndexClause(), _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(), _outPartitionedRelPruneInfo(), _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(), _outRawStmt(), _outRecursiveUnionPath(), _outRelabelType(), _outRelOptInfo(), _outResTarget(), _outRestrictInfo(), _outResult(), _outRollupData(), _outRowCompareExpr(), _outRowExpr(), _outSampleScan(), _outScalarArrayOpExpr(), _outSelectStmt(), _outSetOperationStmt(), _outSetOpPath(), _outSortBy(), _outSortPath(), _outSpecialJoinInfo(), _outSubLink(), _outSubPlan(), _outSubqueryScan(), _outSubqueryScanPath(), _outSubscriptingRef(), _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 51 of file outfuncs.c.

Referenced by _outA_ArrayExpr(), _outA_Indices(), _outA_Indirection(), _outA_Star(), _outAConst(), _outAExpr(), _outAgg(), _outAggPath(), _outAggref(), _outAlias(), _outAlternativeSubPlan(), _outAlterStatsStmt(), _outAppend(), _outAppendPath(), _outAppendRelInfo(), _outArrayCoerceExpr(), _outArrayExpr(), _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(), _outGroupResultPath(), _outHash(), _outHashJoin(), _outHashPath(), _outImportForeignSchemaStmt(), _outIndexClause(), _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(), _outPartitionedRelPruneInfo(), _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(), _outRawStmt(), _outRecursiveUnion(), _outRecursiveUnionPath(), _outRelabelType(), _outRelOptInfo(), _outResTarget(), _outRestrictInfo(), _outResult(), _outRollupData(), _outRowCompareExpr(), _outRowExpr(), _outRowMarkClause(), _outSampleScan(), _outScalarArrayOpExpr(), _outScan(), _outSelectStmt(), _outSeqScan(), _outSetOp(), _outSetOperationStmt(), _outSetOpPath(), _outSetToDefault(), _outSort(), _outSortBy(), _outSortGroupClause(), _outSortPath(), _outSpecialJoinInfo(), _outSQLValueFunction(), _outStatisticExtInfo(), _outSubLink(), _outSubPlan(), _outSubqueryScan(), _outSubqueryScanPath(), _outSubscriptingRef(), _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_ARRAY

#define WRITE_OID_ARRAY (   fldname,
  len 
)
Value:
do { \
appendStringInfoString(str, " :" CppAsString(fldname) " "); \
for (int i = 0; i < len; i++) \
appendStringInfo(str, " %u", node->fldname[i]); \
} while(0)
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
#define CppAsString(identifier)
Definition: c.h:221
int i

Definition at line 120 of file outfuncs.c.

Referenced by _outAgg(), _outForeignKeyCacheInfo(), _outForeignKeyOptInfo(), _outGatherMerge(), _outGroup(), _outMergeAppend(), _outMergeJoin(), _outPartitionedRelPruneInfo(), _outRecursiveUnion(), _outSetOp(), _outSort(), _outUnique(), and _outWindowAgg().

◆ 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:91
#define CppAsString(identifier)
Definition: c.h:221
#define UINT64_FORMAT
Definition: c.h:410

Definition at line 63 of file outfuncs.c.

Referenced by _outAgg(), _outAggPath(), _outGroupingSetsPath(), and _outPlannedStmt().

◆ WRITE_UINT_FIELD

Function Documentation

◆ _outA_ArrayExpr()

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

Definition at line 3346 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3347 {
3348  WRITE_NODE_TYPE("A_ARRAYEXPR");
3349 
3350  WRITE_NODE_FIELD(elements);
3351  WRITE_LOCATION_FIELD(location);
3352 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Indices()

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

Definition at line 3327 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3328 {
3329  WRITE_NODE_TYPE("A_INDICES");
3330 
3331  WRITE_BOOL_FIELD(is_slice);
3332  WRITE_NODE_FIELD(lidx);
3333  WRITE_NODE_FIELD(uidx);
3334 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Indirection()

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

Definition at line 3337 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3338 {
3339  WRITE_NODE_TYPE("A_INDIRECTION");
3340 
3342  WRITE_NODE_FIELD(indirection);
3343 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Star()

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

Definition at line 3321 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3322 {
3323  WRITE_NODE_TYPE("A_STAR");
3324 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outAConst()

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

Definition at line 3311 of file outfuncs.c.

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

Referenced by outNode().

3312 {
3313  WRITE_NODE_TYPE("A_CONST");
3314 
3315  appendStringInfoString(str, " :val ");
3316  _outValue(str, &(node->val));
3317  WRITE_LOCATION_FIELD(location);
3318 }
static void _outValue(StringInfo str, const Value *value)
Definition: outfuncs.c:3238
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
Value val
Definition: parsenodes.h:288

◆ _outAExpr()

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

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

3157 {
3158  WRITE_NODE_TYPE("AEXPR");
3159 
3160  switch (node->kind)
3161  {
3162  case AEXPR_OP:
3163  appendStringInfoChar(str, ' ');
3165  break;
3166  case AEXPR_OP_ANY:
3167  appendStringInfoChar(str, ' ');
3169  appendStringInfoString(str, " ANY ");
3170  break;
3171  case AEXPR_OP_ALL:
3172  appendStringInfoChar(str, ' ');
3174  appendStringInfoString(str, " ALL ");
3175  break;
3176  case AEXPR_DISTINCT:
3177  appendStringInfoString(str, " DISTINCT ");
3179  break;
3180  case AEXPR_NOT_DISTINCT:
3181  appendStringInfoString(str, " NOT_DISTINCT ");
3183  break;
3184  case AEXPR_NULLIF:
3185  appendStringInfoString(str, " NULLIF ");
3187  break;
3188  case AEXPR_OF:
3189  appendStringInfoString(str, " OF ");
3191  break;
3192  case AEXPR_IN:
3193  appendStringInfoString(str, " IN ");
3195  break;
3196  case AEXPR_LIKE:
3197  appendStringInfoString(str, " LIKE ");
3199  break;
3200  case AEXPR_ILIKE:
3201  appendStringInfoString(str, " ILIKE ");
3203  break;
3204  case AEXPR_SIMILAR:
3205  appendStringInfoString(str, " SIMILAR ");
3207  break;
3208  case AEXPR_BETWEEN:
3209  appendStringInfoString(str, " BETWEEN ");
3211  break;
3212  case AEXPR_NOT_BETWEEN:
3213  appendStringInfoString(str, " NOT_BETWEEN ");
3215  break;
3216  case AEXPR_BETWEEN_SYM:
3217  appendStringInfoString(str, " BETWEEN_SYM ");
3219  break;
3220  case AEXPR_NOT_BETWEEN_SYM:
3221  appendStringInfoString(str, " NOT_BETWEEN_SYM ");
3223  break;
3224  case AEXPR_PAREN:
3225  appendStringInfoString(str, " PAREN");
3226  break;
3227  default:
3228  appendStringInfoString(str, " ??");
3229  break;
3230  }
3231 
3232  WRITE_NODE_FIELD(lexpr);
3233  WRITE_NODE_FIELD(rexpr);
3234  WRITE_LOCATION_FIELD(location);
3235 }
A_Expr_Kind kind
Definition: parsenodes.h:275
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:188
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:521
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAgg()

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

Definition at line 773 of file outfuncs.c.

References _outPlanInfo(), WRITE_ATTRNUMBER_ARRAY, WRITE_BITMAPSET_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LONG_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_ARRAY, and WRITE_UINT64_FIELD.

Referenced by outNode().

774 {
775  WRITE_NODE_TYPE("AGG");
776 
777  _outPlanInfo(str, (const Plan *) node);
778 
779  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
780  WRITE_ENUM_FIELD(aggsplit, AggSplit);
781  WRITE_INT_FIELD(numCols);
782  WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
783  WRITE_OID_ARRAY(grpOperators, node->numCols);
784  WRITE_OID_ARRAY(grpCollations, node->numCols);
785  WRITE_LONG_FIELD(numGroups);
786  WRITE_UINT64_FIELD(transitionSpace);
787  WRITE_BITMAPSET_FIELD(aggParams);
788  WRITE_NODE_FIELD(groupingSets);
789  WRITE_NODE_FIELD(chain);
790 }
int numCols
Definition: plannodes.h:811
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_LONG_FIELD(fldname)
Definition: outfuncs.c:72
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:63
AggSplit
Definition: nodes.h:777
AggStrategy
Definition: nodes.h:755
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAggPath()

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

Definition at line 1970 of file outfuncs.c.

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

Referenced by outNode().

1971 {
1972  WRITE_NODE_TYPE("AGGPATH");
1973 
1974  _outPathInfo(str, (const Path *) node);
1975 
1977  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
1978  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1979  WRITE_FLOAT_FIELD(numGroups, "%.0f");
1980  WRITE_UINT64_FIELD(transitionSpace);
1981  WRITE_NODE_FIELD(groupClause);
1982  WRITE_NODE_FIELD(qual);
1983 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:63
AggSplit
Definition: nodes.h:777
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
AggStrategy
Definition: nodes.h:755
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAggref()

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

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

1118 {
1119  WRITE_NODE_TYPE("AGGREF");
1120 
1121  WRITE_OID_FIELD(aggfnoid);
1122  WRITE_OID_FIELD(aggtype);
1123  WRITE_OID_FIELD(aggcollid);
1124  WRITE_OID_FIELD(inputcollid);
1125  WRITE_OID_FIELD(aggtranstype);
1126  WRITE_NODE_FIELD(aggargtypes);
1127  WRITE_NODE_FIELD(aggdirectargs);
1129  WRITE_NODE_FIELD(aggorder);
1130  WRITE_NODE_FIELD(aggdistinct);
1131  WRITE_NODE_FIELD(aggfilter);
1132  WRITE_BOOL_FIELD(aggstar);
1133  WRITE_BOOL_FIELD(aggvariadic);
1134  WRITE_CHAR_FIELD(aggkind);
1135  WRITE_UINT_FIELD(agglevelsup);
1136  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1137  WRITE_LOCATION_FIELD(location);
1138 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
AggSplit
Definition: nodes.h:777
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlias()

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

Definition at line 1007 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1008 {
1009  WRITE_NODE_TYPE("ALIAS");
1010 
1011  WRITE_STRING_FIELD(aliasname);
1012  WRITE_NODE_FIELD(colnames);
1013 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlternativeSubPlan()

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

Definition at line 1333 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1334 {
1335  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1336 
1337  WRITE_NODE_FIELD(subplans);
1338 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlterStatsStmt()

static void _outAlterStatsStmt ( StringInfo  str,
const AlterStatsStmt node 
)
static

Definition at line 2681 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2682 {
2683  WRITE_NODE_TYPE("ALTERSTATSSTMT");
2684 
2685  WRITE_NODE_FIELD(defnames);
2686  WRITE_INT_FIELD(stxstattarget);
2687  WRITE_BOOL_FIELD(missing_ok);
2688 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAppend()

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

Definition at line 429 of file outfuncs.c.

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

Referenced by outNode().

430 {
431  WRITE_NODE_TYPE("APPEND");
432 
433  _outPlanInfo(str, (const Plan *) node);
434 
435  WRITE_BITMAPSET_FIELD(apprelids);
436  WRITE_NODE_FIELD(appendplans);
437  WRITE_INT_FIELD(first_partial_plan);
438  WRITE_NODE_FIELD(part_prune_info);
439 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAppendPath()

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

Definition at line 1846 of file outfuncs.c.

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

Referenced by outNode().

1847 {
1848  WRITE_NODE_TYPE("APPENDPATH");
1849 
1850  _outPathInfo(str, (const Path *) node);
1851 
1852  WRITE_NODE_FIELD(partitioned_rels);
1853  WRITE_NODE_FIELD(subpaths);
1854  WRITE_INT_FIELD(first_partial_path);
1855  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1856 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAppendRelInfo()

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

Definition at line 2510 of file outfuncs.c.

References AppendRelInfo::num_child_cols, WRITE_ATTRNUMBER_ARRAY, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2511 {
2512  WRITE_NODE_TYPE("APPENDRELINFO");
2513 
2514  WRITE_UINT_FIELD(parent_relid);
2515  WRITE_UINT_FIELD(child_relid);
2516  WRITE_OID_FIELD(parent_reltype);
2517  WRITE_OID_FIELD(child_reltype);
2518  WRITE_NODE_FIELD(translated_vars);
2519  WRITE_INT_FIELD(num_child_cols);
2520  WRITE_ATTRNUMBER_ARRAY(parent_colnos, node->num_child_cols);
2521  WRITE_OID_FIELD(parent_reloid);
2522 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
int num_child_cols
Definition: pathnodes.h:2227
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outArrayCoerceExpr()

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

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

1390 {
1391  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1392 
1394  WRITE_NODE_FIELD(elemexpr);
1395  WRITE_OID_FIELD(resulttype);
1396  WRITE_INT_FIELD(resulttypmod);
1397  WRITE_OID_FIELD(resultcollid);
1398  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1399  WRITE_LOCATION_FIELD(location);
1400 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:456
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outArrayExpr()

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

Definition at line 1457 of file outfuncs.c.

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

Referenced by outNode().

1458 {
1459  WRITE_NODE_TYPE("ARRAY");
1460 
1461  WRITE_OID_FIELD(array_typeid);
1462  WRITE_OID_FIELD(array_collid);
1463  WRITE_OID_FIELD(element_typeid);
1464  WRITE_NODE_FIELD(elements);
1465  WRITE_BOOL_FIELD(multidims);
1466  WRITE_LOCATION_FIELD(location);
1467 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapAnd()

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

Definition at line 474 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

475 {
476  WRITE_NODE_TYPE("BITMAPAND");
477 
478  _outPlanInfo(str, (const Plan *) node);
479 
480  WRITE_NODE_FIELD(bitmapplans);
481 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapAndPath()

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

Definition at line 1779 of file outfuncs.c.

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

Referenced by outNode().

1780 {
1781  WRITE_NODE_TYPE("BITMAPANDPATH");
1782 
1783  _outPathInfo(str, (const Path *) node);
1784 
1785  WRITE_NODE_FIELD(bitmapquals);
1786  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1787 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapHeapPath()

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

Definition at line 1769 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1770 {
1771  WRITE_NODE_TYPE("BITMAPHEAPPATH");
1772 
1773  _outPathInfo(str, (const Path *) node);
1774 
1775  WRITE_NODE_FIELD(bitmapqual);
1776 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapHeapScan()

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

Definition at line 595 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

596 {
597  WRITE_NODE_TYPE("BITMAPHEAPSCAN");
598 
599  _outScanInfo(str, (const Scan *) node);
600 
601  WRITE_NODE_FIELD(bitmapqualorig);
602 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapIndexScan()

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

Definition at line 582 of file outfuncs.c.

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

Referenced by outNode().

583 {
584  WRITE_NODE_TYPE("BITMAPINDEXSCAN");
585 
586  _outScanInfo(str, (const Scan *) node);
587 
588  WRITE_OID_FIELD(indexid);
589  WRITE_BOOL_FIELD(isshared);
590  WRITE_NODE_FIELD(indexqual);
591  WRITE_NODE_FIELD(indexqualorig);
592 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapOr()

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

Definition at line 484 of file outfuncs.c.

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

Referenced by outNode().

485 {
486  WRITE_NODE_TYPE("BITMAPOR");
487 
488  _outPlanInfo(str, (const Plan *) node);
489 
490  WRITE_BOOL_FIELD(isshared);
491  WRITE_NODE_FIELD(bitmapplans);
492 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapOrPath()

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

Definition at line 1790 of file outfuncs.c.

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

Referenced by outNode().

1791 {
1792  WRITE_NODE_TYPE("BITMAPORPATH");
1793 
1794  _outPathInfo(str, (const Path *) node);
1795 
1796  WRITE_NODE_FIELD(bitmapquals);
1797  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1798 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBooleanTest()

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

Definition at line 1557 of file outfuncs.c.

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

Referenced by outNode().

1558 {
1559  WRITE_NODE_TYPE("BOOLEANTEST");
1560 
1562  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1563  WRITE_LOCATION_FIELD(location);
1564 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
BoolTestType
Definition: primnodes.h:1234
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBoolExpr()

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

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

1271 {
1272  char *opstr = NULL;
1273 
1274  WRITE_NODE_TYPE("BOOLEXPR");
1275 
1276  /* do-it-yourself enum representation */
1277  switch (node->boolop)
1278  {
1279  case AND_EXPR:
1280  opstr = "and";
1281  break;
1282  case OR_EXPR:
1283  opstr = "or";
1284  break;
1285  case NOT_EXPR:
1286  opstr = "not";
1287  break;
1288  }
1289  appendStringInfoString(str, " :boolop ");
1290  outToken(str, opstr);
1291 
1293  WRITE_LOCATION_FIELD(location);
1294 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:153
BoolExprType boolop
Definition: primnodes.h:582
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCaseExpr()

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

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

1425 {
1426  WRITE_NODE_TYPE("CASE");
1427 
1428  WRITE_OID_FIELD(casetype);
1429  WRITE_OID_FIELD(casecollid);
1432  WRITE_NODE_FIELD(defresult);
1433  WRITE_LOCATION_FIELD(location);
1434 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCaseTestExpr()

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

Definition at line 1447 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1448 {
1449  WRITE_NODE_TYPE("CASETESTEXPR");
1450 
1451  WRITE_OID_FIELD(typeId);
1452  WRITE_INT_FIELD(typeMod);
1453  WRITE_OID_FIELD(collation);
1454 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCaseWhen()

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

Definition at line 1437 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1438 {
1439  WRITE_NODE_TYPE("WHEN");
1440 
1441  WRITE_NODE_FIELD(expr);
1442  WRITE_NODE_FIELD(result);
1443  WRITE_LOCATION_FIELD(location);
1444 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoalesceExpr()

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

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

1496 {
1497  WRITE_NODE_TYPE("COALESCE");
1498 
1499  WRITE_OID_FIELD(coalescetype);
1500  WRITE_OID_FIELD(coalescecollid);
1502  WRITE_LOCATION_FIELD(location);
1503 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoerceToDomain()

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

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

1568 {
1569  WRITE_NODE_TYPE("COERCETODOMAIN");
1570 
1572  WRITE_OID_FIELD(resulttype);
1573  WRITE_INT_FIELD(resulttypmod);
1574  WRITE_OID_FIELD(resultcollid);
1575  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1576  WRITE_LOCATION_FIELD(location);
1577 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:456
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoerceToDomainValue()

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

Definition at line 1580 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1581 {
1582  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1583 
1584  WRITE_OID_FIELD(typeId);
1585  WRITE_INT_FIELD(typeMod);
1586  WRITE_OID_FIELD(collation);
1587  WRITE_LOCATION_FIELD(location);
1588 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCoerceViaIO()

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

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

1378 {
1379  WRITE_NODE_TYPE("COERCEVIAIO");
1380 
1382  WRITE_OID_FIELD(resulttype);
1383  WRITE_OID_FIELD(resultcollid);
1384  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1385  WRITE_LOCATION_FIELD(location);
1386 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:456
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCollateClause()

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

Definition at line 2853 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2854 {
2855  WRITE_NODE_TYPE("COLLATECLAUSE");
2856 
2858  WRITE_NODE_FIELD(collname);
2859  WRITE_LOCATION_FIELD(location);
2860 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCollateExpr()

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

Definition at line 1414 of file outfuncs.c.

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

Referenced by outNode().

1415 {
1416  WRITE_NODE_TYPE("COLLATE");
1417 
1419  WRITE_OID_FIELD(collOid);
1420  WRITE_LOCATION_FIELD(location);
1421 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outColumnDef()

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

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

2805 {
2806  WRITE_NODE_TYPE("COLUMNDEF");
2807 
2808  WRITE_STRING_FIELD(colname);
2809  WRITE_NODE_FIELD(typeName);
2810  WRITE_INT_FIELD(inhcount);
2811  WRITE_BOOL_FIELD(is_local);
2812  WRITE_BOOL_FIELD(is_not_null);
2813  WRITE_BOOL_FIELD(is_from_type);
2814  WRITE_CHAR_FIELD(storage);
2815  WRITE_NODE_FIELD(raw_default);
2816  WRITE_NODE_FIELD(cooked_default);
2817  WRITE_CHAR_FIELD(identity);
2818  WRITE_NODE_FIELD(identitySequence);
2819  WRITE_CHAR_FIELD(generated);
2820  WRITE_NODE_FIELD(collClause);
2821  WRITE_OID_FIELD(collOid);
2822  WRITE_NODE_FIELD(constraints);
2823  WRITE_NODE_FIELD(fdwoptions);
2824  WRITE_LOCATION_FIELD(location);
2825 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outColumnRef()

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

Definition at line 3279 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3280 {
3281  WRITE_NODE_TYPE("COLUMNREF");
3282 
3283  WRITE_NODE_FIELD(fields);
3284  WRITE_LOCATION_FIELD(location);
3285 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCommonTableExpr()

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

Definition at line 3021 of file outfuncs.c.

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

Referenced by outNode().

3022 {
3023  WRITE_NODE_TYPE("COMMONTABLEEXPR");
3024 
3025  WRITE_STRING_FIELD(ctename);
3026  WRITE_NODE_FIELD(aliascolnames);
3027  WRITE_ENUM_FIELD(ctematerialized, CTEMaterialize);
3028  WRITE_NODE_FIELD(ctequery);
3029  WRITE_LOCATION_FIELD(location);
3030  WRITE_BOOL_FIELD(cterecursive);
3031  WRITE_INT_FIELD(cterefcount);
3032  WRITE_NODE_FIELD(ctecolnames);
3033  WRITE_NODE_FIELD(ctecoltypes);
3034  WRITE_NODE_FIELD(ctecoltypmods);
3035  WRITE_NODE_FIELD(ctecolcollations);
3036 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
CTEMaterialize
Definition: parsenodes.h:1438
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outConst()

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

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

1085 {
1086  WRITE_NODE_TYPE("CONST");
1087 
1088  WRITE_OID_FIELD(consttype);
1089  WRITE_INT_FIELD(consttypmod);
1090  WRITE_OID_FIELD(constcollid);
1091  WRITE_INT_FIELD(constlen);
1092  WRITE_BOOL_FIELD(constbyval);
1093  WRITE_BOOL_FIELD(constisnull);
1094  WRITE_LOCATION_FIELD(location);
1095 
1096  appendStringInfoString(str, " :constvalue ");
1097  if (node->constisnull)
1098  appendStringInfoString(str, "<>");
1099  else
1100  outDatum(str, node->constvalue, node->constlen, node->constbyval);
1101 }
Datum constvalue
Definition: primnodes.h:214
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
bool constbyval
Definition: primnodes.h:217
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void outDatum(StringInfo str, Datum value, int typlen, bool typbyval)
Definition: outfuncs.c:259
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
int constlen
Definition: primnodes.h:213
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
bool constisnull
Definition: primnodes.h:215

◆ _outConstraint()

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

Definition at line 3466 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_GENERATED, 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().

3467 {
3468  WRITE_NODE_TYPE("CONSTRAINT");
3469 
3470  WRITE_STRING_FIELD(conname);
3471  WRITE_BOOL_FIELD(deferrable);
3472  WRITE_BOOL_FIELD(initdeferred);
3473  WRITE_LOCATION_FIELD(location);
3474 
3475  appendStringInfoString(str, " :contype ");
3476  switch (node->contype)
3477  {
3478  case CONSTR_NULL:
3479  appendStringInfoString(str, "NULL");
3480  break;
3481 
3482  case CONSTR_NOTNULL:
3483  appendStringInfoString(str, "NOT_NULL");
3484  break;
3485 
3486  case CONSTR_DEFAULT:
3487  appendStringInfoString(str, "DEFAULT");
3488  WRITE_NODE_FIELD(raw_expr);
3489  WRITE_STRING_FIELD(cooked_expr);
3490  break;
3491 
3492  case CONSTR_IDENTITY:
3493  appendStringInfoString(str, "IDENTITY");
3494  WRITE_NODE_FIELD(raw_expr);
3495  WRITE_STRING_FIELD(cooked_expr);
3496  WRITE_CHAR_FIELD(generated_when);
3497  break;
3498 
3499  case CONSTR_GENERATED:
3500  appendStringInfoString(str, "GENERATED");
3501  WRITE_NODE_FIELD(raw_expr);
3502  WRITE_STRING_FIELD(cooked_expr);
3503  WRITE_CHAR_FIELD(generated_when);
3504  break;
3505 
3506  case CONSTR_CHECK:
3507  appendStringInfoString(str, "CHECK");
3508  WRITE_BOOL_FIELD(is_no_inherit);
3509  WRITE_NODE_FIELD(raw_expr);
3510  WRITE_STRING_FIELD(cooked_expr);
3511  break;
3512 
3513  case CONSTR_PRIMARY:
3514  appendStringInfoString(str, "PRIMARY_KEY");
3515  WRITE_NODE_FIELD(keys);
3516  WRITE_NODE_FIELD(including);
3518  WRITE_STRING_FIELD(indexname);
3519  WRITE_STRING_FIELD(indexspace);
3520  WRITE_BOOL_FIELD(reset_default_tblspc);
3521  /* access_method and where_clause not currently used */
3522  break;
3523 
3524  case CONSTR_UNIQUE:
3525  appendStringInfoString(str, "UNIQUE");
3526  WRITE_NODE_FIELD(keys);
3527  WRITE_NODE_FIELD(including);
3529  WRITE_STRING_FIELD(indexname);
3530  WRITE_STRING_FIELD(indexspace);
3531  WRITE_BOOL_FIELD(reset_default_tblspc);
3532  /* access_method and where_clause not currently used */
3533  break;
3534 
3535  case CONSTR_EXCLUSION:
3536  appendStringInfoString(str, "EXCLUSION");
3537  WRITE_NODE_FIELD(exclusions);
3538  WRITE_NODE_FIELD(including);
3540  WRITE_STRING_FIELD(indexname);
3541  WRITE_STRING_FIELD(indexspace);
3542  WRITE_BOOL_FIELD(reset_default_tblspc);
3543  WRITE_STRING_FIELD(access_method);
3544  WRITE_NODE_FIELD(where_clause);
3545  break;
3546 
3547  case CONSTR_FOREIGN:
3548  appendStringInfoString(str, "FOREIGN_KEY");
3549  WRITE_NODE_FIELD(pktable);
3550  WRITE_NODE_FIELD(fk_attrs);
3551  WRITE_NODE_FIELD(pk_attrs);
3552  WRITE_CHAR_FIELD(fk_matchtype);
3553  WRITE_CHAR_FIELD(fk_upd_action);
3554  WRITE_CHAR_FIELD(fk_del_action);
3555  WRITE_NODE_FIELD(old_conpfeqop);
3556  WRITE_OID_FIELD(old_pktable_oid);
3557  WRITE_BOOL_FIELD(skip_validation);
3558  WRITE_BOOL_FIELD(initially_valid);
3559  break;
3560 
3562  appendStringInfoString(str, "ATTR_DEFERRABLE");
3563  break;
3564 
3566  appendStringInfoString(str, "ATTR_NOT_DEFERRABLE");
3567  break;
3568 
3569  case CONSTR_ATTR_DEFERRED:
3570  appendStringInfoString(str, "ATTR_DEFERRED");
3571  break;
3572 
3573  case CONSTR_ATTR_IMMEDIATE:
3574  appendStringInfoString(str, "ATTR_IMMEDIATE");
3575  break;
3576 
3577  default:
3578  appendStringInfo(str, "<unrecognized_constraint %d>",
3579  (int) node->contype);
3580  break;
3581  }
3582 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
ConstrType contype
Definition: parsenodes.h:2149
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outConvertRowtypeExpr()

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

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

1404 {
1405  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1406 
1408  WRITE_OID_FIELD(resulttype);
1409  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1410  WRITE_LOCATION_FIELD(location);
1411 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:456
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateForeignTableStmt()

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

Definition at line 2616 of file outfuncs.c.

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

Referenced by outNode().

2617 {
2618  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2619 
2620  _outCreateStmtInfo(str, (const CreateStmt *) node);
2621 
2622  WRITE_STRING_FIELD(servername);
2624 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2591
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateStatsStmt()

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

Definition at line 2668 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2669 {
2670  WRITE_NODE_TYPE("CREATESTATSSTMT");
2671 
2672  WRITE_NODE_FIELD(defnames);
2673  WRITE_NODE_FIELD(stat_types);
2674  WRITE_NODE_FIELD(exprs);
2675  WRITE_NODE_FIELD(relations);
2676  WRITE_STRING_FIELD(stxcomment);
2677  WRITE_BOOL_FIELD(if_not_exists);
2678 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateStmt()

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

Definition at line 2608 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2609 {
2610  WRITE_NODE_TYPE("CREATESTMT");
2611 
2612  _outCreateStmtInfo(str, (const CreateStmt *) node);
2613 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2591
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCreateStmtInfo()

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

Definition at line 2591 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2592 {
2593  WRITE_NODE_FIELD(relation);
2594  WRITE_NODE_FIELD(tableElts);
2595  WRITE_NODE_FIELD(inhRelations);
2596  WRITE_NODE_FIELD(partspec);
2597  WRITE_NODE_FIELD(partbound);
2598  WRITE_NODE_FIELD(ofTypename);
2599  WRITE_NODE_FIELD(constraints);
2601  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2602  WRITE_STRING_FIELD(tablespacename);
2603  WRITE_STRING_FIELD(accessMethod);
2604  WRITE_BOOL_FIELD(if_not_exists);
2605 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCteScan()

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

Definition at line 656 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

657 {
658  WRITE_NODE_TYPE("CTESCAN");
659 
660  _outScanInfo(str, (const Scan *) node);
661 
662  WRITE_INT_FIELD(ctePlanId);
663  WRITE_INT_FIELD(cteParam);
664 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCurrentOfExpr()

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

Definition at line 1602 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1603 {
1604  WRITE_NODE_TYPE("CURRENTOFEXPR");
1605 
1606  WRITE_UINT_FIELD(cvarno);
1607  WRITE_STRING_FIELD(cursor_name);
1608  WRITE_INT_FIELD(cursor_param);
1609 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95

◆ _outCustomPath()

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

Definition at line 1832 of file outfuncs.c.

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

Referenced by outNode().

1833 {
1834  WRITE_NODE_TYPE("CUSTOMPATH");
1835 
1836  _outPathInfo(str, (const Path *) node);
1837 
1838  WRITE_UINT_FIELD(flags);
1839  WRITE_NODE_FIELD(custom_paths);
1840  WRITE_NODE_FIELD(custom_private);
1841  appendStringInfoString(str, " :methods ");
1842  outToken(str, node->methods->CustomName);
1843 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:153
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
const struct CustomPathMethods * methods
Definition: pathnodes.h:1353
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
const char * CustomName
Definition: extensible.h:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCustomScan()

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

Definition at line 704 of file outfuncs.c.

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

Referenced by outNode().

705 {
706  WRITE_NODE_TYPE("CUSTOMSCAN");
707 
708  _outScanInfo(str, (const Scan *) node);
709 
710  WRITE_UINT_FIELD(flags);
711  WRITE_NODE_FIELD(custom_plans);
712  WRITE_NODE_FIELD(custom_exprs);
713  WRITE_NODE_FIELD(custom_private);
714  WRITE_NODE_FIELD(custom_scan_tlist);
715  WRITE_BITMAPSET_FIELD(custom_relids);
716  /* CustomName is a key to lookup CustomScanMethods */
717  appendStringInfoString(str, " :methods ");
718  outToken(str, node->methods->CustomName);
719 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:153
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
const struct CustomScanMethods * methods
Definition: plannodes.h:650
const char * CustomName
Definition: extensible.h:110
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outDeclareCursorStmt()

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

Definition at line 2700 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2701 {
2702  WRITE_NODE_TYPE("DECLARECURSOR");
2703 
2704  WRITE_STRING_FIELD(portalname);
2706  WRITE_NODE_FIELD(query);
2707 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outDefElem()

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

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

2753 {
2754  WRITE_NODE_TYPE("DEFELEM");
2755 
2756  WRITE_STRING_FIELD(defnamespace);
2757  WRITE_STRING_FIELD(defname);
2759  WRITE_ENUM_FIELD(defaction, DefElemAction);
2760  WRITE_LOCATION_FIELD(location);
2761 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
DefElemAction
Definition: parsenodes.h:718
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outDistinctExpr()

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

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

1228 {
1229  WRITE_NODE_TYPE("DISTINCTEXPR");
1230 
1231  WRITE_OID_FIELD(opno);
1232  WRITE_OID_FIELD(opfuncid);
1233  WRITE_OID_FIELD(opresulttype);
1234  WRITE_BOOL_FIELD(opretset);
1235  WRITE_OID_FIELD(opcollid);
1236  WRITE_OID_FIELD(inputcollid);
1238  WRITE_LOCATION_FIELD(location);
1239 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outEquivalenceClass()

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

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

2358 {
2359  /*
2360  * To simplify reading, we just chase up to the topmost merged EC and
2361  * print that, without bothering to show the merge-ees separately.
2362  */
2363  while (node->ec_merged)
2364  node = node->ec_merged;
2365 
2366  WRITE_NODE_TYPE("EQUIVALENCECLASS");
2367 
2368  WRITE_NODE_FIELD(ec_opfamilies);
2369  WRITE_OID_FIELD(ec_collation);
2370  WRITE_NODE_FIELD(ec_members);
2371  WRITE_NODE_FIELD(ec_sources);
2372  WRITE_NODE_FIELD(ec_derives);
2373  WRITE_BITMAPSET_FIELD(ec_relids);
2374  WRITE_BOOL_FIELD(ec_has_const);
2375  WRITE_BOOL_FIELD(ec_has_volatile);
2376  WRITE_BOOL_FIELD(ec_below_outer_join);
2377  WRITE_BOOL_FIELD(ec_broken);
2378  WRITE_UINT_FIELD(ec_sortref);
2379  WRITE_UINT_FIELD(ec_min_security);
2380  WRITE_UINT_FIELD(ec_max_security);
2381 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
struct EquivalenceClass * ec_merged
Definition: pathnodes.h:948
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outEquivalenceMember()

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

Definition at line 2384 of file outfuncs.c.

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

Referenced by outNode().

2385 {
2386  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2387 
2388  WRITE_NODE_FIELD(em_expr);
2389  WRITE_BITMAPSET_FIELD(em_relids);
2390  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2391  WRITE_BOOL_FIELD(em_is_const);
2392  WRITE_BOOL_FIELD(em_is_child);
2393  WRITE_OID_FIELD(em_datatype);
2394 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outExtensibleNode()

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

Definition at line 2567 of file outfuncs.c.

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

Referenced by outNode().

2568 {
2569  const ExtensibleNodeMethods *methods;
2570 
2571  methods = GetExtensibleNodeMethods(node->extnodename, false);
2572 
2573  WRITE_NODE_TYPE("EXTENSIBLENODE");
2574 
2575  WRITE_STRING_FIELD(extnodename);
2576 
2577  /* serialize the private fields */
2578  methods->nodeOut(str, node);
2579 }
const char * extnodename
Definition: extensible.h:35
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
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 1341 of file outfuncs.c.

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

Referenced by outNode().

1342 {
1343  WRITE_NODE_TYPE("FIELDSELECT");
1344 
1346  WRITE_INT_FIELD(fieldnum);
1347  WRITE_OID_FIELD(resulttype);
1348  WRITE_INT_FIELD(resulttypmod);
1349  WRITE_OID_FIELD(resultcollid);
1350 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFieldStore()

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

Definition at line 1353 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1354 {
1355  WRITE_NODE_TYPE("FIELDSTORE");
1356 
1358  WRITE_NODE_FIELD(newvals);
1359  WRITE_NODE_FIELD(fieldnums);
1360  WRITE_OID_FIELD(resulttype);
1361 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outForeignKeyCacheInfo()

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

Definition at line 3585 of file outfuncs.c.

References ForeignKeyCacheInfo::nkeys, WRITE_ATTRNUMBER_ARRAY, WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_OID_ARRAY, and WRITE_OID_FIELD.

Referenced by outNode().

3586 {
3587  WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
3588 
3589  WRITE_OID_FIELD(conoid);
3590  WRITE_OID_FIELD(conrelid);
3591  WRITE_OID_FIELD(confrelid);
3592  WRITE_INT_FIELD(nkeys);
3593  WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
3594  WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
3595  WRITE_OID_ARRAY(conpfeqop, node->nkeys);
3596 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outForeignKeyOptInfo()

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

Definition at line 2320 of file outfuncs.c.

References appendStringInfo(), appendStringInfoString(), ForeignKeyOptInfo::eclass, i, list_length(), ForeignKeyOptInfo::nkeys, ForeignKeyOptInfo::rinfos, WRITE_ATTRNUMBER_ARRAY, WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_OID_ARRAY, and WRITE_UINT_FIELD.

Referenced by outNode().

2321 {
2322  int i;
2323 
2324  WRITE_NODE_TYPE("FOREIGNKEYOPTINFO");
2325 
2326  WRITE_UINT_FIELD(con_relid);
2327  WRITE_UINT_FIELD(ref_relid);
2328  WRITE_INT_FIELD(nkeys);
2329  WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
2330  WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
2331  WRITE_OID_ARRAY(conpfeqop, node->nkeys);
2332  WRITE_INT_FIELD(nmatched_ec);
2333  WRITE_INT_FIELD(nmatched_rcols);
2334  WRITE_INT_FIELD(nmatched_ri);
2335  /* for compactness, just print the number of matches per column: */
2336  appendStringInfoString(str, " :eclass");
2337  for (i = 0; i < node->nkeys; i++)
2338  appendStringInfo(str, " %d", (node->eclass[i] != NULL));
2339  appendStringInfoString(str, " :rinfos");
2340  for (i = 0; i < node->nkeys; i++)
2341  appendStringInfo(str, " %d", list_length(node->rinfos[i]));
2342 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
Definition: pathnodes.h:868
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static int list_length(const List *l)
Definition: pg_list.h:169
int i
List * rinfos[INDEX_MAX_KEYS]
Definition: pathnodes.h:870

◆ _outForeignPath()

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

Definition at line 1821 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1822 {
1823  WRITE_NODE_TYPE("FOREIGNPATH");
1824 
1825  _outPathInfo(str, (const Path *) node);
1826 
1827  WRITE_NODE_FIELD(fdw_outerpath);
1828  WRITE_NODE_FIELD(fdw_private);
1829 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outForeignScan()

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

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

688 {
689  WRITE_NODE_TYPE("FOREIGNSCAN");
690 
691  _outScanInfo(str, (const Scan *) node);
692 
693  WRITE_ENUM_FIELD(operation, CmdType);
694  WRITE_OID_FIELD(fs_server);
695  WRITE_NODE_FIELD(fdw_exprs);
696  WRITE_NODE_FIELD(fdw_private);
697  WRITE_NODE_FIELD(fdw_scan_tlist);
698  WRITE_NODE_FIELD(fdw_recheck_quals);
699  WRITE_BITMAPSET_FIELD(fs_relids);
700  WRITE_BOOL_FIELD(fsSystemCol);
701 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
CmdType
Definition: nodes.h:669
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFromExpr()

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

Definition at line 1668 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1669 {
1670  WRITE_NODE_TYPE("FROMEXPR");
1671 
1672  WRITE_NODE_FIELD(fromlist);
1673  WRITE_NODE_FIELD(quals);
1674 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFuncCall()

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

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

2736 {
2737  WRITE_NODE_TYPE("FUNCCALL");
2738 
2739  WRITE_NODE_FIELD(funcname);
2741  WRITE_NODE_FIELD(agg_order);
2742  WRITE_NODE_FIELD(agg_filter);
2743  WRITE_BOOL_FIELD(agg_within_group);
2744  WRITE_BOOL_FIELD(agg_star);
2745  WRITE_BOOL_FIELD(agg_distinct);
2746  WRITE_BOOL_FIELD(func_variadic);
2747  WRITE_NODE_FIELD(over);
2748  WRITE_LOCATION_FIELD(location);
2749 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFuncExpr()

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

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

1186 {
1187  WRITE_NODE_TYPE("FUNCEXPR");
1188 
1189  WRITE_OID_FIELD(funcid);
1190  WRITE_OID_FIELD(funcresulttype);
1191  WRITE_BOOL_FIELD(funcretset);
1192  WRITE_BOOL_FIELD(funcvariadic);
1193  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1194  WRITE_OID_FIELD(funccollid);
1195  WRITE_OID_FIELD(inputcollid);
1197  WRITE_LOCATION_FIELD(location);
1198 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
CoercionForm
Definition: primnodes.h:456
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFunctionScan()

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

Definition at line 625 of file outfuncs.c.

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

Referenced by outNode().

626 {
627  WRITE_NODE_TYPE("FUNCTIONSCAN");
628 
629  _outScanInfo(str, (const Scan *) node);
630 
632  WRITE_BOOL_FIELD(funcordinality);
633 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static const struct fns functions
Definition: regcomp.c:298
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGather()

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

Definition at line 495 of file outfuncs.c.

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

Referenced by outNode().

496 {
497  WRITE_NODE_TYPE("GATHER");
498 
499  _outPlanInfo(str, (const Plan *) node);
500 
501  WRITE_INT_FIELD(num_workers);
502  WRITE_INT_FIELD(rescan_param);
503  WRITE_BOOL_FIELD(single_copy);
504  WRITE_BOOL_FIELD(invisible);
505  WRITE_BITMAPSET_FIELD(initParam);
506 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outGatherMerge()

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

Definition at line 509 of file outfuncs.c.

References _outPlanInfo(), WRITE_ATTRNUMBER_ARRAY, WRITE_BITMAPSET_FIELD, WRITE_BOOL_ARRAY, WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_ARRAY.

Referenced by outNode().

510 {
511  WRITE_NODE_TYPE("GATHERMERGE");
512 
513  _outPlanInfo(str, (const Plan *) node);
514 
515  WRITE_INT_FIELD(num_workers);
516  WRITE_INT_FIELD(rescan_param);
517  WRITE_INT_FIELD(numCols);
518  WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
519  WRITE_OID_ARRAY(sortOperators, node->numCols);
520  WRITE_OID_ARRAY(collations, node->numCols);
521  WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
522  WRITE_BITMAPSET_FIELD(initParam);
523 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_BOOL_ARRAY(fldname, len)
Definition: outfuncs.c:134
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outGatherMergePath()

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

Definition at line 2120 of file outfuncs.c.

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

Referenced by outNode().

2121 {
2122  WRITE_NODE_TYPE("GATHERMERGEPATH");
2123 
2124  _outPathInfo(str, (const Path *) node);
2125 
2127  WRITE_INT_FIELD(num_workers);
2128 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGatherPath()

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

Definition at line 1904 of file outfuncs.c.

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

Referenced by outNode().

1905 {
1906  WRITE_NODE_TYPE("GATHERPATH");
1907 
1908  _outPathInfo(str, (const Path *) node);
1909 
1911  WRITE_BOOL_FIELD(single_copy);
1912  WRITE_INT_FIELD(num_workers);
1913 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroup()

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

Definition at line 819 of file outfuncs.c.

References _outPlanInfo(), WRITE_ATTRNUMBER_ARRAY, WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_ARRAY.

Referenced by outNode().

820 {
821  WRITE_NODE_TYPE("GROUP");
822 
823  _outPlanInfo(str, (const Plan *) node);
824 
825  WRITE_INT_FIELD(numCols);
826  WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
827  WRITE_OID_ARRAY(grpOperators, node->numCols);
828  WRITE_OID_ARRAY(grpCollations, node->numCols);
829 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
int numCols
Definition: plannodes.h:786
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outGroupingFunc()

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

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

1142 {
1143  WRITE_NODE_TYPE("GROUPINGFUNC");
1144 
1146  WRITE_NODE_FIELD(refs);
1147  WRITE_NODE_FIELD(cols);
1148  WRITE_UINT_FIELD(agglevelsup);
1149  WRITE_LOCATION_FIELD(location);
1150 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSet()

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

Definition at line 2969 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2970 {
2971  WRITE_NODE_TYPE("GROUPINGSET");
2972 
2974  WRITE_NODE_FIELD(content);
2975  WRITE_LOCATION_FIELD(location);
2976 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
GroupingSetKind
Definition: parsenodes.h:1312
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSetData()

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

Definition at line 1999 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2000 {
2001  WRITE_NODE_TYPE("GSDATA");
2002 
2003  WRITE_NODE_FIELD(set);
2004  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2005 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSetsPath()

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

Definition at line 2008 of file outfuncs.c.

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

Referenced by outNode().

2009 {
2010  WRITE_NODE_TYPE("GROUPINGSETSPATH");
2011 
2012  _outPathInfo(str, (const Path *) node);
2013 
2015  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2016  WRITE_NODE_FIELD(rollups);
2017  WRITE_NODE_FIELD(qual);
2018  WRITE_UINT64_FIELD(transitionSpace);
2019 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:63
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
AggStrategy
Definition: nodes.h:755
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupPath()

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

Definition at line 1947 of file outfuncs.c.

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

Referenced by outNode().

1948 {
1949  WRITE_NODE_TYPE("GROUPPATH");
1950 
1951  _outPathInfo(str, (const Path *) node);
1952 
1954  WRITE_NODE_FIELD(groupClause);
1955  WRITE_NODE_FIELD(qual);
1956 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupResultPath()

static void _outGroupResultPath ( StringInfo  str,
const GroupResultPath node 
)
static

Definition at line 1871 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1872 {
1873  WRITE_NODE_TYPE("GROUPRESULTPATH");
1874 
1875  _outPathInfo(str, (const Path *) node);
1876 
1877  WRITE_NODE_FIELD(quals);
1878 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHash()

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

Definition at line 867 of file outfuncs.c.

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

Referenced by outNode().

868 {
869  WRITE_NODE_TYPE("HASH");
870 
871  _outPlanInfo(str, (const Plan *) node);
872 
873  WRITE_NODE_FIELD(hashkeys);
874  WRITE_OID_FIELD(skewTable);
875  WRITE_INT_FIELD(skewColumn);
876  WRITE_BOOL_FIELD(skewInherit);
877  WRITE_FLOAT_FIELD(rows_total, "%.0f");
878 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHashJoin()

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

Definition at line 760 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

761 {
762  WRITE_NODE_TYPE("HASHJOIN");
763 
764  _outJoinPlanInfo(str, (const Join *) node);
765 
766  WRITE_NODE_FIELD(hashclauses);
767  WRITE_NODE_FIELD(hashoperators);
768  WRITE_NODE_FIELD(hashcollations);
769  WRITE_NODE_FIELD(hashkeys);
770 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHashPath()

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

Definition at line 2153 of file outfuncs.c.

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

Referenced by outNode().

2154 {
2155  WRITE_NODE_TYPE("HASHPATH");
2156 
2157  _outJoinPathInfo(str, (const JoinPath *) node);
2158 
2159  WRITE_NODE_FIELD(path_hashclauses);
2160  WRITE_INT_FIELD(num_batches);
2161  WRITE_FLOAT_FIELD(inner_rows_total, "%.0f");
2162 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1733
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outImportForeignSchemaStmt()

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

Definition at line 2627 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2628 {
2629  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2630 
2631  WRITE_STRING_FIELD(server_name);
2632  WRITE_STRING_FIELD(remote_schema);
2633  WRITE_STRING_FIELD(local_schema);
2635  WRITE_NODE_FIELD(table_list);
2637 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
ImportForeignSchemaType
Definition: parsenodes.h:2360
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexClause()

static void _outIndexClause ( StringInfo  str,
const IndexClause node 
)
static

Definition at line 2469 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2470 {
2471  WRITE_NODE_TYPE("INDEXCLAUSE");
2472 
2473  WRITE_NODE_FIELD(rinfo);
2474  WRITE_NODE_FIELD(indexquals);
2475  WRITE_BOOL_FIELD(lossy);
2476  WRITE_INT_FIELD(indexcol);
2477  WRITE_NODE_FIELD(indexcols);
2478 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexElem()

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

Definition at line 2863 of file outfuncs.c.

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

Referenced by outNode().

2864 {
2865  WRITE_NODE_TYPE("INDEXELEM");
2866 
2868  WRITE_NODE_FIELD(expr);
2869  WRITE_STRING_FIELD(indexcolname);
2870  WRITE_NODE_FIELD(collation);
2871  WRITE_NODE_FIELD(opclass);
2872  WRITE_ENUM_FIELD(ordering, SortByDir);
2873  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
2874 }
SortByDir
Definition: parsenodes.h:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
SortByNulls
Definition: parsenodes.h:58
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexOnlyScan()

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

Definition at line 568 of file outfuncs.c.

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

Referenced by outNode().

569 {
570  WRITE_NODE_TYPE("INDEXONLYSCAN");
571 
572  _outScanInfo(str, (const Scan *) node);
573 
574  WRITE_OID_FIELD(indexid);
575  WRITE_NODE_FIELD(indexqual);
576  WRITE_NODE_FIELD(indexorderby);
577  WRITE_NODE_FIELD(indextlist);
578  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
579 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
ScanDirection
Definition: sdir.h:22
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexOptInfo()

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

Definition at line 2295 of file outfuncs.c.

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

Referenced by outNode().

2296 {
2297  WRITE_NODE_TYPE("INDEXOPTINFO");
2298 
2299  /* NB: this isn't a complete set of fields */
2300  WRITE_OID_FIELD(indexoid);
2301  /* Do NOT print rel field, else infinite recursion */
2302  WRITE_UINT_FIELD(pages);
2303  WRITE_FLOAT_FIELD(tuples, "%.0f");
2304  WRITE_INT_FIELD(tree_height);
2305  WRITE_INT_FIELD(ncolumns);
2306  /* array fields aren't really worth the trouble to print */
2307  WRITE_OID_FIELD(relam);
2308  /* indexprs is redundant since we print indextlist */
2309  WRITE_NODE_FIELD(indpred);
2310  WRITE_NODE_FIELD(indextlist);
2311  WRITE_NODE_FIELD(indrestrictinfo);
2312  WRITE_BOOL_FIELD(predOK);
2313  WRITE_BOOL_FIELD(unique);
2314  WRITE_BOOL_FIELD(immediate);
2315  WRITE_BOOL_FIELD(hypothetical);
2316  /* we don't bother with fields copied from the index AM's API struct */
2317 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexPath()

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

Definition at line 1753 of file outfuncs.c.

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

Referenced by outNode().

1754 {
1755  WRITE_NODE_TYPE("INDEXPATH");
1756 
1757  _outPathInfo(str, (const Path *) node);
1758 
1759  WRITE_NODE_FIELD(indexinfo);
1760  WRITE_NODE_FIELD(indexclauses);
1761  WRITE_NODE_FIELD(indexorderbys);
1762  WRITE_NODE_FIELD(indexorderbycols);
1763  WRITE_ENUM_FIELD(indexscandir, ScanDirection);
1764  WRITE_FLOAT_FIELD(indextotalcost, "%.2f");
1765  WRITE_FLOAT_FIELD(indexselectivity, "%.4f");
1766 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
ScanDirection
Definition: sdir.h:22
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexScan()

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

Definition at line 552 of file outfuncs.c.

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

Referenced by outNode().

553 {
554  WRITE_NODE_TYPE("INDEXSCAN");
555 
556  _outScanInfo(str, (const Scan *) node);
557 
558  WRITE_OID_FIELD(indexid);
559  WRITE_NODE_FIELD(indexqual);
560  WRITE_NODE_FIELD(indexqualorig);
561  WRITE_NODE_FIELD(indexorderby);
562  WRITE_NODE_FIELD(indexorderbyorig);
563  WRITE_NODE_FIELD(indexorderbyops);
564  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
565 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
ScanDirection
Definition: sdir.h:22
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexStmt()

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

Definition at line 2640 of file outfuncs.c.

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

Referenced by outNode().

2641 {
2642  WRITE_NODE_TYPE("INDEXSTMT");
2643 
2644  WRITE_STRING_FIELD(idxname);
2645  WRITE_NODE_FIELD(relation);
2646  WRITE_STRING_FIELD(accessMethod);
2647  WRITE_STRING_FIELD(tableSpace);
2648  WRITE_NODE_FIELD(indexParams);
2649  WRITE_NODE_FIELD(indexIncludingParams);
2651  WRITE_NODE_FIELD(whereClause);
2652  WRITE_NODE_FIELD(excludeOpNames);
2653  WRITE_STRING_FIELD(idxcomment);
2654  WRITE_OID_FIELD(indexOid);
2655  WRITE_OID_FIELD(oldNode);
2656  WRITE_BOOL_FIELD(unique);
2657  WRITE_BOOL_FIELD(primary);
2658  WRITE_BOOL_FIELD(isconstraint);
2659  WRITE_BOOL_FIELD(deferrable);
2660  WRITE_BOOL_FIELD(initdeferred);
2661  WRITE_BOOL_FIELD(transformed);
2662  WRITE_BOOL_FIELD(concurrent);
2663  WRITE_BOOL_FIELD(if_not_exists);
2664  WRITE_BOOL_FIELD(reset_default_tblspc);
2665 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outInferenceElem()

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

Definition at line 1621 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1622 {
1623  WRITE_NODE_TYPE("INFERENCEELEM");
1624 
1625  WRITE_NODE_FIELD(expr);
1626  WRITE_OID_FIELD(infercollid);
1627  WRITE_OID_FIELD(inferopclass);
1628 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIntoClause()

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

Definition at line 1053 of file outfuncs.c.

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

Referenced by outNode().

1054 {
1055  WRITE_NODE_TYPE("INTOCLAUSE");
1056 
1057  WRITE_NODE_FIELD(rel);
1058  WRITE_NODE_FIELD(colNames);
1059  WRITE_STRING_FIELD(accessMethod);
1061  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1062  WRITE_STRING_FIELD(tableSpaceName);
1063  WRITE_NODE_FIELD(viewQuery);
1064  WRITE_BOOL_FIELD(skipData);
1065 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoin()

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

Definition at line 722 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

723 {
724  WRITE_NODE_TYPE("JOIN");
725 
726  _outJoinPlanInfo(str, (const Join *) node);
727 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outJoinExpr()

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

Definition at line 1653 of file outfuncs.c.

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

Referenced by outNode().

1654 {
1655  WRITE_NODE_TYPE("JOINEXPR");
1656 
1657  WRITE_ENUM_FIELD(jointype, JoinType);
1658  WRITE_BOOL_FIELD(isNatural);
1659  WRITE_NODE_FIELD(larg);
1660  WRITE_NODE_FIELD(rarg);
1661  WRITE_NODE_FIELD(usingClause);
1662  WRITE_NODE_FIELD(quals);
1663  WRITE_NODE_FIELD(alias);
1664  WRITE_INT_FIELD(rtindex);
1665 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
JoinType
Definition: nodes.h:693
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoinPathInfo()

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

Definition at line 1733 of file outfuncs.c.

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

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

1734 {
1735  _outPathInfo(str, (const Path *) node);
1736 
1737  WRITE_ENUM_FIELD(jointype, JoinType);
1738  WRITE_BOOL_FIELD(inner_unique);
1739  WRITE_NODE_FIELD(outerjoinpath);
1740  WRITE_NODE_FIELD(innerjoinpath);
1741  WRITE_NODE_FIELD(joinrestrictinfo);
1742 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
JoinType
Definition: nodes.h:693
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoinPlanInfo()

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

Definition at line 362 of file outfuncs.c.

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

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

363 {
364  _outPlanInfo(str, (const Plan *) node);
365 
366  WRITE_ENUM_FIELD(jointype, JoinType);
367  WRITE_BOOL_FIELD(inner_unique);
368  WRITE_NODE_FIELD(joinqual);
369 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
JoinType
Definition: nodes.h:693
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLimit()

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

Definition at line 910 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

911 {
912  WRITE_NODE_TYPE("LIMIT");
913 
914  _outPlanInfo(str, (const Plan *) node);
915 
916  WRITE_NODE_FIELD(limitOffset);
917  WRITE_NODE_FIELD(limitCount);
918 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLimitPath()

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

Definition at line 2108 of file outfuncs.c.

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

Referenced by outNode().

2109 {
2110  WRITE_NODE_TYPE("LIMITPATH");
2111 
2112  _outPathInfo(str, (const Path *) node);
2113 
2115  WRITE_NODE_FIELD(limitOffset);
2116  WRITE_NODE_FIELD(limitCount);
2117 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outList()

static void _outList ( StringInfo  str,
const List node 
)
static

Definition at line 200 of file outfuncs.c.

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

Referenced by outNode().

201 {
202  const ListCell *lc;
203 
204  appendStringInfoChar(str, '(');
205 
206  if (IsA(node, IntList))
207  appendStringInfoChar(str, 'i');
208  else if (IsA(node, OidList))
209  appendStringInfoChar(str, 'o');
210 
211  foreach(lc, node)
212  {
213  /*
214  * For the sake of backward compatibility, we emit a slightly
215  * different whitespace format for lists of nodes vs. other types of
216  * lists. XXX: is this necessary?
217  */
218  if (IsA(node, List))
219  {
220  outNode(str, lfirst(lc));
221  if (lnext(node, lc))
222  appendStringInfoChar(str, ' ');
223  }
224  else if (IsA(node, IntList))
225  appendStringInfo(str, " %d", lfirst_int(lc));
226  else if (IsA(node, OidList))
227  appendStringInfo(str, " %u", lfirst_oid(lc));
228  else
229  elog(ERROR, "unrecognized list node type: %d",
230  (int) node->type);
231  }
232 
233  appendStringInfoChar(str, ')');
234 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:577
static ListCell * lnext(const List *l, const ListCell *c)
Definition: pg_list.h:321
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:191
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:188
void outNode(StringInfo str, const void *obj)
Definition: outfuncs.c:3650
#define lfirst(lc)
Definition: pg_list.h:190
NodeTag type
Definition: pg_list.h:52
#define elog(elevel,...)
Definition: elog.h:214
Definition: pg_list.h:50
#define lfirst_oid(lc)
Definition: pg_list.h:192

◆ _outLockingClause()

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

Definition at line 2773 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2774 {
2775  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2776 
2777  WRITE_NODE_FIELD(lockedRels);
2779  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2780 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
LockClauseStrength
Definition: lockoptions.h:21
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
LockWaitPolicy
Definition: lockoptions.h:36
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLockRows()

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

Definition at line 899 of file outfuncs.c.

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

Referenced by outNode().

900 {
901  WRITE_NODE_TYPE("LOCKROWS");
902 
903  _outPlanInfo(str, (const Plan *) node);
904 
905  WRITE_NODE_FIELD(rowMarks);
906  WRITE_INT_FIELD(epqParam);
907 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLockRowsPath()

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

Definition at line 2074 of file outfuncs.c.

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

Referenced by outNode().

2075 {
2076  WRITE_NODE_TYPE("LOCKROWSPATH");
2077 
2078  _outPathInfo(str, (const Path *) node);
2079 
2081  WRITE_NODE_FIELD(rowMarks);
2082  WRITE_INT_FIELD(epqParam);
2083 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMaterial()

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

Definition at line 832 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

833 {
834  WRITE_NODE_TYPE("MATERIAL");
835 
836  _outPlanInfo(str, (const Plan *) node);
837 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outMaterialPath()

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

Definition at line 1881 of file outfuncs.c.

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

Referenced by outNode().

1882 {
1883  WRITE_NODE_TYPE("MATERIALPATH");
1884 
1885  _outPathInfo(str, (const Path *) node);
1886 
1888 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergeAppend()

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

Definition at line 442 of file outfuncs.c.

References _outPlanInfo(), WRITE_ATTRNUMBER_ARRAY, WRITE_BITMAPSET_FIELD, WRITE_BOOL_ARRAY, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_ARRAY.

Referenced by outNode().

443 {
444  WRITE_NODE_TYPE("MERGEAPPEND");
445 
446  _outPlanInfo(str, (const Plan *) node);
447 
448  WRITE_BITMAPSET_FIELD(apprelids);
449  WRITE_NODE_FIELD(mergeplans);
450  WRITE_INT_FIELD(numCols);
451  WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
452  WRITE_OID_ARRAY(sortOperators, node->numCols);
453  WRITE_OID_ARRAY(collations, node->numCols);
454  WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
455  WRITE_NODE_FIELD(part_prune_info);
456 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_BOOL_ARRAY(fldname, len)
Definition: outfuncs.c:134
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergeAppendPath()

static void _outMergeAppendPath ( StringInfo  str,
const MergeAppendPath 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("MERGEAPPENDPATH");
1862 
1863  _outPathInfo(str, (const Path *) node);
1864 
1865  WRITE_NODE_FIELD(partitioned_rels);
1866  WRITE_NODE_FIELD(subpaths);
1867  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1868 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergeJoin()

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

Definition at line 740 of file outfuncs.c.

References _outJoinPlanInfo(), list_length(), WRITE_BOOL_ARRAY, WRITE_BOOL_FIELD, WRITE_INT_ARRAY, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_ARRAY.

Referenced by outNode().

741 {
742  int numCols;
743 
744  WRITE_NODE_TYPE("MERGEJOIN");
745 
746  _outJoinPlanInfo(str, (const Join *) node);
747 
748  WRITE_BOOL_FIELD(skip_mark_restore);
749  WRITE_NODE_FIELD(mergeclauses);
750 
751  numCols = list_length(node->mergeclauses);
752 
753  WRITE_OID_ARRAY(mergeFamilies, numCols);
754  WRITE_OID_ARRAY(mergeCollations, numCols);
755  WRITE_INT_ARRAY(mergeStrategies, numCols);
756  WRITE_BOOL_ARRAY(mergeNullsFirst, numCols);
757 }
#define WRITE_INT_ARRAY(fldname, len)
Definition: outfuncs.c:127
List * mergeclauses
Definition: plannodes.h:728
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_BOOL_ARRAY(fldname, len)
Definition: outfuncs.c:134
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static int list_length(const List *l)
Definition: pg_list.h:169
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergePath()

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

Definition at line 2139 of file outfuncs.c.

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

Referenced by outNode().

2140 {
2141  WRITE_NODE_TYPE("MERGEPATH");
2142 
2143  _outJoinPathInfo(str, (const JoinPath *) node);
2144 
2145  WRITE_NODE_FIELD(path_mergeclauses);
2146  WRITE_NODE_FIELD(outersortkeys);
2147  WRITE_NODE_FIELD(innersortkeys);
2148  WRITE_BOOL_FIELD(skip_mark_restore);
2149  WRITE_BOOL_FIELD(materialize_inner);
2150 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1733
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxAggInfo()

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

Definition at line 2538 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2539 {
2540  WRITE_NODE_TYPE("MINMAXAGGINFO");
2541 
2542  WRITE_OID_FIELD(aggfnoid);
2543  WRITE_OID_FIELD(aggsortop);
2544  WRITE_NODE_FIELD(target);
2545  /* We intentionally omit subroot --- too large, not interesting enough */
2546  WRITE_NODE_FIELD(path);
2547  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2548  WRITE_NODE_FIELD(param);
2549 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxAggPath()

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

Definition at line 2022 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2023 {
2024  WRITE_NODE_TYPE("MINMAXAGGPATH");
2025 
2026  _outPathInfo(str, (const Path *) node);
2027 
2028  WRITE_NODE_FIELD(mmaggregates);
2029  WRITE_NODE_FIELD(quals);
2030 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxExpr()

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

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

1507 {
1508  WRITE_NODE_TYPE("MINMAX");
1509 
1510  WRITE_OID_FIELD(minmaxtype);
1511  WRITE_OID_FIELD(minmaxcollid);
1512  WRITE_OID_FIELD(inputcollid);
1515  WRITE_LOCATION_FIELD(location);
1516 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
MinMaxOp
Definition: primnodes.h:1093
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outModifyTable()

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

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

400 {
401  WRITE_NODE_TYPE("MODIFYTABLE");
402 
403  _outPlanInfo(str, (const Plan *) node);
404 
405  WRITE_ENUM_FIELD(operation, CmdType);
406  WRITE_BOOL_FIELD(canSetTag);
407  WRITE_UINT_FIELD(nominalRelation);
408  WRITE_UINT_FIELD(rootRelation);
409  WRITE_BOOL_FIELD(partColsUpdated);
410  WRITE_NODE_FIELD(resultRelations);
411  WRITE_INT_FIELD(resultRelIndex);
412  WRITE_INT_FIELD(rootResultRelIndex);
413  WRITE_NODE_FIELD(plans);
414  WRITE_NODE_FIELD(withCheckOptionLists);
415  WRITE_NODE_FIELD(returningLists);
416  WRITE_NODE_FIELD(fdwPrivLists);
417  WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
418  WRITE_NODE_FIELD(rowMarks);
419  WRITE_INT_FIELD(epqParam);
420  WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
421  WRITE_NODE_FIELD(arbiterIndexes);
422  WRITE_NODE_FIELD(onConflictSet);
423  WRITE_NODE_FIELD(onConflictWhere);
424  WRITE_UINT_FIELD(exclRelRTI);
425  WRITE_NODE_FIELD(exclRelTlist);
426 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:329
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
OnConflictAction
Definition: nodes.h:819
CmdType
Definition: nodes.h:669
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outModifyTablePath()

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

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

2087 {
2088  WRITE_NODE_TYPE("MODIFYTABLEPATH");
2089 
2090  _outPathInfo(str, (const Path *) node);
2091 
2092  WRITE_ENUM_FIELD(operation, CmdType);
2093  WRITE_BOOL_FIELD(canSetTag);
2094  WRITE_UINT_FIELD(nominalRelation);
2095  WRITE_UINT_FIELD(rootRelation);
2096  WRITE_BOOL_FIELD(partColsUpdated);
2097  WRITE_NODE_FIELD(resultRelations);
2098  WRITE_NODE_FIELD(subpaths);
2099  WRITE_NODE_FIELD(subroots);
2100  WRITE_NODE_FIELD(withCheckOptionLists);
2101  WRITE_NODE_FIELD(returningLists);
2102  WRITE_NODE_FIELD(rowMarks);
2103  WRITE_NODE_FIELD(onconflict);
2104  WRITE_INT_FIELD(epqParam);
2105 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1708
CmdType
Definition: nodes.h:669
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMultiAssignRef()

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

Definition at line 3366 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3367 {
3368  WRITE_NODE_TYPE("MULTIASSIGNREF");
3369 
3370  WRITE_NODE_FIELD(source);
3371  WRITE_INT_FIELD(colno);
3372  WRITE_INT_FIELD(ncolumns);
3373 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNamedArgExpr()

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

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

1202 {
1203  WRITE_NODE_TYPE("NAMEDARGEXPR");
1204 
1207  WRITE_INT_FIELD(argnumber);
1208  WRITE_LOCATION_FIELD(location);
1209 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNamedTuplestoreScan()

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

Definition at line 667 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

668 {
669  WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
670 
671  _outScanInfo(str, (const Scan *) node);
672 
673  WRITE_STRING_FIELD(enrname);
674 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95

◆ _outNestLoop()

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

Definition at line 730 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

731 {
732  WRITE_NODE_TYPE("NESTLOOP");
733 
734  _outJoinPlanInfo(str, (const Join *) node);
735 
736  WRITE_NODE_FIELD(nestParams);
737 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNestLoopParam()

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

Definition at line 921 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

922 {
923  WRITE_NODE_TYPE("NESTLOOPPARAM");
924 
925  WRITE_INT_FIELD(paramno);
926  WRITE_NODE_FIELD(paramval);
927 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNestPath()

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

Definition at line 2131 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2132 {
2133  WRITE_NODE_TYPE("NESTPATH");
2134 
2135  _outJoinPathInfo(str, (const JoinPath *) node);
2136 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1733
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outNextValueExpr()

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

Definition at line 1612 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1613 {
1614  WRITE_NODE_TYPE("NEXTVALUEEXPR");
1615 
1616  WRITE_OID_FIELD(seqid);
1617  WRITE_OID_FIELD(typeId);
1618 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outNotifyStmt()

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

Definition at line 2691 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2692 {
2693  WRITE_NODE_TYPE("NOTIFY");
2694 
2695  WRITE_STRING_FIELD(conditionname);
2696  WRITE_STRING_FIELD(payload);
2697 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95

◆ _outNullIfExpr()

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

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

1243 {
1244  WRITE_NODE_TYPE("NULLIFEXPR");
1245 
1246  WRITE_OID_FIELD(opno);
1247  WRITE_OID_FIELD(opfuncid);
1248  WRITE_OID_FIELD(opresulttype);
1249  WRITE_BOOL_FIELD(opretset);
1250  WRITE_OID_FIELD(opcollid);
1251  WRITE_OID_FIELD(inputcollid);
1253  WRITE_LOCATION_FIELD(location);
1254 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNullTest()

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

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

1547 {
1548  WRITE_NODE_TYPE("NULLTEST");
1549 
1551  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1552  WRITE_BOOL_FIELD(argisrow);
1553  WRITE_LOCATION_FIELD(location);
1554 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
NullTestType
Definition: primnodes.h:1211
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outOnConflictExpr()

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

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

1678 {
1679  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1680 
1682  WRITE_NODE_FIELD(arbiterElems);
1683  WRITE_NODE_FIELD(arbiterWhere);
1684  WRITE_OID_FIELD(constraint);
1685  WRITE_NODE_FIELD(onConflictSet);
1686  WRITE_NODE_FIELD(onConflictWhere);
1687  WRITE_INT_FIELD(exclRelIndex);
1688  WRITE_NODE_FIELD(exclRelTlist);
1689 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
OnConflictAction
Definition: nodes.h:819
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outOpExpr()

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

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

1213 {
1214  WRITE_NODE_TYPE("OPEXPR");
1215 
1216  WRITE_OID_FIELD(opno);
1217  WRITE_OID_FIELD(opfuncid);
1218  WRITE_OID_FIELD(opresulttype);
1219  WRITE_BOOL_FIELD(opretset);
1220  WRITE_OID_FIELD(opcollid);
1221  WRITE_OID_FIELD(inputcollid);
1223  WRITE_LOCATION_FIELD(location);
1224 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outParam()

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

Definition at line 1104 of file outfuncs.c.

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

Referenced by outNode().

1105 {
1106  WRITE_NODE_TYPE("PARAM");
1107 
1108  WRITE_ENUM_FIELD(paramkind, ParamKind);
1109  WRITE_INT_FIELD(paramid);
1110  WRITE_OID_FIELD(paramtype);
1111  WRITE_INT_FIELD(paramtypmod);
1112  WRITE_OID_FIELD(paramcollid);
1113  WRITE_LOCATION_FIELD(location);
1114 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
ParamKind
Definition: primnodes.h:251
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outParamPathInfo()

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

Definition at line 2427 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2428 {
2429  WRITE_NODE_TYPE("PARAMPATHINFO");
2430 
2431  WRITE_BITMAPSET_FIELD(ppi_req_outer);
2432  WRITE_FLOAT_FIELD(ppi_rows, "%.0f");
2433  WRITE_NODE_FIELD(ppi_clauses);
2434 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outParamRef()

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

Definition at line 3288 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3289 {
3290  WRITE_NODE_TYPE("PARAMREF");
3291 
3292  WRITE_INT_FIELD(number);
3293  WRITE_LOCATION_FIELD(location);
3294 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outPartitionBoundSpec()

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

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

3622 {
3623  WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
3624 
3625  WRITE_CHAR_FIELD(strategy);
3626  WRITE_BOOL_FIELD(is_default);
3627  WRITE_INT_FIELD(modulus);
3628  WRITE_INT_FIELD(remainder);
3629  WRITE_NODE_FIELD(listdatums);
3630  WRITE_NODE_FIELD(lowerdatums);
3631  WRITE_NODE_FIELD(upperdatums);
3632  WRITE_LOCATION_FIELD(location);
3633 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionedRelPruneInfo()

static void _outPartitionedRelPruneInfo ( StringInfo  str,
const PartitionedRelPruneInfo node 
)
static

Definition at line 954 of file outfuncs.c.

References PartitionedRelPruneInfo::nparts, WRITE_BITMAPSET_FIELD, WRITE_INT_ARRAY, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_ARRAY, and WRITE_UINT_FIELD.

Referenced by outNode().

955 {
956  WRITE_NODE_TYPE("PARTITIONEDRELPRUNEINFO");
957 
958  WRITE_UINT_FIELD(rtindex);
959  WRITE_BITMAPSET_FIELD(present_parts);
960  WRITE_INT_FIELD(nparts);
961  WRITE_INT_ARRAY(subplan_map, node->nparts);
962  WRITE_INT_ARRAY(subpart_map, node->nparts);
963  WRITE_OID_ARRAY(relid_map, node->nparts);
964  WRITE_NODE_FIELD(initial_pruning_steps);
965  WRITE_NODE_FIELD(exec_pruning_steps);
966  WRITE_BITMAPSET_FIELD(execparamids);
967 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_INT_ARRAY(fldname, len)
Definition: outfuncs.c:127
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionElem()

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

Definition at line 3599 of file outfuncs.c.

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

Referenced by outNode().

3600 {
3601  WRITE_NODE_TYPE("PARTITIONELEM");
3602 
3604  WRITE_NODE_FIELD(expr);
3605  WRITE_NODE_FIELD(collation);
3606  WRITE_NODE_FIELD(opclass);
3607  WRITE_LOCATION_FIELD(location);
3608 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionPruneInfo()

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

Definition at line 945 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

946 {
947  WRITE_NODE_TYPE("PARTITIONPRUNEINFO");
948 
949  WRITE_NODE_FIELD(prune_infos);
950  WRITE_BITMAPSET_FIELD(other_subplans);
951 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionPruneStepCombine()

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

Definition at line 982 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

983 {
984  WRITE_NODE_TYPE("PARTITIONPRUNESTEPCOMBINE");
985 
986  WRITE_INT_FIELD(step.step_id);
988  WRITE_NODE_FIELD(source_stepids);
989 }
PartitionPruneCombineOp
Definition: plannodes.h:1205
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionPruneStepOp()

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

Definition at line 970 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

971 {
972  WRITE_NODE_TYPE("PARTITIONPRUNESTEPOP");
973 
974  WRITE_INT_FIELD(step.step_id);
975  WRITE_INT_FIELD(opstrategy);
976  WRITE_NODE_FIELD(exprs);
977  WRITE_NODE_FIELD(cmpfns);
978  WRITE_BITMAPSET_FIELD(nullkeys);
979 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionRangeDatum()

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

Definition at line 3636 of file outfuncs.c.

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

Referenced by outNode().

3637 {
3638  WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
3639 
3642  WRITE_LOCATION_FIELD(location);
3643 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
PartitionRangeDatumKind
Definition: parsenodes.h:834
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
static struct @143 value
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outPartitionSpec()

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

Definition at line 3611 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3612 {
3613