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

Go to the source code of this file.

Macros

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

Functions

static void outChar (StringInfo str, char c)
 
void outToken (StringInfo str, const char *s)
 
static void _outList (StringInfo str, const List *node)
 
void outBitmapset (StringInfo str, const Bitmapset *bms)
 
void outDatum (StringInfo str, Datum value, int typlen, bool typbyval)
 
static void _outPlannedStmt (StringInfo str, const PlannedStmt *node)
 
static void _outPlanInfo (StringInfo str, const Plan *node)
 
static void _outScanInfo (StringInfo str, const Scan *node)
 
static void _outJoinPlanInfo (StringInfo str, const Join *node)
 
static void _outPlan (StringInfo str, const Plan *node)
 
static void _outResult (StringInfo str, const Result *node)
 
static void _outProjectSet (StringInfo str, const ProjectSet *node)
 
static void _outModifyTable (StringInfo str, const ModifyTable *node)
 
static void _outAppend (StringInfo str, const Append *node)
 
static void _outMergeAppend (StringInfo str, const MergeAppend *node)
 
static void _outRecursiveUnion (StringInfo str, const RecursiveUnion *node)
 
static void _outBitmapAnd (StringInfo str, const BitmapAnd *node)
 
static void _outBitmapOr (StringInfo str, const BitmapOr *node)
 
static void _outGather (StringInfo str, const Gather *node)
 
static void _outGatherMerge (StringInfo str, const GatherMerge *node)
 
static void _outScan (StringInfo str, const Scan *node)
 
static void _outSeqScan (StringInfo str, const SeqScan *node)
 
static void _outSampleScan (StringInfo str, const SampleScan *node)
 
static void _outIndexScan (StringInfo str, const IndexScan *node)
 
static void _outIndexOnlyScan (StringInfo str, const IndexOnlyScan *node)
 
static void _outBitmapIndexScan (StringInfo str, const BitmapIndexScan *node)
 
static void _outBitmapHeapScan (StringInfo str, const BitmapHeapScan *node)
 
static void _outTidScan (StringInfo str, const TidScan *node)
 
static void _outTidRangeScan (StringInfo str, const TidRangeScan *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 _outMemoize (StringInfo str, const Memoize *node)
 
static void _outSortInfo (StringInfo str, const Sort *node)
 
static void _outSort (StringInfo str, const Sort *node)
 
static void _outIncrementalSort (StringInfo str, const IncrementalSort *node)
 
static void _outUnique (StringInfo str, const Unique *node)
 
static void _outHash (StringInfo str, const Hash *node)
 
static void _outSetOp (StringInfo str, const SetOp *node)
 
static void _outLockRows (StringInfo str, const LockRows *node)
 
static void _outLimit (StringInfo str, const Limit *node)
 
static void _outNestLoopParam (StringInfo str, const NestLoopParam *node)
 
static void _outPlanRowMark (StringInfo str, const PlanRowMark *node)
 
static void _outPartitionPruneInfo (StringInfo str, const PartitionPruneInfo *node)
 
static void _outPartitionedRelPruneInfo (StringInfo str, const PartitionedRelPruneInfo *node)
 
static void _outPartitionPruneStepOp (StringInfo str, const PartitionPruneStepOp *node)
 
static void _outPartitionPruneStepCombine (StringInfo str, const PartitionPruneStepCombine *node)
 
static void _outPlanInvalItem (StringInfo str, const PlanInvalItem *node)
 
static void _outAlias (StringInfo str, const Alias *node)
 
static void _outRangeVar (StringInfo str, const RangeVar *node)
 
static void _outTableFunc (StringInfo str, const TableFunc *node)
 
static void _outIntoClause (StringInfo str, const IntoClause *node)
 
static void _outVar (StringInfo str, const Var *node)
 
static void _outConst (StringInfo str, const Const *node)
 
static void _outParam (StringInfo str, const Param *node)
 
static void _outAggref (StringInfo str, const Aggref *node)
 
static void _outGroupingFunc (StringInfo str, const GroupingFunc *node)
 
static void _outWindowFunc (StringInfo str, const WindowFunc *node)
 
static void _outSubscriptingRef (StringInfo str, const SubscriptingRef *node)
 
static void _outFuncExpr (StringInfo str, const FuncExpr *node)
 
static void _outNamedArgExpr (StringInfo str, const NamedArgExpr *node)
 
static void _outOpExpr (StringInfo str, const OpExpr *node)
 
static void _outDistinctExpr (StringInfo str, const DistinctExpr *node)
 
static void _outNullIfExpr (StringInfo str, const NullIfExpr *node)
 
static void _outScalarArrayOpExpr (StringInfo str, const ScalarArrayOpExpr *node)
 
static void _outBoolExpr (StringInfo str, const BoolExpr *node)
 
static void _outSubLink (StringInfo str, const SubLink *node)
 
static void _outSubPlan (StringInfo str, const SubPlan *node)
 
static void _outAlternativeSubPlan (StringInfo str, const AlternativeSubPlan *node)
 
static void _outFieldSelect (StringInfo str, const FieldSelect *node)
 
static void _outFieldStore (StringInfo str, const FieldStore *node)
 
static void _outRelabelType (StringInfo str, const RelabelType *node)
 
static void _outCoerceViaIO (StringInfo str, const CoerceViaIO *node)
 
static void _outArrayCoerceExpr (StringInfo str, const ArrayCoerceExpr *node)
 
static void _outConvertRowtypeExpr (StringInfo str, const ConvertRowtypeExpr *node)
 
static void _outCollateExpr (StringInfo str, const CollateExpr *node)
 
static void _outCaseExpr (StringInfo str, const CaseExpr *node)
 
static void _outCaseWhen (StringInfo str, const CaseWhen *node)
 
static void _outCaseTestExpr (StringInfo str, const CaseTestExpr *node)
 
static void _outArrayExpr (StringInfo str, const ArrayExpr *node)
 
static void _outRowExpr (StringInfo str, const RowExpr *node)
 
static void _outRowCompareExpr (StringInfo str, const RowCompareExpr *node)
 
static void _outCoalesceExpr (StringInfo str, const CoalesceExpr *node)
 
static void _outMinMaxExpr (StringInfo str, const MinMaxExpr *node)
 
static void _outSQLValueFunction (StringInfo str, const SQLValueFunction *node)
 
static void _outXmlExpr (StringInfo str, const XmlExpr *node)
 
static void _outNullTest (StringInfo str, const NullTest *node)
 
static void _outBooleanTest (StringInfo str, const BooleanTest *node)
 
static void _outCoerceToDomain (StringInfo str, const CoerceToDomain *node)
 
static void _outCoerceToDomainValue (StringInfo str, const CoerceToDomainValue *node)
 
static void _outSetToDefault (StringInfo str, const SetToDefault *node)
 
static void _outCurrentOfExpr (StringInfo str, const CurrentOfExpr *node)
 
static void _outNextValueExpr (StringInfo str, const NextValueExpr *node)
 
static void _outInferenceElem (StringInfo str, const InferenceElem *node)
 
static void _outTargetEntry (StringInfo str, const TargetEntry *node)
 
static void _outRangeTblRef (StringInfo str, const RangeTblRef *node)
 
static void _outJoinExpr (StringInfo str, const JoinExpr *node)
 
static void _outFromExpr (StringInfo str, const FromExpr *node)
 
static void _outOnConflictExpr (StringInfo str, const OnConflictExpr *node)
 
static void _outPathInfo (StringInfo str, const Path *node)
 
static void _outJoinPathInfo (StringInfo str, const JoinPath *node)
 
static void _outPath (StringInfo str, const Path *node)
 
static void _outIndexPath (StringInfo str, const IndexPath *node)
 
static void _outBitmapHeapPath (StringInfo str, const BitmapHeapPath *node)
 
static void _outBitmapAndPath (StringInfo str, const BitmapAndPath *node)
 
static void _outBitmapOrPath (StringInfo str, const BitmapOrPath *node)
 
static void _outTidPath (StringInfo str, const TidPath *node)
 
static void _outTidRangePath (StringInfo str, const TidRangePath *node)
 
static void _outSubqueryScanPath (StringInfo str, const SubqueryScanPath *node)
 
static void _outForeignPath (StringInfo str, const ForeignPath *node)
 
static void _outCustomPath (StringInfo str, const CustomPath *node)
 
static void _outAppendPath (StringInfo str, const AppendPath *node)
 
static void _outMergeAppendPath (StringInfo str, const MergeAppendPath *node)
 
static void _outGroupResultPath (StringInfo str, const GroupResultPath *node)
 
static void _outMaterialPath (StringInfo str, const MaterialPath *node)
 
static void _outMemoizePath (StringInfo str, const MemoizePath *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 _outSortPathInfo (StringInfo str, const SortPath *node)
 
static void _outSortPath (StringInfo str, const SortPath *node)
 
static void _outIncrementalSortPath (StringInfo str, const IncrementalSortPath *node)
 
static void _outGroupPath (StringInfo str, const GroupPath *node)
 
static void _outUpperUniquePath (StringInfo str, const UpperUniquePath *node)
 
static void _outAggPath (StringInfo str, const AggPath *node)
 
static void _outRollupData (StringInfo str, const RollupData *node)
 
static void _outGroupingSetData (StringInfo str, const GroupingSetData *node)
 
static void _outGroupingSetsPath (StringInfo str, const GroupingSetsPath *node)
 
static void _outMinMaxAggPath (StringInfo str, const MinMaxAggPath *node)
 
static void _outWindowAggPath (StringInfo str, const WindowAggPath *node)
 
static void _outSetOpPath (StringInfo str, const SetOpPath *node)
 
static void _outRecursiveUnionPath (StringInfo str, const RecursiveUnionPath *node)
 
static void _outLockRowsPath (StringInfo str, const LockRowsPath *node)
 
static void _outModifyTablePath (StringInfo str, const ModifyTablePath *node)
 
static void _outLimitPath (StringInfo str, const LimitPath *node)
 
static void _outGatherMergePath (StringInfo str, const GatherMergePath *node)
 
static void _outNestPath (StringInfo str, const NestPath *node)
 
static void _outMergePath (StringInfo str, const MergePath *node)
 
static void _outHashPath (StringInfo str, const HashPath *node)
 
static void _outPlannerGlobal (StringInfo str, const PlannerGlobal *node)
 
static void _outPlannerInfo (StringInfo str, const PlannerInfo *node)
 
static void _outRelOptInfo (StringInfo str, const RelOptInfo *node)
 
static void _outIndexOptInfo (StringInfo str, const IndexOptInfo *node)
 
static void _outForeignKeyOptInfo (StringInfo str, const ForeignKeyOptInfo *node)
 
static void _outStatisticExtInfo (StringInfo str, const StatisticExtInfo *node)
 
static void _outEquivalenceClass (StringInfo str, const EquivalenceClass *node)
 
static void _outEquivalenceMember (StringInfo str, const EquivalenceMember *node)
 
static void _outPathKey (StringInfo str, const PathKey *node)
 
static void _outPathTarget (StringInfo str, const PathTarget *node)
 
static void _outParamPathInfo (StringInfo str, const ParamPathInfo *node)
 
static void _outRestrictInfo (StringInfo str, const RestrictInfo *node)
 
static void _outIndexClause (StringInfo str, const IndexClause *node)
 
static void _outPlaceHolderVar (StringInfo str, const PlaceHolderVar *node)
 
static void _outSpecialJoinInfo (StringInfo str, const SpecialJoinInfo *node)
 
static void _outAppendRelInfo (StringInfo str, const AppendRelInfo *node)
 
static void _outRowIdentityVarInfo (StringInfo str, const RowIdentityVarInfo *node)
 
static void _outPlaceHolderInfo (StringInfo str, const PlaceHolderInfo *node)
 
static void _outMinMaxAggInfo (StringInfo str, const MinMaxAggInfo *node)
 
static void _outPlannerParamItem (StringInfo str, const PlannerParamItem *node)
 
static void _outExtensibleNode (StringInfo str, const ExtensibleNode *node)
 
static void _outCreateStmtInfo (StringInfo str, const CreateStmt *node)
 
static void _outCreateStmt (StringInfo str, const CreateStmt *node)
 
static void _outCreateForeignTableStmt (StringInfo str, const CreateForeignTableStmt *node)
 
static void _outImportForeignSchemaStmt (StringInfo str, const ImportForeignSchemaStmt *node)
 
static void _outIndexStmt (StringInfo str, const IndexStmt *node)
 
static void _outCreateStatsStmt (StringInfo str, const CreateStatsStmt *node)
 
static void _outAlterStatsStmt (StringInfo str, const AlterStatsStmt *node)
 
static void _outNotifyStmt (StringInfo str, const NotifyStmt *node)
 
static void _outDeclareCursorStmt (StringInfo str, const DeclareCursorStmt *node)
 
static void _outSelectStmt (StringInfo str, const SelectStmt *node)
 
static void _outReturnStmt (StringInfo str, const ReturnStmt *node)
 
static void _outPLAssignStmt (StringInfo str, const PLAssignStmt *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 _outStatsElem (StringInfo str, const StatsElem *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 _outCTESearchClause (StringInfo str, const CTESearchClause *node)
 
static void _outCTECycleClause (StringInfo str, const CTECycleClause *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 _outA_Expr (StringInfo str, const A_Expr *node)
 
static void _outValue (StringInfo str, const Value *node)
 
static void _outColumnRef (StringInfo str, const ColumnRef *node)
 
static void _outParamRef (StringInfo str, const ParamRef *node)
 
static void _outRawStmt (StringInfo str, const RawStmt *node)
 
static void _outA_Const (StringInfo str, const A_Const *node)
 
static void _outA_Star (StringInfo str, const A_Star *node)
 
static void _outA_Indices (StringInfo str, const A_Indices *node)
 
static void _outA_Indirection (StringInfo str, const A_Indirection *node)
 
static void _outA_ArrayExpr (StringInfo str, const A_ArrayExpr *node)
 
static void _outResTarget (StringInfo str, const ResTarget *node)
 
static void _outMultiAssignRef (StringInfo str, const MultiAssignRef *node)
 
static void _outSortBy (StringInfo str, const SortBy *node)
 
static void _outWindowDef (StringInfo str, const WindowDef *node)
 
static void _outRangeSubselect (StringInfo str, const RangeSubselect *node)
 
static void _outRangeFunction (StringInfo str, const RangeFunction *node)
 
static void _outRangeTableSample (StringInfo str, const RangeTableSample *node)
 
static void _outRangeTableFunc (StringInfo str, const RangeTableFunc *node)
 
static void _outRangeTableFuncCol (StringInfo str, const RangeTableFuncCol *node)
 
static void _outConstraint (StringInfo str, const Constraint *node)
 
static void _outForeignKeyCacheInfo (StringInfo str, const ForeignKeyCacheInfo *node)
 
static void _outPartitionElem (StringInfo str, const PartitionElem *node)
 
static void _outPartitionSpec (StringInfo str, const PartitionSpec *node)
 
static void _outPartitionBoundSpec (StringInfo str, const PartitionBoundSpec *node)
 
static void _outPartitionRangeDatum (StringInfo str, const PartitionRangeDatum *node)
 
void outNode (StringInfo str, const void *obj)
 
char * nodeToString (const void *obj)
 
char * bmsToString (const Bitmapset *bms)
 

Macro Definition Documentation

◆ booltostr

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

Definition at line 142 of file outfuncs.c.

◆ WRITE_ATTRNUMBER_ARRAY

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

Definition at line 113 of file outfuncs.c.

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

◆ WRITE_BITMAPSET_FIELD

◆ WRITE_BOOL_ARRAY

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

Definition at line 134 of file outfuncs.c.

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

◆ WRITE_BOOL_FIELD

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

Definition at line 90 of file outfuncs.c.

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

◆ WRITE_CHAR_FIELD

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

Definition at line 76 of file outfuncs.c.

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

◆ WRITE_ENUM_FIELD

#define WRITE_ENUM_FIELD (   fldname,
  enumtype 
)
Value:
appendStringInfo(str, " :" CppAsString(fldname) " %d", \
(int) node->fldname)
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
#define CppAsString(identifier)
Definition: c.h:288

Definition at line 81 of file outfuncs.c.

Referenced by _outAgg(), _outAggPath(), _outAggref(), _outArrayCoerceExpr(), _outBooleanTest(), _outCoerceToDomain(), _outCoerceViaIO(), _outCommonTableExpr(), _outConvertRowtypeExpr(), _outCreateStmtInfo(), _outDefElem(), _outForeignScan(), _outFuncCall(), _outFuncExpr(), _outGroupingSet(), _outGroupingSetsPath(), _outImportForeignSchemaStmt(), _outIndexElem(), _outIndexOnlyScan(), _outIndexPath(), _outIndexScan(), _outIntoClause(), _outJoinExpr(), _outJoinPathInfo(), _outJoinPlanInfo(), _outLimit(), _outLimitPath(), _outLockingClause(), _outMinMaxExpr(), _outModifyTable(), _outModifyTablePath(), _outNullTest(), _outOnConflictExpr(), _outParam(), _outPartitionPruneStepCombine(), _outPartitionRangeDatum(), _outPathInfo(), _outPathTarget(), _outPlannedStmt(), _outPlanRowMark(), _outQuery(), _outRangeTblEntry(), _outRelabelType(), _outRelOptInfo(), _outRestrictInfo(), _outRowCompareExpr(), _outRowExpr(), _outRowMarkClause(), _outSelectStmt(), _outSetOp(), _outSetOperationStmt(), _outSetOpPath(), _outSortBy(), _outSpecialJoinInfo(), _outSQLValueFunction(), _outSubLink(), _outSubPlan(), _outUniquePath(), _outWithCheckOption(), _outXmlExpr(), and _outXmlSerialize().

◆ WRITE_FLOAT_FIELD

◆ WRITE_INT_ARRAY

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

Definition at line 127 of file outfuncs.c.

Referenced by _outMergeJoin(), and _outPartitionedRelPruneInfo().

◆ WRITE_INT_FIELD

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

Definition at line 55 of file outfuncs.c.

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

◆ WRITE_LOCATION_FIELD

◆ WRITE_LONG_FIELD

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

Definition at line 72 of file outfuncs.c.

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

◆ WRITE_NODE_FIELD

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

Definition at line 104 of file outfuncs.c.

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

◆ WRITE_NODE_TYPE

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

Definition at line 51 of file outfuncs.c.

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

◆ WRITE_OID_ARRAY

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

Definition at line 120 of file outfuncs.c.

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

◆ WRITE_OID_FIELD

◆ WRITE_STRING_FIELD

◆ WRITE_UINT64_FIELD

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

Definition at line 63 of file outfuncs.c.

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

◆ WRITE_UINT_FIELD

Function Documentation

◆ _outA_ArrayExpr()

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

Definition at line 3524 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3525 {
3526  WRITE_NODE_TYPE("A_ARRAYEXPR");
3527 
3528  WRITE_NODE_FIELD(elements);
3529  WRITE_LOCATION_FIELD(location);
3530 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Const()

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

Definition at line 3489 of file outfuncs.c.

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

Referenced by outNode().

3490 {
3491  WRITE_NODE_TYPE("A_CONST");
3492 
3493  appendStringInfoString(str, " :val ");
3494  _outValue(str, &(node->val));
3495  WRITE_LOCATION_FIELD(location);
3496 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
static void _outValue(StringInfo str, const Value *node)
Definition: outfuncs.c:3416
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
Value val
Definition: parsenodes.h:298

◆ _outA_Expr()

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

Definition at line 3341 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_OP, AEXPR_OP_ALL, AEXPR_OP_ANY, AEXPR_SIMILAR, appendStringInfoChar(), appendStringInfoString(), A_Expr::kind, name, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3342 {
3343  WRITE_NODE_TYPE("AEXPR");
3344 
3345  switch (node->kind)
3346  {
3347  case AEXPR_OP:
3348  appendStringInfoChar(str, ' ');
3350  break;
3351  case AEXPR_OP_ANY:
3352  appendStringInfoChar(str, ' ');
3354  appendStringInfoString(str, " ANY ");
3355  break;
3356  case AEXPR_OP_ALL:
3357  appendStringInfoChar(str, ' ');
3359  appendStringInfoString(str, " ALL ");
3360  break;
3361  case AEXPR_DISTINCT:
3362  appendStringInfoString(str, " DISTINCT ");
3364  break;
3365  case AEXPR_NOT_DISTINCT:
3366  appendStringInfoString(str, " NOT_DISTINCT ");
3368  break;
3369  case AEXPR_NULLIF:
3370  appendStringInfoString(str, " NULLIF ");
3372  break;
3373  case AEXPR_IN:
3374  appendStringInfoString(str, " IN ");
3376  break;
3377  case AEXPR_LIKE:
3378  appendStringInfoString(str, " LIKE ");
3380  break;
3381  case AEXPR_ILIKE:
3382  appendStringInfoString(str, " ILIKE ");
3384  break;
3385  case AEXPR_SIMILAR:
3386  appendStringInfoString(str, " SIMILAR ");
3388  break;
3389  case AEXPR_BETWEEN:
3390  appendStringInfoString(str, " BETWEEN ");
3392  break;
3393  case AEXPR_NOT_BETWEEN:
3394  appendStringInfoString(str, " NOT_BETWEEN ");
3396  break;
3397  case AEXPR_BETWEEN_SYM:
3398  appendStringInfoString(str, " BETWEEN_SYM ");
3400  break;
3401  case AEXPR_NOT_BETWEEN_SYM:
3402  appendStringInfoString(str, " NOT_BETWEEN_SYM ");
3404  break;
3405  default:
3406  appendStringInfoString(str, " ??");
3407  break;
3408  }
3409 
3410  WRITE_NODE_FIELD(lexpr);
3411  WRITE_NODE_FIELD(rexpr);
3412  WRITE_LOCATION_FIELD(location);
3413 }
A_Expr_Kind kind
Definition: parsenodes.h:285
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
void appendStringInfoChar(StringInfo str, char ch)
Definition: stringinfo.c:188
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:515
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Indices()

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

Definition at line 3505 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3506 {
3507  WRITE_NODE_TYPE("A_INDICES");
3508 
3509  WRITE_BOOL_FIELD(is_slice);
3510  WRITE_NODE_FIELD(lidx);
3511  WRITE_NODE_FIELD(uidx);
3512 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Indirection()

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

Definition at line 3515 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3516 {
3517  WRITE_NODE_TYPE("A_INDIRECTION");
3518 
3520  WRITE_NODE_FIELD(indirection);
3521 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outA_Star()

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

Definition at line 3499 of file outfuncs.c.

References WRITE_NODE_TYPE.

Referenced by outNode().

3500 {
3501  WRITE_NODE_TYPE("A_STAR");
3502 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outAgg()

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

Definition at line 784 of file outfuncs.c.

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

Referenced by outNode().

785 {
786  WRITE_NODE_TYPE("AGG");
787 
788  _outPlanInfo(str, (const Plan *) node);
789 
790  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
791  WRITE_ENUM_FIELD(aggsplit, AggSplit);
792  WRITE_INT_FIELD(numCols);
793  WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
794  WRITE_OID_ARRAY(grpOperators, node->numCols);
795  WRITE_OID_ARRAY(grpCollations, node->numCols);
796  WRITE_LONG_FIELD(numGroups);
797  WRITE_UINT64_FIELD(transitionSpace);
798  WRITE_BITMAPSET_FIELD(aggParams);
799  WRITE_NODE_FIELD(groupingSets);
800  WRITE_NODE_FIELD(chain);
801 }
int numCols
Definition: plannodes.h:862
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_LONG_FIELD(fldname)
Definition: outfuncs.c:72
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:63
AggSplit
Definition: nodes.h:790
AggStrategy
Definition: nodes.h:768
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAggPath()

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

Definition at line 2062 of file outfuncs.c.

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

Referenced by outNode().

2063 {
2064  WRITE_NODE_TYPE("AGGPATH");
2065 
2066  _outPathInfo(str, (const Path *) node);
2067 
2069  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2070  WRITE_ENUM_FIELD(aggsplit, AggSplit);
2071  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2072  WRITE_UINT64_FIELD(transitionSpace);
2073  WRITE_NODE_FIELD(groupClause);
2074  WRITE_NODE_FIELD(qual);
2075 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:63
AggSplit
Definition: nodes.h:790
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
AggStrategy
Definition: nodes.h:768
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAggref()

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

Definition at line 1164 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_CHAR_FIELD, WRITE_ENUM_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1165 {
1166  WRITE_NODE_TYPE("AGGREF");
1167 
1168  WRITE_OID_FIELD(aggfnoid);
1169  WRITE_OID_FIELD(aggtype);
1170  WRITE_OID_FIELD(aggcollid);
1171  WRITE_OID_FIELD(inputcollid);
1172  WRITE_OID_FIELD(aggtranstype);
1173  WRITE_NODE_FIELD(aggargtypes);
1174  WRITE_NODE_FIELD(aggdirectargs);
1176  WRITE_NODE_FIELD(aggorder);
1177  WRITE_NODE_FIELD(aggdistinct);
1178  WRITE_NODE_FIELD(aggfilter);
1179  WRITE_BOOL_FIELD(aggstar);
1180  WRITE_BOOL_FIELD(aggvariadic);
1181  WRITE_CHAR_FIELD(aggkind);
1182  WRITE_UINT_FIELD(agglevelsup);
1183  WRITE_ENUM_FIELD(aggsplit, AggSplit);
1184  WRITE_INT_FIELD(aggno);
1185  WRITE_INT_FIELD(aggtransno);
1186  WRITE_LOCATION_FIELD(location);
1187 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
AggSplit
Definition: nodes.h:790
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlias()

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

Definition at line 1054 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

1055 {
1056  WRITE_NODE_TYPE("ALIAS");
1057 
1058  WRITE_STRING_FIELD(aliasname);
1059  WRITE_NODE_FIELD(colnames);
1060 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlternativeSubPlan()

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

Definition at line 1385 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1386 {
1387  WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
1388 
1389  WRITE_NODE_FIELD(subplans);
1390 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAlterStatsStmt()

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

Definition at line 2797 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2798 {
2799  WRITE_NODE_TYPE("ALTERSTATSSTMT");
2800 
2801  WRITE_NODE_FIELD(defnames);
2802  WRITE_INT_FIELD(stxstattarget);
2803  WRITE_BOOL_FIELD(missing_ok);
2804 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAppend()

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

Definition at line 428 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outAppendPath()

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

Definition at line 1909 of file outfuncs.c.

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

Referenced by outNode().

1910 {
1911  WRITE_NODE_TYPE("APPENDPATH");
1912 
1913  _outPathInfo(str, (const Path *) node);
1914 
1915  WRITE_NODE_FIELD(subpaths);
1916  WRITE_INT_FIELD(first_partial_path);
1917  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1918 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outAppendRelInfo()

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

Definition at line 2612 of file outfuncs.c.

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

Referenced by outNode().

2613 {
2614  WRITE_NODE_TYPE("APPENDRELINFO");
2615 
2616  WRITE_UINT_FIELD(parent_relid);
2617  WRITE_UINT_FIELD(child_relid);
2618  WRITE_OID_FIELD(parent_reltype);
2619  WRITE_OID_FIELD(child_reltype);
2620  WRITE_NODE_FIELD(translated_vars);
2621  WRITE_INT_FIELD(num_child_cols);
2622  WRITE_ATTRNUMBER_ARRAY(parent_colnos, node->num_child_cols);
2623  WRITE_OID_FIELD(parent_reloid);
2624 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
int num_child_cols
Definition: pathnodes.h:2331
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outArrayCoerceExpr()

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

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

1442 {
1443  WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
1444 
1446  WRITE_NODE_FIELD(elemexpr);
1447  WRITE_OID_FIELD(resulttype);
1448  WRITE_INT_FIELD(resulttypmod);
1449  WRITE_OID_FIELD(resultcollid);
1450  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1451  WRITE_LOCATION_FIELD(location);
1452 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:481
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outArrayExpr()

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

Definition at line 1509 of file outfuncs.c.

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

Referenced by outNode().

1510 {
1511  WRITE_NODE_TYPE("ARRAY");
1512 
1513  WRITE_OID_FIELD(array_typeid);
1514  WRITE_OID_FIELD(array_collid);
1515  WRITE_OID_FIELD(element_typeid);
1516  WRITE_NODE_FIELD(elements);
1517  WRITE_BOOL_FIELD(multidims);
1518  WRITE_LOCATION_FIELD(location);
1519 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapAnd()

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

Definition at line 474 of file outfuncs.c.

References _outPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outBitmapAndPath()

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

Definition at line 1832 of file outfuncs.c.

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

Referenced by outNode().

1833 {
1834  WRITE_NODE_TYPE("BITMAPANDPATH");
1835 
1836  _outPathInfo(str, (const Path *) node);
1837 
1838  WRITE_NODE_FIELD(bitmapquals);
1839  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1840 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBitmapHeapPath()

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

Definition at line 1822 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outBitmapHeapScan()

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

Definition at line 595 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

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

◆ _outBitmapIndexScan()

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

Definition at line 582 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outBitmapOr()

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

Definition at line 484 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outBitmapOrPath()

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

Definition at line 1843 of file outfuncs.c.

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

Referenced by outNode().

1844 {
1845  WRITE_NODE_TYPE("BITMAPORPATH");
1846 
1847  _outPathInfo(str, (const Path *) node);
1848 
1849  WRITE_NODE_FIELD(bitmapquals);
1850  WRITE_FLOAT_FIELD(bitmapselectivity, "%.4f");
1851 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBooleanTest()

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

Definition at line 1609 of file outfuncs.c.

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

Referenced by outNode().

1610 {
1611  WRITE_NODE_TYPE("BOOLEANTEST");
1612 
1614  WRITE_ENUM_FIELD(booltesttype, BoolTestType);
1615  WRITE_LOCATION_FIELD(location);
1616 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
BoolTestType
Definition: primnodes.h:1280
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outBoolExpr()

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

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

1323 {
1324  char *opstr = NULL;
1325 
1326  WRITE_NODE_TYPE("BOOLEXPR");
1327 
1328  /* do-it-yourself enum representation */
1329  switch (node->boolop)
1330  {
1331  case AND_EXPR:
1332  opstr = "and";
1333  break;
1334  case OR_EXPR:
1335  opstr = "or";
1336  break;
1337  case NOT_EXPR:
1338  opstr = "not";
1339  break;
1340  }
1341  appendStringInfoString(str, " :boolop ");
1342  outToken(str, opstr);
1343 
1345  WRITE_LOCATION_FIELD(location);
1346 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:153
BoolExprType boolop
Definition: primnodes.h:625
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCaseExpr()

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

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

1477 {
1478  WRITE_NODE_TYPE("CASE");
1479 
1480  WRITE_OID_FIELD(casetype);
1481  WRITE_OID_FIELD(casecollid);
1484  WRITE_NODE_FIELD(defresult);
1485  WRITE_LOCATION_FIELD(location);
1486 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCaseTestExpr()

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

Definition at line 1499 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1500 {
1501  WRITE_NODE_TYPE("CASETESTEXPR");
1502 
1503  WRITE_OID_FIELD(typeId);
1504  WRITE_INT_FIELD(typeMod);
1505  WRITE_OID_FIELD(collation);
1506 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCaseWhen()

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

Definition at line 1489 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1490 {
1491  WRITE_NODE_TYPE("WHEN");
1492 
1493  WRITE_NODE_FIELD(expr);
1494  WRITE_NODE_FIELD(result);
1495  WRITE_LOCATION_FIELD(location);
1496 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoalesceExpr()

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

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

1548 {
1549  WRITE_NODE_TYPE("COALESCE");
1550 
1551  WRITE_OID_FIELD(coalescetype);
1552  WRITE_OID_FIELD(coalescecollid);
1554  WRITE_LOCATION_FIELD(location);
1555 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoerceToDomain()

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

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

1620 {
1621  WRITE_NODE_TYPE("COERCETODOMAIN");
1622 
1624  WRITE_OID_FIELD(resulttype);
1625  WRITE_INT_FIELD(resulttypmod);
1626  WRITE_OID_FIELD(resultcollid);
1627  WRITE_ENUM_FIELD(coercionformat, CoercionForm);
1628  WRITE_LOCATION_FIELD(location);
1629 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:481
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCoerceToDomainValue()

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

Definition at line 1632 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1633 {
1634  WRITE_NODE_TYPE("COERCETODOMAINVALUE");
1635 
1636  WRITE_OID_FIELD(typeId);
1637  WRITE_INT_FIELD(typeMod);
1638  WRITE_OID_FIELD(collation);
1639  WRITE_LOCATION_FIELD(location);
1640 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCoerceViaIO()

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

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

1430 {
1431  WRITE_NODE_TYPE("COERCEVIAIO");
1432 
1434  WRITE_OID_FIELD(resulttype);
1435  WRITE_OID_FIELD(resultcollid);
1436  WRITE_ENUM_FIELD(coerceformat, CoercionForm);
1437  WRITE_LOCATION_FIELD(location);
1438 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:481
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCollateClause()

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

Definition at line 2994 of file outfuncs.c.

References arg, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2995 {
2996  WRITE_NODE_TYPE("COLLATECLAUSE");
2997 
2999  WRITE_NODE_FIELD(collname);
3000  WRITE_LOCATION_FIELD(location);
3001 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCollateExpr()

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

Definition at line 1466 of file outfuncs.c.

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

Referenced by outNode().

1467 {
1468  WRITE_NODE_TYPE("COLLATE");
1469 
1471  WRITE_OID_FIELD(collOid);
1472  WRITE_LOCATION_FIELD(location);
1473 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outColumnDef()

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

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

2945 {
2946  WRITE_NODE_TYPE("COLUMNDEF");
2947 
2948  WRITE_STRING_FIELD(colname);
2949  WRITE_NODE_FIELD(typeName);
2950  WRITE_STRING_FIELD(compression);
2951  WRITE_INT_FIELD(inhcount);
2952  WRITE_BOOL_FIELD(is_local);
2953  WRITE_BOOL_FIELD(is_not_null);
2954  WRITE_BOOL_FIELD(is_from_type);
2955  WRITE_CHAR_FIELD(storage);
2956  WRITE_NODE_FIELD(raw_default);
2957  WRITE_NODE_FIELD(cooked_default);
2958  WRITE_CHAR_FIELD(identity);
2959  WRITE_NODE_FIELD(identitySequence);
2960  WRITE_CHAR_FIELD(generated);
2961  WRITE_NODE_FIELD(collClause);
2962  WRITE_OID_FIELD(collOid);
2963  WRITE_NODE_FIELD(constraints);
2964  WRITE_NODE_FIELD(fdwoptions);
2965  WRITE_LOCATION_FIELD(location);
2966 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outColumnRef()

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

Definition at line 3457 of file outfuncs.c.

References WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3458 {
3459  WRITE_NODE_TYPE("COLUMNREF");
3460 
3461  WRITE_NODE_FIELD(fields);
3462  WRITE_LOCATION_FIELD(location);
3463 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCommonTableExpr()

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

Definition at line 3203 of file outfuncs.c.

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

Referenced by outNode().

3204 {
3205  WRITE_NODE_TYPE("COMMONTABLEEXPR");
3206 
3207  WRITE_STRING_FIELD(ctename);
3208  WRITE_NODE_FIELD(aliascolnames);
3209  WRITE_ENUM_FIELD(ctematerialized, CTEMaterialize);
3210  WRITE_NODE_FIELD(ctequery);
3211  WRITE_NODE_FIELD(search_clause);
3212  WRITE_NODE_FIELD(cycle_clause);
3213  WRITE_LOCATION_FIELD(location);
3214  WRITE_BOOL_FIELD(cterecursive);
3215  WRITE_INT_FIELD(cterefcount);
3216  WRITE_NODE_FIELD(ctecolnames);
3217  WRITE_NODE_FIELD(ctecoltypes);
3218  WRITE_NODE_FIELD(ctecoltypmods);
3219  WRITE_NODE_FIELD(ctecolcollations);
3220 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
CTEMaterialize
Definition: parsenodes.h:1465
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outConst()

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

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

1132 {
1133  WRITE_NODE_TYPE("CONST");
1134 
1135  WRITE_OID_FIELD(consttype);
1136  WRITE_INT_FIELD(consttypmod);
1137  WRITE_OID_FIELD(constcollid);
1138  WRITE_INT_FIELD(constlen);
1139  WRITE_BOOL_FIELD(constbyval);
1140  WRITE_BOOL_FIELD(constisnull);
1141  WRITE_LOCATION_FIELD(location);
1142 
1143  appendStringInfoString(str, " :constvalue ");
1144  if (node->constisnull)
1145  appendStringInfoString(str, "<>");
1146  else
1147  outDatum(str, node->constvalue, node->constlen, node->constbyval);
1148 }
Datum constvalue
Definition: primnodes.h:219
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
bool constbyval
Definition: primnodes.h:222
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
void outDatum(StringInfo str, Datum value, int typlen, bool typbyval)
Definition: outfuncs.c:259
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
int constlen
Definition: primnodes.h:218
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
bool constisnull
Definition: primnodes.h:220

◆ _outConstraint()

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

Definition at line 3644 of file outfuncs.c.

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

Referenced by outNode().

3645 {
3646  WRITE_NODE_TYPE("CONSTRAINT");
3647 
3648  WRITE_STRING_FIELD(conname);
3649  WRITE_BOOL_FIELD(deferrable);
3650  WRITE_BOOL_FIELD(initdeferred);
3651  WRITE_LOCATION_FIELD(location);
3652 
3653  appendStringInfoString(str, " :contype ");
3654  switch (node->contype)
3655  {
3656  case CONSTR_NULL:
3657  appendStringInfoString(str, "NULL");
3658  break;
3659 
3660  case CONSTR_NOTNULL:
3661  appendStringInfoString(str, "NOT_NULL");
3662  break;
3663 
3664  case CONSTR_DEFAULT:
3665  appendStringInfoString(str, "DEFAULT");
3666  WRITE_NODE_FIELD(raw_expr);
3667  WRITE_STRING_FIELD(cooked_expr);
3668  break;
3669 
3670  case CONSTR_IDENTITY:
3671  appendStringInfoString(str, "IDENTITY");
3672  WRITE_NODE_FIELD(raw_expr);
3673  WRITE_STRING_FIELD(cooked_expr);
3674  WRITE_CHAR_FIELD(generated_when);
3675  break;
3676 
3677  case CONSTR_GENERATED:
3678  appendStringInfoString(str, "GENERATED");
3679  WRITE_NODE_FIELD(raw_expr);
3680  WRITE_STRING_FIELD(cooked_expr);
3681  WRITE_CHAR_FIELD(generated_when);
3682  break;
3683 
3684  case CONSTR_CHECK:
3685  appendStringInfoString(str, "CHECK");
3686  WRITE_BOOL_FIELD(is_no_inherit);
3687  WRITE_NODE_FIELD(raw_expr);
3688  WRITE_STRING_FIELD(cooked_expr);
3689  break;
3690 
3691  case CONSTR_PRIMARY:
3692  appendStringInfoString(str, "PRIMARY_KEY");
3693  WRITE_NODE_FIELD(keys);
3694  WRITE_NODE_FIELD(including);
3696  WRITE_STRING_FIELD(indexname);
3697  WRITE_STRING_FIELD(indexspace);
3698  WRITE_BOOL_FIELD(reset_default_tblspc);
3699  /* access_method and where_clause not currently used */
3700  break;
3701 
3702  case CONSTR_UNIQUE:
3703  appendStringInfoString(str, "UNIQUE");
3704  WRITE_NODE_FIELD(keys);
3705  WRITE_NODE_FIELD(including);
3707  WRITE_STRING_FIELD(indexname);
3708  WRITE_STRING_FIELD(indexspace);
3709  WRITE_BOOL_FIELD(reset_default_tblspc);
3710  /* access_method and where_clause not currently used */
3711  break;
3712 
3713  case CONSTR_EXCLUSION:
3714  appendStringInfoString(str, "EXCLUSION");
3715  WRITE_NODE_FIELD(exclusions);
3716  WRITE_NODE_FIELD(including);
3718  WRITE_STRING_FIELD(indexname);
3719  WRITE_STRING_FIELD(indexspace);
3720  WRITE_BOOL_FIELD(reset_default_tblspc);
3721  WRITE_STRING_FIELD(access_method);
3722  WRITE_NODE_FIELD(where_clause);
3723  break;
3724 
3725  case CONSTR_FOREIGN:
3726  appendStringInfoString(str, "FOREIGN_KEY");
3727  WRITE_NODE_FIELD(pktable);
3728  WRITE_NODE_FIELD(fk_attrs);
3729  WRITE_NODE_FIELD(pk_attrs);
3730  WRITE_CHAR_FIELD(fk_matchtype);
3731  WRITE_CHAR_FIELD(fk_upd_action);
3732  WRITE_CHAR_FIELD(fk_del_action);
3733  WRITE_NODE_FIELD(old_conpfeqop);
3734  WRITE_OID_FIELD(old_pktable_oid);
3735  WRITE_BOOL_FIELD(skip_validation);
3736  WRITE_BOOL_FIELD(initially_valid);
3737  break;
3738 
3740  appendStringInfoString(str, "ATTR_DEFERRABLE");
3741  break;
3742 
3744  appendStringInfoString(str, "ATTR_NOT_DEFERRABLE");
3745  break;
3746 
3747  case CONSTR_ATTR_DEFERRED:
3748  appendStringInfoString(str, "ATTR_DEFERRED");
3749  break;
3750 
3751  case CONSTR_ATTR_IMMEDIATE:
3752  appendStringInfoString(str, "ATTR_IMMEDIATE");
3753  break;
3754 
3755  default:
3756  appendStringInfo(str, "<unrecognized_constraint %d>",
3757  (int) node->contype);
3758  break;
3759  }
3760 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_CHAR_FIELD(fldname)
Definition: outfuncs.c:76
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
ConstrType contype
Definition: parsenodes.h:2251
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outConvertRowtypeExpr()

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

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

1456 {
1457  WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
1458 
1460  WRITE_OID_FIELD(resulttype);
1461  WRITE_ENUM_FIELD(convertformat, CoercionForm);
1462  WRITE_LOCATION_FIELD(location);
1463 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
CoercionForm
Definition: primnodes.h:481
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateForeignTableStmt()

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

Definition at line 2729 of file outfuncs.c.

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

Referenced by outNode().

2730 {
2731  WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2732 
2733  _outCreateStmtInfo(str, (const CreateStmt *) node);
2734 
2735  WRITE_STRING_FIELD(servername);
2737 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2704
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateStatsStmt()

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

Definition at line 2783 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2784 {
2785  WRITE_NODE_TYPE("CREATESTATSSTMT");
2786 
2787  WRITE_NODE_FIELD(defnames);
2788  WRITE_NODE_FIELD(stat_types);
2789  WRITE_NODE_FIELD(exprs);
2790  WRITE_NODE_FIELD(relations);
2791  WRITE_STRING_FIELD(stxcomment);
2792  WRITE_BOOL_FIELD(transformed);
2793  WRITE_BOOL_FIELD(if_not_exists);
2794 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCreateStmt()

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

Definition at line 2721 of file outfuncs.c.

References _outCreateStmtInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2722 {
2723  WRITE_NODE_TYPE("CREATESTMT");
2724 
2725  _outCreateStmtInfo(str, (const CreateStmt *) node);
2726 }
static void _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
Definition: outfuncs.c:2704
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCreateStmtInfo()

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

Definition at line 2704 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_STRING_FIELD.

Referenced by _outCreateForeignTableStmt(), and _outCreateStmt().

2705 {
2706  WRITE_NODE_FIELD(relation);
2707  WRITE_NODE_FIELD(tableElts);
2708  WRITE_NODE_FIELD(inhRelations);
2709  WRITE_NODE_FIELD(partspec);
2710  WRITE_NODE_FIELD(partbound);
2711  WRITE_NODE_FIELD(ofTypename);
2712  WRITE_NODE_FIELD(constraints);
2714  WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2715  WRITE_STRING_FIELD(tablespacename);
2716  WRITE_STRING_FIELD(accessMethod);
2717  WRITE_BOOL_FIELD(if_not_exists);
2718 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCTECycleClause()

static void _outCTECycleClause ( StringInfo  str,
const CTECycleClause node 
)
static

Definition at line 3186 of file outfuncs.c.

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

Referenced by outNode().

3187 {
3188  WRITE_NODE_TYPE("CTECYCLECLAUSE");
3189 
3190  WRITE_NODE_FIELD(cycle_col_list);
3191  WRITE_STRING_FIELD(cycle_mark_column);
3192  WRITE_NODE_FIELD(cycle_mark_value);
3193  WRITE_NODE_FIELD(cycle_mark_default);
3194  WRITE_STRING_FIELD(cycle_path_column);
3195  WRITE_LOCATION_FIELD(location);
3196  WRITE_OID_FIELD(cycle_mark_type);
3197  WRITE_INT_FIELD(cycle_mark_typmod);
3198  WRITE_OID_FIELD(cycle_mark_collation);
3199  WRITE_OID_FIELD(cycle_mark_neop);
3200 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCteScan()

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

Definition at line 666 of file outfuncs.c.

References _outScanInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

667 {
668  WRITE_NODE_TYPE("CTESCAN");
669 
670  _outScanInfo(str, (const Scan *) node);
671 
672  WRITE_INT_FIELD(ctePlanId);
673  WRITE_INT_FIELD(cteParam);
674 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outCTESearchClause()

static void _outCTESearchClause ( StringInfo  str,
const CTESearchClause node 
)
static

Definition at line 3175 of file outfuncs.c.

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

Referenced by outNode().

3176 {
3177  WRITE_NODE_TYPE("CTESEARCHCLAUSE");
3178 
3179  WRITE_NODE_FIELD(search_col_list);
3180  WRITE_BOOL_FIELD(search_breadth_first);
3181  WRITE_STRING_FIELD(search_seq_column);
3182  WRITE_LOCATION_FIELD(location);
3183 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCurrentOfExpr()

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

Definition at line 1654 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.

Referenced by outNode().

1655 {
1656  WRITE_NODE_TYPE("CURRENTOFEXPR");
1657 
1658  WRITE_UINT_FIELD(cvarno);
1659  WRITE_STRING_FIELD(cursor_name);
1660  WRITE_INT_FIELD(cursor_param);
1661 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95

◆ _outCustomPath()

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

Definition at line 1895 of file outfuncs.c.

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

Referenced by outNode().

1896 {
1897  WRITE_NODE_TYPE("CUSTOMPATH");
1898 
1899  _outPathInfo(str, (const Path *) node);
1900 
1901  WRITE_UINT_FIELD(flags);
1902  WRITE_NODE_FIELD(custom_paths);
1903  WRITE_NODE_FIELD(custom_private);
1904  appendStringInfoString(str, " :methods ");
1905  outToken(str, node->methods->CustomName);
1906 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:153
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
const struct CustomPathMethods * methods
Definition: pathnodes.h:1423
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
const char * CustomName
Definition: extensible.h:92
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outCustomScan()

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

Definition at line 715 of file outfuncs.c.

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

Referenced by outNode().

716 {
717  WRITE_NODE_TYPE("CUSTOMSCAN");
718 
719  _outScanInfo(str, (const Scan *) node);
720 
721  WRITE_UINT_FIELD(flags);
722  WRITE_NODE_FIELD(custom_plans);
723  WRITE_NODE_FIELD(custom_exprs);
724  WRITE_NODE_FIELD(custom_private);
725  WRITE_NODE_FIELD(custom_scan_tlist);
726  WRITE_BITMAPSET_FIELD(custom_relids);
727  /* CustomName is a key to lookup CustomScanMethods */
728  appendStringInfoString(str, " :methods ");
729  outToken(str, node->methods->CustomName);
730 }
void outToken(StringInfo str, const char *s)
Definition: outfuncs.c:153
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
const struct CustomScanMethods * methods
Definition: plannodes.h:670
const char * CustomName
Definition: extensible.h:112
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outDeclareCursorStmt()

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

Definition at line 2816 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2817 {
2818  WRITE_NODE_TYPE("DECLARECURSOR");
2819 
2820  WRITE_STRING_FIELD(portalname);
2822  WRITE_NODE_FIELD(query);
2823 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outDefElem()

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

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

2892 {
2893  WRITE_NODE_TYPE("DEFELEM");
2894 
2895  WRITE_STRING_FIELD(defnamespace);
2896  WRITE_STRING_FIELD(defname);
2898  WRITE_ENUM_FIELD(defaction, DefElemAction);
2899  WRITE_LOCATION_FIELD(location);
2900 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
DefElemAction
Definition: parsenodes.h:734
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outDistinctExpr()

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

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

1278 {
1279  WRITE_NODE_TYPE("DISTINCTEXPR");
1280 
1281  WRITE_OID_FIELD(opno);
1282  WRITE_OID_FIELD(opfuncid);
1283  WRITE_OID_FIELD(opresulttype);
1284  WRITE_BOOL_FIELD(opretset);
1285  WRITE_OID_FIELD(opcollid);
1286  WRITE_OID_FIELD(inputcollid);
1288  WRITE_LOCATION_FIELD(location);
1289 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outEquivalenceClass()

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

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

2457 {
2458  /*
2459  * To simplify reading, we just chase up to the topmost merged EC and
2460  * print that, without bothering to show the merge-ees separately.
2461  */
2462  while (node->ec_merged)
2463  node = node->ec_merged;
2464 
2465  WRITE_NODE_TYPE("EQUIVALENCECLASS");
2466 
2467  WRITE_NODE_FIELD(ec_opfamilies);
2468  WRITE_OID_FIELD(ec_collation);
2469  WRITE_NODE_FIELD(ec_members);
2470  WRITE_NODE_FIELD(ec_sources);
2471  WRITE_NODE_FIELD(ec_derives);
2472  WRITE_BITMAPSET_FIELD(ec_relids);
2473  WRITE_BOOL_FIELD(ec_has_const);
2474  WRITE_BOOL_FIELD(ec_has_volatile);
2475  WRITE_BOOL_FIELD(ec_below_outer_join);
2476  WRITE_BOOL_FIELD(ec_broken);
2477  WRITE_UINT_FIELD(ec_sortref);
2478  WRITE_UINT_FIELD(ec_min_security);
2479  WRITE_UINT_FIELD(ec_max_security);
2480 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
struct EquivalenceClass * ec_merged
Definition: pathnodes.h:993
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outEquivalenceMember()

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

Definition at line 2483 of file outfuncs.c.

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

Referenced by outNode().

2484 {
2485  WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
2486 
2487  WRITE_NODE_FIELD(em_expr);
2488  WRITE_BITMAPSET_FIELD(em_relids);
2489  WRITE_BITMAPSET_FIELD(em_nullable_relids);
2490  WRITE_BOOL_FIELD(em_is_const);
2491  WRITE_BOOL_FIELD(em_is_child);
2492  WRITE_OID_FIELD(em_datatype);
2493 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outExtensibleNode()

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

Definition at line 2680 of file outfuncs.c.

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

Referenced by outNode().

2681 {
2682  const ExtensibleNodeMethods *methods;
2683 
2684  methods = GetExtensibleNodeMethods(node->extnodename, false);
2685 
2686  WRITE_NODE_TYPE("EXTENSIBLENODE");
2687 
2688  WRITE_STRING_FIELD(extnodename);
2689 
2690  /* serialize the private fields */
2691  methods->nodeOut(str, node);
2692 }
const char * extnodename
Definition: extensible.h:35
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
void(* nodeOut)(struct StringInfoData *str, const struct ExtensibleNode *node)
Definition: extensible.h:68
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _outFieldSelect()

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

Definition at line 1393 of file outfuncs.c.

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

Referenced by outNode().

1394 {
1395  WRITE_NODE_TYPE("FIELDSELECT");
1396 
1398  WRITE_INT_FIELD(fieldnum);
1399  WRITE_OID_FIELD(resulttype);
1400  WRITE_INT_FIELD(resulttypmod);
1401  WRITE_OID_FIELD(resultcollid);
1402 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFieldStore()

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

Definition at line 1405 of file outfuncs.c.

References arg, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1406 {
1407  WRITE_NODE_TYPE("FIELDSTORE");
1408 
1410  WRITE_NODE_FIELD(newvals);
1411  WRITE_NODE_FIELD(fieldnums);
1412  WRITE_OID_FIELD(resulttype);
1413 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outForeignKeyCacheInfo()

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

Definition at line 3763 of file outfuncs.c.

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

Referenced by outNode().

3764 {
3765  WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
3766 
3767  WRITE_OID_FIELD(conoid);
3768  WRITE_OID_FIELD(conrelid);
3769  WRITE_OID_FIELD(confrelid);
3770  WRITE_INT_FIELD(nkeys);
3771  WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
3772  WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
3773  WRITE_OID_ARRAY(conpfeqop, node->nkeys);
3774 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outForeignKeyOptInfo()

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

Definition at line 2418 of file outfuncs.c.

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

Referenced by outNode().

2419 {
2420  int i;
2421 
2422  WRITE_NODE_TYPE("FOREIGNKEYOPTINFO");
2423 
2424  WRITE_UINT_FIELD(con_relid);
2425  WRITE_UINT_FIELD(ref_relid);
2426  WRITE_INT_FIELD(nkeys);
2427  WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
2428  WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
2429  WRITE_OID_ARRAY(conpfeqop, node->nkeys);
2430  WRITE_INT_FIELD(nmatched_ec);
2431  WRITE_INT_FIELD(nconst_ec);
2432  WRITE_INT_FIELD(nmatched_rcols);
2433  WRITE_INT_FIELD(nmatched_ri);
2434  /* for compactness, just print the number of matches per column: */
2435  appendStringInfoString(str, " :eclass");
2436  for (i = 0; i < node->nkeys; i++)
2437  appendStringInfo(str, " %d", (node->eclass[i] != NULL));
2438  appendStringInfoString(str, " :rinfos");
2439  for (i = 0; i < node->nkeys; i++)
2440  appendStringInfo(str, " %d", list_length(node->rinfos[i]));
2441 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:91
void appendStringInfoString(StringInfo str, const char *s)
Definition: stringinfo.c:176
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
Definition: pathnodes.h:910
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static int list_length(const List *l)
Definition: pg_list.h:149
int i
List * rinfos[INDEX_MAX_KEYS]
Definition: pathnodes.h:914

◆ _outForeignPath()

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

Definition at line 1884 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1885 {
1886  WRITE_NODE_TYPE("FOREIGNPATH");
1887 
1888  _outPathInfo(str, (const Path *) node);
1889 
1890  WRITE_NODE_FIELD(fdw_outerpath);
1891  WRITE_NODE_FIELD(fdw_private);
1892 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outForeignScan()

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

Definition at line 697 of file outfuncs.c.

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

Referenced by outNode().

698 {
699  WRITE_NODE_TYPE("FOREIGNSCAN");
700 
701  _outScanInfo(str, (const Scan *) node);
702 
703  WRITE_ENUM_FIELD(operation, CmdType);
704  WRITE_UINT_FIELD(resultRelation);
705  WRITE_OID_FIELD(fs_server);
706  WRITE_NODE_FIELD(fdw_exprs);
707  WRITE_NODE_FIELD(fdw_private);
708  WRITE_NODE_FIELD(fdw_scan_tlist);
709  WRITE_NODE_FIELD(fdw_recheck_quals);
710  WRITE_BITMAPSET_FIELD(fs_relids);
711  WRITE_BOOL_FIELD(fsSystemCol);
712 }
#define WRITE_BITMAPSET_FIELD(fldname)
Definition: outfuncs.c:109
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
CmdType
Definition: nodes.h:682
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFromExpr()

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

Definition at line 1721 of file outfuncs.c.

References WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1722 {
1723  WRITE_NODE_TYPE("FROMEXPR");
1724 
1725  WRITE_NODE_FIELD(fromlist);
1726  WRITE_NODE_FIELD(quals);
1727 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFuncCall()

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

Definition at line 2873 of file outfuncs.c.

References generate_unaccent_rules::args, WRITE_BOOL_FIELD, WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2874 {
2875  WRITE_NODE_TYPE("FUNCCALL");
2876 
2877  WRITE_NODE_FIELD(funcname);
2879  WRITE_NODE_FIELD(agg_order);
2880  WRITE_NODE_FIELD(agg_filter);
2881  WRITE_NODE_FIELD(over);
2882  WRITE_BOOL_FIELD(agg_within_group);
2883  WRITE_BOOL_FIELD(agg_star);
2884  WRITE_BOOL_FIELD(agg_distinct);
2885  WRITE_BOOL_FIELD(func_variadic);
2886  WRITE_ENUM_FIELD(funcformat, CoercionForm);
2887  WRITE_LOCATION_FIELD(location);
2888 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
CoercionForm
Definition: primnodes.h:481
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFuncExpr()

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

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

1236 {
1237  WRITE_NODE_TYPE("FUNCEXPR");
1238 
1239  WRITE_OID_FIELD(funcid);
1240  WRITE_OID_FIELD(funcresulttype);
1241  WRITE_BOOL_FIELD(funcretset);
1242  WRITE_BOOL_FIELD(funcvariadic);
1243  WRITE_ENUM_FIELD(funcformat, CoercionForm);
1244  WRITE_OID_FIELD(funccollid);
1245  WRITE_OID_FIELD(inputcollid);
1247  WRITE_LOCATION_FIELD(location);
1248 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
CoercionForm
Definition: primnodes.h:481
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outFunctionScan()

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

Definition at line 635 of file outfuncs.c.

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

Referenced by outNode().

636 {
637  WRITE_NODE_TYPE("FUNCTIONSCAN");
638 
639  _outScanInfo(str, (const Scan *) node);
640 
642  WRITE_BOOL_FIELD(funcordinality);
643 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static const struct fns functions
Definition: regcomp.c:313
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGather()

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

Definition at line 495 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outGatherMerge()

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

Definition at line 509 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outGatherMergePath()

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

Definition at line 2213 of file outfuncs.c.

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

Referenced by outNode().

2214 {
2215  WRITE_NODE_TYPE("GATHERMERGEPATH");
2216 
2217  _outPathInfo(str, (const Path *) node);
2218 
2220  WRITE_INT_FIELD(num_workers);
2221 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGatherPath()

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

Definition at line 1980 of file outfuncs.c.

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

Referenced by outNode().

1981 {
1982  WRITE_NODE_TYPE("GATHERPATH");
1983 
1984  _outPathInfo(str, (const Path *) node);
1985 
1987  WRITE_BOOL_FIELD(single_copy);
1988  WRITE_INT_FIELD(num_workers);
1989 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroup()

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

Definition at line 830 of file outfuncs.c.

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

Referenced by outNode().

831 {
832  WRITE_NODE_TYPE("GROUP");
833 
834  _outPlanInfo(str, (const Plan *) node);
835 
836  WRITE_INT_FIELD(numCols);
837  WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
838  WRITE_OID_ARRAY(grpOperators, node->numCols);
839  WRITE_OID_ARRAY(grpCollations, node->numCols);
840 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
int numCols
Definition: plannodes.h:837
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outGroupingFunc()

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

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

1191 {
1192  WRITE_NODE_TYPE("GROUPINGFUNC");
1193 
1195  WRITE_NODE_FIELD(refs);
1196  WRITE_NODE_FIELD(cols);
1197  WRITE_UINT_FIELD(agglevelsup);
1198  WRITE_LOCATION_FIELD(location);
1199 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSet()

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

Definition at line 3123 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3124 {
3125  WRITE_NODE_TYPE("GROUPINGSET");
3126 
3128  WRITE_NODE_FIELD(content);
3129  WRITE_LOCATION_FIELD(location);
3130 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
GroupingSetKind
Definition: parsenodes.h:1340
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSetData()

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

Definition at line 2091 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2092 {
2093  WRITE_NODE_TYPE("GSDATA");
2094 
2095  WRITE_NODE_FIELD(set);
2096  WRITE_FLOAT_FIELD(numGroups, "%.0f");
2097 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupingSetsPath()

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

Definition at line 2100 of file outfuncs.c.

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

Referenced by outNode().

2101 {
2102  WRITE_NODE_TYPE("GROUPINGSETSPATH");
2103 
2104  _outPathInfo(str, (const Path *) node);
2105 
2107  WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
2108  WRITE_NODE_FIELD(rollups);
2109  WRITE_NODE_FIELD(qual);
2110  WRITE_UINT64_FIELD(transitionSpace);
2111 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_UINT64_FIELD(fldname)
Definition: outfuncs.c:63
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
AggStrategy
Definition: nodes.h:768
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupPath()

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

Definition at line 2039 of file outfuncs.c.

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

Referenced by outNode().

2040 {
2041  WRITE_NODE_TYPE("GROUPPATH");
2042 
2043  _outPathInfo(str, (const Path *) node);
2044 
2046  WRITE_NODE_FIELD(groupClause);
2047  WRITE_NODE_FIELD(qual);
2048 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outGroupResultPath()

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

Definition at line 1932 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

1933 {
1934  WRITE_NODE_TYPE("GROUPRESULTPATH");
1935 
1936  _outPathInfo(str, (const Path *) node);
1937 
1938  WRITE_NODE_FIELD(quals);
1939 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHash()

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

Definition at line 909 of file outfuncs.c.

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

Referenced by outNode().

910 {
911  WRITE_NODE_TYPE("HASH");
912 
913  _outPlanInfo(str, (const Plan *) node);
914 
915  WRITE_NODE_FIELD(hashkeys);
916  WRITE_OID_FIELD(skewTable);
917  WRITE_INT_FIELD(skewColumn);
918  WRITE_BOOL_FIELD(skewInherit);
919  WRITE_FLOAT_FIELD(rows_total, "%.0f");
920 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHashJoin()

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

Definition at line 771 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

772 {
773  WRITE_NODE_TYPE("HASHJOIN");
774 
775  _outJoinPlanInfo(str, (const Join *) node);
776 
777  WRITE_NODE_FIELD(hashclauses);
778  WRITE_NODE_FIELD(hashoperators);
779  WRITE_NODE_FIELD(hashcollations);
780  WRITE_NODE_FIELD(hashkeys);
781 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outHashPath()

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

Definition at line 2246 of file outfuncs.c.

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

Referenced by outNode().

2247 {
2248  WRITE_NODE_TYPE("HASHPATH");
2249 
2250  _outJoinPathInfo(str, (const JoinPath *) node);
2251 
2252  WRITE_NODE_FIELD(path_hashclauses);
2253  WRITE_INT_FIELD(num_batches);
2254  WRITE_FLOAT_FIELD(inner_rows_total, "%.0f");
2255 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1786
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outImportForeignSchemaStmt()

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

Definition at line 2740 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2741 {
2742  WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2743 
2744  WRITE_STRING_FIELD(server_name);
2745  WRITE_STRING_FIELD(remote_schema);
2746  WRITE_STRING_FIELD(local_schema);
2748  WRITE_NODE_FIELD(table_list);
2750 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
ImportForeignSchemaType
Definition: parsenodes.h:2462
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIncrementalSort()

static void _outIncrementalSort ( StringInfo  str,
const IncrementalSort node 
)
static

Definition at line 886 of file outfuncs.c.

References _outSortInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

887 {
888  WRITE_NODE_TYPE("INCREMENTALSORT");
889 
890  _outSortInfo(str, (const Sort *) node);
891 
892  WRITE_INT_FIELD(nPresortedCols);
893 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outSortInfo(StringInfo str, const Sort *node)
Definition: outfuncs.c:866
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outIncrementalSortPath()

static void _outIncrementalSortPath ( StringInfo  str,
const IncrementalSortPath node 
)
static

Definition at line 2029 of file outfuncs.c.

References _outSortPathInfo(), WRITE_INT_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2030 {
2031  WRITE_NODE_TYPE("INCREMENTALSORTPATH");
2032 
2033  _outSortPathInfo(str, (const SortPath *) node);
2034 
2035  WRITE_INT_FIELD(nPresortedCols);
2036 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outSortPathInfo(StringInfo str, const SortPath *node)
Definition: outfuncs.c:2013

◆ _outIndexClause()

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

Definition at line 2571 of file outfuncs.c.

References WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2572 {
2573  WRITE_NODE_TYPE("INDEXCLAUSE");
2574 
2575  WRITE_NODE_FIELD(rinfo);
2576  WRITE_NODE_FIELD(indexquals);
2577  WRITE_BOOL_FIELD(lossy);
2578  WRITE_INT_FIELD(indexcol);
2579  WRITE_NODE_FIELD(indexcols);
2580 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexElem()

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

Definition at line 3004 of file outfuncs.c.

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

Referenced by outNode().

3005 {
3006  WRITE_NODE_TYPE("INDEXELEM");
3007 
3009  WRITE_NODE_FIELD(expr);
3010  WRITE_STRING_FIELD(indexcolname);
3011  WRITE_NODE_FIELD(collation);
3012  WRITE_NODE_FIELD(opclass);
3013  WRITE_NODE_FIELD(opclassopts);
3014  WRITE_ENUM_FIELD(ordering, SortByDir);
3015  WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
3016 }
SortByDir
Definition: parsenodes.h:50
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
SortByNulls
Definition: parsenodes.h:58
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:515
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexOnlyScan()

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

Definition at line 568 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outIndexOptInfo()

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

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

2394 {
2395  WRITE_NODE_TYPE("INDEXOPTINFO");
2396 
2397  /* NB: this isn't a complete set of fields */
2398  WRITE_OID_FIELD(indexoid);
2399  /* Do NOT print rel field, else infinite recursion */
2400  WRITE_UINT_FIELD(pages);
2401  WRITE_FLOAT_FIELD(tuples, "%.0f");
2402  WRITE_INT_FIELD(tree_height);
2403  WRITE_INT_FIELD(ncolumns);
2404  /* array fields aren't really worth the trouble to print */
2405  WRITE_OID_FIELD(relam);
2406  /* indexprs is redundant since we print indextlist */
2407  WRITE_NODE_FIELD(indpred);
2408  WRITE_NODE_FIELD(indextlist);
2409  WRITE_NODE_FIELD(indrestrictinfo);
2410  WRITE_BOOL_FIELD(predOK);
2411  WRITE_BOOL_FIELD(unique);
2412  WRITE_BOOL_FIELD(immediate);
2413  WRITE_BOOL_FIELD(hypothetical);
2414  /* we don't bother with fields copied from the index AM's API struct */
2415 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexPath()

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

Definition at line 1806 of file outfuncs.c.

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

Referenced by outNode().

1807 {
1808  WRITE_NODE_TYPE("INDEXPATH");
1809 
1810  _outPathInfo(str, (const Path *) node);
1811 
1812  WRITE_NODE_FIELD(indexinfo);
1813  WRITE_NODE_FIELD(indexclauses);
1814  WRITE_NODE_FIELD(indexorderbys);
1815  WRITE_NODE_FIELD(indexorderbycols);
1816  WRITE_ENUM_FIELD(indexscandir, ScanDirection);
1817  WRITE_FLOAT_FIELD(indextotalcost, "%.2f");
1818  WRITE_FLOAT_FIELD(indexselectivity, "%.4f");
1819 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
ScanDirection
Definition: sdir.h:22
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIndexScan()

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

Definition at line 552 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outIndexStmt()

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

Definition at line 2753 of file outfuncs.c.

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

Referenced by outNode().

2754 {
2755  WRITE_NODE_TYPE("INDEXSTMT");
2756 
2757  WRITE_STRING_FIELD(idxname);
2758  WRITE_NODE_FIELD(relation);
2759  WRITE_STRING_FIELD(accessMethod);
2760  WRITE_STRING_FIELD(tableSpace);
2761  WRITE_NODE_FIELD(indexParams);
2762  WRITE_NODE_FIELD(indexIncludingParams);
2764  WRITE_NODE_FIELD(whereClause);
2765  WRITE_NODE_FIELD(excludeOpNames);
2766  WRITE_STRING_FIELD(idxcomment);
2767  WRITE_OID_FIELD(indexOid);
2768  WRITE_OID_FIELD(oldNode);
2769  WRITE_UINT_FIELD(oldCreateSubid);
2770  WRITE_UINT_FIELD(oldFirstRelfilenodeSubid);
2771  WRITE_BOOL_FIELD(unique);
2772  WRITE_BOOL_FIELD(primary);
2773  WRITE_BOOL_FIELD(isconstraint);
2774  WRITE_BOOL_FIELD(deferrable);
2775  WRITE_BOOL_FIELD(initdeferred);
2776  WRITE_BOOL_FIELD(transformed);
2777  WRITE_BOOL_FIELD(concurrent);
2778  WRITE_BOOL_FIELD(if_not_exists);
2779  WRITE_BOOL_FIELD(reset_default_tblspc);
2780 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outInferenceElem()

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

Definition at line 1673 of file outfuncs.c.

References WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1674 {
1675  WRITE_NODE_TYPE("INFERENCEELEM");
1676 
1677  WRITE_NODE_FIELD(expr);
1678  WRITE_OID_FIELD(infercollid);
1679  WRITE_OID_FIELD(inferopclass);
1680 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outIntoClause()

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

Definition at line 1100 of file outfuncs.c.

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

Referenced by outNode().

1101 {
1102  WRITE_NODE_TYPE("INTOCLAUSE");
1103 
1104  WRITE_NODE_FIELD(rel);
1105  WRITE_NODE_FIELD(colNames);
1106  WRITE_STRING_FIELD(accessMethod);
1108  WRITE_ENUM_FIELD(onCommit, OnCommitAction);
1109  WRITE_STRING_FIELD(tableSpaceName);
1110  WRITE_NODE_FIELD(viewQuery);
1111  WRITE_BOOL_FIELD(skipData);
1112 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
OnCommitAction
Definition: primnodes.h:47
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoin()

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

Definition at line 733 of file outfuncs.c.

References _outJoinPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

734 {
735  WRITE_NODE_TYPE("JOIN");
736 
737  _outJoinPlanInfo(str, (const Join *) node);
738 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outJoinExpr()

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

Definition at line 1705 of file outfuncs.c.

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

Referenced by outNode().

1706 {
1707  WRITE_NODE_TYPE("JOINEXPR");
1708 
1709  WRITE_ENUM_FIELD(jointype, JoinType);
1710  WRITE_BOOL_FIELD(isNatural);
1711  WRITE_NODE_FIELD(larg);
1712  WRITE_NODE_FIELD(rarg);
1713  WRITE_NODE_FIELD(usingClause);
1714  WRITE_NODE_FIELD(join_using_alias);
1715  WRITE_NODE_FIELD(quals);
1716  WRITE_NODE_FIELD(alias);
1717  WRITE_INT_FIELD(rtindex);
1718 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
JoinType
Definition: nodes.h:706
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoinPathInfo()

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

Definition at line 1786 of file outfuncs.c.

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

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

1787 {
1788  _outPathInfo(str, (const Path *) node);
1789 
1790  WRITE_ENUM_FIELD(jointype, JoinType);
1791  WRITE_BOOL_FIELD(inner_unique);
1792  WRITE_NODE_FIELD(outerjoinpath);
1793  WRITE_NODE_FIELD(innerjoinpath);
1794  WRITE_NODE_FIELD(joinrestrictinfo);
1795 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
JoinType
Definition: nodes.h:706
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outJoinPlanInfo()

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

Definition at line 362 of file outfuncs.c.

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

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

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

◆ _outLimit()

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

Definition at line 952 of file outfuncs.c.

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

Referenced by outNode().

953 {
954  WRITE_NODE_TYPE("LIMIT");
955 
956  _outPlanInfo(str, (const Plan *) node);
957 
958  WRITE_NODE_FIELD(limitOffset);
959  WRITE_NODE_FIELD(limitCount);
960  WRITE_ENUM_FIELD(limitOption, LimitOption);
961  WRITE_INT_FIELD(uniqNumCols);
962  WRITE_ATTRNUMBER_ARRAY(uniqColIdx, node->uniqNumCols);
963  WRITE_OID_ARRAY(uniqOperators, node->uniqNumCols);
964  WRITE_OID_ARRAY(uniqCollations, node->uniqNumCols);
965 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_ATTRNUMBER_ARRAY(fldname, len)
Definition: outfuncs.c:113
int uniqNumCols
Definition: plannodes.h:1027
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
LimitOption
Definition: nodes.h:845
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLimitPath()

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

Definition at line 2200 of file outfuncs.c.

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

Referenced by outNode().

2201 {
2202  WRITE_NODE_TYPE("LIMITPATH");
2203 
2204  _outPathInfo(str, (const Path *) node);
2205 
2207  WRITE_NODE_FIELD(limitOffset);
2208  WRITE_NODE_FIELD(limitCount);
2209  WRITE_ENUM_FIELD(limitOption, LimitOption);
2210 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
LimitOption
Definition: nodes.h:845
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outList()

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

Definition at line 200 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outLockingClause()

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

Definition at line 2913 of file outfuncs.c.

References WRITE_ENUM_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2914 {
2915  WRITE_NODE_TYPE("LOCKINGCLAUSE");
2916 
2917  WRITE_NODE_FIELD(lockedRels);
2919  WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2920 }
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
LockClauseStrength
Definition: lockoptions.h:21
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
LockWaitPolicy
Definition: lockoptions.h:36
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLockRows()

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

Definition at line 941 of file outfuncs.c.

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

Referenced by outNode().

942 {
943  WRITE_NODE_TYPE("LOCKROWS");
944 
945  _outPlanInfo(str, (const Plan *) node);
946 
947  WRITE_NODE_FIELD(rowMarks);
948  WRITE_INT_FIELD(epqParam);
949 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outLockRowsPath()

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

Definition at line 2166 of file outfuncs.c.

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

Referenced by outNode().

2167 {
2168  WRITE_NODE_TYPE("LOCKROWSPATH");
2169 
2170  _outPathInfo(str, (const Path *) node);
2171 
2173  WRITE_NODE_FIELD(rowMarks);
2174  WRITE_INT_FIELD(epqParam);
2175 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMaterial()

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

Definition at line 843 of file outfuncs.c.

References _outPlanInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

844 {
845  WRITE_NODE_TYPE("MATERIAL");
846 
847  _outPlanInfo(str, (const Plan *) node);
848 }
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outMaterialPath()

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

Definition at line 1942 of file outfuncs.c.

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

Referenced by outNode().

1943 {
1944  WRITE_NODE_TYPE("MATERIALPATH");
1945 
1946  _outPathInfo(str, (const Path *) node);
1947 
1949 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMemoize()

static void _outMemoize ( StringInfo  str,
const Memoize node 
)
static

Definition at line 851 of file outfuncs.c.

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

Referenced by outNode().

852 {
853  WRITE_NODE_TYPE("MEMOIZE");
854 
855  _outPlanInfo(str, (const Plan *) node);
856 
857  WRITE_INT_FIELD(numKeys);
858  WRITE_OID_ARRAY(hashOperators, node->numKeys);
859  WRITE_OID_ARRAY(collations, node->numKeys);
860  WRITE_NODE_FIELD(param_exprs);
861  WRITE_BOOL_FIELD(singlerow);
862  WRITE_UINT_FIELD(est_entries);
863 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
int numKeys
Definition: plannodes.h:791
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
static void _outPlanInfo(StringInfo str, const Plan *node)
Definition: outfuncs.c:328
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMemoizePath()

static void _outMemoizePath ( StringInfo  str,
const MemoizePath node 
)
static

Definition at line 1952 of file outfuncs.c.

References _outPathInfo(), subpath(), WRITE_BOOL_FIELD, WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_UINT_FIELD.

Referenced by outNode().

1953 {
1954  WRITE_NODE_TYPE("MEMOIZEPATH");
1955 
1956  _outPathInfo(str, (const Path *) node);
1957 
1959  WRITE_NODE_FIELD(hash_operators);
1960  WRITE_NODE_FIELD(param_exprs);
1961  WRITE_BOOL_FIELD(singlerow);
1962  WRITE_FLOAT_FIELD(calls, "%.0f");
1963  WRITE_UINT_FIELD(est_entries);
1964 }
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergeAppend()

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

Definition at line 442 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outMergeAppendPath()

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

Definition at line 1921 of file outfuncs.c.

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

Referenced by outNode().

1922 {
1923  WRITE_NODE_TYPE("MERGEAPPENDPATH");
1924 
1925  _outPathInfo(str, (const Path *) node);
1926 
1927  WRITE_NODE_FIELD(subpaths);
1928  WRITE_FLOAT_FIELD(limit_tuples, "%.0f");
1929 }
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergeJoin()

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

Definition at line 751 of file outfuncs.c.

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

Referenced by outNode().

752 {
753  int numCols;
754 
755  WRITE_NODE_TYPE("MERGEJOIN");
756 
757  _outJoinPlanInfo(str, (const Join *) node);
758 
759  WRITE_BOOL_FIELD(skip_mark_restore);
760  WRITE_NODE_FIELD(mergeclauses);
761 
762  numCols = list_length(node->mergeclauses);
763 
764  WRITE_OID_ARRAY(mergeFamilies, numCols);
765  WRITE_OID_ARRAY(mergeCollations, numCols);
766  WRITE_INT_ARRAY(mergeStrategies, numCols);
767  WRITE_BOOL_ARRAY(mergeNullsFirst, numCols);
768 }
#define WRITE_INT_ARRAY(fldname, len)
Definition: outfuncs.c:127
List * mergeclauses
Definition: plannodes.h:748
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_BOOL_ARRAY(fldname, len)
Definition: outfuncs.c:134
#define WRITE_OID_ARRAY(fldname, len)
Definition: outfuncs.c:120
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static int list_length(const List *l)
Definition: pg_list.h:149
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMergePath()

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

Definition at line 2232 of file outfuncs.c.

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

Referenced by outNode().

2233 {
2234  WRITE_NODE_TYPE("MERGEPATH");
2235 
2236  _outJoinPathInfo(str, (const JoinPath *) node);
2237 
2238  WRITE_NODE_FIELD(path_mergeclauses);
2239  WRITE_NODE_FIELD(outersortkeys);
2240  WRITE_NODE_FIELD(innersortkeys);
2241  WRITE_BOOL_FIELD(skip_mark_restore);
2242  WRITE_BOOL_FIELD(materialize_inner);
2243 }
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1786
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxAggInfo()

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

Definition at line 2651 of file outfuncs.c.

References WRITE_FLOAT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

2652 {
2653  WRITE_NODE_TYPE("MINMAXAGGINFO");
2654 
2655  WRITE_OID_FIELD(aggfnoid);
2656  WRITE_OID_FIELD(aggsortop);
2657  WRITE_NODE_FIELD(target);
2658  /* We intentionally omit subroot --- too large, not interesting enough */
2659  WRITE_NODE_FIELD(path);
2660  WRITE_FLOAT_FIELD(pathcost, "%.2f");
2661  WRITE_NODE_FIELD(param);
2662 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_FLOAT_FIELD(fldname, format)
Definition: outfuncs.c:86
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxAggPath()

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

Definition at line 2114 of file outfuncs.c.

References _outPathInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

2115 {
2116  WRITE_NODE_TYPE("MINMAXAGGPATH");
2117 
2118  _outPathInfo(str, (const Path *) node);
2119 
2120  WRITE_NODE_FIELD(mmaggregates);
2121  WRITE_NODE_FIELD(quals);
2122 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMinMaxExpr()

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

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

1559 {
1560  WRITE_NODE_TYPE("MINMAX");
1561 
1562  WRITE_OID_FIELD(minmaxtype);
1563  WRITE_OID_FIELD(minmaxcollid);
1564  WRITE_OID_FIELD(inputcollid);
1567  WRITE_LOCATION_FIELD(location);
1568 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
MinMaxOp
Definition: primnodes.h:1139
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outModifyTable()

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

Definition at line 399 of file outfuncs.c.

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

Referenced by outNode().

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

◆ _outModifyTablePath()

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

Definition at line 2178 of file outfuncs.c.

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

Referenced by outNode().

2179 {
2180  WRITE_NODE_TYPE("MODIFYTABLEPATH");
2181 
2182  _outPathInfo(str, (const Path *) node);
2183 
2185  WRITE_ENUM_FIELD(operation, CmdType);
2186  WRITE_BOOL_FIELD(canSetTag);
2187  WRITE_UINT_FIELD(nominalRelation);
2188  WRITE_UINT_FIELD(rootRelation);
2189  WRITE_BOOL_FIELD(partColsUpdated);
2190  WRITE_NODE_FIELD(resultRelations);
2191  WRITE_NODE_FIELD(updateColnosLists);
2192  WRITE_NODE_FIELD(withCheckOptionLists);
2193  WRITE_NODE_FIELD(returningLists);
2194  WRITE_NODE_FIELD(rowMarks);
2195  WRITE_NODE_FIELD(onconflict);
2196  WRITE_INT_FIELD(epqParam);
2197 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_UINT_FIELD(fldname)
Definition: outfuncs.c:59
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static void _outPathInfo(StringInfo str, const Path *node)
Definition: outfuncs.c:1761
CmdType
Definition: nodes.h:682
Datum subpath(PG_FUNCTION_ARGS)
Definition: ltree_op.c:241
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outMultiAssignRef()

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

Definition at line 3544 of file outfuncs.c.

References source, WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

3545 {
3546  WRITE_NODE_TYPE("MULTIASSIGNREF");
3547 
3549  WRITE_INT_FIELD(colno);
3550  WRITE_INT_FIELD(ncolumns);
3551 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
static rewind_source * source
Definition: pg_rewind.c:79
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNamedArgExpr()

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

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

1252 {
1253  WRITE_NODE_TYPE("NAMEDARGEXPR");
1254 
1257  WRITE_INT_FIELD(argnumber);
1258  WRITE_LOCATION_FIELD(location);
1259 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
const char * name
Definition: encode.c:515
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNamedTuplestoreScan()

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

Definition at line 677 of file outfuncs.c.

References _outScanInfo(), WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

678 {
679  WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
680 
681  _outScanInfo(str, (const Scan *) node);
682 
683  WRITE_STRING_FIELD(enrname);
684 }
static void _outScanInfo(StringInfo str, const Scan *node)
Definition: outfuncs.c:351
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95

◆ _outNestLoop()

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

Definition at line 741 of file outfuncs.c.

References _outJoinPlanInfo(), WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

742 {
743  WRITE_NODE_TYPE("NESTLOOP");
744 
745  _outJoinPlanInfo(str, (const Join *) node);
746 
747  WRITE_NODE_FIELD(nestParams);
748 }
static void _outJoinPlanInfo(StringInfo str, const Join *node)
Definition: outfuncs.c:362
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNestLoopParam()

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

Definition at line 968 of file outfuncs.c.

References WRITE_INT_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.

Referenced by outNode().

969 {
970  WRITE_NODE_TYPE("NESTLOOPPARAM");
971 
972  WRITE_INT_FIELD(paramno);
973  WRITE_NODE_FIELD(paramval);
974 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNestPath()

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

Definition at line 2224 of file outfuncs.c.

References _outJoinPathInfo(), and WRITE_NODE_TYPE.

Referenced by outNode().

2225 {
2226  WRITE_NODE_TYPE("NESTPATH");
2227 
2228  _outJoinPathInfo(str, (const JoinPath *) node);
2229 }
static void _outJoinPathInfo(StringInfo str, const JoinPath *node)
Definition: outfuncs.c:1786
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outNextValueExpr()

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

Definition at line 1664 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_OID_FIELD.

Referenced by outNode().

1665 {
1666  WRITE_NODE_TYPE("NEXTVALUEEXPR");
1667 
1668  WRITE_OID_FIELD(seqid);
1669  WRITE_OID_FIELD(typeId);
1670 }
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51

◆ _outNotifyStmt()

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

Definition at line 2807 of file outfuncs.c.

References WRITE_NODE_TYPE, and WRITE_STRING_FIELD.

Referenced by outNode().

2808 {
2809  WRITE_NODE_TYPE("NOTIFY");
2810 
2811  WRITE_STRING_FIELD(conditionname);
2812  WRITE_STRING_FIELD(payload);
2813 }
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_STRING_FIELD(fldname)
Definition: outfuncs.c:95

◆ _outNullIfExpr()

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

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

1293 {
1294  WRITE_NODE_TYPE("NULLIFEXPR");
1295 
1296  WRITE_OID_FIELD(opno);
1297  WRITE_OID_FIELD(opfuncid);
1298  WRITE_OID_FIELD(opresulttype);
1299  WRITE_BOOL_FIELD(opretset);
1300  WRITE_OID_FIELD(opcollid);
1301  WRITE_OID_FIELD(inputcollid);
1303  WRITE_LOCATION_FIELD(location);
1304 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outNullTest()

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

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

1599 {
1600  WRITE_NODE_TYPE("NULLTEST");
1601 
1603  WRITE_ENUM_FIELD(nulltesttype, NullTestType);
1604  WRITE_BOOL_FIELD(argisrow);
1605  WRITE_LOCATION_FIELD(location);
1606 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
NullTestType
Definition: primnodes.h:1257
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
void * arg
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outOnConflictExpr()

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

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

1731 {
1732  WRITE_NODE_TYPE("ONCONFLICTEXPR");
1733 
1735  WRITE_NODE_FIELD(arbiterElems);
1736  WRITE_NODE_FIELD(arbiterWhere);
1737  WRITE_OID_FIELD(constraint);
1738  WRITE_NODE_FIELD(onConflictSet);
1739  WRITE_NODE_FIELD(onConflictWhere);
1740  WRITE_INT_FIELD(exclRelIndex);
1741  WRITE_NODE_FIELD(exclRelTlist);
1742 }
#define WRITE_INT_FIELD(fldname)
Definition: outfuncs.c:55
#define WRITE_ENUM_FIELD(fldname, enumtype)
Definition: outfuncs.c:81
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_NODE_TYPE(nodelabel)
Definition: outfuncs.c:51
OnConflictAction
Definition: nodes.h:832
#define WRITE_NODE_FIELD(fldname)
Definition: outfuncs.c:104

◆ _outOpExpr()

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

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

1263 {
1264  WRITE_NODE_TYPE("OPEXPR");
1265 
1266  WRITE_OID_FIELD(opno);
1267  WRITE_OID_FIELD(opfuncid);
1268  WRITE_OID_FIELD(opresulttype);
1269  WRITE_BOOL_FIELD(opretset);
1270  WRITE_OID_FIELD(opcollid);
1271  WRITE_OID_FIELD(inputcollid);
1273  WRITE_LOCATION_FIELD(location);
1274 }
#define WRITE_LOCATION_FIELD(fldname)
Definition: outfuncs.c:100
#define WRITE_OID_FIELD(fldname)
Definition: outfuncs.c:68
#define WRITE_BOOL_FIELD(fldname)
Definition: outfuncs.c:90
#define WRITE_NODE_TYPE(nodelabel)
Definition: