PostgreSQL Source Code  git master
outfuncs.c File Reference
#include "postgres.h"
#include <ctype.h>
#include "lib/stringinfo.h"
#include "nodes/extensible.h"
#include "nodes/plannodes.h"
#include "nodes/relation.h"
#include "utils/datum.h"
#include "utils/rel.h"
Include dependency graph for outfuncs.c:

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ booltostr

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

Definition at line 109 of file outfuncs.c.

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

◆ WRITE_BITMAPSET_FIELD

◆ WRITE_BOOL_FIELD

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

Definition at line 85 of file outfuncs.c.

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

◆ 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:205

Definition at line 71 of file outfuncs.c.

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

◆ WRITE_ENUM_FIELD

◆ WRITE_FLOAT_FIELD

◆ WRITE_INT_FIELD

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

◆ WRITE_LOCATION_FIELD

◆ WRITE_LONG_FIELD

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

Definition at line 67 of file outfuncs.c.

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

◆ WRITE_NODE_FIELD

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

Definition at line 99 of file outfuncs.c.

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

◆ WRITE_NODE_TYPE

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

Definition at line 46 of file outfuncs.c.

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

◆ 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:205
#define UINT64_FORMAT
Definition: c.h:339

Definition at line 58 of file outfuncs.c.

Referenced by _outPlannedStmt().

◆ WRITE_UINT_FIELD

Function Documentation

◆ _outA_ArrayExpr()

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

Definition at line 3310 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3311 {
3312  WRITE_NODE_TYPE("A_ARRAYEXPR");
3313 
3314  WRITE_NODE_FIELD(elements);
3315  WRITE_LOCATION_FIELD(location);
3316 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outA_Indices()

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

Definition at line 3291 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3292 {
3293  WRITE_NODE_TYPE("A_INDICES");
3294 
3295  WRITE_BOOL_FIELD(is_slice);
3296  WRITE_NODE_FIELD(lidx);
3297  WRITE_NODE_FIELD(uidx);
3298 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outA_Indirection()

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

Definition at line 3301 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3302 {
3303  WRITE_NODE_TYPE("A_INDIRECTION");
3304 
3306  WRITE_NODE_FIELD(indirection);
3307 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outA_Star()

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

Definition at line 3285 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3286 {
3287  WRITE_NODE_TYPE("A_STAR");
3288 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outAConst()

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

Definition at line 3275 of file outfuncs.c.

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

Referenced by outNode().

3276 {
3277  WRITE_NODE_TYPE("A_CONST");
3278 
3279  appendStringInfoString(str, " :val ");
3280  _outValue(str, &(node->val));
3281  WRITE_LOCATION_FIELD(location);
3282 }
static void _outValue(StringInfo str, const Value *value)
Definition: outfuncs.c:3216
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:157
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
Value val
Definition: parsenodes.h:287

◆ _outAExpr()

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

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

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

◆ _outAgg()

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

Definition at line 783 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outAggPath()

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

Definition at line 1982 of file outfuncs.c.

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

Referenced by outNode().

1983 {
1984  WRITE_NODE_TYPE("AGGPATH");
1985 
1986  _outPathInfo(str, (const Path *) node);
1987 
1989  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
1990  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1991  WRITE_FLOAT_FIELD(numGroups, "%.0f");
1992  WRITE_NODE_FIELD(groupClause);
1993  WRITE_NODE_FIELD(qual);
1994 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AggSplit
Definition: nodes.h:760
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
AggStrategy
Definition: nodes.h:738
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAggref()

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

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

1130 {
1131  WRITE_NODE_TYPE("AGGREF");
1132 
1133  WRITE_OID_FIELD(aggfnoid);
1134  WRITE_OID_FIELD(aggtype);
1135  WRITE_OID_FIELD(aggcollid);
1136  WRITE_OID_FIELD(inputcollid);
1137  WRITE_OID_FIELD(aggtranstype);
1138  WRITE_NODE_FIELD(aggargtypes);
1139  WRITE_NODE_FIELD(aggdirectargs);
1141  WRITE_NODE_FIELD(aggorder);
1142  WRITE_NODE_FIELD(aggdistinct);
1143  WRITE_NODE_FIELD(aggfilter);
1144  WRITE_BOOL_FIELD(aggstar);
1145  WRITE_BOOL_FIELD(aggvariadic);
1146  WRITE_CHAR_FIELD(aggkind);
1147  WRITE_UINT_FIELD(agglevelsup);
1148  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1149  WRITE_LOCATION_FIELD(location);
1150 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
AggSplit
Definition: nodes.h:760
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAlias()

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

Definition at line 1020 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1021 {
1022  WRITE_NODE_TYPE("ALIAS");
1023 
1024  WRITE_STRING_FIELD(aliasname);
1025  WRITE_NODE_FIELD(colnames);
1026 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAlternativeSubPlan()

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

Definition at line 1345 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1346 {
1347  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1348 
1349  WRITE_NODE_FIELD(subplans);
1350 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAppend()

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

Definition at line 394 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outAppendPath()

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

Definition at line 1860 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1861 {
1862  WRITE_NODE_TYPE("APPENDPATH");
1863 
1864  _outPathInfo(str, (const Path *) node);
1865 
1866  WRITE_NODE_FIELD(partitioned_rels);
1867  WRITE_NODE_FIELD(subpaths);
1868 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outAppendRelInfo()

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

Definition at line 2510 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

2511 {
2512  WRITE_NODE_TYPE("APPENDRELINFO");
2513 
2514  WRITE_UINT_FIELD(parent_relid);
2515  WRITE_UINT_FIELD(child_relid);
2516  WRITE_OID_FIELD(parent_reltype);
2517  WRITE_OID_FIELD(child_reltype);
2518  WRITE_NODE_FIELD(translated_vars);
2519  WRITE_OID_FIELD(parent_reloid);
2520 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outArrayCoerceExpr()

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

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

1402 {
1403  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1404 
1406  WRITE_NODE_FIELD(elemexpr);
1407  WRITE_OID_FIELD(resulttype);
1408  WRITE_INT_FIELD(resulttypmod);
1409  WRITE_OID_FIELD(resultcollid);
1410  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1411  WRITE_LOCATION_FIELD(location);
1412 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outArrayExpr()

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

Definition at line 1469 of file outfuncs.c.

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

Referenced by outNode().

1470 {
1471  WRITE_NODE_TYPE("ARRAY");
1472 
1473  WRITE_OID_FIELD(array_typeid);
1474  WRITE_OID_FIELD(array_collid);
1475  WRITE_OID_FIELD(element_typeid);
1476  WRITE_NODE_FIELD(elements);
1477  WRITE_BOOL_FIELD(multidims);
1478  WRITE_LOCATION_FIELD(location);
1479 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outArrayRef()

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

Definition at line 1182 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1183 {
1184  WRITE_NODE_TYPE("ARRAYREF");
1185 
1186  WRITE_OID_FIELD(refarraytype);
1187  WRITE_OID_FIELD(refelemtype);
1188  WRITE_INT_FIELD(reftypmod);
1189  WRITE_OID_FIELD(refcollid);
1190  WRITE_NODE_FIELD(refupperindexpr);
1191  WRITE_NODE_FIELD(reflowerindexpr);
1192  WRITE_NODE_FIELD(refexpr);
1193  WRITE_NODE_FIELD(refassgnexpr);
1194 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapAnd()

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

Definition at line 460 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outBitmapAndPath()

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

Definition at line 1793 of file outfuncs.c.

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

Referenced by outNode().

1794 {
1795  WRITE_NODE_TYPE("BITMAPANDPATH");
1796 
1797  _outPathInfo(str, (const Path *) node);
1798 
1799  WRITE_NODE_FIELD(bitmapquals);
1800  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1801 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapHeapPath()

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

Definition at line 1783 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1784 {
1785  WRITE_NODE_TYPE("BITMAPHEAPPATH");
1786 
1787  _outPathInfo(str, (const Path *) node);
1788 
1789  WRITE_NODE_FIELD(bitmapqual);
1790 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBitmapHeapScan()

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

Definition at line 596 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outBitmapIndexScan()

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

Definition at line 583 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outBitmapOr()

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

Definition at line 470 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outBitmapOrPath()

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

Definition at line 1804 of file outfuncs.c.

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

Referenced by outNode().

1805 {
1806  WRITE_NODE_TYPE("BITMAPORPATH");
1807 
1808  _outPathInfo(str, (const Path *) node);
1809 
1810  WRITE_NODE_FIELD(bitmapquals);
1811  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1812 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBooleanTest()

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

Definition at line 1569 of file outfuncs.c.

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

Referenced by outNode().

1570 {
1571  WRITE_NODE_TYPE("BOOLEANTEST");
1572 
1574  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1575  WRITE_LOCATION_FIELD(location);
1576 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
BoolTestType
Definition: primnodes.h:1202
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outBoolExpr()

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

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

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

◆ _outCaseExpr()

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

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

1437 {
1438  WRITE_NODE_TYPE("CASE");
1439 
1440  WRITE_OID_FIELD(casetype);
1441  WRITE_OID_FIELD(casecollid);
1444  WRITE_NODE_FIELD(defresult);
1445  WRITE_LOCATION_FIELD(location);
1446 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCaseTestExpr()

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

Definition at line 1459 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1460 {
1461  WRITE_NODE_TYPE("CASETESTEXPR");
1462 
1463  WRITE_OID_FIELD(typeId);
1464  WRITE_INT_FIELD(typeMod);
1465  WRITE_OID_FIELD(collation);
1466 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outCaseWhen()

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

Definition at line 1449 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1450 {
1451  WRITE_NODE_TYPE("WHEN");
1452 
1453  WRITE_NODE_FIELD(expr);
1454  WRITE_NODE_FIELD(result);
1455  WRITE_LOCATION_FIELD(location);
1456 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCoalesceExpr()

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

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

1508 {
1509  WRITE_NODE_TYPE("COALESCE");
1510 
1511  WRITE_OID_FIELD(coalescetype);
1512  WRITE_OID_FIELD(coalescecollid);
1514  WRITE_LOCATION_FIELD(location);
1515 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCoerceToDomain()

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

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

1580 {
1581  WRITE_NODE_TYPE("COERCETODOMAIN");
1582 
1584  WRITE_OID_FIELD(resulttype);
1585  WRITE_INT_FIELD(resulttypmod);
1586  WRITE_OID_FIELD(resultcollid);
1587  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1588  WRITE_LOCATION_FIELD(location);
1589 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCoerceToDomainValue()

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

Definition at line 1592 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1593 {
1594  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1595 
1596  WRITE_OID_FIELD(typeId);
1597  WRITE_INT_FIELD(typeMod);
1598  WRITE_OID_FIELD(collation);
1599  WRITE_LOCATION_FIELD(location);
1600 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outCoerceViaIO()

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

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

1390 {
1391  WRITE_NODE_TYPE("COERCEVIAIO");
1392 
1394  WRITE_OID_FIELD(resulttype);
1395  WRITE_OID_FIELD(resultcollid);
1396  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1397  WRITE_LOCATION_FIELD(location);
1398 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCollateClause()

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

Definition at line 2845 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2846 {
2847  WRITE_NODE_TYPE("COLLATECLAUSE");
2848 
2850  WRITE_NODE_FIELD(collname);
2851  WRITE_LOCATION_FIELD(location);
2852 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCollateExpr()

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

Definition at line 1426 of file outfuncs.c.

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

Referenced by outNode().

1427 {
1428  WRITE_NODE_TYPE("COLLATE");
1429 
1431  WRITE_OID_FIELD(collOid);
1432  WRITE_LOCATION_FIELD(location);
1433 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outColumnDef()

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

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

2798 {
2799  WRITE_NODE_TYPE("COLUMNDEF");
2800 
2801  WRITE_STRING_FIELD(colname);
2802  WRITE_NODE_FIELD(typeName);
2803  WRITE_INT_FIELD(inhcount);
2804  WRITE_BOOL_FIELD(is_local);
2805  WRITE_BOOL_FIELD(is_not_null);
2806  WRITE_BOOL_FIELD(is_from_type);
2807  WRITE_BOOL_FIELD(is_from_parent);
2808  WRITE_CHAR_FIELD(storage);
2809  WRITE_NODE_FIELD(raw_default);
2810  WRITE_NODE_FIELD(cooked_default);
2811  WRITE_CHAR_FIELD(identity);
2812  WRITE_NODE_FIELD(collClause);
2813  WRITE_OID_FIELD(collOid);
2814  WRITE_NODE_FIELD(constraints);
2815  WRITE_NODE_FIELD(fdwoptions);
2816  WRITE_LOCATION_FIELD(location);
2817 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outColumnRef()

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

Definition at line 3257 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3258 {
3259  WRITE_NODE_TYPE("COLUMNREF");
3260 
3261  WRITE_NODE_FIELD(fields);
3262  WRITE_LOCATION_FIELD(location);
3263 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCommonTableExpr()

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

Definition at line 3008 of file outfuncs.c.

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

Referenced by outNode().

3009 {
3010  WRITE_NODE_TYPE("COMMONTABLEEXPR");
3011 
3012  WRITE_STRING_FIELD(ctename);
3013  WRITE_NODE_FIELD(aliascolnames);
3014  WRITE_NODE_FIELD(ctequery);
3015  WRITE_LOCATION_FIELD(location);
3016  WRITE_BOOL_FIELD(cterecursive);
3017  WRITE_INT_FIELD(cterefcount);
3018  WRITE_NODE_FIELD(ctecolnames);
3019  WRITE_NODE_FIELD(ctecoltypes);
3020  WRITE_NODE_FIELD(ctecoltypmods);
3021  WRITE_NODE_FIELD(ctecolcollations);
3022 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outConst()

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

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

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

◆ _outConstraint()

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

Definition at line 3430 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outConvertRowtypeExpr()

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

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

1416 {
1417  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1418 
1420  WRITE_OID_FIELD(resulttype);
1421  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1422  WRITE_LOCATION_FIELD(location);
1423 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCreateForeignTableStmt()

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

Definition at line 2622 of file outfuncs.c.

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

Referenced by outNode().

2623 {
2624  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2625 
2626  _outCreateStmtInfo(str, (const CreateStmt *) node);
2627 
2628  WRITE_STRING_FIELD(servername);
2630 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2598
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCreateStatsStmt()

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

Definition at line 2672 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2673 {
2674  WRITE_NODE_TYPE("CREATESTATSSTMT");
2675 
2676  WRITE_NODE_FIELD(defnames);
2677  WRITE_NODE_FIELD(stat_types);
2678  WRITE_NODE_FIELD(exprs);
2679  WRITE_NODE_FIELD(relations);
2680  WRITE_BOOL_FIELD(if_not_exists);
2681 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCreateStmt()

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

Definition at line 2614 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2615 {
2616  WRITE_NODE_TYPE("CREATESTMT");
2617 
2618  _outCreateStmtInfo(str, (const CreateStmt *) node);
2619 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2598
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outCreateStmtInfo()

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

Definition at line 2598 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2599 {
2600  WRITE_NODE_FIELD(relation);
2601  WRITE_NODE_FIELD(tableElts);
2602  WRITE_NODE_FIELD(inhRelations);
2603  WRITE_NODE_FIELD(partspec);
2604  WRITE_NODE_FIELD(partbound);
2605  WRITE_NODE_FIELD(ofTypename);
2606  WRITE_NODE_FIELD(constraints);
2608  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2609  WRITE_STRING_FIELD(tablespacename);
2610  WRITE_BOOL_FIELD(if_not_exists);
2611 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outCteScan()

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

Definition at line 657 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outCurrentOfExpr()

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

Definition at line 1614 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1615 {
1616  WRITE_NODE_TYPE("CURRENTOFEXPR");
1617 
1618  WRITE_UINT_FIELD(cvarno);
1619  WRITE_STRING_FIELD(cursor_name);
1620  WRITE_INT_FIELD(cursor_param);
1621 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90

◆ _outCustomPath()

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

Definition at line 1846 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outCustomScan()

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

Definition at line 705 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outDeclareCursorStmt()

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

Definition at line 2693 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2694 {
2695  WRITE_NODE_TYPE("DECLARECURSOR");
2696 
2697  WRITE_STRING_FIELD(portalname);
2699  WRITE_NODE_FIELD(query);
2700 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outDefElem()

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

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

2746 {
2747  WRITE_NODE_TYPE("DEFELEM");
2748 
2749  WRITE_STRING_FIELD(defnamespace);
2750  WRITE_STRING_FIELD(defname);
2752  WRITE_ENUM_FIELD(defaction, DefElemAction);
2753  WRITE_LOCATION_FIELD(location);
2754 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
DefElemAction
Definition: parsenodes.h:707
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outDistinctExpr()

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

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

1240 {
1241  WRITE_NODE_TYPE("DISTINCTEXPR");
1242 
1243  WRITE_OID_FIELD(opno);
1244  WRITE_OID_FIELD(opfuncid);
1245  WRITE_OID_FIELD(opresulttype);
1246  WRITE_BOOL_FIELD(opretset);
1247  WRITE_OID_FIELD(opcollid);
1248  WRITE_OID_FIELD(inputcollid);
1250  WRITE_LOCATION_FIELD(location);
1251 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outEquivalenceClass()

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

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

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

◆ _outEquivalenceMember()

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

Definition at line 2396 of file outfuncs.c.

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

Referenced by outNode().

2397 {
2398  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2399 
2400  WRITE_NODE_FIELD(em_expr);
2401  WRITE_BITMAPSET_FIELD(em_relids);
2402  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2403  WRITE_BOOL_FIELD(em_is_const);
2404  WRITE_BOOL_FIELD(em_is_child);
2405  WRITE_OID_FIELD(em_datatype);
2406 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outExtensibleNode()

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

Definition at line 2574 of file outfuncs.c.

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

Referenced by outNode().

2575 {
2576  const ExtensibleNodeMethods *methods;
2577 
2578  methods = GetExtensibleNodeMethods(node->extnodename, false);
2579 
2580  WRITE_NODE_TYPE("EXTENSIBLENODE");
2581 
2582  WRITE_STRING_FIELD(extnodename);
2583 
2584  /* serialize the private fields */
2585  methods->nodeOut(str, node);
2586 }
const char * extnodename
Definition: extensible.h:35
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
void(* nodeOut)(struct StringInfoData *str, const struct ExtensibleNode *node)
Definition: extensible.h:68
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _outFieldSelect()

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

Definition at line 1353 of file outfuncs.c.

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

Referenced by outNode().

1354 {
1355  WRITE_NODE_TYPE("FIELDSELECT");
1356 
1358  WRITE_INT_FIELD(fieldnum);
1359  WRITE_OID_FIELD(resulttype);
1360  WRITE_INT_FIELD(resulttypmod);
1361  WRITE_OID_FIELD(resultcollid);
1362 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFieldStore()

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

Definition at line 1365 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1366 {
1367  WRITE_NODE_TYPE("FIELDSTORE");
1368 
1370  WRITE_NODE_FIELD(newvals);
1371  WRITE_NODE_FIELD(fieldnums);
1372  WRITE_OID_FIELD(resulttype);
1373 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outForeignKeyCacheInfo()

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

Definition at line 3536 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outForeignKeyOptInfo()

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

Definition at line 2326 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outForeignPath()

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

Definition at line 1835 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1836 {
1837  WRITE_NODE_TYPE("FOREIGNPATH");
1838 
1839  _outPathInfo(str, (const Path *) node);
1840 
1841  WRITE_NODE_FIELD(fdw_outerpath);
1842  WRITE_NODE_FIELD(fdw_private);
1843 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outForeignScan()

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

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

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

◆ _outFromExpr()

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

Definition at line 1680 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1681 {
1682  WRITE_NODE_TYPE("FROMEXPR");
1683 
1684  WRITE_NODE_FIELD(fromlist);
1685  WRITE_NODE_FIELD(quals);
1686 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFuncCall()

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

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

2729 {
2730  WRITE_NODE_TYPE("FUNCCALL");
2731 
2732  WRITE_NODE_FIELD(funcname);
2734  WRITE_NODE_FIELD(agg_order);
2735  WRITE_NODE_FIELD(agg_filter);
2736  WRITE_BOOL_FIELD(agg_within_group);
2737  WRITE_BOOL_FIELD(agg_star);
2738  WRITE_BOOL_FIELD(agg_distinct);
2739  WRITE_BOOL_FIELD(func_variadic);
2740  WRITE_NODE_FIELD(over);
2741  WRITE_LOCATION_FIELD(location);
2742 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFuncExpr()

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

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

1198 {
1199  WRITE_NODE_TYPE("FUNCEXPR");
1200 
1201  WRITE_OID_FIELD(funcid);
1202  WRITE_OID_FIELD(funcresulttype);
1203  WRITE_BOOL_FIELD(funcretset);
1204  WRITE_BOOL_FIELD(funcvariadic);
1205  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1206  WRITE_OID_FIELD(funccollid);
1207  WRITE_OID_FIELD(inputcollid);
1209  WRITE_LOCATION_FIELD(location);
1210 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
CoercionForm
Definition: primnodes.h:436
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outFunctionScan()

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

Definition at line 626 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outGather()

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

Definition at line 481 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outGatherMerge()

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

Definition at line 495 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outGatherMergePath()

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

Definition at line 2130 of file outfuncs.c.

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

Referenced by outNode().

2131 {
2132  WRITE_NODE_TYPE("GATHERMERGEPATH");
2133 
2134  _outPathInfo(str, (const Path *) node);
2135 
2137  WRITE_INT_FIELD(num_workers);
2138 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGatherPath()

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

Definition at line 1916 of file outfuncs.c.

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

Referenced by outNode().

1917 {
1918  WRITE_NODE_TYPE("GATHERPATH");
1919 
1920  _outPathInfo(str, (const Path *) node);
1921 
1923  WRITE_BOOL_FIELD(single_copy);
1924  WRITE_INT_FIELD(num_workers);
1925 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroup()

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

Definition at line 845 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outGroupingFunc()

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

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

1154 {
1155  WRITE_NODE_TYPE("GROUPINGFUNC");
1156 
1158  WRITE_NODE_FIELD(refs);
1159  WRITE_NODE_FIELD(cols);
1160  WRITE_UINT_FIELD(agglevelsup);
1161  WRITE_LOCATION_FIELD(location);
1162 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroupingSet()

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

Definition at line 2961 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2962 {
2963  WRITE_NODE_TYPE("GROUPINGSET");
2964 
2966  WRITE_NODE_FIELD(content);
2967  WRITE_LOCATION_FIELD(location);
2968 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
GroupingSetKind
Definition: parsenodes.h:1253
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroupingSetData()

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

Definition at line 2010 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2011 {
2012  WRITE_NODE_TYPE("GSDATA");
2013 
2014  WRITE_NODE_FIELD(set);
2015  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2016 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroupingSetsPath()

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

Definition at line 2019 of file outfuncs.c.

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

Referenced by outNode().

2020 {
2021  WRITE_NODE_TYPE("GROUPINGSETSPATH");
2022 
2023  _outPathInfo(str, (const Path *) node);
2024 
2026  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2027  WRITE_NODE_FIELD(rollups);
2028  WRITE_NODE_FIELD(qual);
2029 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
AggStrategy
Definition: nodes.h:738
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outGroupPath()

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

Definition at line 1959 of file outfuncs.c.

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

Referenced by outNode().

1960 {
1961  WRITE_NODE_TYPE("GROUPPATH");
1962 
1963  _outPathInfo(str, (const Path *) node);
1964 
1966  WRITE_NODE_FIELD(groupClause);
1967  WRITE_NODE_FIELD(qual);
1968 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outHash()

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

Definition at line 921 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outHashJoin()

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

Definition at line 773 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outHashPath()

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

Definition at line 2163 of file outfuncs.c.

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

Referenced by outNode().

2164 {
2165  WRITE_NODE_TYPE("HASHPATH");
2166 
2167  _outJoinPathInfo(str, (const JoinPath *) node);
2168 
2169  WRITE_NODE_FIELD(path_hashclauses);
2170  WRITE_INT_FIELD(num_batches);
2171 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1745
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outImportForeignSchemaStmt()

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

Definition at line 2633 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2634 {
2635  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2636 
2637  WRITE_STRING_FIELD(server_name);
2638  WRITE_STRING_FIELD(remote_schema);
2639  WRITE_STRING_FIELD(local_schema);
2641  WRITE_NODE_FIELD(table_list);
2643 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
ImportForeignSchemaType
Definition: parsenodes.h:2298
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outIndexElem()

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

Definition at line 2855 of file outfuncs.c.

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

Referenced by outNode().

2856 {
2857  WRITE_NODE_TYPE("INDEXELEM");
2858 
2860  WRITE_NODE_FIELD(expr);
2861  WRITE_STRING_FIELD(indexcolname);
2862  WRITE_NODE_FIELD(collation);
2863  WRITE_NODE_FIELD(opclass);
2864  WRITE_ENUM_FIELD(ordering, SortByDir);
2865  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
2866 }
SortByDir
Definition: parsenodes.h:48
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
SortByNulls
Definition: parsenodes.h:56
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outIndexOnlyScan()

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

Definition at line 569 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outIndexOptInfo()

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

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

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

◆ _outIndexPath()

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

Definition at line 1765 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outIndexScan()

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

Definition at line 553 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outIndexStmt()

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

Definition at line 2646 of file outfuncs.c.

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

Referenced by outNode().

2647 {
2648  WRITE_NODE_TYPE("INDEXSTMT");
2649 
2650  WRITE_STRING_FIELD(idxname);
2651  WRITE_NODE_FIELD(relation);
2652  WRITE_STRING_FIELD(accessMethod);
2653  WRITE_STRING_FIELD(tableSpace);
2654  WRITE_NODE_FIELD(indexParams);
2656  WRITE_NODE_FIELD(whereClause);
2657  WRITE_NODE_FIELD(excludeOpNames);
2658  WRITE_STRING_FIELD(idxcomment);
2659  WRITE_OID_FIELD(indexOid);
2660  WRITE_OID_FIELD(oldNode);
2661  WRITE_BOOL_FIELD(unique);
2662  WRITE_BOOL_FIELD(primary);
2663  WRITE_BOOL_FIELD(isconstraint);
2664  WRITE_BOOL_FIELD(deferrable);
2665  WRITE_BOOL_FIELD(initdeferred);
2666  WRITE_BOOL_FIELD(transformed);
2667  WRITE_BOOL_FIELD(concurrent);
2668  WRITE_BOOL_FIELD(if_not_exists);
2669 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outInferenceElem()

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

Definition at line 1633 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1634 {
1635  WRITE_NODE_TYPE("INFERENCEELEM");
1636 
1637  WRITE_NODE_FIELD(expr);
1638  WRITE_OID_FIELD(infercollid);
1639  WRITE_OID_FIELD(inferopclass);
1640 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outIntoClause()

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

Definition at line 1066 of file outfuncs.c.

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

Referenced by outNode().

1067 {
1068  WRITE_NODE_TYPE("INTOCLAUSE");
1069 
1070  WRITE_NODE_FIELD(rel);
1071  WRITE_NODE_FIELD(colNames);
1073  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1074  WRITE_STRING_FIELD(tableSpaceName);
1075  WRITE_NODE_FIELD(viewQuery);
1076  WRITE_BOOL_FIELD(skipData);
1077 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outJoin()

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

Definition at line 723 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outJoinExpr()

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

Definition at line 1665 of file outfuncs.c.

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

Referenced by outNode().

1666 {
1667  WRITE_NODE_TYPE("JOINEXPR");
1668 
1669  WRITE_ENUM_FIELD(jointype, JoinType);
1670  WRITE_BOOL_FIELD(isNatural);
1671  WRITE_NODE_FIELD(larg);
1672  WRITE_NODE_FIELD(rarg);
1673  WRITE_NODE_FIELD(usingClause);
1674  WRITE_NODE_FIELD(quals);
1675  WRITE_NODE_FIELD(alias);
1676  WRITE_INT_FIELD(rtindex);
1677 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
JoinType
Definition: nodes.h:676
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outJoinPathInfo()

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

Definition at line 1745 of file outfuncs.c.

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

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

1746 {
1747  _outPathInfo(str, (const Path *) node);
1748 
1749  WRITE_ENUM_FIELD(jointype, JoinType);
1750  WRITE_BOOL_FIELD(inner_unique);
1751  WRITE_NODE_FIELD(outerjoinpath);
1752  WRITE_NODE_FIELD(innerjoinpath);
1753  WRITE_NODE_FIELD(joinrestrictinfo);
1754 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
JoinType
Definition: nodes.h:676
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outJoinPlanInfo()

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

Definition at line 328 of file outfuncs.c.

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

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

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

◆ _outLimit()

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

Definition at line 970 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

971 {
972  WRITE_NODE_TYPE("LIMIT");
973 
974  _outPlanInfo(str, (const Plan *) node);
975 
976  WRITE_NODE_FIELD(limitOffset);
977  WRITE_NODE_FIELD(limitCount);
978 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outLimitPath()

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

Definition at line 2118 of file outfuncs.c.

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

Referenced by outNode().

2119 {
2120  WRITE_NODE_TYPE("LIMITPATH");
2121 
2122  _outPathInfo(str, (const Path *) node);
2123 
2125  WRITE_NODE_FIELD(limitOffset);
2126  WRITE_NODE_FIELD(limitCount);
2127 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outList()

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

Definition at line 167 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outLockingClause()

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

Definition at line 2766 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2767 {
2768  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2769 
2770  WRITE_NODE_FIELD(lockedRels);
2772  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2773 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
LockClauseStrength
Definition: lockoptions.h:21
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
LockWaitPolicy
Definition: lockoptions.h:36
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outLockRows()

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

Definition at line 959 of file outfuncs.c.

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

Referenced by outNode().

960 {
961  WRITE_NODE_TYPE("LOCKROWS");
962 
963  _outPlanInfo(str, (const Plan *) node);
964 
965  WRITE_NODE_FIELD(rowMarks);
966  WRITE_INT_FIELD(epqParam);
967 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outLockRowsPath()

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

Definition at line 2085 of file outfuncs.c.

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

Referenced by outNode().

2086 {
2087  WRITE_NODE_TYPE("LOCKROWSPATH");
2088 
2089  _outPathInfo(str, (const Path *) node);
2090 
2092  WRITE_NODE_FIELD(rowMarks);
2093  WRITE_INT_FIELD(epqParam);
2094 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMaterial()

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

Definition at line 865 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

866 {
867  WRITE_NODE_TYPE("MATERIAL");
868 
869  _outPlanInfo(str, (const Plan *) node);
870 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:295
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outMaterialPath()

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

Definition at line 1893 of file outfuncs.c.

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

Referenced by outNode().

1894 {
1895  WRITE_NODE_TYPE("MATERIALPATH");
1896 
1897  _outPathInfo(str, (const Path *) node);
1898 
1900 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:234
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMergeAppend()

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

Definition at line 406 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outMergeAppendPath()

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

Definition at line 1871 of file outfuncs.c.

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

Referenced by outNode().

1872 {
1873  WRITE_NODE_TYPE("MERGEAPPENDPATH");
1874 
1875  _outPathInfo(str, (const Path *) node);
1876 
1877  WRITE_NODE_FIELD(partitioned_rels);
1878  WRITE_NODE_FIELD(subpaths);
1879  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1880 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMergeJoin()

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

Definition at line 741 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outMergePath()

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

Definition at line 2149 of file outfuncs.c.

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

Referenced by outNode().

2150 {
2151  WRITE_NODE_TYPE("MERGEPATH");
2152 
2153  _outJoinPathInfo(str, (const JoinPath *) node);
2154 
2155  WRITE_NODE_FIELD(path_mergeclauses);
2156  WRITE_NODE_FIELD(outersortkeys);
2157  WRITE_NODE_FIELD(innersortkeys);
2158  WRITE_BOOL_FIELD(skip_mark_restore);
2159  WRITE_BOOL_FIELD(materialize_inner);
2160 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1745
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMinMaxAggInfo()

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

Definition at line 2545 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2546 {
2547  WRITE_NODE_TYPE("MINMAXAGGINFO");
2548 
2549  WRITE_OID_FIELD(aggfnoid);
2550  WRITE_OID_FIELD(aggsortop);
2551  WRITE_NODE_FIELD(target);
2552  /* We intentionally omit subroot --- too large, not interesting enough */
2553  WRITE_NODE_FIELD(path);
2554  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2555  WRITE_NODE_FIELD(param);
2556 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMinMaxAggPath()

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

Definition at line 2032 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2033 {
2034  WRITE_NODE_TYPE("MINMAXAGGPATH");
2035 
2036  _outPathInfo(str, (const Path *) node);
2037 
2038  WRITE_NODE_FIELD(mmaggregates);
2039  WRITE_NODE_FIELD(quals);
2040 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outMinMaxExpr()

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

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

1519 {
1520  WRITE_NODE_TYPE("MINMAX");
1521 
1522  WRITE_OID_FIELD(minmaxtype);
1523  WRITE_OID_FIELD(minmaxcollid);
1524  WRITE_OID_FIELD(inputcollid);
1527  WRITE_LOCATION_FIELD(location);
1528 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
MinMaxOp
Definition: primnodes.h:1061
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outModifyTable()

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

Definition at line 365 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outModifyTablePath()

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

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

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

◆ _outMultiAssignRef()

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

Definition at line 3330 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3331 {
3332  WRITE_NODE_TYPE("MULTIASSIGNREF");
3333 
3334  WRITE_NODE_FIELD(source);
3335  WRITE_INT_FIELD(colno);
3336  WRITE_INT_FIELD(ncolumns);
3337 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outNamedArgExpr()

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

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

1214 {
1215  WRITE_NODE_TYPE("NAMEDARGEXPR");
1216 
1219  WRITE_INT_FIELD(argnumber);
1220  WRITE_LOCATION_FIELD(location);
1221 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outNamedTuplestoreScan()

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

Definition at line 668 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

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

◆ _outNestLoop()

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

Definition at line 731 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outNestLoopParam()

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

Definition at line 981 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

982 {
983  WRITE_NODE_TYPE("NESTLOOPPARAM");
984 
985  WRITE_INT_FIELD(paramno);
986  WRITE_NODE_FIELD(paramval);
987 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outNestPath()

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

Definition at line 2141 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2142 {
2143  WRITE_NODE_TYPE("NESTPATH");
2144 
2145  _outJoinPathInfo(str, (const JoinPath *) node);
2146 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1745
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outNextValueExpr()

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

Definition at line 1624 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1625 {
1626  WRITE_NODE_TYPE("NEXTVALUEEXPR");
1627 
1628  WRITE_OID_FIELD(seqid);
1629  WRITE_OID_FIELD(typeId);
1630 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outNotifyStmt()

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

Definition at line 2684 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2685 {
2686  WRITE_NODE_TYPE("NOTIFY");
2687 
2688  WRITE_STRING_FIELD(conditionname);
2689  WRITE_STRING_FIELD(payload);
2690 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90

◆ _outNullIfExpr()

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

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

1255 {
1256  WRITE_NODE_TYPE("NULLIFEXPR");
1257 
1258  WRITE_OID_FIELD(opno);
1259  WRITE_OID_FIELD(opfuncid);
1260  WRITE_OID_FIELD(opresulttype);
1261  WRITE_BOOL_FIELD(opretset);
1262  WRITE_OID_FIELD(opcollid);
1263  WRITE_OID_FIELD(inputcollid);
1265  WRITE_LOCATION_FIELD(location);
1266 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outNullTest()

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

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

1559 {
1560  WRITE_NODE_TYPE("NULLTEST");
1561 
1563  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1564  WRITE_BOOL_FIELD(argisrow);
1565  WRITE_LOCATION_FIELD(location);
1566 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
NullTestType
Definition: primnodes.h:1179
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outOnConflictExpr()

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

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

1690 {
1691  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1692 
1694  WRITE_NODE_FIELD(arbiterElems);
1695  WRITE_NODE_FIELD(arbiterWhere);
1696  WRITE_OID_FIELD(constraint);
1697  WRITE_NODE_FIELD(onConflictSet);
1698  WRITE_NODE_FIELD(onConflictWhere);
1699  WRITE_INT_FIELD(exclRelIndex);
1700  WRITE_NODE_FIELD(exclRelTlist);
1701 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
OnConflictAction
Definition: nodes.h:802
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outOpExpr()

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

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

1225 {
1226  WRITE_NODE_TYPE("OPEXPR");
1227 
1228  WRITE_OID_FIELD(opno);
1229  WRITE_OID_FIELD(opfuncid);
1230  WRITE_OID_FIELD(opresulttype);
1231  WRITE_BOOL_FIELD(opretset);
1232  WRITE_OID_FIELD(opcollid);
1233  WRITE_OID_FIELD(inputcollid);
1235  WRITE_LOCATION_FIELD(location);
1236 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outParam()

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

Definition at line 1116 of file outfuncs.c.

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

Referenced by outNode().

1117 {
1118  WRITE_NODE_TYPE("PARAM");
1119 
1120  WRITE_ENUM_FIELD(paramkind, ParamKind);
1121  WRITE_INT_FIELD(paramid);
1122  WRITE_OID_FIELD(paramtype);
1123  WRITE_INT_FIELD(paramtypmod);
1124  WRITE_OID_FIELD(paramcollid);
1125  WRITE_LOCATION_FIELD(location);
1126 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
ParamKind
Definition: primnodes.h:233
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outParamPathInfo()

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

Definition at line 2439 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2440 {
2441  WRITE_NODE_TYPE("PARAMPATHINFO");
2442 
2443  WRITE_BITMAPSET_FIELD(ppi_req_outer);
2444  WRITE_FLOAT_FIELD(ppi_rows, "%.0f");
2445  WRITE_NODE_FIELD(ppi_clauses);
2446 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outParamRef()

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

Definition at line 3266 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3267 {
3268  WRITE_NODE_TYPE("PARAMREF");
3269 
3270  WRITE_INT_FIELD(number);
3271  WRITE_LOCATION_FIELD(location);
3272 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46

◆ _outPartitionBoundSpec()

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

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

3580 {
3581  WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
3582 
3583  WRITE_CHAR_FIELD(strategy);
3584  WRITE_BOOL_FIELD(is_default);
3585  WRITE_INT_FIELD(modulus);
3586  WRITE_INT_FIELD(remainder);
3587  WRITE_NODE_FIELD(listdatums);
3588  WRITE_NODE_FIELD(lowerdatums);
3589  WRITE_NODE_FIELD(upperdatums);
3590  WRITE_LOCATION_FIELD(location);
3591 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:71
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionedChildRelInfo()

static void _outPartitionedChildRelInfo ( StringInfo  str,
const PartitionedChildRelInfo node 
)
static

Definition at line 2523 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2524 {
2525  WRITE_NODE_TYPE("PARTITIONEDCHILDRELINFO");
2526 
2527  WRITE_UINT_FIELD(parent_relid);
2528  WRITE_NODE_FIELD(child_rels);
2529 }
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionElem()

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

Definition at line 3557 of file outfuncs.c.

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

Referenced by outNode().

3558 {
3559  WRITE_NODE_TYPE("PARTITIONELEM");
3560 
3562  WRITE_NODE_FIELD(expr);
3563  WRITE_NODE_FIELD(collation);
3564  WRITE_NODE_FIELD(opclass);
3565  WRITE_LOCATION_FIELD(location);
3566 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
const char * name
Definition: encode.c:521
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionRangeDatum()

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

Definition at line 3594 of file outfuncs.c.

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

Referenced by outNode().

3595 {
3596  WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
3597 
3600  WRITE_LOCATION_FIELD(location);
3601 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
PartitionRangeDatumKind
Definition: parsenodes.h:823
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:76
static struct @121 value
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPartitionSpec()

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

Definition at line 3569 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

3570 {
3571  WRITE_NODE_TYPE("PARTITIONSPEC");
3572 
3573  WRITE_STRING_FIELD(strategy);
3574  WRITE_NODE_FIELD(partParams);
3575  WRITE_LOCATION_FIELD(location);
3576 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPath()

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

Definition at line 1757 of file outfuncs.c.

References _outPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

1758 {
1759  WRITE_NODE_TYPE("PATH");
1760 
1761  _outPathInfo(str, (const Path *) node);
1762 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1720

◆ _outPathInfo()

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

Definition at line 1720 of file outfuncs.c.

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

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

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

◆ _outPathKey()

static void _outPathKey ( StringInfo  str,
const PathKey node 
)
static

Definition at line 2409 of file outfuncs.c.

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

Referenced by outNode().

2410 {
2411  WRITE_NODE_TYPE("PATHKEY");
2412 
2413  WRITE_NODE_FIELD(pk_eclass);
2414  WRITE_OID_FIELD(pk_opfamily);
2415  WRITE_INT_FIELD(pk_strategy);
2416  WRITE_BOOL_FIELD(pk_nulls_first);
2417 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:63
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:85
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPathTarget()

static void _outPathTarget ( StringInfo  str,
const PathTarget node 
)
static

Definition at line 2420 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outPlaceHolderInfo()

static void _outPlaceHolderInfo ( StringInfo  str,
const PlaceHolderInfo node 
)
static

Definition at line 2532 of file outfuncs.c.

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

Referenced by outNode().

2533 {
2534  WRITE_NODE_TYPE("PLACEHOLDERINFO");
2535 
2536  WRITE_UINT_FIELD(phid);
2537  WRITE_NODE_FIELD(ph_var);
2538  WRITE_BITMAPSET_FIELD(ph_eval_at);
2539  WRITE_BITMAPSET_FIELD(ph_lateral);
2540  WRITE_BITMAPSET_FIELD(ph_needed);
2541  WRITE_INT_FIELD(ph_width);
2542 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:50
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:99

◆ _outPlaceHolderVar()

static void _outPlaceHolderVar ( StringInfo  str,
const PlaceHolderVar node 
)
static

Definition at line 2481 of file outfuncs.c.

References WRITE_BITMAPSET_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

2482 {
2483  WRITE_NODE_TYPE("PLACEHOLDERVAR");
2484 
2485  WRITE_NODE_FIELD(phexpr);
2486  WRITE_BITMAPSET_FIELD(phrels);
2487  WRITE_UINT_FIELD(phid);
2488  WRITE_UINT_FIELD(phlevelsup);
2489 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:104
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:54
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:46