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

Definition at line 113 of file outfuncs.c.

Referenced by _outAgg(), _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:78
#define CppAsString(identifier)
Definition: c.h:223
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:78
#define CppAsString(identifier)
Definition: c.h:223

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

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

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

Definition at line 63 of file outfuncs.c.

Referenced by _outPlannedStmt().

◆ WRITE_UINT_FIELD

Function Documentation

◆ _outA_ArrayExpr()

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

Definition at line 3334 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3335 {
3336  WRITE_NODE_TYPE("A_ARRAYEXPR");
3337 
3338  WRITE_NODE_FIELD(elements);
3339  WRITE_LOCATION_FIELD(location);
3340 }
#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 3315 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3316 {
3317  WRITE_NODE_TYPE("A_INDICES");
3318 
3319  WRITE_BOOL_FIELD(is_slice);
3320  WRITE_NODE_FIELD(lidx);
3321  WRITE_NODE_FIELD(uidx);
3322 }
#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 3325 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3326 {
3327  WRITE_NODE_TYPE("A_INDIRECTION");
3328 
3330  WRITE_NODE_FIELD(indirection);
3331 }
#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 3309 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3310 {
3311  WRITE_NODE_TYPE("A_STAR");
3312 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outAConst()

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

Definition at line 3299 of file outfuncs.c.

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

Referenced by outNode().

3300 {
3301  WRITE_NODE_TYPE("A_CONST");
3302 
3303  appendStringInfoString(str, " :val ");
3304  _outValue(str, &(node->val));
3305  WRITE_LOCATION_FIELD(location);
3306 }
static void _outValue(StringInfo str, const Value *value)
Definition: outfuncs.c:3226
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:163
#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 3144 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().

3145 {
3146  WRITE_NODE_TYPE("AEXPR");
3147 
3148  switch (node->kind)
3149  {
3150  case AEXPR_OP:
3151  appendStringInfoChar(str, ' ');
3153  break;
3154  case AEXPR_OP_ANY:
3155  appendStringInfoChar(str, ' ');
3157  appendStringInfoString(str, " ANY ");
3158  break;
3159  case AEXPR_OP_ALL:
3160  appendStringInfoChar(str, ' ');
3162  appendStringInfoString(str, " ALL ");
3163  break;
3164  case AEXPR_DISTINCT:
3165  appendStringInfoString(str, " DISTINCT ");
3167  break;
3168  case AEXPR_NOT_DISTINCT:
3169  appendStringInfoString(str, " NOT_DISTINCT ");
3171  break;
3172  case AEXPR_NULLIF:
3173  appendStringInfoString(str, " NULLIF ");
3175  break;
3176  case AEXPR_OF:
3177  appendStringInfoString(str, " OF ");
3179  break;
3180  case AEXPR_IN:
3181  appendStringInfoString(str, " IN ");
3183  break;
3184  case AEXPR_LIKE:
3185  appendStringInfoString(str, " LIKE ");
3187  break;
3188  case AEXPR_ILIKE:
3189  appendStringInfoString(str, " ILIKE ");
3191  break;
3192  case AEXPR_SIMILAR:
3193  appendStringInfoString(str, " SIMILAR ");
3195  break;
3196  case AEXPR_BETWEEN:
3197  appendStringInfoString(str, " BETWEEN ");
3199  break;
3200  case AEXPR_NOT_BETWEEN:
3201  appendStringInfoString(str, " NOT_BETWEEN ");
3203  break;
3204  case AEXPR_BETWEEN_SYM:
3205  appendStringInfoString(str, " BETWEEN_SYM ");
3207  break;
3208  case AEXPR_NOT_BETWEEN_SYM:
3209  appendStringInfoString(str, " NOT_BETWEEN_SYM ");
3211  break;
3212  case AEXPR_PAREN:
3213  appendStringInfoString(str, " PAREN");
3214  break;
3215  default:
3216  appendStringInfoString(str, " ??");
3217  break;
3218  }
3219 
3220  WRITE_NODE_FIELD(lexpr);
3221  WRITE_NODE_FIELD(rexpr);
3222  WRITE_LOCATION_FIELD(location);
3223 }
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:163
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:175
#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 770 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, and WRITE_OID_ARRAY.

Referenced by outNode().

771 {
772  WRITE_NODE_TYPE("AGG");
773 
774  _outPlanInfo(str, (const Plan *) node);
775 
776  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
777  WRITE_ENUM_FIELD(aggsplit, AggSplit);
778  WRITE_INT_FIELD(numCols);
779  WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
780  WRITE_OID_ARRAY(grpOperators, node->numCols);
781  WRITE_OID_ARRAY(grpCollations, node->numCols);
782  WRITE_LONG_FIELD(numGroups);
783  WRITE_BITMAPSET_FIELD(aggParams);
784  WRITE_NODE_FIELD(groupingSets);
785  WRITE_NODE_FIELD(chain);
786 }
int numCols
Definition: plannodes.h:807
#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:328
#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
AggSplit
Definition: nodes.h:776
AggStrategy
Definition: nodes.h:754
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAggPath()

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

Definition at line 1966 of file outfuncs.c.

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

Referenced by outNode().

1967 {
1968  WRITE_NODE_TYPE("AGGPATH");
1969 
1970  _outPathInfo(str, (const Path *) node);
1971 
1973  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
1974  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1975  WRITE_FLOAT_FIELD(numGroups, "%.0f");
1976  WRITE_NODE_FIELD(groupClause);
1977  WRITE_NODE_FIELD(qual);
1978 }
#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
AggSplit
Definition: nodes.h:776
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
AggStrategy
Definition: nodes.h:754
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 1113 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().

1114 {
1115  WRITE_NODE_TYPE("AGGREF");
1116 
1117  WRITE_OID_FIELD(aggfnoid);
1118  WRITE_OID_FIELD(aggtype);
1119  WRITE_OID_FIELD(aggcollid);
1120  WRITE_OID_FIELD(inputcollid);
1121  WRITE_OID_FIELD(aggtranstype);
1122  WRITE_NODE_FIELD(aggargtypes);
1123  WRITE_NODE_FIELD(aggdirectargs);
1125  WRITE_NODE_FIELD(aggorder);
1126  WRITE_NODE_FIELD(aggdistinct);
1127  WRITE_NODE_FIELD(aggfilter);
1128  WRITE_BOOL_FIELD(aggstar);
1129  WRITE_BOOL_FIELD(aggvariadic);
1130  WRITE_CHAR_FIELD(aggkind);
1131  WRITE_UINT_FIELD(agglevelsup);
1132  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1133  WRITE_LOCATION_FIELD(location);
1134 }
#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:776
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlias()

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

Definition at line 1003 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1004 {
1005  WRITE_NODE_TYPE("ALIAS");
1006 
1007  WRITE_STRING_FIELD(aliasname);
1008  WRITE_NODE_FIELD(colnames);
1009 }
#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 1329 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1330 {
1331  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1332 
1333  WRITE_NODE_FIELD(subplans);
1334 }
#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 2672 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2673 {
2674  WRITE_NODE_TYPE("ALTERSTATSSTMT");
2675 
2676  WRITE_NODE_FIELD(defnames);
2677  WRITE_INT_FIELD(stxstattarget);
2678  WRITE_BOOL_FIELD(missing_ok);
2679 }
#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 428 of file outfuncs.c.

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

Referenced by outNode().

429 {
430  WRITE_NODE_TYPE("APPEND");
431 
432  _outPlanInfo(str, (const Plan *) node);
433 
434  WRITE_NODE_FIELD(appendplans);
435  WRITE_INT_FIELD(first_partial_plan);
436  WRITE_NODE_FIELD(part_prune_info);
437 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#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 1842 of file outfuncs.c.

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

Referenced by outNode().

1843 {
1844  WRITE_NODE_TYPE("APPENDPATH");
1845 
1846  _outPathInfo(str, (const Path *) node);
1847 
1848  WRITE_NODE_FIELD(partitioned_rels);
1849  WRITE_NODE_FIELD(subpaths);
1850  WRITE_INT_FIELD(first_partial_path);
1851  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1852 }
#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:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAppendRelInfo()

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

Definition at line 2503 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2504 {
2505  WRITE_NODE_TYPE("APPENDRELINFO");
2506 
2507  WRITE_UINT_FIELD(parent_relid);
2508  WRITE_UINT_FIELD(child_relid);
2509  WRITE_OID_FIELD(parent_reltype);
2510  WRITE_OID_FIELD(child_reltype);
2511  WRITE_NODE_FIELD(translated_vars);
2512  WRITE_OID_FIELD(parent_reloid);
2513 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#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

◆ _outArrayCoerceExpr()

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

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

1386 {
1387  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1388 
1390  WRITE_NODE_FIELD(elemexpr);
1391  WRITE_OID_FIELD(resulttype);
1392  WRITE_INT_FIELD(resulttypmod);
1393  WRITE_OID_FIELD(resultcollid);
1394  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1395  WRITE_LOCATION_FIELD(location);
1396 }
#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:442
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outArrayExpr()

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

Definition at line 1453 of file outfuncs.c.

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

Referenced by outNode().

1454 {
1455  WRITE_NODE_TYPE("ARRAY");
1456 
1457  WRITE_OID_FIELD(array_typeid);
1458  WRITE_OID_FIELD(array_collid);
1459  WRITE_OID_FIELD(element_typeid);
1460  WRITE_NODE_FIELD(elements);
1461  WRITE_BOOL_FIELD(multidims);
1462  WRITE_LOCATION_FIELD(location);
1463 }
#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 471 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

472 {
473  WRITE_NODE_TYPE("BITMAPAND");
474 
475  _outPlanInfo(str, (const Plan *) node);
476 
477  WRITE_NODE_FIELD(bitmapplans);
478 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#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 1775 of file outfuncs.c.

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

Referenced by outNode().

1776 {
1777  WRITE_NODE_TYPE("BITMAPANDPATH");
1778 
1779  _outPathInfo(str, (const Path *) node);
1780 
1781  WRITE_NODE_FIELD(bitmapquals);
1782  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1783 }
#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:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapHeapPath()

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

Definition at line 1765 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1766 {
1767  WRITE_NODE_TYPE("BITMAPHEAPPATH");
1768 
1769  _outPathInfo(str, (const Path *) node);
1770 
1771  WRITE_NODE_FIELD(bitmapqual);
1772 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapHeapScan()

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

Definition at line 592 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

593 {
594  WRITE_NODE_TYPE("BITMAPHEAPSCAN");
595 
596  _outScanInfo(str, (const Scan *) node);
597 
598  WRITE_NODE_FIELD(bitmapqualorig);
599 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:350
#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 579 of file outfuncs.c.

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

Referenced by outNode().

580 {
581  WRITE_NODE_TYPE("BITMAPINDEXSCAN");
582 
583  _outScanInfo(str, (const Scan *) node);
584 
585  WRITE_OID_FIELD(indexid);
586  WRITE_BOOL_FIELD(isshared);
587  WRITE_NODE_FIELD(indexqual);
588  WRITE_NODE_FIELD(indexqualorig);
589 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:350
#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 481 of file outfuncs.c.

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

Referenced by outNode().

482 {
483  WRITE_NODE_TYPE("BITMAPOR");
484 
485  _outPlanInfo(str, (const Plan *) node);
486 
487  WRITE_BOOL_FIELD(isshared);
488  WRITE_NODE_FIELD(bitmapplans);
489 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#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 1786 of file outfuncs.c.

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

Referenced by outNode().

1787 {
1788  WRITE_NODE_TYPE("BITMAPORPATH");
1789 
1790  _outPathInfo(str, (const Path *) node);
1791 
1792  WRITE_NODE_FIELD(bitmapquals);
1793  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1794 }
#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:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBooleanTest()

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

Definition at line 1553 of file outfuncs.c.

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

Referenced by outNode().

1554 {
1555  WRITE_NODE_TYPE("BOOLEANTEST");
1556 
1558  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1559  WRITE_LOCATION_FIELD(location);
1560 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
BoolTestType
Definition: primnodes.h:1220
#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 1266 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().

1267 {
1268  char *opstr = NULL;
1269 
1270  WRITE_NODE_TYPE("BOOLEXPR");
1271 
1272  /* do-it-yourself enum representation */
1273  switch (node->boolop)
1274  {
1275  case AND_EXPR:
1276  opstr = "and";
1277  break;
1278  case OR_EXPR:
1279  opstr = "or";
1280  break;
1281  case NOT_EXPR:
1282  opstr = "not";
1283  break;
1284  }
1285  appendStringInfoString(str, " :boolop ");
1286  outToken(str, opstr);
1287 
1289  WRITE_LOCATION_FIELD(location);
1290 }
#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:568
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:163
#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 1420 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().

1421 {
1422  WRITE_NODE_TYPE("CASE");
1423 
1424  WRITE_OID_FIELD(casetype);
1425  WRITE_OID_FIELD(casecollid);
1428  WRITE_NODE_FIELD(defresult);
1429  WRITE_LOCATION_FIELD(location);
1430 }
#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 1443 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1444 {
1445  WRITE_NODE_TYPE("CASETESTEXPR");
1446 
1447  WRITE_OID_FIELD(typeId);
1448  WRITE_INT_FIELD(typeMod);
1449  WRITE_OID_FIELD(collation);
1450 }
#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 1433 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1434 {
1435  WRITE_NODE_TYPE("WHEN");
1436 
1437  WRITE_NODE_FIELD(expr);
1438  WRITE_NODE_FIELD(result);
1439  WRITE_LOCATION_FIELD(location);
1440 }
#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 1491 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().

1492 {
1493  WRITE_NODE_TYPE("COALESCE");
1494 
1495  WRITE_OID_FIELD(coalescetype);
1496  WRITE_OID_FIELD(coalescecollid);
1498  WRITE_LOCATION_FIELD(location);
1499 }
#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 1563 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().

1564 {
1565  WRITE_NODE_TYPE("COERCETODOMAIN");
1566 
1568  WRITE_OID_FIELD(resulttype);
1569  WRITE_INT_FIELD(resulttypmod);
1570  WRITE_OID_FIELD(resultcollid);
1571  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1572  WRITE_LOCATION_FIELD(location);
1573 }
#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:442
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoerceToDomainValue()

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

Definition at line 1576 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1577 {
1578  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1579 
1580  WRITE_OID_FIELD(typeId);
1581  WRITE_INT_FIELD(typeMod);
1582  WRITE_OID_FIELD(collation);
1583  WRITE_LOCATION_FIELD(location);
1584 }
#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 1373 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().

1374 {
1375  WRITE_NODE_TYPE("COERCEVIAIO");
1376 
1378  WRITE_OID_FIELD(resulttype);
1379  WRITE_OID_FIELD(resultcollid);
1380  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1381  WRITE_LOCATION_FIELD(location);
1382 }
#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:442
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCollateClause()

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

Definition at line 2844 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2845 {
2846  WRITE_NODE_TYPE("COLLATECLAUSE");
2847 
2849  WRITE_NODE_FIELD(collname);
2850  WRITE_LOCATION_FIELD(location);
2851 }
#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 1410 of file outfuncs.c.

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

Referenced by outNode().

1411 {
1412  WRITE_NODE_TYPE("COLLATE");
1413 
1415  WRITE_OID_FIELD(collOid);
1416  WRITE_LOCATION_FIELD(location);
1417 }
#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 2795 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().

2796 {
2797  WRITE_NODE_TYPE("COLUMNDEF");
2798 
2799  WRITE_STRING_FIELD(colname);
2800  WRITE_NODE_FIELD(typeName);
2801  WRITE_INT_FIELD(inhcount);
2802  WRITE_BOOL_FIELD(is_local);
2803  WRITE_BOOL_FIELD(is_not_null);
2804  WRITE_BOOL_FIELD(is_from_type);
2805  WRITE_CHAR_FIELD(storage);
2806  WRITE_NODE_FIELD(raw_default);
2807  WRITE_NODE_FIELD(cooked_default);
2808  WRITE_CHAR_FIELD(identity);
2809  WRITE_NODE_FIELD(identitySequence);
2810  WRITE_CHAR_FIELD(generated);
2811  WRITE_NODE_FIELD(collClause);
2812  WRITE_OID_FIELD(collOid);
2813  WRITE_NODE_FIELD(constraints);
2814  WRITE_NODE_FIELD(fdwoptions);
2815  WRITE_LOCATION_FIELD(location);
2816 }
#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 3267 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3268 {
3269  WRITE_NODE_TYPE("COLUMNREF");
3270 
3271  WRITE_NODE_FIELD(fields);
3272  WRITE_LOCATION_FIELD(location);
3273 }
#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 3012 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().

3013 {
3014  WRITE_NODE_TYPE("COMMONTABLEEXPR");
3015 
3016  WRITE_STRING_FIELD(ctename);
3017  WRITE_NODE_FIELD(aliascolnames);
3018  WRITE_ENUM_FIELD(ctematerialized, CTEMaterialize);
3019  WRITE_NODE_FIELD(ctequery);
3020  WRITE_LOCATION_FIELD(location);
3021  WRITE_BOOL_FIELD(cterecursive);
3022  WRITE_INT_FIELD(cterefcount);
3023  WRITE_NODE_FIELD(ctecolnames);
3024  WRITE_NODE_FIELD(ctecoltypes);
3025  WRITE_NODE_FIELD(ctecoltypmods);
3026  WRITE_NODE_FIELD(ctecolcollations);
3027 }
#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:1417
#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 1080 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().

1081 {
1082  WRITE_NODE_TYPE("CONST");
1083 
1084  WRITE_OID_FIELD(consttype);
1085  WRITE_INT_FIELD(consttypmod);
1086  WRITE_OID_FIELD(constcollid);
1087  WRITE_INT_FIELD(constlen);
1088  WRITE_BOOL_FIELD(constbyval);
1089  WRITE_BOOL_FIELD(constisnull);
1090  WRITE_LOCATION_FIELD(location);
1091 
1092  appendStringInfoString(str, " :constvalue ");
1093  if (node->constisnull)
1094  appendStringInfoString(str, "<>");
1095  else
1096  outDatum(str, node->constvalue, node->constlen, node->constbyval);
1097 }
Datum constvalue
Definition: primnodes.h:200
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
bool constbyval
Definition: primnodes.h:203
#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:199
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:163
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
bool constisnull
Definition: primnodes.h:201

◆ _outConstraint()

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

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

3455 {
3456  WRITE_NODE_TYPE("CONSTRAINT");
3457 
3458  WRITE_STRING_FIELD(conname);
3459  WRITE_BOOL_FIELD(deferrable);
3460  WRITE_BOOL_FIELD(initdeferred);
3461  WRITE_LOCATION_FIELD(location);
3462 
3463  appendStringInfoString(str, " :contype ");
3464  switch (node->contype)
3465  {
3466  case CONSTR_NULL:
3467  appendStringInfoString(str, "NULL");
3468  break;
3469 
3470  case CONSTR_NOTNULL:
3471  appendStringInfoString(str, "NOT_NULL");
3472  break;
3473 
3474  case CONSTR_DEFAULT:
3475  appendStringInfoString(str, "DEFAULT");
3476  WRITE_NODE_FIELD(raw_expr);
3477  WRITE_STRING_FIELD(cooked_expr);
3478  break;
3479 
3480  case CONSTR_IDENTITY:
3481  appendStringInfoString(str, "IDENTITY");
3482  WRITE_NODE_FIELD(raw_expr);
3483  WRITE_STRING_FIELD(cooked_expr);
3484  WRITE_CHAR_FIELD(generated_when);
3485  break;
3486 
3487  case CONSTR_GENERATED:
3488  appendStringInfoString(str, "GENERATED");
3489  WRITE_NODE_FIELD(raw_expr);
3490  WRITE_STRING_FIELD(cooked_expr);
3491  WRITE_CHAR_FIELD(generated_when);
3492  break;
3493 
3494  case CONSTR_CHECK:
3495  appendStringInfoString(str, "CHECK");
3496  WRITE_BOOL_FIELD(is_no_inherit);
3497  WRITE_NODE_FIELD(raw_expr);
3498  WRITE_STRING_FIELD(cooked_expr);
3499  break;
3500 
3501  case CONSTR_PRIMARY:
3502  appendStringInfoString(str, "PRIMARY_KEY");
3503  WRITE_NODE_FIELD(keys);
3504  WRITE_NODE_FIELD(including);
3506  WRITE_STRING_FIELD(indexname);
3507  WRITE_STRING_FIELD(indexspace);
3508  WRITE_BOOL_FIELD(reset_default_tblspc);
3509  /* access_method and where_clause not currently used */
3510  break;
3511 
3512  case CONSTR_UNIQUE:
3513  appendStringInfoString(str, "UNIQUE");
3514  WRITE_NODE_FIELD(keys);
3515  WRITE_NODE_FIELD(including);
3517  WRITE_STRING_FIELD(indexname);
3518  WRITE_STRING_FIELD(indexspace);
3519  WRITE_BOOL_FIELD(reset_default_tblspc);
3520  /* access_method and where_clause not currently used */
3521  break;
3522 
3523  case CONSTR_EXCLUSION:
3524  appendStringInfoString(str, "EXCLUSION");
3525  WRITE_NODE_FIELD(exclusions);
3526  WRITE_NODE_FIELD(including);
3528  WRITE_STRING_FIELD(indexname);
3529  WRITE_STRING_FIELD(indexspace);
3530  WRITE_BOOL_FIELD(reset_default_tblspc);
3531  WRITE_STRING_FIELD(access_method);
3532  WRITE_NODE_FIELD(where_clause);
3533  break;
3534 
3535  case CONSTR_FOREIGN:
3536  appendStringInfoString(str, "FOREIGN_KEY");
3537  WRITE_NODE_FIELD(pktable);
3538  WRITE_NODE_FIELD(fk_attrs);
3539  WRITE_NODE_FIELD(pk_attrs);
3540  WRITE_CHAR_FIELD(fk_matchtype);
3541  WRITE_CHAR_FIELD(fk_upd_action);
3542  WRITE_CHAR_FIELD(fk_del_action);
3543  WRITE_NODE_FIELD(old_conpfeqop);
3544  WRITE_OID_FIELD(old_pktable_oid);
3545  WRITE_BOOL_FIELD(skip_validation);
3546  WRITE_BOOL_FIELD(initially_valid);
3547  break;
3548 
3550  appendStringInfoString(str, "ATTR_DEFERRABLE");
3551  break;
3552 
3554  appendStringInfoString(str, "ATTR_NOT_DEFERRABLE");
3555  break;
3556 
3557  case CONSTR_ATTR_DEFERRED:
3558  appendStringInfoString(str, "ATTR_DEFERRED");
3559  break;
3560 
3561  case CONSTR_ATTR_IMMEDIATE:
3562  appendStringInfoString(str, "ATTR_IMMEDIATE");
3563  break;
3564 
3565  default:
3566  appendStringInfo(str, "<unrecognized_constraint %d>",
3567  (int) node->contype);
3568  break;
3569  }
3570 }
#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:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:163
#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:2129
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outConvertRowtypeExpr()

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

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

1400 {
1401  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1402 
1404  WRITE_OID_FIELD(resulttype);
1405  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1406  WRITE_LOCATION_FIELD(location);
1407 }
#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:442
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateForeignTableStmt()

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

Definition at line 2607 of file outfuncs.c.

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

Referenced by outNode().

2608 {
2609  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2610 
2611  _outCreateStmtInfo(str, (const CreateStmt *) node);
2612 
2613  WRITE_STRING_FIELD(servername);
2615 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2582
#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 2659 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2660 {
2661  WRITE_NODE_TYPE("CREATESTATSSTMT");
2662 
2663  WRITE_NODE_FIELD(defnames);
2664  WRITE_NODE_FIELD(stat_types);
2665  WRITE_NODE_FIELD(exprs);
2666  WRITE_NODE_FIELD(relations);
2667  WRITE_STRING_FIELD(stxcomment);
2668  WRITE_BOOL_FIELD(if_not_exists);
2669 }
#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 2599 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2600 {
2601  WRITE_NODE_TYPE("CREATESTMT");
2602 
2603  _outCreateStmtInfo(str, (const CreateStmt *) node);
2604 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2582
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCreateStmtInfo()

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

Definition at line 2582 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2583 {
2584  WRITE_NODE_FIELD(relation);
2585  WRITE_NODE_FIELD(tableElts);
2586  WRITE_NODE_FIELD(inhRelations);
2587  WRITE_NODE_FIELD(partspec);
2588  WRITE_NODE_FIELD(partbound);
2589  WRITE_NODE_FIELD(ofTypename);
2590  WRITE_NODE_FIELD(constraints);
2592  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2593  WRITE_STRING_FIELD(tablespacename);
2594  WRITE_STRING_FIELD(accessMethod);
2595  WRITE_BOOL_FIELD(if_not_exists);
2596 }
#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 653 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outCurrentOfExpr()

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

Definition at line 1598 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1599 {
1600  WRITE_NODE_TYPE("CURRENTOFEXPR");
1601 
1602  WRITE_UINT_FIELD(cvarno);
1603  WRITE_STRING_FIELD(cursor_name);
1604  WRITE_INT_FIELD(cursor_param);
1605 }
#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 1828 of file outfuncs.c.

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

Referenced by outNode().

1829 {
1830  WRITE_NODE_TYPE("CUSTOMPATH");
1831 
1832  _outPathInfo(str, (const Path *) node);
1833 
1834  WRITE_UINT_FIELD(flags);
1835  WRITE_NODE_FIELD(custom_paths);
1836  WRITE_NODE_FIELD(custom_private);
1837  appendStringInfoString(str, " :methods ");
1838  outToken(str, node->methods->CustomName);
1839 }
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:1351
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:163
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:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCustomScan()

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

Definition at line 701 of file outfuncs.c.

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

Referenced by outNode().

702 {
703  WRITE_NODE_TYPE("CUSTOMSCAN");
704 
705  _outScanInfo(str, (const Scan *) node);
706 
707  WRITE_UINT_FIELD(flags);
708  WRITE_NODE_FIELD(custom_plans);
709  WRITE_NODE_FIELD(custom_exprs);
710  WRITE_NODE_FIELD(custom_private);
711  WRITE_NODE_FIELD(custom_scan_tlist);
712  WRITE_BITMAPSET_FIELD(custom_relids);
713  /* CustomName is a key to lookup CustomScanMethods */
714  appendStringInfoString(str, " :methods ");
715  outToken(str, node->methods->CustomName);
716 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c: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:163
const struct CustomScanMethods * methods
Definition: plannodes.h:646
const char * CustomName
Definition: extensible.h:110
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:350
#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 2691 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2692 {
2693  WRITE_NODE_TYPE("DECLARECURSOR");
2694 
2695  WRITE_STRING_FIELD(portalname);
2697  WRITE_NODE_FIELD(query);
2698 }
#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 2743 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().

2744 {
2745  WRITE_NODE_TYPE("DEFELEM");
2746 
2747  WRITE_STRING_FIELD(defnamespace);
2748  WRITE_STRING_FIELD(defname);
2750  WRITE_ENUM_FIELD(defaction, DefElemAction);
2751  WRITE_LOCATION_FIELD(location);
2752 }
#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 1223 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().

1224 {
1225  WRITE_NODE_TYPE("DISTINCTEXPR");
1226 
1227  WRITE_OID_FIELD(opno);
1228  WRITE_OID_FIELD(opfuncid);
1229  WRITE_OID_FIELD(opresulttype);
1230  WRITE_BOOL_FIELD(opretset);
1231  WRITE_OID_FIELD(opcollid);
1232  WRITE_OID_FIELD(inputcollid);
1234  WRITE_LOCATION_FIELD(location);
1235 }
#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 2350 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().

2351 {
2352  /*
2353  * To simplify reading, we just chase up to the topmost merged EC and
2354  * print that, without bothering to show the merge-ees separately.
2355  */
2356  while (node->ec_merged)
2357  node = node->ec_merged;
2358 
2359  WRITE_NODE_TYPE("EQUIVALENCECLASS");
2360 
2361  WRITE_NODE_FIELD(ec_opfamilies);
2362  WRITE_OID_FIELD(ec_collation);
2363  WRITE_NODE_FIELD(ec_members);
2364  WRITE_NODE_FIELD(ec_sources);
2365  WRITE_NODE_FIELD(ec_derives);
2366  WRITE_BITMAPSET_FIELD(ec_relids);
2367  WRITE_BOOL_FIELD(ec_has_const);
2368  WRITE_BOOL_FIELD(ec_has_volatile);
2369  WRITE_BOOL_FIELD(ec_below_outer_join);
2370  WRITE_BOOL_FIELD(ec_broken);
2371  WRITE_UINT_FIELD(ec_sortref);
2372  WRITE_UINT_FIELD(ec_min_security);
2373  WRITE_UINT_FIELD(ec_max_security);
2374 }
#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:946
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outEquivalenceMember()

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

Definition at line 2377 of file outfuncs.c.

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

Referenced by outNode().

2378 {
2379  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2380 
2381  WRITE_NODE_FIELD(em_expr);
2382  WRITE_BITMAPSET_FIELD(em_relids);
2383  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2384  WRITE_BOOL_FIELD(em_is_const);
2385  WRITE_BOOL_FIELD(em_is_child);
2386  WRITE_OID_FIELD(em_datatype);
2387 }
#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 2558 of file outfuncs.c.

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

Referenced by outNode().

2559 {
2560  const ExtensibleNodeMethods *methods;
2561 
2562  methods = GetExtensibleNodeMethods(node->extnodename, false);
2563 
2564  WRITE_NODE_TYPE("EXTENSIBLENODE");
2565 
2566  WRITE_STRING_FIELD(extnodename);
2567 
2568  /* serialize the private fields */
2569  methods->nodeOut(str, node);
2570 }
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 1337 of file outfuncs.c.

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

Referenced by outNode().

1338 {
1339  WRITE_NODE_TYPE("FIELDSELECT");
1340 
1342  WRITE_INT_FIELD(fieldnum);
1343  WRITE_OID_FIELD(resulttype);
1344  WRITE_INT_FIELD(resulttypmod);
1345  WRITE_OID_FIELD(resultcollid);
1346 }
#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 1349 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1350 {
1351  WRITE_NODE_TYPE("FIELDSTORE");
1352 
1354  WRITE_NODE_FIELD(newvals);
1355  WRITE_NODE_FIELD(fieldnums);
1356  WRITE_OID_FIELD(resulttype);
1357 }
#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 3573 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().

3574 {
3575  WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
3576 
3577  WRITE_OID_FIELD(conoid);
3578  WRITE_OID_FIELD(conrelid);
3579  WRITE_OID_FIELD(confrelid);
3580  WRITE_INT_FIELD(nkeys);
3581  WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
3582  WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
3583  WRITE_OID_ARRAY(conpfeqop, node->nkeys);
3584 }
#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 2313 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().

2314 {
2315  int i;
2316 
2317  WRITE_NODE_TYPE("FOREIGNKEYOPTINFO");
2318 
2319  WRITE_UINT_FIELD(con_relid);
2320  WRITE_UINT_FIELD(ref_relid);
2321  WRITE_INT_FIELD(nkeys);
2322  WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
2323  WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
2324  WRITE_OID_ARRAY(conpfeqop, node->nkeys);
2325  WRITE_INT_FIELD(nmatched_ec);
2326  WRITE_INT_FIELD(nmatched_rcols);
2327  WRITE_INT_FIELD(nmatched_ri);
2328  /* for compactness, just print the number of matches per column: */
2329  appendStringInfoString(str, " :eclass");
2330  for (i = 0; i < node->nkeys; i++)
2331  appendStringInfo(str, " %d", (node->eclass[i] != NULL));
2332  appendStringInfoString(str, " :rinfos");
2333  for (i = 0; i < node->nkeys; i++)
2334  appendStringInfo(str, " %d", list_length(node->rinfos[i]));
2335 }
#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:78
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:163
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
Definition: pathnodes.h:866
#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:868

◆ _outForeignPath()

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

Definition at line 1817 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1818 {
1819  WRITE_NODE_TYPE("FOREIGNPATH");
1820 
1821  _outPathInfo(str, (const Path *) node);
1822 
1823  WRITE_NODE_FIELD(fdw_outerpath);
1824  WRITE_NODE_FIELD(fdw_private);
1825 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outForeignScan()

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

Definition at line 684 of file outfuncs.c.

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

Referenced by outNode().

685 {
686  WRITE_NODE_TYPE("FOREIGNSCAN");
687 
688  _outScanInfo(str, (const Scan *) node);
689 
690  WRITE_ENUM_FIELD(operation, CmdType);
691  WRITE_OID_FIELD(fs_server);
692  WRITE_NODE_FIELD(fdw_exprs);
693  WRITE_NODE_FIELD(fdw_private);
694  WRITE_NODE_FIELD(fdw_scan_tlist);
695  WRITE_NODE_FIELD(fdw_recheck_quals);
696  WRITE_BITMAPSET_FIELD(fs_relids);
697  WRITE_BOOL_FIELD(fsSystemCol);
698 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c: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:350
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
CmdType
Definition: nodes.h:668
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFromExpr()

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

Definition at line 1664 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1665 {
1666  WRITE_NODE_TYPE("FROMEXPR");
1667 
1668  WRITE_NODE_FIELD(fromlist);
1669  WRITE_NODE_FIELD(quals);
1670 }
#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 2726 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().

2727 {
2728  WRITE_NODE_TYPE("FUNCCALL");
2729 
2730  WRITE_NODE_FIELD(funcname);
2732  WRITE_NODE_FIELD(agg_order);
2733  WRITE_NODE_FIELD(agg_filter);
2734  WRITE_BOOL_FIELD(agg_within_group);
2735  WRITE_BOOL_FIELD(agg_star);
2736  WRITE_BOOL_FIELD(agg_distinct);
2737  WRITE_BOOL_FIELD(func_variadic);
2738  WRITE_NODE_FIELD(over);
2739  WRITE_LOCATION_FIELD(location);
2740 }
#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 1181 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().

1182 {
1183  WRITE_NODE_TYPE("FUNCEXPR");
1184 
1185  WRITE_OID_FIELD(funcid);
1186  WRITE_OID_FIELD(funcresulttype);
1187  WRITE_BOOL_FIELD(funcretset);
1188  WRITE_BOOL_FIELD(funcvariadic);
1189  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1190  WRITE_OID_FIELD(funccollid);
1191  WRITE_OID_FIELD(inputcollid);
1193  WRITE_LOCATION_FIELD(location);
1194 }
#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:442
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFunctionScan()

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

Definition at line 622 of file outfuncs.c.

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

Referenced by outNode().

623 {
624  WRITE_NODE_TYPE("FUNCTIONSCAN");
625 
626  _outScanInfo(str, (const Scan *) node);
627 
629  WRITE_BOOL_FIELD(funcordinality);
630 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:350
#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 492 of file outfuncs.c.

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

Referenced by outNode().

493 {
494  WRITE_NODE_TYPE("GATHER");
495 
496  _outPlanInfo(str, (const Plan *) node);
497 
498  WRITE_INT_FIELD(num_workers);
499  WRITE_INT_FIELD(rescan_param);
500  WRITE_BOOL_FIELD(single_copy);
501  WRITE_BOOL_FIELD(invisible);
502  WRITE_BITMAPSET_FIELD(initParam);
503 }
#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:328
#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 506 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().

507 {
508  WRITE_NODE_TYPE("GATHERMERGE");
509 
510  _outPlanInfo(str, (const Plan *) node);
511 
512  WRITE_INT_FIELD(num_workers);
513  WRITE_INT_FIELD(rescan_param);
514  WRITE_INT_FIELD(numCols);
515  WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
516  WRITE_OID_ARRAY(sortOperators, node->numCols);
517  WRITE_OID_ARRAY(collations, node->numCols);
518  WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
519  WRITE_BITMAPSET_FIELD(initParam);
520 }
#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:328
#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 2114 of file outfuncs.c.

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

Referenced by outNode().

2115 {
2116  WRITE_NODE_TYPE("GATHERMERGEPATH");
2117 
2118  _outPathInfo(str, (const Path *) node);
2119 
2121  WRITE_INT_FIELD(num_workers);
2122 }
#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:1704
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 1900 of file outfuncs.c.

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

Referenced by outNode().

1901 {
1902  WRITE_NODE_TYPE("GATHERPATH");
1903 
1904  _outPathInfo(str, (const Path *) node);
1905 
1907  WRITE_BOOL_FIELD(single_copy);
1908  WRITE_INT_FIELD(num_workers);
1909 }
#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:1704
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 815 of file outfuncs.c.

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

Referenced by outNode().

816 {
817  WRITE_NODE_TYPE("GROUP");
818 
819  _outPlanInfo(str, (const Plan *) node);
820 
821  WRITE_INT_FIELD(numCols);
822  WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
823  WRITE_OID_ARRAY(grpOperators, node->numCols);
824  WRITE_OID_ARRAY(grpCollations, node->numCols);
825 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
int numCols
Definition: plannodes.h:782
#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 1137 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().

1138 {
1139  WRITE_NODE_TYPE("GROUPINGFUNC");
1140 
1142  WRITE_NODE_FIELD(refs);
1143  WRITE_NODE_FIELD(cols);
1144  WRITE_UINT_FIELD(agglevelsup);
1145  WRITE_LOCATION_FIELD(location);
1146 }
#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 2960 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2961 {
2962  WRITE_NODE_TYPE("GROUPINGSET");
2963 
2965  WRITE_NODE_FIELD(content);
2966  WRITE_LOCATION_FIELD(location);
2967 }
#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:1291
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSetData()

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

Definition at line 1994 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1995 {
1996  WRITE_NODE_TYPE("GSDATA");
1997 
1998  WRITE_NODE_FIELD(set);
1999  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2000 }
#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 2003 of file outfuncs.c.

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

Referenced by outNode().

2004 {
2005  WRITE_NODE_TYPE("GROUPINGSETSPATH");
2006 
2007  _outPathInfo(str, (const Path *) node);
2008 
2010  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2011  WRITE_NODE_FIELD(rollups);
2012  WRITE_NODE_FIELD(qual);
2013 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
AggStrategy
Definition: nodes.h:754
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 1943 of file outfuncs.c.

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

Referenced by outNode().

1944 {
1945  WRITE_NODE_TYPE("GROUPPATH");
1946 
1947  _outPathInfo(str, (const Path *) node);
1948 
1950  WRITE_NODE_FIELD(groupClause);
1951  WRITE_NODE_FIELD(qual);
1952 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
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 1867 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1868 {
1869  WRITE_NODE_TYPE("GROUPRESULTPATH");
1870 
1871  _outPathInfo(str, (const Path *) node);
1872 
1873  WRITE_NODE_FIELD(quals);
1874 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHash()

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

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

864 {
865  WRITE_NODE_TYPE("HASH");
866 
867  _outPlanInfo(str, (const Plan *) node);
868 
869  WRITE_NODE_FIELD(hashkeys);
870  WRITE_OID_FIELD(skewTable);
871  WRITE_INT_FIELD(skewColumn);
872  WRITE_BOOL_FIELD(skewInherit);
873  WRITE_FLOAT_FIELD(rows_total, "%.0f");
874 }
#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:328
#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 757 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

758 {
759  WRITE_NODE_TYPE("HASHJOIN");
760 
761  _outJoinPlanInfo(str, (const Join *) node);
762 
763  WRITE_NODE_FIELD(hashclauses);
764  WRITE_NODE_FIELD(hashoperators);
765  WRITE_NODE_FIELD(hashcollations);
766  WRITE_NODE_FIELD(hashkeys);
767 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:361
#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 2147 of file outfuncs.c.

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

Referenced by outNode().

2148 {
2149  WRITE_NODE_TYPE("HASHPATH");
2150 
2151  _outJoinPathInfo(str, (const JoinPath *) node);
2152 
2153  WRITE_NODE_FIELD(path_hashclauses);
2154  WRITE_INT_FIELD(num_batches);
2155  WRITE_FLOAT_FIELD(inner_rows_total, "%.0f");
2156 }
#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:1729
#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 2618 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2619 {
2620  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2621 
2622  WRITE_STRING_FIELD(server_name);
2623  WRITE_STRING_FIELD(remote_schema);
2624  WRITE_STRING_FIELD(local_schema);
2626  WRITE_NODE_FIELD(table_list);
2628 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
ImportForeignSchemaType
Definition: parsenodes.h:2340
#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 2462 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2463 {
2464  WRITE_NODE_TYPE("INDEXCLAUSE");
2465 
2466  WRITE_NODE_FIELD(rinfo);
2467  WRITE_NODE_FIELD(indexquals);
2468  WRITE_BOOL_FIELD(lossy);
2469  WRITE_INT_FIELD(indexcol);
2470  WRITE_NODE_FIELD(indexcols);
2471 }
#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 2854 of file outfuncs.c.

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

Referenced by outNode().

2855 {
2856  WRITE_NODE_TYPE("INDEXELEM");
2857 
2859  WRITE_NODE_FIELD(expr);
2860  WRITE_STRING_FIELD(indexcolname);
2861  WRITE_NODE_FIELD(collation);
2862  WRITE_NODE_FIELD(opclass);
2863  WRITE_ENUM_FIELD(ordering, SortByDir);
2864  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
2865 }
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 565 of file outfuncs.c.

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

Referenced by outNode().

566 {
567  WRITE_NODE_TYPE("INDEXONLYSCAN");
568 
569  _outScanInfo(str, (const Scan *) node);
570 
571  WRITE_OID_FIELD(indexid);
572  WRITE_NODE_FIELD(indexqual);
573  WRITE_NODE_FIELD(indexorderby);
574  WRITE_NODE_FIELD(indextlist);
575  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
576 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c: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:350
#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 2288 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().

2289 {
2290  WRITE_NODE_TYPE("INDEXOPTINFO");
2291 
2292  /* NB: this isn't a complete set of fields */
2293  WRITE_OID_FIELD(indexoid);
2294  /* Do NOT print rel field, else infinite recursion */
2295  WRITE_UINT_FIELD(pages);
2296  WRITE_FLOAT_FIELD(tuples, "%.0f");
2297  WRITE_INT_FIELD(tree_height);
2298  WRITE_INT_FIELD(ncolumns);
2299  /* array fields aren't really worth the trouble to print */
2300  WRITE_OID_FIELD(relam);
2301  /* indexprs is redundant since we print indextlist */
2302  WRITE_NODE_FIELD(indpred);
2303  WRITE_NODE_FIELD(indextlist);
2304  WRITE_NODE_FIELD(indrestrictinfo);
2305  WRITE_BOOL_FIELD(predOK);
2306  WRITE_BOOL_FIELD(unique);
2307  WRITE_BOOL_FIELD(immediate);
2308  WRITE_BOOL_FIELD(hypothetical);
2309  /* we don't bother with fields copied from the index AM's API struct */
2310 }
#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 1749 of file outfuncs.c.

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

Referenced by outNode().

1750 {
1751  WRITE_NODE_TYPE("INDEXPATH");
1752 
1753  _outPathInfo(str, (const Path *) node);
1754 
1755  WRITE_NODE_FIELD(indexinfo);
1756  WRITE_NODE_FIELD(indexclauses);
1757  WRITE_NODE_FIELD(indexorderbys);
1758  WRITE_NODE_FIELD(indexorderbycols);
1759  WRITE_ENUM_FIELD(indexscandir, ScanDirection);
1760  WRITE_FLOAT_FIELD(indextotalcost, "%.2f");
1761  WRITE_FLOAT_FIELD(indexselectivity, "%.4f");
1762 }
#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:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexScan()

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

Definition at line 549 of file outfuncs.c.

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

Referenced by outNode().

550 {
551  WRITE_NODE_TYPE("INDEXSCAN");
552 
553  _outScanInfo(str, (const Scan *) node);
554 
555  WRITE_OID_FIELD(indexid);
556  WRITE_NODE_FIELD(indexqual);
557  WRITE_NODE_FIELD(indexqualorig);
558  WRITE_NODE_FIELD(indexorderby);
559  WRITE_NODE_FIELD(indexorderbyorig);
560  WRITE_NODE_FIELD(indexorderbyops);
561  WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
562 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c: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:350
#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 2631 of file outfuncs.c.

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

Referenced by outNode().

2632 {
2633  WRITE_NODE_TYPE("INDEXSTMT");
2634 
2635  WRITE_STRING_FIELD(idxname);
2636  WRITE_NODE_FIELD(relation);
2637  WRITE_STRING_FIELD(accessMethod);
2638  WRITE_STRING_FIELD(tableSpace);
2639  WRITE_NODE_FIELD(indexParams);
2640  WRITE_NODE_FIELD(indexIncludingParams);
2642  WRITE_NODE_FIELD(whereClause);
2643  WRITE_NODE_FIELD(excludeOpNames);
2644  WRITE_STRING_FIELD(idxcomment);
2645  WRITE_OID_FIELD(indexOid);
2646  WRITE_OID_FIELD(oldNode);
2647  WRITE_BOOL_FIELD(unique);
2648  WRITE_BOOL_FIELD(primary);
2649  WRITE_BOOL_FIELD(isconstraint);
2650  WRITE_BOOL_FIELD(deferrable);
2651  WRITE_BOOL_FIELD(initdeferred);
2652  WRITE_BOOL_FIELD(transformed);
2653  WRITE_BOOL_FIELD(concurrent);
2654  WRITE_BOOL_FIELD(if_not_exists);
2655  WRITE_BOOL_FIELD(reset_default_tblspc);
2656 }
#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 1617 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1618 {
1619  WRITE_NODE_TYPE("INFERENCEELEM");
1620 
1621  WRITE_NODE_FIELD(expr);
1622  WRITE_OID_FIELD(infercollid);
1623  WRITE_OID_FIELD(inferopclass);
1624 }
#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 1049 of file outfuncs.c.

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

Referenced by outNode().

1050 {
1051  WRITE_NODE_TYPE("INTOCLAUSE");
1052 
1053  WRITE_NODE_FIELD(rel);
1054  WRITE_NODE_FIELD(colNames);
1055  WRITE_STRING_FIELD(accessMethod);
1057  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1058  WRITE_STRING_FIELD(tableSpaceName);
1059  WRITE_NODE_FIELD(viewQuery);
1060  WRITE_BOOL_FIELD(skipData);
1061 }
#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 719 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outJoinExpr()

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

Definition at line 1649 of file outfuncs.c.

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

Referenced by outNode().

1650 {
1651  WRITE_NODE_TYPE("JOINEXPR");
1652 
1653  WRITE_ENUM_FIELD(jointype, JoinType);
1654  WRITE_BOOL_FIELD(isNatural);
1655  WRITE_NODE_FIELD(larg);
1656  WRITE_NODE_FIELD(rarg);
1657  WRITE_NODE_FIELD(usingClause);
1658  WRITE_NODE_FIELD(quals);
1659  WRITE_NODE_FIELD(alias);
1660  WRITE_INT_FIELD(rtindex);
1661 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
JoinType
Definition: nodes.h:692
#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 1729 of file outfuncs.c.

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

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

1730 {
1731  _outPathInfo(str, (const Path *) node);
1732 
1733  WRITE_ENUM_FIELD(jointype, JoinType);
1734  WRITE_BOOL_FIELD(inner_unique);
1735  WRITE_NODE_FIELD(outerjoinpath);
1736  WRITE_NODE_FIELD(innerjoinpath);
1737  WRITE_NODE_FIELD(joinrestrictinfo);
1738 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
JoinType
Definition: nodes.h:692
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoinPlanInfo()

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

Definition at line 361 of file outfuncs.c.

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

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

362 {
363  _outPlanInfo(str, (const Plan *) node);
364 
365  WRITE_ENUM_FIELD(jointype, JoinType);
366  WRITE_BOOL_FIELD(inner_unique);
367  WRITE_NODE_FIELD(joinqual);
368 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
JoinType
Definition: nodes.h:692
#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 906 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

907 {
908  WRITE_NODE_TYPE("LIMIT");
909 
910  _outPlanInfo(str, (const Plan *) node);
911 
912  WRITE_NODE_FIELD(limitOffset);
913  WRITE_NODE_FIELD(limitCount);
914 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#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 2102 of file outfuncs.c.

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

Referenced by outNode().

2103 {
2104  WRITE_NODE_TYPE("LIMITPATH");
2105 
2106  _outPathInfo(str, (const Path *) node);
2107 
2109  WRITE_NODE_FIELD(limitOffset);
2110  WRITE_NODE_FIELD(limitCount);
2111 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
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:576
static ListCell * lnext(const List *l, const ListCell *c)
Definition: pg_list.h:321
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:78
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:191
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:175
void outNode(StringInfo str, const void *obj)
Definition: outfuncs.c:3638
#define lfirst(lc)
Definition: pg_list.h:190
NodeTag type
Definition: pg_list.h:52
#define elog(elevel,...)
Definition: elog.h:226
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 2764 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2765 {
2766  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2767 
2768  WRITE_NODE_FIELD(lockedRels);
2770  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2771 }
#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 895 of file outfuncs.c.

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

Referenced by outNode().

896 {
897  WRITE_NODE_TYPE("LOCKROWS");
898 
899  _outPlanInfo(str, (const Plan *) node);
900 
901  WRITE_NODE_FIELD(rowMarks);
902  WRITE_INT_FIELD(epqParam);
903 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#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 2068 of file outfuncs.c.

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

Referenced by outNode().

2069 {
2070  WRITE_NODE_TYPE("LOCKROWSPATH");
2071 
2072  _outPathInfo(str, (const Path *) node);
2073 
2075  WRITE_NODE_FIELD(rowMarks);
2076  WRITE_INT_FIELD(epqParam);
2077 }
#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:1704
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 828 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

829 {
830  WRITE_NODE_TYPE("MATERIAL");
831 
832  _outPlanInfo(str, (const Plan *) node);
833 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outMaterialPath()

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

Definition at line 1877 of file outfuncs.c.

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

Referenced by outNode().

1878 {
1879  WRITE_NODE_TYPE("MATERIALPATH");
1880 
1881  _outPathInfo(str, (const Path *) node);
1882 
1884 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
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 440 of file outfuncs.c.

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

Referenced by outNode().

441 {
442  WRITE_NODE_TYPE("MERGEAPPEND");
443 
444  _outPlanInfo(str, (const Plan *) node);
445 
446  WRITE_NODE_FIELD(mergeplans);
447  WRITE_INT_FIELD(numCols);
448  WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
449  WRITE_OID_ARRAY(sortOperators, node->numCols);
450  WRITE_OID_ARRAY(collations, node->numCols);
451  WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
452  WRITE_NODE_FIELD(part_prune_info);
453 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#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 1855 of file outfuncs.c.

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

Referenced by outNode().

1856 {
1857  WRITE_NODE_TYPE("MERGEAPPENDPATH");
1858 
1859  _outPathInfo(str, (const Path *) node);
1860 
1861  WRITE_NODE_FIELD(partitioned_rels);
1862  WRITE_NODE_FIELD(subpaths);
1863  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1864 }
#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:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergeJoin()

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

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

738 {
739  int numCols;
740 
741  WRITE_NODE_TYPE("MERGEJOIN");
742 
743  _outJoinPlanInfo(str, (const Join *) node);
744 
745  WRITE_BOOL_FIELD(skip_mark_restore);
746  WRITE_NODE_FIELD(mergeclauses);
747 
748  numCols = list_length(node->mergeclauses);
749 
750  WRITE_OID_ARRAY(mergeFamilies, numCols);
751  WRITE_OID_ARRAY(mergeCollations, numCols);
752  WRITE_INT_ARRAY(mergeStrategies, numCols);
753  WRITE_BOOL_ARRAY(mergeNullsFirst, numCols);
754 }
#define WRITE_INT_ARRAY(fldname, len)
Definition: outfuncs.c:127
List * mergeclauses
Definition: plannodes.h:724
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:361
#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 2133 of file outfuncs.c.

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

Referenced by outNode().

2134 {
2135  WRITE_NODE_TYPE("MERGEPATH");
2136 
2137  _outJoinPathInfo(str, (const JoinPath *) node);
2138 
2139  WRITE_NODE_FIELD(path_mergeclauses);
2140  WRITE_NODE_FIELD(outersortkeys);
2141  WRITE_NODE_FIELD(innersortkeys);
2142  WRITE_BOOL_FIELD(skip_mark_restore);
2143  WRITE_BOOL_FIELD(materialize_inner);
2144 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1729
#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 2529 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2530 {
2531  WRITE_NODE_TYPE("MINMAXAGGINFO");
2532 
2533  WRITE_OID_FIELD(aggfnoid);
2534  WRITE_OID_FIELD(aggsortop);
2535  WRITE_NODE_FIELD(target);
2536  /* We intentionally omit subroot --- too large, not interesting enough */
2537  WRITE_NODE_FIELD(path);
2538  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2539  WRITE_NODE_FIELD(param);
2540 }
#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 2016 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2017 {
2018  WRITE_NODE_TYPE("MINMAXAGGPATH");
2019 
2020  _outPathInfo(str, (const Path *) node);
2021 
2022  WRITE_NODE_FIELD(mmaggregates);
2023  WRITE_NODE_FIELD(quals);
2024 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxExpr()

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

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

1503 {
1504  WRITE_NODE_TYPE("MINMAX");
1505 
1506  WRITE_OID_FIELD(minmaxtype);
1507  WRITE_OID_FIELD(minmaxcollid);
1508  WRITE_OID_FIELD(inputcollid);
1511  WRITE_LOCATION_FIELD(location);
1512 }
#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:1079
#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 398 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().

399 {
400  WRITE_NODE_TYPE("MODIFYTABLE");
401 
402  _outPlanInfo(str, (const Plan *) node);
403 
404  WRITE_ENUM_FIELD(operation, CmdType);
405  WRITE_BOOL_FIELD(canSetTag);
406  WRITE_UINT_FIELD(nominalRelation);
407  WRITE_UINT_FIELD(rootRelation);
408  WRITE_BOOL_FIELD(partColsUpdated);
409  WRITE_NODE_FIELD(resultRelations);
410  WRITE_INT_FIELD(resultRelIndex);
411  WRITE_INT_FIELD(rootResultRelIndex);
412  WRITE_NODE_FIELD(plans);
413  WRITE_NODE_FIELD(withCheckOptionLists);
414  WRITE_NODE_FIELD(returningLists);
415  WRITE_NODE_FIELD(fdwPrivLists);
416  WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
417  WRITE_NODE_FIELD(rowMarks);
418  WRITE_INT_FIELD(epqParam);
419  WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
420  WRITE_NODE_FIELD(arbiterIndexes);
421  WRITE_NODE_FIELD(onConflictSet);
422  WRITE_NODE_FIELD(onConflictWhere);
423  WRITE_UINT_FIELD(exclRelRTI);
424  WRITE_NODE_FIELD(exclRelTlist);
425 }
#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:328
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
OnConflictAction
Definition: nodes.h:818
CmdType
Definition: nodes.h:668
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outModifyTablePath()

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

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

2081 {
2082  WRITE_NODE_TYPE("MODIFYTABLEPATH");
2083 
2084  _outPathInfo(str, (const Path *) node);
2085 
2086  WRITE_ENUM_FIELD(operation, CmdType);
2087  WRITE_BOOL_FIELD(canSetTag);
2088  WRITE_UINT_FIELD(nominalRelation);
2089  WRITE_UINT_FIELD(rootRelation);
2090  WRITE_BOOL_FIELD(partColsUpdated);
2091  WRITE_NODE_FIELD(resultRelations);
2092  WRITE_NODE_FIELD(subpaths);
2093  WRITE_NODE_FIELD(subroots);
2094  WRITE_NODE_FIELD(withCheckOptionLists);
2095  WRITE_NODE_FIELD(returningLists);
2096  WRITE_NODE_FIELD(rowMarks);
2097  WRITE_NODE_FIELD(onconflict);
2098  WRITE_INT_FIELD(epqParam);
2099 }
#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:1704
CmdType
Definition: nodes.h:668
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMultiAssignRef()

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

Definition at line 3354 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3355 {
3356  WRITE_NODE_TYPE("MULTIASSIGNREF");
3357 
3358  WRITE_NODE_FIELD(source);
3359  WRITE_INT_FIELD(colno);
3360  WRITE_INT_FIELD(ncolumns);
3361 }
#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 1197 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().

1198 {
1199  WRITE_NODE_TYPE("NAMEDARGEXPR");
1200 
1203  WRITE_INT_FIELD(argnumber);
1204  WRITE_LOCATION_FIELD(location);
1205 }
#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 664 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

665 {
666  WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
667 
668  _outScanInfo(str, (const Scan *) node);
669 
670  WRITE_STRING_FIELD(enrname);
671 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:350
#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 727 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

728 {
729  WRITE_NODE_TYPE("NESTLOOP");
730 
731  _outJoinPlanInfo(str, (const Join *) node);
732 
733  WRITE_NODE_FIELD(nestParams);
734 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:361
#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 917 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

918 {
919  WRITE_NODE_TYPE("NESTLOOPPARAM");
920 
921  WRITE_INT_FIELD(paramno);
922  WRITE_NODE_FIELD(paramval);
923 }
#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 2125 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2126 {
2127  WRITE_NODE_TYPE("NESTPATH");
2128 
2129  _outJoinPathInfo(str, (const JoinPath *) node);
2130 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1729
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outNextValueExpr()

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

Definition at line 1608 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1609 {
1610  WRITE_NODE_TYPE("NEXTVALUEEXPR");
1611 
1612  WRITE_OID_FIELD(seqid);
1613  WRITE_OID_FIELD(typeId);
1614 }
#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 2682 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2683 {
2684  WRITE_NODE_TYPE("NOTIFY");
2685 
2686  WRITE_STRING_FIELD(conditionname);
2687  WRITE_STRING_FIELD(payload);
2688 }
#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 1238 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().

1239 {
1240  WRITE_NODE_TYPE("NULLIFEXPR");
1241 
1242  WRITE_OID_FIELD(opno);
1243  WRITE_OID_FIELD(opfuncid);
1244  WRITE_OID_FIELD(opresulttype);
1245  WRITE_BOOL_FIELD(opretset);
1246  WRITE_OID_FIELD(opcollid);
1247  WRITE_OID_FIELD(inputcollid);
1249  WRITE_LOCATION_FIELD(location);
1250 }
#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 1542 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().

1543 {
1544  WRITE_NODE_TYPE("NULLTEST");
1545 
1547  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1548  WRITE_BOOL_FIELD(argisrow);
1549  WRITE_LOCATION_FIELD(location);
1550 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
NullTestType
Definition: primnodes.h:1197
#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 1673 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().

1674 {
1675  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1676 
1678  WRITE_NODE_FIELD(arbiterElems);
1679  WRITE_NODE_FIELD(arbiterWhere);
1680  WRITE_OID_FIELD(constraint);
1681  WRITE_NODE_FIELD(onConflictSet);
1682  WRITE_NODE_FIELD(onConflictWhere);
1683  WRITE_INT_FIELD(exclRelIndex);
1684  WRITE_NODE_FIELD(exclRelTlist);
1685 }
#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:818
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outOpExpr()

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

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

1209 {
1210  WRITE_NODE_TYPE("OPEXPR");
1211 
1212  WRITE_OID_FIELD(opno);
1213  WRITE_OID_FIELD(opfuncid);
1214  WRITE_OID_FIELD(opresulttype);
1215  WRITE_BOOL_FIELD(opretset);
1216  WRITE_OID_FIELD(opcollid);
1217  WRITE_OID_FIELD(inputcollid);
1219  WRITE_LOCATION_FIELD(location);
1220 }
#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 1100 of file outfuncs.c.

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

Referenced by outNode().

1101 {
1102  WRITE_NODE_TYPE("PARAM");
1103 
1104  WRITE_ENUM_FIELD(paramkind, ParamKind);
1105  WRITE_INT_FIELD(paramid);
1106  WRITE_OID_FIELD(paramtype);
1107  WRITE_INT_FIELD(paramtypmod);
1108  WRITE_OID_FIELD(paramcollid);
1109  WRITE_LOCATION_FIELD(location);
1110 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
ParamKind
Definition: primnodes.h:237
#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 2420 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2421 {
2422  WRITE_NODE_TYPE("PARAMPATHINFO");
2423 
2424  WRITE_BITMAPSET_FIELD(ppi_req_outer);
2425  WRITE_FLOAT_FIELD(ppi_rows, "%.0f");
2426  WRITE_NODE_FIELD(ppi_clauses);
2427 }
#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 3276 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3277 {
3278  WRITE_NODE_TYPE("PARAMREF");
3279 
3280  WRITE_INT_FIELD(number);
3281  WRITE_LOCATION_FIELD(location);
3282 }
#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 3609 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().

3610 {
3611  WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
3612 
3613  WRITE_CHAR_FIELD(strategy);
3614  WRITE_BOOL_FIELD(is_default);
3615  WRITE_INT_FIELD(modulus);
3616  WRITE_INT_FIELD(remainder);
3617  WRITE_NODE_FIELD(listdatums);
3618  WRITE_NODE_FIELD(lowerdatums);
3619  WRITE_NODE_FIELD(upperdatums);
3620  WRITE_LOCATION_FIELD(location);
3621 }
#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 950 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().

951 {
952  WRITE_NODE_TYPE("PARTITIONEDRELPRUNEINFO");
953 
954  WRITE_UINT_FIELD(rtindex);
955  WRITE_BITMAPSET_FIELD(present_parts);
956  WRITE_INT_FIELD(nparts);
957  WRITE_INT_ARRAY(subplan_map, node->nparts);
958  WRITE_INT_ARRAY(subpart_map, node->nparts);
959  WRITE_OID_ARRAY(relid_map, node->nparts);
960  WRITE_NODE_FIELD(initial_pruning_steps);
961  WRITE_NODE_FIELD(exec_pruning_steps);
962  WRITE_BITMAPSET_FIELD(execparamids);
963 }
#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 3587 of file outfuncs.c.

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

Referenced by outNode().

3588 {
3589  WRITE_NODE_TYPE("PARTITIONELEM");
3590 
3592  WRITE_NODE_FIELD(expr);
3593  WRITE_NODE_FIELD(collation);
3594  WRITE_NODE_FIELD(opclass);
3595  WRITE_LOCATION_FIELD(location);
3596 }
#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 941 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

942 {
943  WRITE_NODE_TYPE("PARTITIONPRUNEINFO");
944 
945  WRITE_NODE_FIELD(prune_infos);
946  WRITE_BITMAPSET_FIELD(other_subplans);
947 }
#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 978 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

979 {
980  WRITE_NODE_TYPE("PARTITIONPRUNESTEPCOMBINE");
981 
982  WRITE_INT_FIELD(step.step_id);
984  WRITE_NODE_FIELD(source_stepids);
985 }
PartitionPruneCombineOp
Definition: plannodes.h:1200
#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 966 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

967 {
968  WRITE_NODE_TYPE("PARTITIONPRUNESTEPOP");
969 
970  WRITE_INT_FIELD(step.step_id);
971  WRITE_INT_FIELD(opstrategy);
972  WRITE_NODE_FIELD(exprs);
973  WRITE_NODE_FIELD(cmpfns);
974  WRITE_BITMAPSET_FIELD(nullkeys);
975 }
#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 3624 of file outfuncs.c.

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

Referenced by outNode().

3625 {
3626  WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
3627 
3630  WRITE_LOCATION_FIELD(location);
3631 }
#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 @145 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 3599 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3600 {
3601  WRITE_NODE_TYPE("PARTITIONSPEC");
3602 
3603  WRITE_STRING_FIELD(strategy);
3604  WRITE_NODE_FIELD(partParams);
3605  WRITE_LOCATION_FIELD(location);
3606 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#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

◆ _outPath()

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

Definition at line 1741 of file outfuncs.c.

References _outPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

1742 {
1743  WRITE_NODE_TYPE("PATH");
1744 
1745  _outPathInfo(str, (const Path *) node);
1746 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1704