PostgreSQL Source Code  git master
readfuncs.c File Reference
#include "postgres.h"
#include <math.h>
#include "fmgr.h"
#include "miscadmin.h"
#include "nodes/extensible.h"
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
#include "nodes/readfuncs.h"
#include "utils/builtins.h"
Include dependency graph for readfuncs.c:

Go to the source code of this file.

Macros

#define READ_LOCALS_NO_FIELDS(nodeTypeName)   nodeTypeName *local_node = makeNode(nodeTypeName)
 
#define READ_TEMP_LOCALS()
 
#define READ_LOCALS(nodeTypeName)
 
#define READ_INT_FIELD(fldname)
 
#define READ_UINT_FIELD(fldname)
 
#define READ_UINT64_FIELD(fldname)
 
#define READ_LONG_FIELD(fldname)
 
#define READ_OID_FIELD(fldname)
 
#define READ_CHAR_FIELD(fldname)
 
#define READ_ENUM_FIELD(fldname, enumtype)
 
#define READ_FLOAT_FIELD(fldname)
 
#define READ_BOOL_FIELD(fldname)
 
#define READ_STRING_FIELD(fldname)
 
#define READ_LOCATION_FIELD(fldname)
 
#define READ_NODE_FIELD(fldname)
 
#define READ_BITMAPSET_FIELD(fldname)
 
#define READ_ATTRNUMBER_ARRAY(fldname, len)
 
#define READ_OID_ARRAY(fldname, len)
 
#define READ_INT_ARRAY(fldname, len)
 
#define READ_BOOL_ARRAY(fldname, len)
 
#define READ_DONE()   return local_node
 
#define atoui(x)   ((unsigned int) strtoul((x), NULL, 10))
 
#define strtobool(x)   ((*(x) == 't') ? true : false)
 
#define nullable_string(token, length)   ((length) == 0 ? NULL : debackslash(token, length))
 
#define MATCH(tokname, namelen)   (length == namelen && memcmp(token, tokname, namelen) == 0)
 

Functions

static Bitmapset_readBitmapset (void)
 
BitmapsetreadBitmapset (void)
 
static Query_readQuery (void)
 
static NotifyStmt_readNotifyStmt (void)
 
static DeclareCursorStmt_readDeclareCursorStmt (void)
 
static WithCheckOption_readWithCheckOption (void)
 
static SortGroupClause_readSortGroupClause (void)
 
static GroupingSet_readGroupingSet (void)
 
static WindowClause_readWindowClause (void)
 
static RowMarkClause_readRowMarkClause (void)
 
static CTESearchClause_readCTESearchClause (void)
 
static CTECycleClause_readCTECycleClause (void)
 
static CommonTableExpr_readCommonTableExpr (void)
 
static SetOperationStmt_readSetOperationStmt (void)
 
static Alias_readAlias (void)
 
static RangeVar_readRangeVar (void)
 
static TableFunc_readTableFunc (void)
 
static IntoClause_readIntoClause (void)
 
static Var_readVar (void)
 
static Const_readConst (void)
 
static Param_readParam (void)
 
static Aggref_readAggref (void)
 
static GroupingFunc_readGroupingFunc (void)
 
static WindowFunc_readWindowFunc (void)
 
static SubscriptingRef_readSubscriptingRef (void)
 
static FuncExpr_readFuncExpr (void)
 
static NamedArgExpr_readNamedArgExpr (void)
 
static OpExpr_readOpExpr (void)
 
static DistinctExpr_readDistinctExpr (void)
 
static NullIfExpr_readNullIfExpr (void)
 
static ScalarArrayOpExpr_readScalarArrayOpExpr (void)
 
static BoolExpr_readBoolExpr (void)
 
static SubLink_readSubLink (void)
 
static FieldSelect_readFieldSelect (void)
 
static FieldStore_readFieldStore (void)
 
static RelabelType_readRelabelType (void)
 
static CoerceViaIO_readCoerceViaIO (void)
 
static ArrayCoerceExpr_readArrayCoerceExpr (void)
 
static ConvertRowtypeExpr_readConvertRowtypeExpr (void)
 
static CollateExpr_readCollateExpr (void)
 
static CaseExpr_readCaseExpr (void)
 
static CaseWhen_readCaseWhen (void)
 
static CaseTestExpr_readCaseTestExpr (void)
 
static ArrayExpr_readArrayExpr (void)
 
static RowExpr_readRowExpr (void)
 
static RowCompareExpr_readRowCompareExpr (void)
 
static CoalesceExpr_readCoalesceExpr (void)
 
static MinMaxExpr_readMinMaxExpr (void)
 
static SQLValueFunction_readSQLValueFunction (void)
 
static XmlExpr_readXmlExpr (void)
 
static NullTest_readNullTest (void)
 
static BooleanTest_readBooleanTest (void)
 
static CoerceToDomain_readCoerceToDomain (void)
 
static CoerceToDomainValue_readCoerceToDomainValue (void)
 
static SetToDefault_readSetToDefault (void)
 
static CurrentOfExpr_readCurrentOfExpr (void)
 
static NextValueExpr_readNextValueExpr (void)
 
static InferenceElem_readInferenceElem (void)
 
static TargetEntry_readTargetEntry (void)
 
static RangeTblRef_readRangeTblRef (void)
 
static JoinExpr_readJoinExpr (void)
 
static FromExpr_readFromExpr (void)
 
static OnConflictExpr_readOnConflictExpr (void)
 
static AppendRelInfo_readAppendRelInfo (void)
 
static RangeTblEntry_readRangeTblEntry (void)
 
static RangeTblFunction_readRangeTblFunction (void)
 
static TableSampleClause_readTableSampleClause (void)
 
static DefElem_readDefElem (void)
 
static PlannedStmt_readPlannedStmt (void)
 
static void ReadCommonPlan (Plan *local_node)
 
static Plan_readPlan (void)
 
static Result_readResult (void)
 
static ProjectSet_readProjectSet (void)
 
static ModifyTable_readModifyTable (void)
 
static Append_readAppend (void)
 
static MergeAppend_readMergeAppend (void)
 
static RecursiveUnion_readRecursiveUnion (void)
 
static BitmapAnd_readBitmapAnd (void)
 
static BitmapOr_readBitmapOr (void)
 
static void ReadCommonScan (Scan *local_node)
 
static Scan_readScan (void)
 
static SeqScan_readSeqScan (void)
 
static SampleScan_readSampleScan (void)
 
static IndexScan_readIndexScan (void)
 
static IndexOnlyScan_readIndexOnlyScan (void)
 
static BitmapIndexScan_readBitmapIndexScan (void)
 
static BitmapHeapScan_readBitmapHeapScan (void)
 
static TidScan_readTidScan (void)
 
static TidRangeScan_readTidRangeScan (void)
 
static SubqueryScan_readSubqueryScan (void)
 
static FunctionScan_readFunctionScan (void)
 
static ValuesScan_readValuesScan (void)
 
static TableFuncScan_readTableFuncScan (void)
 
static CteScan_readCteScan (void)
 
static NamedTuplestoreScan_readNamedTuplestoreScan (void)
 
static WorkTableScan_readWorkTableScan (void)
 
static ForeignScan_readForeignScan (void)
 
static CustomScan_readCustomScan (void)
 
static void ReadCommonJoin (Join *local_node)
 
static Join_readJoin (void)
 
static NestLoop_readNestLoop (void)
 
static MergeJoin_readMergeJoin (void)
 
static HashJoin_readHashJoin (void)
 
static Material_readMaterial (void)
 
static Memoize_readMemoize (void)
 
static void ReadCommonSort (Sort *local_node)
 
static Sort_readSort (void)
 
static IncrementalSort_readIncrementalSort (void)
 
static Group_readGroup (void)
 
static Agg_readAgg (void)
 
static WindowAgg_readWindowAgg (void)
 
static Unique_readUnique (void)
 
static Gather_readGather (void)
 
static GatherMerge_readGatherMerge (void)
 
static Hash_readHash (void)
 
static SetOp_readSetOp (void)
 
static LockRows_readLockRows (void)
 
static Limit_readLimit (void)
 
static NestLoopParam_readNestLoopParam (void)
 
static PlanRowMark_readPlanRowMark (void)
 
static PartitionPruneInfo_readPartitionPruneInfo (void)
 
static PartitionedRelPruneInfo_readPartitionedRelPruneInfo (void)
 
static PartitionPruneStepOp_readPartitionPruneStepOp (void)
 
static PartitionPruneStepCombine_readPartitionPruneStepCombine (void)
 
static PlanInvalItem_readPlanInvalItem (void)
 
static SubPlan_readSubPlan (void)
 
static AlternativeSubPlan_readAlternativeSubPlan (void)
 
static ExtensibleNode_readExtensibleNode (void)
 
static PartitionBoundSpec_readPartitionBoundSpec (void)
 
static PartitionRangeDatum_readPartitionRangeDatum (void)
 
NodeparseNodeString (void)
 
Datum readDatum (bool typbyval)
 
AttrNumberreadAttrNumberCols (int numCols)
 
OidreadOidCols (int numCols)
 
int * readIntCols (int numCols)
 
boolreadBoolCols (int numCols)
 

Macro Definition Documentation

◆ atoui

#define atoui (   x)    ((unsigned int) strtoul((x), NULL, 10))

Definition at line 185 of file readfuncs.c.

Referenced by readDatum().

◆ MATCH

#define MATCH (   tokname,
  namelen 
)    (length == namelen && memcmp(token, tokname, namelen) == 0)

Referenced by parseNodeString().

◆ nullable_string

#define nullable_string (   token,
  length 
)    ((length) == 0 ? NULL : debackslash(token, length))

Definition at line 189 of file readfuncs.c.

Referenced by _readCustomScan(), and _readExtensibleNode().

◆ READ_ATTRNUMBER_ARRAY

#define READ_ATTRNUMBER_ARRAY (   fldname,
  len 
)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
local_node->fldname = readAttrNumberCols(len)
AttrNumber * readAttrNumberCols(int numCols)
Definition: readfuncs.c:3051
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 155 of file readfuncs.c.

Referenced by _readAgg(), _readAppendRelInfo(), _readGatherMerge(), _readGroup(), _readLimit(), _readMergeAppend(), _readRecursiveUnion(), _readSetOp(), _readUnique(), _readWindowAgg(), and ReadCommonSort().

◆ READ_BITMAPSET_FIELD

#define READ_BITMAPSET_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
(void) token; /* in case not used elsewhere */ \
local_node->fldname = _readBitmapset()
const char * pg_strtok(int *length)
Definition: read.c:152
static Bitmapset * _readBitmapset(void)
Definition: readfuncs.c:197

Definition at line 149 of file readfuncs.c.

Referenced by _readAgg(), _readAppend(), _readCustomScan(), _readForeignScan(), _readGather(), _readGatherMerge(), _readMergeAppend(), _readModifyTable(), _readPartitionedRelPruneInfo(), _readPartitionPruneInfo(), _readPartitionPruneStepOp(), _readPlannedStmt(), _readRangeTblEntry(), _readRangeTblFunction(), _readTableFunc(), and ReadCommonPlan().

◆ READ_BOOL_ARRAY

#define READ_BOOL_ARRAY (   fldname,
  len 
)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
local_node->fldname = readBoolCols(len)
bool * readBoolCols(int numCols)
Definition: readfuncs.c:3123
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 170 of file readfuncs.c.

Referenced by _readGatherMerge(), _readMergeAppend(), _readMergeJoin(), and ReadCommonSort().

◆ READ_BOOL_FIELD

◆ READ_CHAR_FIELD

#define READ_CHAR_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
/* avoid overhead of calling debackslash() for one char */ \
local_node->fldname = (length == 0) ? '\0' : (token[0] == '\\' ? token[1] : token[0])
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 98 of file readfuncs.c.

Referenced by _readAggref(), _readPartitionBoundSpec(), _readRangeTblEntry(), and _readRangeVar().

◆ READ_DONE

#define READ_DONE ( )    return local_node

Definition at line 175 of file readfuncs.c.

Referenced by _readAgg(), _readAggref(), _readAlias(), _readAlternativeSubPlan(), _readAppend(), _readAppendRelInfo(), _readArrayCoerceExpr(), _readArrayExpr(), _readBitmapAnd(), _readBitmapHeapScan(), _readBitmapIndexScan(), _readBitmapOr(), _readBooleanTest(), _readBoolExpr(), _readCaseExpr(), _readCaseTestExpr(), _readCaseWhen(), _readCoalesceExpr(), _readCoerceToDomain(), _readCoerceToDomainValue(), _readCoerceViaIO(), _readCollateExpr(), _readCommonTableExpr(), _readConst(), _readConvertRowtypeExpr(), _readCTECycleClause(), _readCteScan(), _readCTESearchClause(), _readCurrentOfExpr(), _readCustomScan(), _readDeclareCursorStmt(), _readDefElem(), _readDistinctExpr(), _readExtensibleNode(), _readFieldSelect(), _readFieldStore(), _readForeignScan(), _readFromExpr(), _readFuncExpr(), _readFunctionScan(), _readGather(), _readGatherMerge(), _readGroup(), _readGroupingFunc(), _readGroupingSet(), _readHash(), _readHashJoin(), _readIncrementalSort(), _readIndexOnlyScan(), _readIndexScan(), _readInferenceElem(), _readIntoClause(), _readJoin(), _readJoinExpr(), _readLimit(), _readLockRows(), _readMaterial(), _readMemoize(), _readMergeAppend(), _readMergeJoin(), _readMinMaxExpr(), _readModifyTable(), _readNamedArgExpr(), _readNamedTuplestoreScan(), _readNestLoop(), _readNestLoopParam(), _readNextValueExpr(), _readNotifyStmt(), _readNullIfExpr(), _readNullTest(), _readOnConflictExpr(), _readOpExpr(), _readParam(), _readPartitionBoundSpec(), _readPartitionedRelPruneInfo(), _readPartitionPruneInfo(), _readPartitionPruneStepCombine(), _readPartitionPruneStepOp(), _readPartitionRangeDatum(), _readPlan(), _readPlanInvalItem(), _readPlannedStmt(), _readPlanRowMark(), _readProjectSet(), _readQuery(), _readRangeTblEntry(), _readRangeTblFunction(), _readRangeTblRef(), _readRangeVar(), _readRecursiveUnion(), _readRelabelType(), _readResult(), _readRowCompareExpr(), _readRowExpr(), _readRowMarkClause(), _readSampleScan(), _readScalarArrayOpExpr(), _readScan(), _readSeqScan(), _readSetOp(), _readSetOperationStmt(), _readSetToDefault(), _readSort(), _readSortGroupClause(), _readSQLValueFunction(), _readSubLink(), _readSubPlan(), _readSubqueryScan(), _readSubscriptingRef(), _readTableFunc(), _readTableFuncScan(), _readTableSampleClause(), _readTargetEntry(), _readTidRangeScan(), _readTidScan(), _readUnique(), _readValuesScan(), _readVar(), _readWindowAgg(), _readWindowClause(), _readWindowFunc(), _readWithCheckOption(), _readWorkTableScan(), and _readXmlExpr().

◆ READ_ENUM_FIELD

◆ READ_FLOAT_FIELD

#define READ_FLOAT_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atof(token)
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 111 of file readfuncs.c.

Referenced by _readHash(), _readRangeTblEntry(), _readSubPlan(), and ReadCommonPlan().

◆ READ_INT_ARRAY

#define READ_INT_ARRAY (   fldname,
  len 
)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
local_node->fldname = readIntCols(len)
int * readIntCols(int numCols)
Definition: readfuncs.c:3099
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 165 of file readfuncs.c.

Referenced by _readMergeJoin(), and _readPartitionedRelPruneInfo().

◆ READ_INT_FIELD

◆ READ_LOCALS

#define READ_LOCALS (   nodeTypeName)
Value:
READ_LOCALS_NO_FIELDS(nodeTypeName); \
READ_TEMP_LOCALS()
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54

Definition at line 63 of file readfuncs.c.

Referenced by _readAgg(), _readAggref(), _readAlias(), _readAlternativeSubPlan(), _readAppend(), _readAppendRelInfo(), _readArrayCoerceExpr(), _readArrayExpr(), _readBitmapAnd(), _readBitmapHeapScan(), _readBitmapIndexScan(), _readBitmapOr(), _readBooleanTest(), _readBoolExpr(), _readCaseExpr(), _readCaseTestExpr(), _readCaseWhen(), _readCoalesceExpr(), _readCoerceToDomain(), _readCoerceToDomainValue(), _readCoerceViaIO(), _readCollateExpr(), _readCommonTableExpr(), _readConst(), _readConvertRowtypeExpr(), _readCTECycleClause(), _readCteScan(), _readCTESearchClause(), _readCurrentOfExpr(), _readCustomScan(), _readDeclareCursorStmt(), _readDefElem(), _readDistinctExpr(), _readFieldSelect(), _readFieldStore(), _readForeignScan(), _readFromExpr(), _readFuncExpr(), _readFunctionScan(), _readGather(), _readGatherMerge(), _readGroup(), _readGroupingFunc(), _readGroupingSet(), _readHash(), _readHashJoin(), _readIncrementalSort(), _readIndexOnlyScan(), _readIndexScan(), _readInferenceElem(), _readIntoClause(), _readJoinExpr(), _readLimit(), _readLockRows(), _readMemoize(), _readMergeAppend(), _readMergeJoin(), _readMinMaxExpr(), _readModifyTable(), _readNamedArgExpr(), _readNamedTuplestoreScan(), _readNestLoop(), _readNestLoopParam(), _readNextValueExpr(), _readNotifyStmt(), _readNullIfExpr(), _readNullTest(), _readOnConflictExpr(), _readOpExpr(), _readParam(), _readPartitionBoundSpec(), _readPartitionedRelPruneInfo(), _readPartitionPruneInfo(), _readPartitionPruneStepCombine(), _readPartitionPruneStepOp(), _readPartitionRangeDatum(), _readPlanInvalItem(), _readPlannedStmt(), _readPlanRowMark(), _readQuery(), _readRangeTblEntry(), _readRangeTblFunction(), _readRangeTblRef(), _readRangeVar(), _readRecursiveUnion(), _readRelabelType(), _readResult(), _readRowCompareExpr(), _readRowExpr(), _readRowMarkClause(), _readSampleScan(), _readScalarArrayOpExpr(), _readSetOp(), _readSetOperationStmt(), _readSetToDefault(), _readSortGroupClause(), _readSQLValueFunction(), _readSubLink(), _readSubPlan(), _readSubqueryScan(), _readSubscriptingRef(), _readTableFunc(), _readTableFuncScan(), _readTableSampleClause(), _readTargetEntry(), _readTidRangeScan(), _readTidScan(), _readUnique(), _readValuesScan(), _readVar(), _readWindowAgg(), _readWindowClause(), _readWindowFunc(), _readWithCheckOption(), _readWorkTableScan(), and _readXmlExpr().

◆ READ_LOCALS_NO_FIELDS

#define READ_LOCALS_NO_FIELDS (   nodeTypeName)    nodeTypeName *local_node = makeNode(nodeTypeName)

◆ READ_LOCATION_FIELD

◆ READ_LONG_FIELD

#define READ_LONG_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atol(token)
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 86 of file readfuncs.c.

Referenced by _readAgg(), _readRecursiveUnion(), and _readSetOp().

◆ READ_NODE_FIELD

#define READ_NODE_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
(void) token; /* in case not used elsewhere */ \
local_node->fldname = nodeRead(NULL, 0)
void * nodeRead(const char *token, int tok_len)
Definition: read.c:316
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 143 of file readfuncs.c.

Referenced by _readAgg(), _readAggref(), _readAlias(), _readAlternativeSubPlan(), _readAppend(), _readAppendRelInfo(), _readArrayCoerceExpr(), _readArrayExpr(), _readBitmapAnd(), _readBitmapHeapScan(), _readBitmapIndexScan(), _readBitmapOr(), _readBooleanTest(), _readBoolExpr(), _readCaseExpr(), _readCaseWhen(), _readCoalesceExpr(), _readCoerceToDomain(), _readCoerceViaIO(), _readCollateExpr(), _readCommonTableExpr(), _readConvertRowtypeExpr(), _readCTECycleClause(), _readCTESearchClause(), _readCustomScan(), _readDeclareCursorStmt(), _readDefElem(), _readDistinctExpr(), _readFieldSelect(), _readFieldStore(), _readForeignScan(), _readFromExpr(), _readFuncExpr(), _readFunctionScan(), _readGroupingFunc(), _readGroupingSet(), _readHash(), _readHashJoin(), _readIndexOnlyScan(), _readIndexScan(), _readInferenceElem(), _readIntoClause(), _readJoinExpr(), _readLimit(), _readLockRows(), _readMemoize(), _readMergeAppend(), _readMergeJoin(), _readMinMaxExpr(), _readModifyTable(), _readNamedArgExpr(), _readNestLoop(), _readNestLoopParam(), _readNullIfExpr(), _readNullTest(), _readOnConflictExpr(), _readOpExpr(), _readPartitionBoundSpec(), _readPartitionedRelPruneInfo(), _readPartitionPruneInfo(), _readPartitionPruneStepCombine(), _readPartitionPruneStepOp(), _readPartitionRangeDatum(), _readPlannedStmt(), _readQuery(), _readRangeTblEntry(), _readRangeTblFunction(), _readRangeVar(), _readRelabelType(), _readResult(), _readRowCompareExpr(), _readRowExpr(), _readSampleScan(), _readScalarArrayOpExpr(), _readSetOperationStmt(), _readSubLink(), _readSubPlan(), _readSubqueryScan(), _readSubscriptingRef(), _readTableFunc(), _readTableFuncScan(), _readTableSampleClause(), _readTargetEntry(), _readTidRangeScan(), _readTidScan(), _readValuesScan(), _readWindowAgg(), _readWindowClause(), _readWindowFunc(), _readWithCheckOption(), _readXmlExpr(), ReadCommonJoin(), and ReadCommonPlan().

◆ READ_OID_ARRAY

#define READ_OID_ARRAY (   fldname,
  len 
)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
local_node->fldname = readOidCols(len)
Oid * readOidCols(int numCols)
Definition: readfuncs.c:3075
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 160 of file readfuncs.c.

Referenced by _readAgg(), _readGatherMerge(), _readGroup(), _readLimit(), _readMemoize(), _readMergeAppend(), _readMergeJoin(), _readPartitionedRelPruneInfo(), _readRecursiveUnion(), _readSetOp(), _readUnique(), _readWindowAgg(), and ReadCommonSort().

◆ READ_OID_FIELD

◆ READ_STRING_FIELD

#define READ_STRING_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = nullable_string(token, length)
const char * pg_strtok(int *length)
Definition: read.c:152
#define nullable_string(token, length)
Definition: readfuncs.c:189

Definition at line 123 of file readfuncs.c.

Referenced by _readAlias(), _readCommonTableExpr(), _readCTECycleClause(), _readCTESearchClause(), _readCurrentOfExpr(), _readDeclareCursorStmt(), _readDefElem(), _readIntoClause(), _readNamedArgExpr(), _readNamedTuplestoreScan(), _readNotifyStmt(), _readRangeTblEntry(), _readRangeVar(), _readSubPlan(), _readTargetEntry(), _readWindowClause(), _readWithCheckOption(), and _readXmlExpr().

◆ READ_TEMP_LOCALS

#define READ_TEMP_LOCALS ( )
Value:
const char *token; \
int length

Definition at line 58 of file readfuncs.c.

Referenced by _readBitmapset(), _readExtensibleNode(), parseNodeString(), ReadCommonJoin(), ReadCommonPlan(), ReadCommonScan(), and ReadCommonSort().

◆ READ_UINT64_FIELD

#define READ_UINT64_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = pg_strtouint64(token, NULL, 10)
uint64 pg_strtouint64(const char *str, char **endptr, int base)
Definition: numutils.c:621
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 80 of file readfuncs.c.

Referenced by _readAgg(), and _readPlannedStmt().

◆ READ_UINT_FIELD

#define READ_UINT_FIELD (   fldname)

◆ strtobool

#define strtobool (   x)    ((*(x) == 't') ? true : false)

Definition at line 187 of file readfuncs.c.

Referenced by readBoolCols().

Function Documentation

◆ _readAgg()

static Agg* _readAgg ( void  )
static

Definition at line 2306 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_BITMAPSET_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LONG_FIELD, READ_NODE_FIELD, READ_OID_ARRAY, READ_UINT64_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

2307 {
2308  READ_LOCALS(Agg);
2309 
2310  ReadCommonPlan(&local_node->plan);
2311 
2312  READ_ENUM_FIELD(aggstrategy, AggStrategy);
2313  READ_ENUM_FIELD(aggsplit, AggSplit);
2314  READ_INT_FIELD(numCols);
2315  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2316  READ_OID_ARRAY(grpOperators, local_node->numCols);
2317  READ_OID_ARRAY(grpCollations, local_node->numCols);
2318  READ_LONG_FIELD(numGroups);
2319  READ_UINT64_FIELD(transitionSpace);
2320  READ_BITMAPSET_FIELD(aggParams);
2321  READ_NODE_FIELD(groupingSets);
2322  READ_NODE_FIELD(chain);
2323 
2324  READ_DONE();
2325 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:86
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_UINT64_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
AggSplit
Definition: nodes.h:790
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
AggStrategy
Definition: nodes.h:768
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
Definition: plannodes.h:857
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readAggref()

static Aggref* _readAggref ( void  )
static

Definition at line 640 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_CHAR_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, READ_OID_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

641 {
643 
644  READ_OID_FIELD(aggfnoid);
645  READ_OID_FIELD(aggtype);
646  READ_OID_FIELD(aggcollid);
647  READ_OID_FIELD(inputcollid);
648  READ_OID_FIELD(aggtranstype);
649  READ_NODE_FIELD(aggargtypes);
650  READ_NODE_FIELD(aggdirectargs);
652  READ_NODE_FIELD(aggorder);
653  READ_NODE_FIELD(aggdistinct);
654  READ_NODE_FIELD(aggfilter);
655  READ_BOOL_FIELD(aggstar);
656  READ_BOOL_FIELD(aggvariadic);
657  READ_CHAR_FIELD(aggkind);
658  READ_UINT_FIELD(agglevelsup);
659  READ_ENUM_FIELD(aggsplit, AggSplit);
660  READ_INT_FIELD(aggno);
661  READ_INT_FIELD(aggtransno);
662  READ_LOCATION_FIELD(location);
663 
664  READ_DONE();
665 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:98
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
AggSplit
Definition: nodes.h:790
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readAlias()

static Alias* _readAlias ( void  )
static

Definition at line 503 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

504 {
506 
507  READ_STRING_FIELD(aliasname);
508  READ_NODE_FIELD(colnames);
509 
510  READ_DONE();
511 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readAlternativeSubPlan()

static AlternativeSubPlan* _readAlternativeSubPlan ( void  )
static

Definition at line 2631 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2632 {
2634 
2635  READ_NODE_FIELD(subplans);
2636 
2637  READ_DONE();
2638 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readAppend()

static Append* _readAppend ( void  )
static

Definition at line 1713 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

1714 {
1716 
1717  ReadCommonPlan(&local_node->plan);
1718 
1719  READ_BITMAPSET_FIELD(apprelids);
1720  READ_NODE_FIELD(appendplans);
1721  READ_INT_FIELD(nasyncplans);
1722  READ_INT_FIELD(first_partial_plan);
1723  READ_NODE_FIELD(part_prune_info);
1724 
1725  READ_DONE();
1726 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readAppendRelInfo()

static AppendRelInfo* _readAppendRelInfo ( void  )
static

Definition at line 1405 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

1406 {
1408 
1409  READ_UINT_FIELD(parent_relid);
1410  READ_UINT_FIELD(child_relid);
1411  READ_OID_FIELD(parent_reltype);
1412  READ_OID_FIELD(child_reltype);
1413  READ_NODE_FIELD(translated_vars);
1414  READ_INT_FIELD(num_child_cols);
1415  READ_ATTRNUMBER_ARRAY(parent_colnos, local_node->num_child_cols);
1416  READ_OID_FIELD(parent_reloid);
1417 
1418  READ_DONE();
1419 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readArrayCoerceExpr()

static ArrayCoerceExpr* _readArrayCoerceExpr ( void  )
static

Definition at line 964 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

965 {
967 
969  READ_NODE_FIELD(elemexpr);
970  READ_OID_FIELD(resulttype);
971  READ_INT_FIELD(resulttypmod);
972  READ_OID_FIELD(resultcollid);
973  READ_ENUM_FIELD(coerceformat, CoercionForm);
974  READ_LOCATION_FIELD(location);
975 
976  READ_DONE();
977 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
CoercionForm
Definition: primnodes.h:481

◆ _readArrayExpr()

static ArrayExpr* _readArrayExpr ( void  )
static

Definition at line 1062 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1063 {
1065 
1066  READ_OID_FIELD(array_typeid);
1067  READ_OID_FIELD(array_collid);
1068  READ_OID_FIELD(element_typeid);
1069  READ_NODE_FIELD(elements);
1070  READ_BOOL_FIELD(multidims);
1071  READ_LOCATION_FIELD(location);
1072 
1073  READ_DONE();
1074 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readBitmapAnd()

static BitmapAnd* _readBitmapAnd ( void  )
static

Definition at line 1774 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

1775 {
1777 
1778  ReadCommonPlan(&local_node->plan);
1779 
1780  READ_NODE_FIELD(bitmapplans);
1781 
1782  READ_DONE();
1783 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readBitmapHeapScan()

static BitmapHeapScan* _readBitmapHeapScan ( void  )
static

Definition at line 1918 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1919 {
1921 
1922  ReadCommonScan(&local_node->scan);
1923 
1924  READ_NODE_FIELD(bitmapqualorig);
1925 
1926  READ_DONE();
1927 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readBitmapIndexScan()

static BitmapIndexScan* _readBitmapIndexScan ( void  )
static

Definition at line 1900 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1901 {
1903 
1904  ReadCommonScan(&local_node->scan);
1905 
1906  READ_OID_FIELD(indexid);
1907  READ_BOOL_FIELD(isshared);
1908  READ_NODE_FIELD(indexqual);
1909  READ_NODE_FIELD(indexqualorig);
1910 
1911  READ_DONE();
1912 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readBitmapOr()

static BitmapOr* _readBitmapOr ( void  )
static

Definition at line 1789 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

1790 {
1792 
1793  ReadCommonPlan(&local_node->plan);
1794 
1795  READ_BOOL_FIELD(isshared);
1796  READ_NODE_FIELD(bitmapplans);
1797 
1798  READ_DONE();
1799 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readBitmapset()

static Bitmapset* _readBitmapset ( void  )
static

Definition at line 197 of file readfuncs.c.

References bms_add_member(), elog, ERROR, pg_strtok(), READ_TEMP_LOCALS, and val.

Referenced by readBitmapset().

198 {
199  Bitmapset *result = NULL;
200 
202 
203  token = pg_strtok(&length);
204  if (token == NULL)
205  elog(ERROR, "incomplete Bitmapset structure");
206  if (length != 1 || token[0] != '(')
207  elog(ERROR, "unrecognized token: \"%.*s\"", length, token);
208 
209  token = pg_strtok(&length);
210  if (token == NULL)
211  elog(ERROR, "incomplete Bitmapset structure");
212  if (length != 1 || token[0] != 'b')
213  elog(ERROR, "unrecognized token: \"%.*s\"", length, token);
214 
215  for (;;)
216  {
217  int val;
218  char *endptr;
219 
220  token = pg_strtok(&length);
221  if (token == NULL)
222  elog(ERROR, "unterminated Bitmapset structure");
223  if (length == 1 && token[0] == ')')
224  break;
225  val = (int) strtol(token, &endptr, 10);
226  if (endptr != token + length)
227  elog(ERROR, "unrecognized integer: \"%.*s\"", length, token);
228  result = bms_add_member(result, val);
229  }
230 
231  return result;
232 }
#define ERROR
Definition: elog.h:46
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:58
Bitmapset * bms_add_member(Bitmapset *a, int x)
Definition: bitmapset.c:736
#define elog(elevel,...)
Definition: elog.h:232
const char * pg_strtok(int *length)
Definition: read.c:152
long val
Definition: informix.c:664

◆ _readBooleanTest()

static BooleanTest* _readBooleanTest ( void  )
static

Definition at line 1202 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

1203 {
1205 
1207  READ_ENUM_FIELD(booltesttype, BoolTestType);
1208  READ_LOCATION_FIELD(location);
1209 
1210  READ_DONE();
1211 }
BoolTestType
Definition: primnodes.h:1280
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
void * arg
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readBoolExpr()

static BoolExpr* _readBoolExpr ( void  )
static

Definition at line 848 of file readfuncs.c.

References AND_EXPR, generate_unaccent_rules::args, elog, ERROR, NOT_EXPR, OR_EXPR, pg_strtok(), READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

849 {
851 
852  /* do-it-yourself enum representation */
853  token = pg_strtok(&length); /* skip :boolop */
854  token = pg_strtok(&length); /* get field value */
855  if (strncmp(token, "and", 3) == 0)
856  local_node->boolop = AND_EXPR;
857  else if (strncmp(token, "or", 2) == 0)
858  local_node->boolop = OR_EXPR;
859  else if (strncmp(token, "not", 3) == 0)
860  local_node->boolop = NOT_EXPR;
861  else
862  elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
863 
865  READ_LOCATION_FIELD(location);
866 
867  READ_DONE();
868 }
#define ERROR
Definition: elog.h:46
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define elog(elevel,...)
Definition: elog.h:232
const char * pg_strtok(int *length)
Definition: read.c:152
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readCaseExpr()

static CaseExpr* _readCaseExpr ( void  )
static

Definition at line 1014 of file readfuncs.c.

References arg, generate_unaccent_rules::args, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1015 {
1017 
1018  READ_OID_FIELD(casetype);
1019  READ_OID_FIELD(casecollid);
1022  READ_NODE_FIELD(defresult);
1023  READ_LOCATION_FIELD(location);
1024 
1025  READ_DONE();
1026 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readCaseTestExpr()

static CaseTestExpr* _readCaseTestExpr ( void  )
static

Definition at line 1047 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

1048 {
1050 
1051  READ_OID_FIELD(typeId);
1052  READ_INT_FIELD(typeMod);
1053  READ_OID_FIELD(collation);
1054 
1055  READ_DONE();
1056 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readCaseWhen()

static CaseWhen* _readCaseWhen ( void  )
static

Definition at line 1032 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

1033 {
1035 
1036  READ_NODE_FIELD(expr);
1037  READ_NODE_FIELD(result);
1038  READ_LOCATION_FIELD(location);
1039 
1040  READ_DONE();
1041 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readCoalesceExpr()

static CoalesceExpr* _readCoalesceExpr ( void  )
static

Definition at line 1115 of file readfuncs.c.

References generate_unaccent_rules::args, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1116 {
1118 
1119  READ_OID_FIELD(coalescetype);
1120  READ_OID_FIELD(coalescecollid);
1122  READ_LOCATION_FIELD(location);
1123 
1124  READ_DONE();
1125 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readCoerceToDomain()

static CoerceToDomain* _readCoerceToDomain ( void  )
static

Definition at line 1217 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1218 {
1220 
1222  READ_OID_FIELD(resulttype);
1223  READ_INT_FIELD(resulttypmod);
1224  READ_OID_FIELD(resultcollid);
1225  READ_ENUM_FIELD(coercionformat, CoercionForm);
1226  READ_LOCATION_FIELD(location);
1227 
1228  READ_DONE();
1229 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
CoercionForm
Definition: primnodes.h:481

◆ _readCoerceToDomainValue()

static CoerceToDomainValue* _readCoerceToDomainValue ( void  )
static

Definition at line 1235 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1236 {
1238 
1239  READ_OID_FIELD(typeId);
1240  READ_INT_FIELD(typeMod);
1241  READ_OID_FIELD(collation);
1242  READ_LOCATION_FIELD(location);
1243 
1244  READ_DONE();
1245 }
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readCoerceViaIO()

static CoerceViaIO* _readCoerceViaIO ( void  )
static

Definition at line 947 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

948 {
950 
952  READ_OID_FIELD(resulttype);
953  READ_OID_FIELD(resultcollid);
954  READ_ENUM_FIELD(coerceformat, CoercionForm);
955  READ_LOCATION_FIELD(location);
956 
957  READ_DONE();
958 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175
CoercionForm
Definition: primnodes.h:481

◆ _readCollateExpr()

static CollateExpr* _readCollateExpr ( void  )
static

Definition at line 999 of file readfuncs.c.

References arg, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1000 {
1002 
1004  READ_OID_FIELD(collOid);
1005  READ_LOCATION_FIELD(location);
1006 
1007  READ_DONE();
1008 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readCommonTableExpr()

static CommonTableExpr* _readCommonTableExpr ( void  )
static

Definition at line 456 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

457 {
459 
460  READ_STRING_FIELD(ctename);
461  READ_NODE_FIELD(aliascolnames);
462  READ_ENUM_FIELD(ctematerialized, CTEMaterialize);
463  READ_NODE_FIELD(ctequery);
464  READ_NODE_FIELD(search_clause);
465  READ_NODE_FIELD(cycle_clause);
466  READ_LOCATION_FIELD(location);
467  READ_BOOL_FIELD(cterecursive);
468  READ_INT_FIELD(cterefcount);
469  READ_NODE_FIELD(ctecolnames);
470  READ_NODE_FIELD(ctecoltypes);
471  READ_NODE_FIELD(ctecoltypmods);
472  READ_NODE_FIELD(ctecolcollations);
473 
474  READ_DONE();
475 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
CTEMaterialize
Definition: parsenodes.h:1465
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readConst()

static Const* _readConst ( void  )
static

Definition at line 597 of file readfuncs.c.

References pg_strtok(), READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_OID_FIELD, and readDatum().

Referenced by parseNodeString().

598 {
600 
601  READ_OID_FIELD(consttype);
602  READ_INT_FIELD(consttypmod);
603  READ_OID_FIELD(constcollid);
604  READ_INT_FIELD(constlen);
605  READ_BOOL_FIELD(constbyval);
606  READ_BOOL_FIELD(constisnull);
607  READ_LOCATION_FIELD(location);
608 
609  token = pg_strtok(&length); /* skip :constvalue */
610  if (local_node->constisnull)
611  token = pg_strtok(&length); /* skip "<>" */
612  else
613  local_node->constvalue = readDatum(local_node->constbyval);
614 
615  READ_DONE();
616 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
Datum readDatum(bool typbyval)
Definition: readfuncs.c:2994
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
const char * pg_strtok(int *length)
Definition: read.c:152
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readConvertRowtypeExpr()

static ConvertRowtypeExpr* _readConvertRowtypeExpr ( void  )
static

Definition at line 983 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

984 {
986 
988  READ_OID_FIELD(resulttype);
989  READ_ENUM_FIELD(convertformat, CoercionForm);
990  READ_LOCATION_FIELD(location);
991 
992  READ_DONE();
993 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175
CoercionForm
Definition: primnodes.h:481

◆ _readCTECycleClause()

static CTECycleClause* _readCTECycleClause ( void  )
static

Definition at line 434 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, READ_OID_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

435 {
437 
438  READ_NODE_FIELD(cycle_col_list);
439  READ_STRING_FIELD(cycle_mark_column);
440  READ_NODE_FIELD(cycle_mark_value);
441  READ_NODE_FIELD(cycle_mark_default);
442  READ_STRING_FIELD(cycle_path_column);
443  READ_LOCATION_FIELD(location);
444  READ_OID_FIELD(cycle_mark_type);
445  READ_INT_FIELD(cycle_mark_typmod);
446  READ_OID_FIELD(cycle_mark_collation);
447  READ_OID_FIELD(cycle_mark_neop);
448 
449  READ_DONE();
450 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readCteScan()

static CteScan* _readCteScan ( void  )
static

Definition at line 2024 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and ReadCommonScan().

Referenced by parseNodeString().

2025 {
2027 
2028  ReadCommonScan(&local_node->scan);
2029 
2030  READ_INT_FIELD(ctePlanId);
2031  READ_INT_FIELD(cteParam);
2032 
2033  READ_DONE();
2034 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readCTESearchClause()

static CTESearchClause* _readCTESearchClause ( void  )
static

Definition at line 418 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

419 {
421 
422  READ_NODE_FIELD(search_col_list);
423  READ_BOOL_FIELD(search_breadth_first);
424  READ_STRING_FIELD(search_seq_column);
425  READ_LOCATION_FIELD(location);
426 
427  READ_DONE();
428 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readCurrentOfExpr()

static CurrentOfExpr* _readCurrentOfExpr ( void  )
static

Definition at line 1267 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_STRING_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

1268 {
1270 
1271  READ_UINT_FIELD(cvarno);
1272  READ_STRING_FIELD(cursor_name);
1273  READ_INT_FIELD(cursor_param);
1274 
1275  READ_DONE();
1276 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readCustomScan()

static CustomScan* _readCustomScan ( void  )
static

Definition at line 2093 of file readfuncs.c.

References GetCustomScanMethods(), nullable_string, pg_strtok(), READ_BITMAPSET_FIELD, READ_DONE, READ_LOCALS, READ_NODE_FIELD, READ_UINT_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

2094 {
2096  char *custom_name;
2097  const CustomScanMethods *methods;
2098 
2099  ReadCommonScan(&local_node->scan);
2100 
2101  READ_UINT_FIELD(flags);
2102  READ_NODE_FIELD(custom_plans);
2103  READ_NODE_FIELD(custom_exprs);
2104  READ_NODE_FIELD(custom_private);
2105  READ_NODE_FIELD(custom_scan_tlist);
2106  READ_BITMAPSET_FIELD(custom_relids);
2107 
2108  /* Lookup CustomScanMethods by CustomName */
2109  token = pg_strtok(&length); /* skip methods: */
2110  token = pg_strtok(&length); /* CustomName */
2111  custom_name = nullable_string(token, length);
2112  methods = GetCustomScanMethods(custom_name, false);
2113  local_node->methods = methods;
2114 
2115  READ_DONE();
2116 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
const char * pg_strtok(int *length)
Definition: read.c:152
#define READ_DONE()
Definition: readfuncs.c:175
const CustomScanMethods * GetCustomScanMethods(const char *CustomName, bool missing_ok)
Definition: extensible.c:137
#define nullable_string(token, length)
Definition: readfuncs.c:189

◆ _readDeclareCursorStmt()

static DeclareCursorStmt* _readDeclareCursorStmt ( void  )
static

Definition at line 312 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

313 {
315 
316  READ_STRING_FIELD(portalname);
318  READ_NODE_FIELD(query);
319 
320  READ_DONE();
321 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readDefElem()

static DefElem* _readDefElem ( void  )
static

Definition at line 1557 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

1558 {
1560 
1561  READ_STRING_FIELD(defnamespace);
1562  READ_STRING_FIELD(defname);
1564  READ_ENUM_FIELD(defaction, DefElemAction);
1565  READ_LOCATION_FIELD(location);
1566 
1567  READ_DONE();
1568 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
DefElemAction
Definition: parsenodes.h:734
void * arg
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readDistinctExpr()

static DistinctExpr* _readDistinctExpr ( void  )
static

Definition at line 788 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

789 {
791 
792  READ_OID_FIELD(opno);
793  READ_OID_FIELD(opfuncid);
794  READ_OID_FIELD(opresulttype);
795  READ_BOOL_FIELD(opretset);
796  READ_OID_FIELD(opcollid);
797  READ_OID_FIELD(inputcollid);
799  READ_LOCATION_FIELD(location);
800 
801  READ_DONE();
802 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readExtensibleNode()

static ExtensibleNode* _readExtensibleNode ( void  )
static

Definition at line 2644 of file readfuncs.c.

References elog, ERROR, ExtensibleNode::extnodename, GetExtensibleNodeMethods(), newNode, ExtensibleNodeMethods::node_size, ExtensibleNodeMethods::nodeRead, nullable_string, pg_strtok(), READ_DONE, READ_TEMP_LOCALS, and T_ExtensibleNode.

Referenced by parseNodeString().

2645 {
2646  const ExtensibleNodeMethods *methods;
2647  ExtensibleNode *local_node;
2648  const char *extnodename;
2649 
2650  READ_TEMP_LOCALS();
2651 
2652  token = pg_strtok(&length); /* skip :extnodename */
2653  token = pg_strtok(&length); /* get extnodename */
2654 
2655  extnodename = nullable_string(token, length);
2656  if (!extnodename)
2657  elog(ERROR, "extnodename has to be supplied");
2658  methods = GetExtensibleNodeMethods(extnodename, false);
2659 
2660  local_node = (ExtensibleNode *) newNode(methods->node_size,
2662  local_node->extnodename = extnodename;
2663 
2664  /* deserialize the private fields */
2665  methods->nodeRead(local_node);
2666 
2667  READ_DONE();
2668 }
#define newNode(size, tag)
Definition: nodes.h:577
#define ERROR
Definition: elog.h:46
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:58
const char * extnodename
Definition: extensible.h:35
void(* nodeRead)(struct ExtensibleNode *node)
Definition: extensible.h:70
#define elog(elevel,...)
Definition: elog.h:232
const char * pg_strtok(int *length)
Definition: read.c:152
#define READ_DONE()
Definition: readfuncs.c:175
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125
#define nullable_string(token, length)
Definition: readfuncs.c:189

◆ _readFieldSelect()

static FieldSelect* _readFieldSelect ( void  )
static

Definition at line 896 of file readfuncs.c.

References arg, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

897 {
899 
901  READ_INT_FIELD(fieldnum);
902  READ_OID_FIELD(resulttype);
903  READ_INT_FIELD(resulttypmod);
904  READ_OID_FIELD(resultcollid);
905 
906  READ_DONE();
907 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readFieldStore()

static FieldStore* _readFieldStore ( void  )
static

Definition at line 913 of file readfuncs.c.

References arg, READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

914 {
916 
918  READ_NODE_FIELD(newvals);
919  READ_NODE_FIELD(fieldnums);
920  READ_OID_FIELD(resulttype);
921 
922  READ_DONE();
923 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readForeignScan()

static ForeignScan* _readForeignScan ( void  )
static

Definition at line 2070 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, READ_UINT_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

2071 {
2073 
2074  ReadCommonScan(&local_node->scan);
2075 
2076  READ_ENUM_FIELD(operation, CmdType);
2077  READ_UINT_FIELD(resultRelation);
2078  READ_OID_FIELD(fs_server);
2079  READ_NODE_FIELD(fdw_exprs);
2080  READ_NODE_FIELD(fdw_private);
2081  READ_NODE_FIELD(fdw_scan_tlist);
2082  READ_NODE_FIELD(fdw_recheck_quals);
2083  READ_BITMAPSET_FIELD(fs_relids);
2084  READ_BOOL_FIELD(fsSystemCol);
2085 
2086  READ_DONE();
2087 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
CmdType
Definition: nodes.h:682

◆ _readFromExpr()

static FromExpr* _readFromExpr ( void  )
static

Definition at line 1364 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1365 {
1367 
1368  READ_NODE_FIELD(fromlist);
1369  READ_NODE_FIELD(quals);
1370 
1371  READ_DONE();
1372 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readFuncExpr()

static FuncExpr* _readFuncExpr ( void  )
static

Definition at line 731 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

732 {
734 
735  READ_OID_FIELD(funcid);
736  READ_OID_FIELD(funcresulttype);
737  READ_BOOL_FIELD(funcretset);
738  READ_BOOL_FIELD(funcvariadic);
739  READ_ENUM_FIELD(funcformat, CoercionForm);
740  READ_OID_FIELD(funccollid);
741  READ_OID_FIELD(inputcollid);
743  READ_LOCATION_FIELD(location);
744 
745  READ_DONE();
746 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
CoercionForm
Definition: primnodes.h:481

◆ _readFunctionScan()

static FunctionScan* _readFunctionScan ( void  )
static

Definition at line 1978 of file readfuncs.c.

References functions, READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1979 {
1981 
1982  ReadCommonScan(&local_node->scan);
1983 
1985  READ_BOOL_FIELD(funcordinality);
1986 
1987  READ_DONE();
1988 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
static const struct fns functions
Definition: regcomp.c:313
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readGather()

static Gather* _readGather ( void  )
static

Definition at line 2380 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, and ReadCommonPlan().

Referenced by parseNodeString().

2381 {
2383 
2384  ReadCommonPlan(&local_node->plan);
2385 
2386  READ_INT_FIELD(num_workers);
2387  READ_INT_FIELD(rescan_param);
2388  READ_BOOL_FIELD(single_copy);
2389  READ_BOOL_FIELD(invisible);
2390  READ_BITMAPSET_FIELD(initParam);
2391 
2392  READ_DONE();
2393 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readGatherMerge()

static GatherMerge* _readGatherMerge ( void  )
static

Definition at line 2399 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_BITMAPSET_FIELD, READ_BOOL_ARRAY, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

2400 {
2402 
2403  ReadCommonPlan(&local_node->plan);
2404 
2405  READ_INT_FIELD(num_workers);
2406  READ_INT_FIELD(rescan_param);
2407  READ_INT_FIELD(numCols);
2408  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2409  READ_OID_ARRAY(sortOperators, local_node->numCols);
2410  READ_OID_ARRAY(collations, local_node->numCols);
2411  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2412  READ_BITMAPSET_FIELD(initParam);
2413 
2414  READ_DONE();
2415 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:170
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readGroup()

static Group* _readGroup ( void  )
static

Definition at line 2288 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

2289 {
2290  READ_LOCALS(Group);
2291 
2292  ReadCommonPlan(&local_node->plan);
2293 
2294  READ_INT_FIELD(numCols);
2295  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2296  READ_OID_ARRAY(grpOperators, local_node->numCols);
2297  READ_OID_ARRAY(grpCollations, local_node->numCols);
2298 
2299  READ_DONE();
2300 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readGroupingFunc()

static GroupingFunc* _readGroupingFunc ( void  )
static

Definition at line 671 of file readfuncs.c.

References generate_unaccent_rules::args, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

672 {
674 
676  READ_NODE_FIELD(refs);
677  READ_NODE_FIELD(cols);
678  READ_UINT_FIELD(agglevelsup);
679  READ_LOCATION_FIELD(location);
680 
681  READ_DONE();
682 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readGroupingSet()

static GroupingSet* _readGroupingSet ( void  )
static

Definition at line 361 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

362 {
364 
366  READ_NODE_FIELD(content);
367  READ_LOCATION_FIELD(location);
368 
369  READ_DONE();
370 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
GroupingSetKind
Definition: parsenodes.h:1340
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readHash()

static Hash* _readHash ( void  )
static

Definition at line 2421 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_FLOAT_FIELD, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

2422 {
2423  READ_LOCALS(Hash);
2424 
2425  ReadCommonPlan(&local_node->plan);
2426 
2427  READ_NODE_FIELD(hashkeys);
2428  READ_OID_FIELD(skewTable);
2429  READ_INT_FIELD(skewColumn);
2430  READ_BOOL_FIELD(skewInherit);
2431  READ_FLOAT_FIELD(rows_total);
2432 
2433  READ_DONE();
2434 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:111
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readHashJoin()

static HashJoin* _readHashJoin ( void  )
static

Definition at line 2191 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonJoin().

Referenced by parseNodeString().

2192 {
2194 
2195  ReadCommonJoin(&local_node->join);
2196 
2197  READ_NODE_FIELD(hashclauses);
2198  READ_NODE_FIELD(hashoperators);
2199  READ_NODE_FIELD(hashcollations);
2200  READ_NODE_FIELD(hashkeys);
2201 
2202  READ_DONE();
2203 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:2123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readIncrementalSort()

static IncrementalSort* _readIncrementalSort ( void  )
static

Definition at line 2273 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and ReadCommonSort().

Referenced by parseNodeString().

2274 {
2276 
2277  ReadCommonSort(&local_node->sort);
2278 
2279  READ_INT_FIELD(nPresortedCols);
2280 
2281  READ_DONE();
2282 }
static void ReadCommonSort(Sort *local_node)
Definition: readfuncs.c:2243
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readIndexOnlyScan()

static IndexOnlyScan* _readIndexOnlyScan ( void  )
static

Definition at line 1881 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1882 {
1884 
1885  ReadCommonScan(&local_node->scan);
1886 
1887  READ_OID_FIELD(indexid);
1888  READ_NODE_FIELD(indexqual);
1889  READ_NODE_FIELD(indexorderby);
1890  READ_NODE_FIELD(indextlist);
1891  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1892 
1893  READ_DONE();
1894 }
ScanDirection
Definition: sdir.h:22
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readIndexScan()

static IndexScan* _readIndexScan ( void  )
static

Definition at line 1860 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1861 {
1863 
1864  ReadCommonScan(&local_node->scan);
1865 
1866  READ_OID_FIELD(indexid);
1867  READ_NODE_FIELD(indexqual);
1868  READ_NODE_FIELD(indexqualorig);
1869  READ_NODE_FIELD(indexorderby);
1870  READ_NODE_FIELD(indexorderbyorig);
1871  READ_NODE_FIELD(indexorderbyops);
1872  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1873 
1874  READ_DONE();
1875 }
ScanDirection
Definition: sdir.h:22
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readInferenceElem()

static InferenceElem* _readInferenceElem ( void  )
static

Definition at line 1296 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1297 {
1299 
1300  READ_NODE_FIELD(expr);
1301  READ_OID_FIELD(infercollid);
1302  READ_OID_FIELD(inferopclass);
1303 
1304  READ_DONE();
1305 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readIntoClause()

static IntoClause* _readIntoClause ( void  )
static

Definition at line 556 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

557 {
559 
560  READ_NODE_FIELD(rel);
561  READ_NODE_FIELD(colNames);
562  READ_STRING_FIELD(accessMethod);
564  READ_ENUM_FIELD(onCommit, OnCommitAction);
565  READ_STRING_FIELD(tableSpaceName);
566  READ_NODE_FIELD(viewQuery);
567  READ_BOOL_FIELD(skipData);
568 
569  READ_DONE();
570 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
OnCommitAction
Definition: primnodes.h:47
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readJoin()

static Join* _readJoin ( void  )
static

Definition at line 2138 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonJoin().

Referenced by parseNodeString().

2139 {
2141 
2142  ReadCommonJoin(local_node);
2143 
2144  READ_DONE();
2145 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:2123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readJoinExpr()

static JoinExpr* _readJoinExpr ( void  )
static

Definition at line 1343 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1344 {
1346 
1347  READ_ENUM_FIELD(jointype, JoinType);
1348  READ_BOOL_FIELD(isNatural);
1349  READ_NODE_FIELD(larg);
1350  READ_NODE_FIELD(rarg);
1351  READ_NODE_FIELD(usingClause);
1352  READ_NODE_FIELD(join_using_alias);
1353  READ_NODE_FIELD(quals);
1354  READ_NODE_FIELD(alias);
1355  READ_INT_FIELD(rtindex);
1356 
1357  READ_DONE();
1358 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
JoinType
Definition: nodes.h:706
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readLimit()

static Limit* _readLimit ( void  )
static

Definition at line 2479 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

2480 {
2481  READ_LOCALS(Limit);
2482 
2483  ReadCommonPlan(&local_node->plan);
2484 
2485  READ_NODE_FIELD(limitOffset);
2486  READ_NODE_FIELD(limitCount);
2487  READ_ENUM_FIELD(limitOption, LimitOption);
2488  READ_INT_FIELD(uniqNumCols);
2489  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->uniqNumCols);
2490  READ_OID_ARRAY(uniqOperators, local_node->uniqNumCols);
2491  READ_OID_ARRAY(uniqCollations, local_node->uniqNumCols);
2492 
2493  READ_DONE();
2494 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
LimitOption
Definition: nodes.h:845
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readLockRows()

static LockRows* _readLockRows ( void  )
static

Definition at line 2463 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

2464 {
2466 
2467  ReadCommonPlan(&local_node->plan);
2468 
2469  READ_NODE_FIELD(rowMarks);
2470  READ_INT_FIELD(epqParam);
2471 
2472  READ_DONE();
2473 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readMaterial()

static Material* _readMaterial ( void  )
static

Definition at line 2209 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

2210 {
2212 
2213  ReadCommonPlan(&local_node->plan);
2214 
2215  READ_DONE();
2216 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readMemoize()

static Memoize* _readMemoize ( void  )
static

Definition at line 2222 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_ARRAY, READ_UINT_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

2223 {
2225 
2226  ReadCommonPlan(&local_node->plan);
2227 
2228  READ_INT_FIELD(numKeys);
2229  READ_OID_ARRAY(hashOperators, local_node->numKeys);
2230  READ_OID_ARRAY(collations, local_node->numKeys);
2231  READ_NODE_FIELD(param_exprs);
2232  READ_BOOL_FIELD(singlerow);
2233  READ_UINT_FIELD(est_entries);
2234 
2235  READ_DONE();
2236 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readMergeAppend()

static MergeAppend* _readMergeAppend ( void  )
static

Definition at line 1732 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_BITMAPSET_FIELD, READ_BOOL_ARRAY, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

1733 {
1735 
1736  ReadCommonPlan(&local_node->plan);
1737 
1738  READ_BITMAPSET_FIELD(apprelids);
1739  READ_NODE_FIELD(mergeplans);
1740  READ_INT_FIELD(numCols);
1741  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
1742  READ_OID_ARRAY(sortOperators, local_node->numCols);
1743  READ_OID_ARRAY(collations, local_node->numCols);
1744  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
1745  READ_NODE_FIELD(part_prune_info);
1746 
1747  READ_DONE();
1748 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:170
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readMergeJoin()

static MergeJoin* _readMergeJoin ( void  )
static

Definition at line 2166 of file readfuncs.c.

References list_length(), READ_BOOL_ARRAY, READ_BOOL_FIELD, READ_DONE, READ_INT_ARRAY, READ_LOCALS, READ_NODE_FIELD, READ_OID_ARRAY, and ReadCommonJoin().

Referenced by parseNodeString().

2167 {
2168  int numCols;
2169 
2171 
2172  ReadCommonJoin(&local_node->join);
2173 
2174  READ_BOOL_FIELD(skip_mark_restore);
2175  READ_NODE_FIELD(mergeclauses);
2176 
2177  numCols = list_length(local_node->mergeclauses);
2178 
2179  READ_OID_ARRAY(mergeFamilies, numCols);
2180  READ_OID_ARRAY(mergeCollations, numCols);
2181  READ_INT_ARRAY(mergeStrategies, numCols);
2182  READ_BOOL_ARRAY(mergeNullsFirst, numCols);
2183 
2184  READ_DONE();
2185 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:170
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:2123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
static int list_length(const List *l)
Definition: pg_list.h:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_ARRAY(fldname, len)
Definition: readfuncs.c:165

◆ _readMinMaxExpr()

static MinMaxExpr* _readMinMaxExpr ( void  )
static

Definition at line 1131 of file readfuncs.c.

References generate_unaccent_rules::args, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1132 {
1134 
1135  READ_OID_FIELD(minmaxtype);
1136  READ_OID_FIELD(minmaxcollid);
1137  READ_OID_FIELD(inputcollid);
1140  READ_LOCATION_FIELD(location);
1141 
1142  READ_DONE();
1143 }
MinMaxOp
Definition: primnodes.h:1139
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readModifyTable()

static ModifyTable* _readModifyTable ( void  )
static

Definition at line 1679 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_UINT_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

1680 {
1682 
1683  ReadCommonPlan(&local_node->plan);
1684 
1685  READ_ENUM_FIELD(operation, CmdType);
1686  READ_BOOL_FIELD(canSetTag);
1687  READ_UINT_FIELD(nominalRelation);
1688  READ_UINT_FIELD(rootRelation);
1689  READ_BOOL_FIELD(partColsUpdated);
1690  READ_NODE_FIELD(resultRelations);
1691  READ_NODE_FIELD(updateColnosLists);
1692  READ_NODE_FIELD(withCheckOptionLists);
1693  READ_NODE_FIELD(returningLists);
1694  READ_NODE_FIELD(fdwPrivLists);
1695  READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
1696  READ_NODE_FIELD(rowMarks);
1697  READ_INT_FIELD(epqParam);
1698  READ_ENUM_FIELD(onConflictAction, OnConflictAction);
1699  READ_NODE_FIELD(arbiterIndexes);
1700  READ_NODE_FIELD(onConflictSet);
1701  READ_NODE_FIELD(onConflictCols);
1702  READ_NODE_FIELD(onConflictWhere);
1703  READ_UINT_FIELD(exclRelRTI);
1704  READ_NODE_FIELD(exclRelTlist);
1705 
1706  READ_DONE();
1707 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
OnConflictAction
Definition: nodes.h:832
CmdType
Definition: nodes.h:682

◆ _readNamedArgExpr()

static NamedArgExpr* _readNamedArgExpr ( void  )
static

Definition at line 752 of file readfuncs.c.

References arg, name, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

753 {
755 
758  READ_INT_FIELD(argnumber);
759  READ_LOCATION_FIELD(location);
760 
761  READ_DONE();
762 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
const char * name
Definition: encode.c:515
void * arg
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readNamedTuplestoreScan()

static NamedTuplestoreScan* _readNamedTuplestoreScan ( void  )
static

Definition at line 2040 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_STRING_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

2041 {
2043 
2044  ReadCommonScan(&local_node->scan);
2045 
2046  READ_STRING_FIELD(enrname);
2047 
2048  READ_DONE();
2049 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readNestLoop()

static NestLoop* _readNestLoop ( void  )
static

Definition at line 2151 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonJoin().

Referenced by parseNodeString().

2152 {
2154 
2155  ReadCommonJoin(&local_node->join);
2156 
2157  READ_NODE_FIELD(nestParams);
2158 
2159  READ_DONE();
2160 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:2123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readNestLoopParam()

static NestLoopParam* _readNestLoopParam ( void  )
static

Definition at line 2500 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2501 {
2503 
2504  READ_INT_FIELD(paramno);
2505  READ_NODE_FIELD(paramval);
2506 
2507  READ_DONE();
2508 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readNextValueExpr()

static NextValueExpr* _readNextValueExpr ( void  )
static

Definition at line 1282 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

1283 {
1285 
1286  READ_OID_FIELD(seqid);
1287  READ_OID_FIELD(typeId);
1288 
1289  READ_DONE();
1290 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readNotifyStmt()

static NotifyStmt* _readNotifyStmt ( void  )
static

Definition at line 298 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_STRING_FIELD.

Referenced by parseNodeString().

299 {
301 
302  READ_STRING_FIELD(conditionname);
303  READ_STRING_FIELD(payload);
304 
305  READ_DONE();
306 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readNullIfExpr()

static NullIfExpr* _readNullIfExpr ( void  )
static

Definition at line 808 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

809 {
811 
812  READ_OID_FIELD(opno);
813  READ_OID_FIELD(opfuncid);
814  READ_OID_FIELD(opresulttype);
815  READ_BOOL_FIELD(opretset);
816  READ_OID_FIELD(opcollid);
817  READ_OID_FIELD(inputcollid);
819  READ_LOCATION_FIELD(location);
820 
821  READ_DONE();
822 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readNullTest()

static NullTest* _readNullTest ( void  )
static

Definition at line 1186 of file readfuncs.c.

References arg, READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

1187 {
1189 
1191  READ_ENUM_FIELD(nulltesttype, NullTestType);
1192  READ_BOOL_FIELD(argisrow);
1193  READ_LOCATION_FIELD(location);
1194 
1195  READ_DONE();
1196 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
NullTestType
Definition: primnodes.h:1257
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
void * arg
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readOnConflictExpr()

static OnConflictExpr* _readOnConflictExpr ( void  )
static

Definition at line 1378 of file readfuncs.c.

References generate_unaccent_rules::action, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1379 {
1381 
1383  READ_NODE_FIELD(arbiterElems);
1384  READ_NODE_FIELD(arbiterWhere);
1385  READ_OID_FIELD(constraint);
1386  READ_NODE_FIELD(onConflictSet);
1387  READ_NODE_FIELD(onConflictWhere);
1388  READ_INT_FIELD(exclRelIndex);
1389  READ_NODE_FIELD(exclRelTlist);
1390 
1391  READ_DONE();
1392 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
OnConflictAction
Definition: nodes.h:832

◆ _readOpExpr()

static OpExpr* _readOpExpr ( void  )
static

Definition at line 768 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

769 {
771 
772  READ_OID_FIELD(opno);
773  READ_OID_FIELD(opfuncid);
774  READ_OID_FIELD(opresulttype);
775  READ_BOOL_FIELD(opretset);
776  READ_OID_FIELD(opcollid);
777  READ_OID_FIELD(inputcollid);
779  READ_LOCATION_FIELD(location);
780 
781  READ_DONE();
782 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readParam()

static Param* _readParam ( void  )
static

Definition at line 622 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

623 {
625 
626  READ_ENUM_FIELD(paramkind, ParamKind);
627  READ_INT_FIELD(paramid);
628  READ_OID_FIELD(paramtype);
629  READ_INT_FIELD(paramtypmod);
630  READ_OID_FIELD(paramcollid);
631  READ_LOCATION_FIELD(location);
632 
633  READ_DONE();
634 }
ParamKind
Definition: primnodes.h:256
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readPartitionBoundSpec()

static PartitionBoundSpec* _readPartitionBoundSpec ( void  )
static

Definition at line 2674 of file readfuncs.c.

References READ_BOOL_FIELD, READ_CHAR_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

2675 {
2677 
2678  READ_CHAR_FIELD(strategy);
2679  READ_BOOL_FIELD(is_default);
2680  READ_INT_FIELD(modulus);
2681  READ_INT_FIELD(remainder);
2682  READ_NODE_FIELD(listdatums);
2683  READ_NODE_FIELD(lowerdatums);
2684  READ_NODE_FIELD(upperdatums);
2685  READ_LOCATION_FIELD(location);
2686 
2687  READ_DONE();
2688 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:98
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readPartitionedRelPruneInfo()

static PartitionedRelPruneInfo* _readPartitionedRelPruneInfo ( void  )
static

Definition at line 2542 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_INT_ARRAY, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_ARRAY, and READ_UINT_FIELD.

Referenced by parseNodeString().

2543 {
2545 
2546  READ_UINT_FIELD(rtindex);
2547  READ_BITMAPSET_FIELD(present_parts);
2548  READ_INT_FIELD(nparts);
2549  READ_INT_ARRAY(subplan_map, local_node->nparts);
2550  READ_INT_ARRAY(subpart_map, local_node->nparts);
2551  READ_OID_ARRAY(relid_map, local_node->nparts);
2552  READ_NODE_FIELD(initial_pruning_steps);
2553  READ_NODE_FIELD(exec_pruning_steps);
2554  READ_BITMAPSET_FIELD(execparamids);
2555 
2556  READ_DONE();
2557 }
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_INT_ARRAY(fldname, len)
Definition: readfuncs.c:165

◆ _readPartitionPruneInfo()

static PartitionPruneInfo* _readPartitionPruneInfo ( void  )
static

Definition at line 2531 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2532 {
2534 
2535  READ_NODE_FIELD(prune_infos);
2536  READ_BITMAPSET_FIELD(other_subplans);
2537 
2538  READ_DONE();
2539 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readPartitionPruneStepCombine()

static PartitionPruneStepCombine* _readPartitionPruneStepCombine ( void  )
static

Definition at line 2574 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2575 {
2577 
2578  READ_INT_FIELD(step.step_id);
2580  READ_NODE_FIELD(source_stepids);
2581 
2582  READ_DONE();
2583 }
PartitionPruneCombineOp
Definition: plannodes.h:1260
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readPartitionPruneStepOp()

static PartitionPruneStepOp* _readPartitionPruneStepOp ( void  )
static

Definition at line 2560 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2561 {
2563 
2564  READ_INT_FIELD(step.step_id);
2565  READ_INT_FIELD(opstrategy);
2566  READ_NODE_FIELD(exprs);
2567  READ_NODE_FIELD(cmpfns);
2568  READ_BITMAPSET_FIELD(nullkeys);
2569 
2570  READ_DONE();
2571 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readPartitionRangeDatum()

static PartitionRangeDatum* _readPartitionRangeDatum ( void  )
static

Definition at line 2694 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and value.

Referenced by parseNodeString().

2695 {
2697 
2700  READ_LOCATION_FIELD(location);
2701 
2702  READ_DONE();
2703 }
PartitionRangeDatumKind
Definition: parsenodes.h:850
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
static struct @143 value
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readPlan()

static Plan* _readPlan ( void  )
static

Definition at line 1638 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1639 {
1641 
1642  ReadCommonPlan(local_node);
1643 
1644  READ_DONE();
1645 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readPlanInvalItem()

static PlanInvalItem* _readPlanInvalItem ( void  )
static

Definition at line 2589 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

2590 {
2592 
2593  READ_INT_FIELD(cacheId);
2594  READ_UINT_FIELD(hashValue);
2595 
2596  READ_DONE();
2597 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readPlannedStmt()

static PlannedStmt* _readPlannedStmt ( void  )
static

Definition at line 1578 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_UINT64_FIELD.

Referenced by parseNodeString().

1579 {
1581 
1582  READ_ENUM_FIELD(commandType, CmdType);
1583  READ_UINT64_FIELD(queryId);
1584  READ_BOOL_FIELD(hasReturning);
1585  READ_BOOL_FIELD(hasModifyingCTE);
1586  READ_BOOL_FIELD(canSetTag);
1587  READ_BOOL_FIELD(transientPlan);
1588  READ_BOOL_FIELD(dependsOnRole);
1589  READ_BOOL_FIELD(parallelModeNeeded);
1590  READ_INT_FIELD(jitFlags);
1591  READ_NODE_FIELD(planTree);
1592  READ_NODE_FIELD(rtable);
1593  READ_NODE_FIELD(resultRelations);
1594  READ_NODE_FIELD(appendRelations);
1595  READ_NODE_FIELD(subplans);
1596  READ_BITMAPSET_FIELD(rewindPlanIDs);
1597  READ_NODE_FIELD(rowMarks);
1598  READ_NODE_FIELD(relationOids);
1599  READ_NODE_FIELD(invalItems);
1600  READ_NODE_FIELD(paramExecTypes);
1601  READ_NODE_FIELD(utilityStmt);
1602  READ_LOCATION_FIELD(stmt_location);
1603  READ_INT_FIELD(stmt_len);
1604 
1605  READ_DONE();
1606 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_UINT64_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
CmdType
Definition: nodes.h:682

◆ _readPlanRowMark()

static PlanRowMark* _readPlanRowMark ( void  )
static

Definition at line 2514 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

2515 {
2517 
2518  READ_UINT_FIELD(rti);
2519  READ_UINT_FIELD(prti);
2520  READ_UINT_FIELD(rowmarkId);
2521  READ_ENUM_FIELD(markType, RowMarkType);
2522  READ_INT_FIELD(allMarkTypes);
2524  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2525  READ_BOOL_FIELD(isParent);
2526 
2527  READ_DONE();
2528 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
LockClauseStrength
Definition: lockoptions.h:21
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
RowMarkType
Definition: plannodes.h:1064
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
LockWaitPolicy
Definition: lockoptions.h:36

◆ _readProjectSet()

static ProjectSet* _readProjectSet ( void  )
static

Definition at line 1666 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1667 {
1669 
1670  ReadCommonPlan(&local_node->plan);
1671 
1672  READ_DONE();
1673 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readQuery()

static Query* _readQuery ( void  )
static

Definition at line 247 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

248 {
250 
251  READ_ENUM_FIELD(commandType, CmdType);
252  READ_ENUM_FIELD(querySource, QuerySource);
253  local_node->queryId = UINT64CONST(0); /* not saved in output format */
254  READ_BOOL_FIELD(canSetTag);
255  READ_NODE_FIELD(utilityStmt);
256  READ_INT_FIELD(resultRelation);
257  READ_BOOL_FIELD(hasAggs);
258  READ_BOOL_FIELD(hasWindowFuncs);
259  READ_BOOL_FIELD(hasTargetSRFs);
260  READ_BOOL_FIELD(hasSubLinks);
261  READ_BOOL_FIELD(hasDistinctOn);
262  READ_BOOL_FIELD(hasRecursive);
263  READ_BOOL_FIELD(hasModifyingCTE);
264  READ_BOOL_FIELD(hasForUpdate);
265  READ_BOOL_FIELD(hasRowSecurity);
266  READ_BOOL_FIELD(isReturn);
267  READ_NODE_FIELD(cteList);
268  READ_NODE_FIELD(rtable);
269  READ_NODE_FIELD(jointree);
270  READ_NODE_FIELD(targetList);
271  READ_ENUM_FIELD(override, OverridingKind);
272  READ_NODE_FIELD(onConflict);
273  READ_NODE_FIELD(returningList);
274  READ_NODE_FIELD(groupClause);
275  READ_BOOL_FIELD(groupDistinct);
276  READ_NODE_FIELD(groupingSets);
277  READ_NODE_FIELD(havingQual);
278  READ_NODE_FIELD(windowClause);
279  READ_NODE_FIELD(distinctClause);
280  READ_NODE_FIELD(sortClause);
281  READ_NODE_FIELD(limitOffset);
282  READ_NODE_FIELD(limitCount);
283  READ_ENUM_FIELD(limitOption, LimitOption);
284  READ_NODE_FIELD(rowMarks);
285  READ_NODE_FIELD(setOperations);
286  READ_NODE_FIELD(constraintDeps);
287  READ_NODE_FIELD(withCheckOptions);
288  READ_LOCATION_FIELD(stmt_location);
289  READ_INT_FIELD(stmt_len);
290 
291  READ_DONE();
292 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
QuerySource
Definition: parsenodes.h:40
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
LimitOption
Definition: nodes.h:845
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
CmdType
Definition: nodes.h:682
OverridingKind
Definition: parsenodes.h:32

◆ _readRangeTblEntry()

static RangeTblEntry* _readRangeTblEntry ( void  )
static

Definition at line 1429 of file readfuncs.c.

References TableFunc::colcollations, TableFunc::coltypes, TableFunc::coltypmods, elog, ERROR, functions, READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_CHAR_FIELD, READ_DONE, READ_ENUM_FIELD, READ_FLOAT_FIELD, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, READ_STRING_FIELD, READ_UINT_FIELD, RTE_CTE, RTE_FUNCTION, RTE_JOIN, RTE_NAMEDTUPLESTORE, RTE_RELATION, RTE_RESULT, RTE_SUBQUERY, RTE_TABLEFUNC, and RTE_VALUES.

Referenced by parseNodeString().

1430 {
1432 
1433  /* put alias + eref first to make dump more legible */
1434  READ_NODE_FIELD(alias);
1435  READ_NODE_FIELD(eref);
1436  READ_ENUM_FIELD(rtekind, RTEKind);
1437 
1438  switch (local_node->rtekind)
1439  {
1440  case RTE_RELATION:
1441  READ_OID_FIELD(relid);
1442  READ_CHAR_FIELD(relkind);
1443  READ_INT_FIELD(rellockmode);
1444  READ_NODE_FIELD(tablesample);
1445  break;
1446  case RTE_SUBQUERY:
1447  READ_NODE_FIELD(subquery);
1448  READ_BOOL_FIELD(security_barrier);
1449  break;
1450  case RTE_JOIN:
1451  READ_ENUM_FIELD(jointype, JoinType);
1452  READ_INT_FIELD(joinmergedcols);
1453  READ_NODE_FIELD(joinaliasvars);
1454  READ_NODE_FIELD(joinleftcols);
1455  READ_NODE_FIELD(joinrightcols);
1456  READ_NODE_FIELD(join_using_alias);
1457  break;
1458  case RTE_FUNCTION:
1460  READ_BOOL_FIELD(funcordinality);
1461  break;
1462  case RTE_TABLEFUNC:
1463  READ_NODE_FIELD(tablefunc);
1464  /* The RTE must have a copy of the column type info, if any */
1465  if (local_node->tablefunc)
1466  {
1467  TableFunc *tf = local_node->tablefunc;
1468 
1469  local_node->coltypes = tf->coltypes;
1470  local_node->coltypmods = tf->coltypmods;
1471  local_node->colcollations = tf->colcollations;
1472  }
1473  break;
1474  case RTE_VALUES:
1475  READ_NODE_FIELD(values_lists);
1476  READ_NODE_FIELD(coltypes);
1477  READ_NODE_FIELD(coltypmods);
1478  READ_NODE_FIELD(colcollations);
1479  break;
1480  case RTE_CTE:
1481  READ_STRING_FIELD(ctename);
1482  READ_UINT_FIELD(ctelevelsup);
1483  READ_BOOL_FIELD(self_reference);
1484  READ_NODE_FIELD(coltypes);
1485  READ_NODE_FIELD(coltypmods);
1486  READ_NODE_FIELD(colcollations);
1487  break;
1488  case RTE_NAMEDTUPLESTORE:
1489  READ_STRING_FIELD(enrname);
1490  READ_FLOAT_FIELD(enrtuples);
1491  READ_OID_FIELD(relid);
1492  READ_NODE_FIELD(coltypes);
1493  READ_NODE_FIELD(coltypmods);
1494  READ_NODE_FIELD(colcollations);
1495  break;
1496  case RTE_RESULT:
1497  /* no extra fields */
1498  break;
1499  default:
1500  elog(ERROR, "unrecognized RTE kind: %d",
1501  (int) local_node->rtekind);
1502  break;
1503  }
1504 
1505  READ_BOOL_FIELD(lateral);
1506  READ_BOOL_FIELD(inh);
1507  READ_BOOL_FIELD(inFromCl);
1508  READ_UINT_FIELD(requiredPerms);
1509  READ_OID_FIELD(checkAsUser);
1510  READ_BITMAPSET_FIELD(selectedCols);
1511  READ_BITMAPSET_FIELD(insertedCols);
1512  READ_BITMAPSET_FIELD(updatedCols);
1513  READ_BITMAPSET_FIELD(extraUpdatedCols);
1514  READ_NODE_FIELD(securityQuals);
1515 
1516  READ_DONE();
1517 }
List * coltypmods
Definition: primnodes.h:91
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
List * colcollations
Definition: primnodes.h:92
JoinType
Definition: nodes.h:706
#define ERROR
Definition: elog.h:46
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:111
RTEKind
Definition: parsenodes.h:976
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:98
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
List * coltypes
Definition: primnodes.h:90
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
static const struct fns functions
Definition: regcomp.c:313
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define elog(elevel,...)
Definition: elog.h:232
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readRangeTblFunction()

static RangeTblFunction* _readRangeTblFunction ( void  )
static

Definition at line 1523 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1524 {
1526 
1527  READ_NODE_FIELD(funcexpr);
1528  READ_INT_FIELD(funccolcount);
1529  READ_NODE_FIELD(funccolnames);
1530  READ_NODE_FIELD(funccoltypes);
1531  READ_NODE_FIELD(funccoltypmods);
1532  READ_NODE_FIELD(funccolcollations);
1533  READ_BITMAPSET_FIELD(funcparams);
1534 
1535  READ_DONE();
1536 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readRangeTblRef()

static RangeTblRef* _readRangeTblRef ( void  )
static

Definition at line 1330 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, and READ_LOCALS.

Referenced by parseNodeString().

1331 {
1333 
1334  READ_INT_FIELD(rtindex);
1335 
1336  READ_DONE();
1337 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readRangeVar()

static RangeVar* _readRangeVar ( void  )
static

Definition at line 514 of file readfuncs.c.

References READ_BOOL_FIELD, READ_CHAR_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, READ_STRING_FIELD, and relname.

Referenced by parseNodeString().

515 {
517 
518  local_node->catalogname = NULL; /* not currently saved in output format */
519 
520  READ_STRING_FIELD(schemaname);
522  READ_BOOL_FIELD(inh);
523  READ_CHAR_FIELD(relpersistence);
524  READ_NODE_FIELD(alias);
525  READ_LOCATION_FIELD(location);
526 
527  READ_DONE();
528 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
NameData relname
Definition: pg_class.h:38
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:98
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readRecursiveUnion()

static RecursiveUnion* _readRecursiveUnion ( void  )
static

Definition at line 1754 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LONG_FIELD, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

1755 {
1757 
1758  ReadCommonPlan(&local_node->plan);
1759 
1760  READ_INT_FIELD(wtParam);
1761  READ_INT_FIELD(numCols);
1762  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
1763  READ_OID_ARRAY(dupOperators, local_node->numCols);
1764  READ_OID_ARRAY(dupCollations, local_node->numCols);
1765  READ_LONG_FIELD(numGroups);
1766 
1767  READ_DONE();
1768 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:86
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readRelabelType()

static RelabelType* _readRelabelType ( void  )
static

Definition at line 929 of file readfuncs.c.

References arg, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

930 {
932 
934  READ_OID_FIELD(resulttype);
935  READ_INT_FIELD(resulttypmod);
936  READ_OID_FIELD(resultcollid);
937  READ_ENUM_FIELD(relabelformat, CoercionForm);
938  READ_LOCATION_FIELD(location);
939 
940  READ_DONE();
941 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
void * arg
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
CoercionForm
Definition: primnodes.h:481

◆ _readResult()

static Result* _readResult ( void  )
static

Definition at line 1651 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

1652 {
1654 
1655  ReadCommonPlan(&local_node->plan);
1656 
1657  READ_NODE_FIELD(resconstantqual);
1658 
1659  READ_DONE();
1660 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readRowCompareExpr()

static RowCompareExpr* _readRowCompareExpr ( void  )
static

Definition at line 1097 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1098 {
1100 
1102  READ_NODE_FIELD(opnos);
1103  READ_NODE_FIELD(opfamilies);
1104  READ_NODE_FIELD(inputcollids);
1105  READ_NODE_FIELD(largs);
1106  READ_NODE_FIELD(rargs);
1107 
1108  READ_DONE();
1109 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
RowCompareType
Definition: primnodes.h:1102
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readRowExpr()

static RowExpr* _readRowExpr ( void  )
static

Definition at line 1080 of file readfuncs.c.

References generate_unaccent_rules::args, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1081 {
1083 
1085  READ_OID_FIELD(row_typeid);
1086  READ_ENUM_FIELD(row_format, CoercionForm);
1087  READ_NODE_FIELD(colnames);
1088  READ_LOCATION_FIELD(location);
1089 
1090  READ_DONE();
1091 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
CoercionForm
Definition: primnodes.h:481

◆ _readRowMarkClause()

static RowMarkClause* _readRowMarkClause ( void  )
static

Definition at line 402 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

403 {
405 
406  READ_UINT_FIELD(rti);
408  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
409  READ_BOOL_FIELD(pushedDown);
410 
411  READ_DONE();
412 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
LockClauseStrength
Definition: lockoptions.h:21
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
LockWaitPolicy
Definition: lockoptions.h:36

◆ _readSampleScan()

static SampleScan* _readSampleScan ( void  )
static

Definition at line 1845 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1846 {
1848 
1849  ReadCommonScan(&local_node->scan);
1850 
1851  READ_NODE_FIELD(tablesample);
1852 
1853  READ_DONE();
1854 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readScalarArrayOpExpr()

static ScalarArrayOpExpr* _readScalarArrayOpExpr ( void  )
static

Definition at line 828 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

829 {
831 
832  READ_OID_FIELD(opno);
833  READ_OID_FIELD(opfuncid);
834  READ_OID_FIELD(hashfuncid);
835  READ_OID_FIELD(negfuncid);
836  READ_BOOL_FIELD(useOr);
837  READ_OID_FIELD(inputcollid);
839  READ_LOCATION_FIELD(location);
840 
841  READ_DONE();
842 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readScan()

static Scan* _readScan ( void  )
static

Definition at line 1819 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1820 {
1822 
1823  ReadCommonScan(local_node);
1824 
1825  READ_DONE();
1826 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readSeqScan()

static SeqScan* _readSeqScan ( void  )
static

Definition at line 1832 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1833 {
1835 
1836  ReadCommonScan(local_node);
1837 
1838  READ_DONE();
1839 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readSetOp()

static SetOp* _readSetOp ( void  )
static

Definition at line 2440 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LONG_FIELD, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

2441 {
2442  READ_LOCALS(SetOp);
2443 
2444  ReadCommonPlan(&local_node->plan);
2445 
2446  READ_ENUM_FIELD(cmd, SetOpCmd);
2447  READ_ENUM_FIELD(strategy, SetOpStrategy);
2448  READ_INT_FIELD(numCols);
2449  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
2450  READ_OID_ARRAY(dupOperators, local_node->numCols);
2451  READ_OID_ARRAY(dupCollations, local_node->numCols);
2452  READ_INT_FIELD(flagColIdx);
2453  READ_INT_FIELD(firstFlag);
2454  READ_LONG_FIELD(numGroups);
2455 
2456  READ_DONE();
2457 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:86
SetOpStrategy
Definition: nodes.h:820
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
SetOpCmd
Definition: nodes.h:812
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readSetOperationStmt()

static SetOperationStmt* _readSetOperationStmt ( void  )
static

Definition at line 481 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

482 {
484 
486  READ_BOOL_FIELD(all);
487  READ_NODE_FIELD(larg);
488  READ_NODE_FIELD(rarg);
489  READ_NODE_FIELD(colTypes);
490  READ_NODE_FIELD(colTypmods);
491  READ_NODE_FIELD(colCollations);
492  READ_NODE_FIELD(groupClauses);
493 
494  READ_DONE();
495 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
SetOperation
Definition: parsenodes.h:1631
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readSetToDefault()

static SetToDefault* _readSetToDefault ( void  )
static

Definition at line 1251 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1252 {
1254 
1255  READ_OID_FIELD(typeId);
1256  READ_INT_FIELD(typeMod);
1257  READ_OID_FIELD(collation);
1258  READ_LOCATION_FIELD(location);
1259 
1260  READ_DONE();
1261 }
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readSort()

static Sort* _readSort ( void  )
static

Definition at line 2260 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonSort().

Referenced by parseNodeString().

2261 {
2263 
2264  ReadCommonSort(local_node);
2265 
2266  READ_DONE();
2267 }
static void ReadCommonSort(Sort *local_node)
Definition: readfuncs.c:2243
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readSortGroupClause()

static SortGroupClause* _readSortGroupClause ( void  )
static

Definition at line 344 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_OID_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

345 {
347 
348  READ_UINT_FIELD(tleSortGroupRef);
349  READ_OID_FIELD(eqop);
350  READ_OID_FIELD(sortop);
351  READ_BOOL_FIELD(nulls_first);
352  READ_BOOL_FIELD(hashable);
353 
354  READ_DONE();
355 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readSQLValueFunction()

static SQLValueFunction* _readSQLValueFunction ( void  )
static

Definition at line 1149 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_OID_FIELD, and generate_unaccent_rules::type.

Referenced by parseNodeString().

1150 {
1152 
1155  READ_INT_FIELD(typmod);
1156  READ_LOCATION_FIELD(location);
1157 
1158  READ_DONE();
1159 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
SQLValueFunctionOp
Definition: primnodes.h:1167
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readSubLink()

static SubLink* _readSubLink ( void  )
static

Definition at line 874 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

875 {
877 
878  READ_ENUM_FIELD(subLinkType, SubLinkType);
879  READ_INT_FIELD(subLinkId);
880  READ_NODE_FIELD(testexpr);
881  READ_NODE_FIELD(operName);
882  READ_NODE_FIELD(subselect);
883  READ_LOCATION_FIELD(location);
884 
885  READ_DONE();
886 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
SubLinkType
Definition: primnodes.h:681
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readSubPlan()

static SubPlan* _readSubPlan ( void  )
static

Definition at line 2603 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_FLOAT_FIELD, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

2604 {
2606 
2607  READ_ENUM_FIELD(subLinkType, SubLinkType);
2608  READ_NODE_FIELD(testexpr);
2609  READ_NODE_FIELD(paramIds);
2610  READ_INT_FIELD(plan_id);
2611  READ_STRING_FIELD(plan_name);
2612  READ_OID_FIELD(firstColType);
2613  READ_INT_FIELD(firstColTypmod);
2614  READ_OID_FIELD(firstColCollation);
2615  READ_BOOL_FIELD(useHashTable);
2616  READ_BOOL_FIELD(unknownEqFalse);
2617  READ_BOOL_FIELD(parallel_safe);
2618  READ_NODE_FIELD(setParam);
2619  READ_NODE_FIELD(parParam);
2621  READ_FLOAT_FIELD(startup_cost);
2622  READ_FLOAT_FIELD(per_call_cost);
2623 
2624  READ_DONE();
2625 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:111
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
SubLinkType
Definition: primnodes.h:681
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readSubqueryScan()

static SubqueryScan* _readSubqueryScan ( void  )
static

Definition at line 1963 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1964 {
1966 
1967  ReadCommonScan(&local_node->scan);
1968 
1969  READ_NODE_FIELD(subplan);
1970 
1971  READ_DONE();
1972 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readSubscriptingRef()

static SubscriptingRef* _readSubscriptingRef ( void  )
static

Definition at line 710 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

711 {
713 
714  READ_OID_FIELD(refcontainertype);
715  READ_OID_FIELD(refelemtype);
716  READ_OID_FIELD(refrestype);
717  READ_INT_FIELD(reftypmod);
718  READ_OID_FIELD(refcollid);
719  READ_NODE_FIELD(refupperindexpr);
720  READ_NODE_FIELD(reflowerindexpr);
721  READ_NODE_FIELD(refexpr);
722  READ_NODE_FIELD(refassgnexpr);
723 
724  READ_DONE();
725 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readTableFunc()

static TableFunc* _readTableFunc ( void  )
static

Definition at line 534 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

535 {
537 
538  READ_NODE_FIELD(ns_uris);
539  READ_NODE_FIELD(ns_names);
540  READ_NODE_FIELD(docexpr);
541  READ_NODE_FIELD(rowexpr);
542  READ_NODE_FIELD(colnames);
543  READ_NODE_FIELD(coltypes);
544  READ_NODE_FIELD(coltypmods);
545  READ_NODE_FIELD(colcollations);
546  READ_NODE_FIELD(colexprs);
547  READ_NODE_FIELD(coldefexprs);
548  READ_BITMAPSET_FIELD(notnulls);
549  READ_INT_FIELD(ordinalitycol);
550  READ_LOCATION_FIELD(location);
551 
552  READ_DONE();
553 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:149
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readTableFuncScan()

static TableFuncScan* _readTableFuncScan ( void  )
static

Definition at line 2009 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

2010 {
2012 
2013  ReadCommonScan(&local_node->scan);
2014 
2015  READ_NODE_FIELD(tablefunc);
2016 
2017  READ_DONE();
2018 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readTableSampleClause()

static TableSampleClause* _readTableSampleClause ( void  )
static

Definition at line 1542 of file readfuncs.c.

References generate_unaccent_rules::args, READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1543 {
1545 
1546  READ_OID_FIELD(tsmhandler);
1548  READ_NODE_FIELD(repeatable);
1549 
1550  READ_DONE();
1551 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readTargetEntry()

static TargetEntry* _readTargetEntry ( void  )
static

Definition at line 1311 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, READ_STRING_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

1312 {
1314 
1315  READ_NODE_FIELD(expr);
1316  READ_INT_FIELD(resno);
1317  READ_STRING_FIELD(resname);
1318  READ_UINT_FIELD(ressortgroupref);
1319  READ_OID_FIELD(resorigtbl);
1320  READ_INT_FIELD(resorigcol);
1321  READ_BOOL_FIELD(resjunk);
1322 
1323  READ_DONE();
1324 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readTidRangeScan()

static TidRangeScan* _readTidRangeScan ( void  )
static

Definition at line 1948 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1949 {
1951 
1952  ReadCommonScan(&local_node->scan);
1953 
1954  READ_NODE_FIELD(tidrangequals);
1955 
1956  READ_DONE();
1957 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readTidScan()

static TidScan* _readTidScan ( void  )
static

Definition at line 1933 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1934 {
1936 
1937  ReadCommonScan(&local_node->scan);
1938 
1939  READ_NODE_FIELD(tidquals);
1940 
1941  READ_DONE();
1942 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readUnique()

static Unique* _readUnique ( void  )
static

Definition at line 2362 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_OID_ARRAY, and ReadCommonPlan().

Referenced by parseNodeString().

2363 {
2365 
2366  ReadCommonPlan(&local_node->plan);
2367 
2368  READ_INT_FIELD(numCols);
2369  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
2370  READ_OID_ARRAY(uniqOperators, local_node->numCols);
2371  READ_OID_ARRAY(uniqCollations, local_node->numCols);
2372 
2373  READ_DONE();
2374 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readValuesScan()

static ValuesScan* _readValuesScan ( void  )
static

Definition at line 1994 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

1995 {
1997 
1998  ReadCommonScan(&local_node->scan);
1999 
2000  READ_NODE_FIELD(values_lists);
2001 
2002  READ_DONE();
2003 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readVar()

static Var* _readVar ( void  )
static

Definition at line 576 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_OID_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

577 {
578  READ_LOCALS(Var);
579 
580  READ_UINT_FIELD(varno);
581  READ_INT_FIELD(varattno);
582  READ_OID_FIELD(vartype);
583  READ_INT_FIELD(vartypmod);
584  READ_OID_FIELD(varcollid);
585  READ_UINT_FIELD(varlevelsup);
586  READ_UINT_FIELD(varnosyn);
587  READ_INT_FIELD(varattnosyn);
588  READ_LOCATION_FIELD(location);
589 
590  READ_DONE();
591 }
Definition: primnodes.h:186
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readWindowAgg()

static WindowAgg* _readWindowAgg ( void  )
static

Definition at line 2331 of file readfuncs.c.

References READ_ATTRNUMBER_ARRAY, READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_ARRAY, READ_OID_FIELD, READ_UINT_FIELD, and ReadCommonPlan().

Referenced by parseNodeString().

2332 {
2334 
2335  ReadCommonPlan(&local_node->plan);
2336 
2337  READ_UINT_FIELD(winref);
2338  READ_INT_FIELD(partNumCols);
2339  READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
2340  READ_OID_ARRAY(partOperators, local_node->partNumCols);
2341  READ_OID_ARRAY(partCollations, local_node->partNumCols);
2342  READ_INT_FIELD(ordNumCols);
2343  READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
2344  READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
2345  READ_OID_ARRAY(ordCollations, local_node->ordNumCols);
2346  READ_INT_FIELD(frameOptions);
2347  READ_NODE_FIELD(startOffset);
2348  READ_NODE_FIELD(endOffset);
2349  READ_OID_FIELD(startInRangeFunc);
2350  READ_OID_FIELD(endInRangeFunc);
2351  READ_OID_FIELD(inRangeColl);
2352  READ_BOOL_FIELD(inRangeAsc);
2353  READ_BOOL_FIELD(inRangeNullsFirst);
2354 
2355  READ_DONE();
2356 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1613
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:160
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:155

◆ _readWindowClause()

static WindowClause* _readWindowClause ( void  )
static

Definition at line 376 of file readfuncs.c.

References name, READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_OID_FIELD, READ_STRING_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

377 {
379 
381  READ_STRING_FIELD(refname);
382  READ_NODE_FIELD(partitionClause);
383  READ_NODE_FIELD(orderClause);
384  READ_INT_FIELD(frameOptions);
385  READ_NODE_FIELD(startOffset);
386  READ_NODE_FIELD(endOffset);
387  READ_OID_FIELD(startInRangeFunc);
388  READ_OID_FIELD(endInRangeFunc);
389  READ_OID_FIELD(inRangeColl);
390  READ_BOOL_FIELD(inRangeAsc);
391  READ_BOOL_FIELD(inRangeNullsFirst);
392  READ_UINT_FIELD(winref);
393  READ_BOOL_FIELD(copiedOrder);
394 
395  READ_DONE();
396 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
const char * name
Definition: encode.c:515
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readWindowFunc()

static WindowFunc* _readWindowFunc ( void  )
static

Definition at line 688 of file readfuncs.c.

References generate_unaccent_rules::args, READ_BOOL_FIELD, READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, READ_OID_FIELD, and READ_UINT_FIELD.

Referenced by parseNodeString().

689 {
691 
692  READ_OID_FIELD(winfnoid);
693  READ_OID_FIELD(wintype);
694  READ_OID_FIELD(wincollid);
695  READ_OID_FIELD(inputcollid);
697  READ_NODE_FIELD(aggfilter);
698  READ_UINT_FIELD(winref);
699  READ_BOOL_FIELD(winstar);
700  READ_BOOL_FIELD(winagg);
701  READ_LOCATION_FIELD(location);
702 
703  READ_DONE();
704 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:74
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readWithCheckOption()

static WithCheckOption* _readWithCheckOption ( void  )
static

Definition at line 327 of file readfuncs.c.

References READ_BOOL_FIELD, READ_DONE, READ_ENUM_FIELD, READ_LOCALS, READ_NODE_FIELD, READ_STRING_FIELD, and relname.

Referenced by parseNodeString().

328 {
330 
331  READ_ENUM_FIELD(kind, WCOKind);
333  READ_STRING_FIELD(polname);
334  READ_NODE_FIELD(qual);
335  READ_BOOL_FIELD(cascaded);
336 
337  READ_DONE();
338 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
NameData relname
Definition: pg_class.h:38
WCOKind
Definition: parsenodes.h:1204
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readWorkTableScan()

static WorkTableScan* _readWorkTableScan ( void  )
static

Definition at line 2055 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and ReadCommonScan().

Referenced by parseNodeString().

2056 {
2058 
2059  ReadCommonScan(&local_node->scan);
2060 
2061  READ_INT_FIELD(wtParam);
2062 
2063  READ_DONE();
2064 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1806
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ _readXmlExpr()

static XmlExpr* _readXmlExpr ( void  )
static

Definition at line 1165 of file readfuncs.c.

References generate_unaccent_rules::args, name, READ_DONE, READ_ENUM_FIELD, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, READ_OID_FIELD, READ_STRING_FIELD, generate_unaccent_rules::type, and xmloption.

Referenced by parseNodeString().

1166 {
1168 
1171  READ_NODE_FIELD(named_args);
1172  READ_NODE_FIELD(arg_names);
1176  READ_INT_FIELD(typmod);
1177  READ_LOCATION_FIELD(location);
1178 
1179  READ_DONE();
1180 }
XmlExprOp
Definition: primnodes.h:1206
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:135
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
XmlOptionType
Definition: primnodes.h:1218
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:92
const char * name
Definition: encode.c:515
int xmloption
Definition: xml.c:98
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_DONE()
Definition: readfuncs.c:175
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68

◆ parseNodeString()

Node* parseNodeString ( void  )

Definition at line 2714 of file readfuncs.c.

References _readAgg(), _readAggref(), _readAlias(), _readAlternativeSubPlan(), _readAppend(), _readAppendRelInfo(), _readArrayCoerceExpr(), _readArrayExpr(), _readBitmapAnd(), _readBitmapHeapScan(), _readBitmapIndexScan(), _readBitmapOr(), _readBooleanTest(), _readBoolExpr(), _readCaseExpr(), _readCaseTestExpr(), _readCaseWhen(), _readCoalesceExpr(), _readCoerceToDomain(), _readCoerceToDomainValue(), _readCoerceViaIO(), _readCollateExpr(), _readCommonTableExpr(), _readConst(), _readConvertRowtypeExpr(), _readCTECycleClause(), _readCteScan(), _readCTESearchClause(), _readCurrentOfExpr(), _readCustomScan(), _readDeclareCursorStmt(), _readDefElem(), _readDistinctExpr(), _readExtensibleNode(), _readFieldSelect(), _readFieldStore(), _readForeignScan(), _readFromExpr(), _readFuncExpr(), _readFunctionScan(), _readGather(), _readGatherMerge(), _readGroup(), _readGroupingFunc(), _readGroupingSet(), _readHash(), _readHashJoin(), _readIncrementalSort(), _readIndexOnlyScan(), _readIndexScan(), _readInferenceElem(), _readIntoClause(), _readJoin(), _readJoinExpr(), _readLimit(), _readLockRows(), _readMaterial(), _readMemoize(), _readMergeAppend(), _readMergeJoin(), _readMinMaxExpr(), _readModifyTable(), _readNamedArgExpr(), _readNamedTuplestoreScan(), _readNestLoop(), _readNestLoopParam(), _readNextValueExpr(), _readNotifyStmt(), _readNullIfExpr(), _readNullTest(), _readOnConflictExpr(), _readOpExpr(), _readParam(), _readPartitionBoundSpec(), _readPartitionedRelPruneInfo(), _readPartitionPruneInfo(), _readPartitionPruneStepCombine(), _readPartitionPruneStepOp(), _readPartitionRangeDatum(), _readPlan(), _readPlanInvalItem(), _readPlannedStmt(), _readPlanRowMark(), _readProjectSet(), _readQuery(), _readRangeTblEntry(), _readRangeTblFunction(), _readRangeTblRef(), _readRangeVar(), _readRecursiveUnion(), _readRelabelType(), _readResult(), _readRowCompareExpr(), _readRowExpr(), _readRowMarkClause(), _readSampleScan(), _readScalarArrayOpExpr(), _readScan(), _readSeqScan(), _readSetOp(), _readSetOperationStmt(), _readSetToDefault(), _readSort(), _readSortGroupClause(), _readSQLValueFunction(), _readSubLink(), _readSubPlan(), _readSubqueryScan(), _readSubscriptingRef(), _readTableFunc(), _readTableFuncScan(), _readTableSampleClause(), _readTargetEntry(), _readTidRangeScan(), _readTidScan(), _readUnique(), _readValuesScan(), _readVar(), _readWindowAgg(), _readWindowClause(), _readWindowFunc(), _readWithCheckOption(), _readWorkTableScan(), _readXmlExpr(), check_stack_depth(), elog, ERROR, MATCH, pg_strtok(), and READ_TEMP_LOCALS.

Referenced by nodeRead().

2715 {
2716  void *return_value;
2717 
2718  READ_TEMP_LOCALS();
2719 
2720  /* Guard against stack overflow due to overly complex expressions */
2722 
2723  token = pg_strtok(&length);
2724 
2725 #define MATCH(tokname, namelen) \
2726  (length == namelen && memcmp(token, tokname, namelen) == 0)
2727 
2728  if (MATCH("QUERY", 5))
2729  return_value = _readQuery();
2730  else if (MATCH("WITHCHECKOPTION", 15))
2731  return_value = _readWithCheckOption();
2732  else if (MATCH("SORTGROUPCLAUSE", 15))
2733  return_value = _readSortGroupClause();
2734  else if (MATCH("GROUPINGSET", 11))
2735  return_value = _readGroupingSet();
2736  else if (MATCH("WINDOWCLAUSE", 12))
2737  return_value = _readWindowClause();
2738  else if (MATCH("ROWMARKCLAUSE", 13))
2739  return_value = _readRowMarkClause();
2740  else if (MATCH("CTESEARCHCLAUSE", 15))
2741  return_value = _readCTESearchClause();
2742  else if (MATCH("CTECYCLECLAUSE", 14))
2743  return_value = _readCTECycleClause();
2744  else if (MATCH("COMMONTABLEEXPR", 15))
2745  return_value = _readCommonTableExpr();
2746  else if (MATCH("SETOPERATIONSTMT", 16))
2747  return_value = _readSetOperationStmt();
2748  else if (MATCH("ALIAS", 5))
2749  return_value = _readAlias();
2750  else if (MATCH("RANGEVAR", 8))
2751  return_value = _readRangeVar();
2752  else if (MATCH("INTOCLAUSE", 10))
2753  return_value = _readIntoClause();
2754  else if (MATCH("TABLEFUNC", 9))
2755  return_value = _readTableFunc();
2756  else if (MATCH("VAR", 3))
2757  return_value = _readVar();
2758  else if (MATCH("CONST", 5))
2759  return_value = _readConst();
2760  else if (MATCH("PARAM", 5))
2761  return_value = _readParam();
2762  else if (MATCH("AGGREF", 6))
2763  return_value = _readAggref();
2764  else if (MATCH("GROUPINGFUNC", 12))
2765  return_value = _readGroupingFunc();
2766  else if (MATCH("WINDOWFUNC", 10))
2767  return_value = _readWindowFunc();
2768  else if (MATCH("SUBSCRIPTINGREF", 15))
2769  return_value = _readSubscriptingRef();
2770  else if (MATCH("FUNCEXPR", 8))
2771  return_value = _readFuncExpr();
2772  else if (MATCH("NAMEDARGEXPR", 12))
2773  return_value = _readNamedArgExpr();
2774  else if (MATCH("OPEXPR", 6))
2775  return_value = _readOpExpr();
2776  else if (MATCH("DISTINCTEXPR", 12))
2777  return_value = _readDistinctExpr();
2778  else if (MATCH("NULLIFEXPR", 10))
2779  return_value = _readNullIfExpr();
2780  else if (MATCH("SCALARARRAYOPEXPR", 17))
2781  return_value = _readScalarArrayOpExpr();
2782  else if (MATCH("BOOLEXPR", 8))
2783  return_value = _readBoolExpr();
2784  else if (MATCH("SUBLINK", 7))
2785  return_value = _readSubLink();
2786  else if (MATCH("FIELDSELECT", 11))
2787  return_value = _readFieldSelect();
2788  else if (MATCH("FIELDSTORE", 10))
2789  return_value = _readFieldStore();
2790  else if (MATCH("RELABELTYPE", 11))
2791  return_value = _readRelabelType();
2792  else if (MATCH("COERCEVIAIO", 11))
2793  return_value = _readCoerceViaIO();
2794  else if (MATCH("ARRAYCOERCEEXPR", 15))
2795  return_value = _readArrayCoerceExpr();
2796  else if (MATCH("CONVERTROWTYPEEXPR", 18))
2797  return_value = _readConvertRowtypeExpr();
2798  else if (MATCH("COLLATE", 7))
2799  return_value = _readCollateExpr();
2800  else if (MATCH("CASE", 4))
2801  return_value = _readCaseExpr();
2802  else if (MATCH("WHEN", 4))
2803  return_value = _readCaseWhen();
2804  else if (MATCH("CASETESTEXPR", 12))
2805  return_value = _readCaseTestExpr();
2806  else if (MATCH("ARRAY", 5))
2807  return_value = _readArrayExpr();
2808  else if (MATCH("ROW", 3))
2809  return_value = _readRowExpr();
2810  else if (MATCH("ROWCOMPARE", 10))
2811  return_value = _readRowCompareExpr();
2812  else if (MATCH("COALESCE", 8))
2813  return_value = _readCoalesceExpr();
2814  else if (MATCH("MINMAX", 6))
2815  return_value = _readMinMaxExpr();
2816  else if (MATCH("SQLVALUEFUNCTION", 16))
2817  return_value = _readSQLValueFunction();
2818  else if (MATCH("XMLEXPR", 7))
2819  return_value = _readXmlExpr();
2820  else if (MATCH("NULLTEST", 8))
2821  return_value = _readNullTest();
2822  else if (MATCH("BOOLEANTEST", 11))
2823  return_value = _readBooleanTest();
2824  else if (MATCH("COERCETODOMAIN", 14))
2825  return_value = _readCoerceToDomain();
2826  else if (MATCH("COERCETODOMAINVALUE", 19))
2827  return_value = _readCoerceToDomainValue();
2828  else if (MATCH("SETTODEFAULT", 12))
2829  return_value = _readSetToDefault();
2830  else if (MATCH("CURRENTOFEXPR", 13))
2831  return_value = _readCurrentOfExpr();
2832  else if (MATCH("NEXTVALUEEXPR", 13))
2833  return_value = _readNextValueExpr();
2834  else if (MATCH("INFERENCEELEM", 13))
2835  return_value = _readInferenceElem();
2836  else if (MATCH("TARGETENTRY", 11))
2837  return_value = _readTargetEntry();
2838  else if (MATCH("RANGETBLREF", 11))
2839  return_value = _readRangeTblRef();
2840  else if (MATCH("JOINEXPR", 8))
2841  return_value = _readJoinExpr();
2842  else if (MATCH("FROMEXPR", 8))
2843  return_value = _readFromExpr();
2844  else if (MATCH("ONCONFLICTEXPR", 14))
2845  return_value = _readOnConflictExpr();
2846  else if (MATCH("APPENDRELINFO", 13))
2847  return_value = _readAppendRelInfo();
2848  else if (MATCH("RTE", 3))
2849  return_value = _readRangeTblEntry();
2850  else if (MATCH("RANGETBLFUNCTION", 16))
2851  return_value = _readRangeTblFunction();
2852  else if (MATCH("TABLESAMPLECLAUSE", 17))
2853  return_value = _readTableSampleClause();
2854  else if (MATCH("NOTIFY", 6))
2855  return_value = _readNotifyStmt();
2856  else if (MATCH("DEFELEM", 7))
2857  return_value = _readDefElem();
2858  else if (MATCH("DECLARECURSOR", 13))
2859  return_value = _readDeclareCursorStmt();
2860  else if (MATCH("PLANNEDSTMT", 11))
2861  return_value = _readPlannedStmt();
2862  else if (MATCH("PLAN", 4))
2863  return_value = _readPlan();
2864  else if (MATCH("RESULT", 6))
2865  return_value = _readResult();
2866  else if (MATCH("PROJECTSET", 10))
2867  return_value = _readProjectSet();
2868  else if (MATCH("MODIFYTABLE", 11))
2869  return_value = _readModifyTable();
2870  else if (MATCH("APPEND", 6))
2871  return_value = _readAppend();
2872  else if (MATCH("MERGEAPPEND", 11))
2873  return_value = _readMergeAppend();
2874  else if (MATCH("RECURSIVEUNION", 14))
2875  return_value = _readRecursiveUnion();
2876  else if (MATCH("BITMAPAND", 9))
2877  return_value = _readBitmapAnd();
2878  else if (MATCH("BITMAPOR", 8))
2879  return_value = _readBitmapOr();
2880  else if (MATCH("SCAN", 4))
2881  return_value = _readScan();
2882  else if (MATCH("SEQSCAN", 7))
2883  return_value = _readSeqScan();
2884  else if (MATCH("SAMPLESCAN", 10))
2885  return_value = _readSampleScan();
2886  else if (MATCH("INDEXSCAN", 9))
2887  return_value = _readIndexScan();
2888  else if (MATCH("INDEXONLYSCAN", 13))
2889  return_value = _readIndexOnlyScan();
2890  else if (MATCH("BITMAPINDEXSCAN", 15))
2891  return_value = _readBitmapIndexScan();
2892  else if (MATCH("BITMAPHEAPSCAN", 14))
2893  return_value = _readBitmapHeapScan();
2894  else if (MATCH("TIDSCAN", 7))
2895  return_value = _readTidScan();
2896  else if (MATCH("TIDRANGESCAN", 12))
2897  return_value = _readTidRangeScan();
2898  else if (MATCH("SUBQUERYSCAN", 12))
2899  return_value = _readSubqueryScan();
2900  else if (MATCH("FUNCTIONSCAN", 12))
2901  return_value = _readFunctionScan();
2902  else if (MATCH("VALUESSCAN", 10))
2903  return_value = _readValuesScan();
2904  else if (MATCH("TABLEFUNCSCAN", 13))
2905  return_value = _readTableFuncScan();
2906  else if (MATCH("CTESCAN", 7))
2907  return_value = _readCteScan();
2908  else if (MATCH("NAMEDTUPLESTORESCAN", 19))
2909  return_value = _readNamedTuplestoreScan();
2910  else if (MATCH("WORKTABLESCAN", 13))
2911  return_value = _readWorkTableScan();
2912  else if (MATCH("FOREIGNSCAN", 11))
2913  return_value = _readForeignScan();
2914  else if (MATCH("CUSTOMSCAN", 10))
2915  return_value = _readCustomScan();
2916  else if (MATCH("JOIN", 4))
2917  return_value = _readJoin();
2918  else if (MATCH("NESTLOOP", 8))
2919  return_value = _readNestLoop();
2920  else if (MATCH("MERGEJOIN", 9))
2921  return_value = _readMergeJoin();
2922  else if (MATCH("HASHJOIN", 8))
2923  return_value = _readHashJoin();
2924  else if (MATCH("MATERIAL", 8))
2925  return_value = _readMaterial();
2926  else if (MATCH("MEMOIZE", 7))
2927  return_value = _readMemoize();
2928  else if (MATCH("SORT", 4))
2929  return_value = _readSort();
2930  else if (MATCH("INCREMENTALSORT", 15))
2931  return_value = _readIncrementalSort();
2932  else if (MATCH("GROUP", 5))
2933  return_value = _readGroup();
2934  else if (MATCH("AGG", 3))
2935  return_value = _readAgg();
2936  else if (MATCH("WINDOWAGG", 9))
2937  return_value = _readWindowAgg();
2938  else if (MATCH("UNIQUE", 6))
2939  return_value = _readUnique();
2940  else if (MATCH("GATHER", 6))
2941  return_value = _readGather();
2942  else if (MATCH("GATHERMERGE", 11))
2943  return_value = _readGatherMerge();
2944  else if (MATCH("HASH", 4))
2945  return_value = _readHash();
2946  else if (MATCH("SETOP", 5))
2947  return_value = _readSetOp();
2948  else if (MATCH("LOCKROWS", 8))
2949  return_value = _readLockRows();
2950  else if (MATCH("LIMIT", 5))
2951  return_value = _readLimit();
2952  else if (MATCH("NESTLOOPPARAM", 13))
2953  return_value = _readNestLoopParam();
2954  else if (MATCH("PLANROWMARK", 11))
2955  return_value = _readPlanRowMark();
2956  else if (MATCH("PARTITIONPRUNEINFO", 18))
2957  return_value = _readPartitionPruneInfo();
2958  else if (MATCH("PARTITIONEDRELPRUNEINFO", 23))
2959  return_value = _readPartitionedRelPruneInfo();
2960  else if (MATCH("PARTITIONPRUNESTEPOP", 20))
2961  return_value = _readPartitionPruneStepOp();
2962  else if (MATCH("PARTITIONPRUNESTEPCOMBINE", 25))
2963  return_value = _readPartitionPruneStepCombine();
2964  else if (MATCH("PLANINVALITEM", 13))
2965  return_value = _readPlanInvalItem();
2966  else if (MATCH(