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 ResultCache_readResultCache (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:3049
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:3121
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(), _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(), _readResultCache(), _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:3097
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

#define READ_INT_FIELD (   fldname)

◆ 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(), _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(), _readResultCache(), _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(), _readMergeAppend(), _readMergeJoin(), _readMinMaxExpr(), _readModifyTable(), _readNamedArgExpr(), _readNestLoop(), _readNestLoopParam(), _readNullIfExpr(), _readNullTest(), _readOnConflictExpr(), _readOpExpr(), _readPartitionBoundSpec(), _readPartitionedRelPruneInfo(), _readPartitionPruneInfo(), _readPartitionPruneStepCombine(), _readPartitionPruneStepOp(), _readPartitionRangeDatum(), _readPlannedStmt(), _readQuery(), _readRangeTblEntry(), _readRangeTblFunction(), _readRangeVar(), _readRelabelType(), _readResult(), _readResultCache(), _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:3073
const char * pg_strtok(int *length)
Definition: read.c:152

Definition at line 160 of file readfuncs.c.

Referenced by _readAgg(), _readGatherMerge(), _readGroup(), _readLimit(), _readMergeAppend(), _readMergeJoin(), _readPartitionedRelPruneInfo(), _readRecursiveUnion(), _readResultCache(), _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 2304 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().

2305 {
2306  READ_LOCALS(Agg);
2307 
2308  ReadCommonPlan(&local_node->plan);
2309 
2310  READ_ENUM_FIELD(aggstrategy, AggStrategy);
2311  READ_ENUM_FIELD(aggsplit, AggSplit);
2312  READ_INT_FIELD(numCols);
2313  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2314  READ_OID_ARRAY(grpOperators, local_node->numCols);
2315  READ_OID_ARRAY(grpCollations, local_node->numCols);
2316  READ_LONG_FIELD(numGroups);
2317  READ_UINT64_FIELD(transitionSpace);
2318  READ_BITMAPSET_FIELD(aggParams);
2319  READ_NODE_FIELD(groupingSets);
2320  READ_NODE_FIELD(chain);
2321 
2322  READ_DONE();
2323 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:86
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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:856
#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 2629 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2630 {
2632 
2633  READ_NODE_FIELD(subplans);
2634 
2635  READ_DONE();
2636 }
#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 1711 of file readfuncs.c.

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

Referenced by parseNodeString().

1712 {
1714 
1715  ReadCommonPlan(&local_node->plan);
1716 
1717  READ_BITMAPSET_FIELD(apprelids);
1718  READ_NODE_FIELD(appendplans);
1719  READ_INT_FIELD(nasyncplans);
1720  READ_INT_FIELD(first_partial_plan);
1721  READ_NODE_FIELD(part_prune_info);
1722 
1723  READ_DONE();
1724 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 1404 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().

1405 {
1407 
1408  READ_UINT_FIELD(parent_relid);
1409  READ_UINT_FIELD(child_relid);
1410  READ_OID_FIELD(parent_reltype);
1411  READ_OID_FIELD(child_reltype);
1412  READ_NODE_FIELD(translated_vars);
1413  READ_INT_FIELD(num_child_cols);
1414  READ_ATTRNUMBER_ARRAY(parent_colnos, local_node->num_child_cols);
1415  READ_OID_FIELD(parent_reloid);
1416 
1417  READ_DONE();
1418 }
#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 963 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().

964 {
966 
968  READ_NODE_FIELD(elemexpr);
969  READ_OID_FIELD(resulttype);
970  READ_INT_FIELD(resulttypmod);
971  READ_OID_FIELD(resultcollid);
972  READ_ENUM_FIELD(coerceformat, CoercionForm);
973  READ_LOCATION_FIELD(location);
974 
975  READ_DONE();
976 }
#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 1061 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().

1062 {
1064 
1065  READ_OID_FIELD(array_typeid);
1066  READ_OID_FIELD(array_collid);
1067  READ_OID_FIELD(element_typeid);
1068  READ_NODE_FIELD(elements);
1069  READ_BOOL_FIELD(multidims);
1070  READ_LOCATION_FIELD(location);
1071 
1072  READ_DONE();
1073 }
#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 1772 of file readfuncs.c.

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

Referenced by parseNodeString().

1773 {
1775 
1776  ReadCommonPlan(&local_node->plan);
1777 
1778  READ_NODE_FIELD(bitmapplans);
1779 
1780  READ_DONE();
1781 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 1916 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readBitmapIndexScan()

static BitmapIndexScan* _readBitmapIndexScan ( void  )
static

Definition at line 1898 of file readfuncs.c.

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

Referenced by parseNodeString().

1899 {
1901 
1902  ReadCommonScan(&local_node->scan);
1903 
1904  READ_OID_FIELD(indexid);
1905  READ_BOOL_FIELD(isshared);
1906  READ_NODE_FIELD(indexqual);
1907  READ_NODE_FIELD(indexqualorig);
1908 
1909  READ_DONE();
1910 }
#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:1804
#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 1787 of file readfuncs.c.

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

Referenced by parseNodeString().

1788 {
1790 
1791  ReadCommonPlan(&local_node->plan);
1792 
1793  READ_BOOL_FIELD(isshared);
1794  READ_NODE_FIELD(bitmapplans);
1795 
1796  READ_DONE();
1797 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 1201 of file readfuncs.c.

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

Referenced by parseNodeString().

1202 {
1204 
1206  READ_ENUM_FIELD(booltesttype, BoolTestType);
1207  READ_LOCATION_FIELD(location);
1208 
1209  READ_DONE();
1210 }
BoolTestType
Definition: primnodes.h:1270
#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 847 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().

848 {
850 
851  /* do-it-yourself enum representation */
852  token = pg_strtok(&length); /* skip :boolop */
853  token = pg_strtok(&length); /* get field value */
854  if (strncmp(token, "and", 3) == 0)
855  local_node->boolop = AND_EXPR;
856  else if (strncmp(token, "or", 2) == 0)
857  local_node->boolop = OR_EXPR;
858  else if (strncmp(token, "not", 3) == 0)
859  local_node->boolop = NOT_EXPR;
860  else
861  elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
862 
864  READ_LOCATION_FIELD(location);
865 
866  READ_DONE();
867 }
#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 1013 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().

1014 {
1016 
1017  READ_OID_FIELD(casetype);
1018  READ_OID_FIELD(casecollid);
1021  READ_NODE_FIELD(defresult);
1022  READ_LOCATION_FIELD(location);
1023 
1024  READ_DONE();
1025 }
#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 1046 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

1047 {
1049 
1050  READ_OID_FIELD(typeId);
1051  READ_INT_FIELD(typeMod);
1052  READ_OID_FIELD(collation);
1053 
1054  READ_DONE();
1055 }
#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 1031 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

1032 {
1034 
1035  READ_NODE_FIELD(expr);
1036  READ_NODE_FIELD(result);
1037  READ_LOCATION_FIELD(location);
1038 
1039  READ_DONE();
1040 }
#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 1114 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().

1115 {
1117 
1118  READ_OID_FIELD(coalescetype);
1119  READ_OID_FIELD(coalescecollid);
1121  READ_LOCATION_FIELD(location);
1122 
1123  READ_DONE();
1124 }
#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 1216 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().

1217 {
1219 
1221  READ_OID_FIELD(resulttype);
1222  READ_INT_FIELD(resulttypmod);
1223  READ_OID_FIELD(resultcollid);
1224  READ_ENUM_FIELD(coercionformat, CoercionForm);
1225  READ_LOCATION_FIELD(location);
1226 
1227  READ_DONE();
1228 }
#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 1234 of file readfuncs.c.

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

Referenced by parseNodeString().

1235 {
1237 
1238  READ_OID_FIELD(typeId);
1239  READ_INT_FIELD(typeMod);
1240  READ_OID_FIELD(collation);
1241  READ_LOCATION_FIELD(location);
1242 
1243  READ_DONE();
1244 }
#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 946 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().

947 {
949 
951  READ_OID_FIELD(resulttype);
952  READ_OID_FIELD(resultcollid);
953  READ_ENUM_FIELD(coerceformat, CoercionForm);
954  READ_LOCATION_FIELD(location);
955 
956  READ_DONE();
957 }
#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 998 of file readfuncs.c.

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

Referenced by parseNodeString().

999 {
1001 
1003  READ_OID_FIELD(collOid);
1004  READ_LOCATION_FIELD(location);
1005 
1006  READ_DONE();
1007 }
#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:2992
#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 982 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().

983 {
985 
987  READ_OID_FIELD(resulttype);
988  READ_ENUM_FIELD(convertformat, CoercionForm);
989  READ_LOCATION_FIELD(location);
990 
991  READ_DONE();
992 }
#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 2022 of file readfuncs.c.

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

Referenced by parseNodeString().

2023 {
2025 
2026  ReadCommonScan(&local_node->scan);
2027 
2028  READ_INT_FIELD(ctePlanId);
2029  READ_INT_FIELD(cteParam);
2030 
2031  READ_DONE();
2032 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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 1266 of file readfuncs.c.

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

Referenced by parseNodeString().

1267 {
1269 
1270  READ_UINT_FIELD(cvarno);
1271  READ_STRING_FIELD(cursor_name);
1272  READ_INT_FIELD(cursor_param);
1273 
1274  READ_DONE();
1275 }
#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 2091 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().

2092 {
2094  char *custom_name;
2095  const CustomScanMethods *methods;
2096 
2097  ReadCommonScan(&local_node->scan);
2098 
2099  READ_UINT_FIELD(flags);
2100  READ_NODE_FIELD(custom_plans);
2101  READ_NODE_FIELD(custom_exprs);
2102  READ_NODE_FIELD(custom_private);
2103  READ_NODE_FIELD(custom_scan_tlist);
2104  READ_BITMAPSET_FIELD(custom_relids);
2105 
2106  /* Lookup CustomScanMethods by CustomName */
2107  token = pg_strtok(&length); /* skip methods: */
2108  token = pg_strtok(&length); /* CustomName */
2109  custom_name = nullable_string(token, length);
2110  methods = GetCustomScanMethods(custom_name, false);
2111  local_node->methods = methods;
2112 
2113  READ_DONE();
2114 }
#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:1804
#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 1556 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().

1557 {
1559 
1560  READ_STRING_FIELD(defnamespace);
1561  READ_STRING_FIELD(defname);
1563  READ_ENUM_FIELD(defaction, DefElemAction);
1564  READ_LOCATION_FIELD(location);
1565 
1566  READ_DONE();
1567 }
#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 2642 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().

2643 {
2644  const ExtensibleNodeMethods *methods;
2645  ExtensibleNode *local_node;
2646  const char *extnodename;
2647 
2648  READ_TEMP_LOCALS();
2649 
2650  token = pg_strtok(&length); /* skip :extnodename */
2651  token = pg_strtok(&length); /* get extnodename */
2652 
2653  extnodename = nullable_string(token, length);
2654  if (!extnodename)
2655  elog(ERROR, "extnodename has to be supplied");
2656  methods = GetExtensibleNodeMethods(extnodename, false);
2657 
2658  local_node = (ExtensibleNode *) newNode(methods->node_size,
2660  local_node->extnodename = extnodename;
2661 
2662  /* deserialize the private fields */
2663  methods->nodeRead(local_node);
2664 
2665  READ_DONE();
2666 }
#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 895 of file readfuncs.c.

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

Referenced by parseNodeString().

896 {
898 
900  READ_INT_FIELD(fieldnum);
901  READ_OID_FIELD(resulttype);
902  READ_INT_FIELD(resulttypmod);
903  READ_OID_FIELD(resultcollid);
904 
905  READ_DONE();
906 }
#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 912 of file readfuncs.c.

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

Referenced by parseNodeString().

913 {
915 
917  READ_NODE_FIELD(newvals);
918  READ_NODE_FIELD(fieldnums);
919  READ_OID_FIELD(resulttype);
920 
921  READ_DONE();
922 }
#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 2068 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_OID_FIELD, and ReadCommonScan().

Referenced by parseNodeString().

2069 {
2071 
2072  ReadCommonScan(&local_node->scan);
2073 
2074  READ_ENUM_FIELD(operation, CmdType);
2075  READ_OID_FIELD(fs_server);
2076  READ_NODE_FIELD(fdw_exprs);
2077  READ_NODE_FIELD(fdw_private);
2078  READ_NODE_FIELD(fdw_scan_tlist);
2079  READ_NODE_FIELD(fdw_recheck_quals);
2080  READ_BITMAPSET_FIELD(fs_relids);
2081  READ_BOOL_FIELD(fsSystemCol);
2082  READ_INT_FIELD(resultRelation);
2083 
2084  READ_DONE();
2085 }
#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
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:68
CmdType
Definition: nodes.h:682

◆ _readFromExpr()

static FromExpr* _readFromExpr ( void  )
static

Definition at line 1363 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1364 {
1366 
1367  READ_NODE_FIELD(fromlist);
1368  READ_NODE_FIELD(quals);
1369 
1370  READ_DONE();
1371 }
#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 1976 of file readfuncs.c.

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

Referenced by parseNodeString().

1977 {
1979 
1980  ReadCommonScan(&local_node->scan);
1981 
1983  READ_BOOL_FIELD(funcordinality);
1984 
1985  READ_DONE();
1986 }
#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:1804
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
static const struct fns functions
Definition: regcomp.c:314
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readGather()

static Gather* _readGather ( void  )
static

Definition at line 2378 of file readfuncs.c.

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

Referenced by parseNodeString().

2379 {
2381 
2382  ReadCommonPlan(&local_node->plan);
2383 
2384  READ_INT_FIELD(num_workers);
2385  READ_INT_FIELD(rescan_param);
2386  READ_BOOL_FIELD(single_copy);
2387  READ_BOOL_FIELD(invisible);
2388  READ_BITMAPSET_FIELD(initParam);
2389 
2390  READ_DONE();
2391 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2397 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().

2398 {
2400 
2401  ReadCommonPlan(&local_node->plan);
2402 
2403  READ_INT_FIELD(num_workers);
2404  READ_INT_FIELD(rescan_param);
2405  READ_INT_FIELD(numCols);
2406  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2407  READ_OID_ARRAY(sortOperators, local_node->numCols);
2408  READ_OID_ARRAY(collations, local_node->numCols);
2409  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2410  READ_BITMAPSET_FIELD(initParam);
2411 
2412  READ_DONE();
2413 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:170
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2286 of file readfuncs.c.

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

Referenced by parseNodeString().

2287 {
2288  READ_LOCALS(Group);
2289 
2290  ReadCommonPlan(&local_node->plan);
2291 
2292  READ_INT_FIELD(numCols);
2293  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2294  READ_OID_ARRAY(grpOperators, local_node->numCols);
2295  READ_OID_ARRAY(grpCollations, local_node->numCols);
2296 
2297  READ_DONE();
2298 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2419 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().

2420 {
2421  READ_LOCALS(Hash);
2422 
2423  ReadCommonPlan(&local_node->plan);
2424 
2425  READ_NODE_FIELD(hashkeys);
2426  READ_OID_FIELD(skewTable);
2427  READ_INT_FIELD(skewColumn);
2428  READ_BOOL_FIELD(skewInherit);
2429  READ_FLOAT_FIELD(rows_total);
2430 
2431  READ_DONE();
2432 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2189 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readIncrementalSort()

static IncrementalSort* _readIncrementalSort ( void  )
static

Definition at line 2271 of file readfuncs.c.

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

Referenced by parseNodeString().

2272 {
2274 
2275  ReadCommonSort(&local_node->sort);
2276 
2277  READ_INT_FIELD(nPresortedCols);
2278 
2279  READ_DONE();
2280 }
static void ReadCommonSort(Sort *local_node)
Definition: readfuncs.c:2241
#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 1879 of file readfuncs.c.

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

Referenced by parseNodeString().

1880 {
1882 
1883  ReadCommonScan(&local_node->scan);
1884 
1885  READ_OID_FIELD(indexid);
1886  READ_NODE_FIELD(indexqual);
1887  READ_NODE_FIELD(indexorderby);
1888  READ_NODE_FIELD(indextlist);
1889  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1890 
1891  READ_DONE();
1892 }
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:1804
#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 1858 of file readfuncs.c.

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

Referenced by parseNodeString().

1859 {
1861 
1862  ReadCommonScan(&local_node->scan);
1863 
1864  READ_OID_FIELD(indexid);
1865  READ_NODE_FIELD(indexqual);
1866  READ_NODE_FIELD(indexqualorig);
1867  READ_NODE_FIELD(indexorderby);
1868  READ_NODE_FIELD(indexorderbyorig);
1869  READ_NODE_FIELD(indexorderbyops);
1870  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1871 
1872  READ_DONE();
1873 }
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:1804
#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 1295 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1296 {
1298 
1299  READ_NODE_FIELD(expr);
1300  READ_OID_FIELD(infercollid);
1301  READ_OID_FIELD(inferopclass);
1302 
1303  READ_DONE();
1304 }
#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 2136 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonJoin().

Referenced by parseNodeString().

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

◆ _readJoinExpr()

static JoinExpr* _readJoinExpr ( void  )
static

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

1343 {
1345 
1346  READ_ENUM_FIELD(jointype, JoinType);
1347  READ_BOOL_FIELD(isNatural);
1348  READ_NODE_FIELD(larg);
1349  READ_NODE_FIELD(rarg);
1350  READ_NODE_FIELD(usingClause);
1351  READ_NODE_FIELD(join_using_alias);
1352  READ_NODE_FIELD(quals);
1353  READ_NODE_FIELD(alias);
1354  READ_INT_FIELD(rtindex);
1355 
1356  READ_DONE();
1357 }
#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 2477 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().

2478 {
2479  READ_LOCALS(Limit);
2480 
2481  ReadCommonPlan(&local_node->plan);
2482 
2483  READ_NODE_FIELD(limitOffset);
2484  READ_NODE_FIELD(limitCount);
2485  READ_ENUM_FIELD(limitOption, LimitOption);
2486  READ_INT_FIELD(uniqNumCols);
2487  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->uniqNumCols);
2488  READ_OID_ARRAY(uniqOperators, local_node->uniqNumCols);
2489  READ_OID_ARRAY(uniqCollations, local_node->uniqNumCols);
2490 
2491  READ_DONE();
2492 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2461 of file readfuncs.c.

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

Referenced by parseNodeString().

2462 {
2464 
2465  ReadCommonPlan(&local_node->plan);
2466 
2467  READ_NODE_FIELD(rowMarks);
2468  READ_INT_FIELD(epqParam);
2469 
2470  READ_DONE();
2471 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2207 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

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

◆ _readMergeAppend()

static MergeAppend* _readMergeAppend ( void  )
static

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

1731 {
1733 
1734  ReadCommonPlan(&local_node->plan);
1735 
1736  READ_BITMAPSET_FIELD(apprelids);
1737  READ_NODE_FIELD(mergeplans);
1738  READ_INT_FIELD(numCols);
1739  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
1740  READ_OID_ARRAY(sortOperators, local_node->numCols);
1741  READ_OID_ARRAY(collations, local_node->numCols);
1742  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
1743  READ_NODE_FIELD(part_prune_info);
1744 
1745  READ_DONE();
1746 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:170
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2164 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().

2165 {
2166  int numCols;
2167 
2169 
2170  ReadCommonJoin(&local_node->join);
2171 
2172  READ_BOOL_FIELD(skip_mark_restore);
2173  READ_NODE_FIELD(mergeclauses);
2174 
2175  numCols = list_length(local_node->mergeclauses);
2176 
2177  READ_OID_ARRAY(mergeFamilies, numCols);
2178  READ_OID_ARRAY(mergeCollations, numCols);
2179  READ_INT_ARRAY(mergeStrategies, numCols);
2180  READ_BOOL_ARRAY(mergeNullsFirst, numCols);
2181 
2182  READ_DONE();
2183 }
#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:2121
#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 1130 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().

1131 {
1133 
1134  READ_OID_FIELD(minmaxtype);
1135  READ_OID_FIELD(minmaxcollid);
1136  READ_OID_FIELD(inputcollid);
1139  READ_LOCATION_FIELD(location);
1140 
1141  READ_DONE();
1142 }
MinMaxOp
Definition: primnodes.h:1129
#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 1678 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().

1679 {
1681 
1682  ReadCommonPlan(&local_node->plan);
1683 
1684  READ_ENUM_FIELD(operation, CmdType);
1685  READ_BOOL_FIELD(canSetTag);
1686  READ_UINT_FIELD(nominalRelation);
1687  READ_UINT_FIELD(rootRelation);
1688  READ_BOOL_FIELD(partColsUpdated);
1689  READ_NODE_FIELD(resultRelations);
1690  READ_NODE_FIELD(updateColnosLists);
1691  READ_NODE_FIELD(withCheckOptionLists);
1692  READ_NODE_FIELD(returningLists);
1693  READ_NODE_FIELD(fdwPrivLists);
1694  READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
1695  READ_NODE_FIELD(rowMarks);
1696  READ_INT_FIELD(epqParam);
1697  READ_ENUM_FIELD(onConflictAction, OnConflictAction);
1698  READ_NODE_FIELD(arbiterIndexes);
1699  READ_NODE_FIELD(onConflictSet);
1700  READ_NODE_FIELD(onConflictWhere);
1701  READ_UINT_FIELD(exclRelRTI);
1702  READ_NODE_FIELD(exclRelTlist);
1703 
1704  READ_DONE();
1705 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2038 of file readfuncs.c.

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

Referenced by parseNodeString().

2039 {
2041 
2042  ReadCommonScan(&local_node->scan);
2043 
2044  READ_STRING_FIELD(enrname);
2045 
2046  READ_DONE();
2047 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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 2149 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readNestLoopParam()

static NestLoopParam* _readNestLoopParam ( void  )
static

Definition at line 2498 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2499 {
2501 
2502  READ_INT_FIELD(paramno);
2503  READ_NODE_FIELD(paramval);
2504 
2505  READ_DONE();
2506 }
#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 1281 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

1282 {
1284 
1285  READ_OID_FIELD(seqid);
1286  READ_OID_FIELD(typeId);
1287 
1288  READ_DONE();
1289 }
#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 1185 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().

1186 {
1188 
1190  READ_ENUM_FIELD(nulltesttype, NullTestType);
1191  READ_BOOL_FIELD(argisrow);
1192  READ_LOCATION_FIELD(location);
1193 
1194  READ_DONE();
1195 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
NullTestType
Definition: primnodes.h:1247
#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 1377 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().

1378 {
1380 
1382  READ_NODE_FIELD(arbiterElems);
1383  READ_NODE_FIELD(arbiterWhere);
1384  READ_OID_FIELD(constraint);
1385  READ_NODE_FIELD(onConflictSet);
1386  READ_NODE_FIELD(onConflictWhere);
1387  READ_INT_FIELD(exclRelIndex);
1388  READ_NODE_FIELD(exclRelTlist);
1389 
1390  READ_DONE();
1391 }
#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 2672 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().

2673 {
2675 
2676  READ_CHAR_FIELD(strategy);
2677  READ_BOOL_FIELD(is_default);
2678  READ_INT_FIELD(modulus);
2679  READ_INT_FIELD(remainder);
2680  READ_NODE_FIELD(listdatums);
2681  READ_NODE_FIELD(lowerdatums);
2682  READ_NODE_FIELD(upperdatums);
2683  READ_LOCATION_FIELD(location);
2684 
2685  READ_DONE();
2686 }
#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 2540 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().

2541 {
2543 
2544  READ_UINT_FIELD(rtindex);
2545  READ_BITMAPSET_FIELD(present_parts);
2546  READ_INT_FIELD(nparts);
2547  READ_INT_ARRAY(subplan_map, local_node->nparts);
2548  READ_INT_ARRAY(subpart_map, local_node->nparts);
2549  READ_OID_ARRAY(relid_map, local_node->nparts);
2550  READ_NODE_FIELD(initial_pruning_steps);
2551  READ_NODE_FIELD(exec_pruning_steps);
2552  READ_BITMAPSET_FIELD(execparamids);
2553 
2554  READ_DONE();
2555 }
#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 2529 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2530 {
2532 
2533  READ_NODE_FIELD(prune_infos);
2534  READ_BITMAPSET_FIELD(other_subplans);
2535 
2536  READ_DONE();
2537 }
#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 2572 of file readfuncs.c.

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

Referenced by parseNodeString().

2573 {
2575 
2576  READ_INT_FIELD(step.step_id);
2578  READ_NODE_FIELD(source_stepids);
2579 
2580  READ_DONE();
2581 }
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 2558 of file readfuncs.c.

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

Referenced by parseNodeString().

2559 {
2561 
2562  READ_INT_FIELD(step.step_id);
2563  READ_INT_FIELD(opstrategy);
2564  READ_NODE_FIELD(exprs);
2565  READ_NODE_FIELD(cmpfns);
2566  READ_BITMAPSET_FIELD(nullkeys);
2567 
2568  READ_DONE();
2569 }
#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 2692 of file readfuncs.c.

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

Referenced by parseNodeString().

2693 {
2695 
2698  READ_LOCATION_FIELD(location);
2699 
2700  READ_DONE();
2701 }
static struct @142 value
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
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:63
#define READ_DONE()
Definition: readfuncs.c:175

◆ _readPlan()

static Plan* _readPlan ( void  )
static

Definition at line 1637 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

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

◆ _readPlanInvalItem()

static PlanInvalItem* _readPlanInvalItem ( void  )
static

Definition at line 2587 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

2588 {
2590 
2591  READ_INT_FIELD(cacheId);
2592  READ_UINT_FIELD(hashValue);
2593 
2594  READ_DONE();
2595 }
#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 1577 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().

1578 {
1580 
1581  READ_ENUM_FIELD(commandType, CmdType);
1582  READ_UINT64_FIELD(queryId);
1583  READ_BOOL_FIELD(hasReturning);
1584  READ_BOOL_FIELD(hasModifyingCTE);
1585  READ_BOOL_FIELD(canSetTag);
1586  READ_BOOL_FIELD(transientPlan);
1587  READ_BOOL_FIELD(dependsOnRole);
1588  READ_BOOL_FIELD(parallelModeNeeded);
1589  READ_INT_FIELD(jitFlags);
1590  READ_NODE_FIELD(planTree);
1591  READ_NODE_FIELD(rtable);
1592  READ_NODE_FIELD(resultRelations);
1593  READ_NODE_FIELD(appendRelations);
1594  READ_NODE_FIELD(subplans);
1595  READ_BITMAPSET_FIELD(rewindPlanIDs);
1596  READ_NODE_FIELD(rowMarks);
1597  READ_NODE_FIELD(relationOids);
1598  READ_NODE_FIELD(invalItems);
1599  READ_NODE_FIELD(paramExecTypes);
1600  READ_NODE_FIELD(utilityStmt);
1601  READ_LOCATION_FIELD(stmt_location);
1602  READ_INT_FIELD(stmt_len);
1603 
1604  READ_DONE();
1605 }
#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 2512 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().

2513 {
2515 
2516  READ_UINT_FIELD(rti);
2517  READ_UINT_FIELD(prti);
2518  READ_UINT_FIELD(rowmarkId);
2519  READ_ENUM_FIELD(markType, RowMarkType);
2520  READ_INT_FIELD(allMarkTypes);
2522  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2523  READ_BOOL_FIELD(isParent);
2524 
2525  READ_DONE();
2526 }
#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:1063
#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 1665 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1666 {
1668 
1669  ReadCommonPlan(&local_node->plan);
1670 
1671  READ_DONE();
1672 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:54
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 1428 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().

1429 {
1431 
1432  /* put alias + eref first to make dump more legible */
1433  READ_NODE_FIELD(alias);
1434  READ_NODE_FIELD(eref);
1435  READ_ENUM_FIELD(rtekind, RTEKind);
1436 
1437  switch (local_node->rtekind)
1438  {
1439  case RTE_RELATION:
1440  READ_OID_FIELD(relid);
1441  READ_CHAR_FIELD(relkind);
1442  READ_INT_FIELD(rellockmode);
1443  READ_NODE_FIELD(tablesample);
1444  break;
1445  case RTE_SUBQUERY:
1446  READ_NODE_FIELD(subquery);
1447  READ_BOOL_FIELD(security_barrier);
1448  break;
1449  case RTE_JOIN:
1450  READ_ENUM_FIELD(jointype, JoinType);
1451  READ_INT_FIELD(joinmergedcols);
1452  READ_NODE_FIELD(joinaliasvars);
1453  READ_NODE_FIELD(joinleftcols);
1454  READ_NODE_FIELD(joinrightcols);
1455  READ_NODE_FIELD(join_using_alias);
1456  break;
1457  case RTE_FUNCTION:
1459  READ_BOOL_FIELD(funcordinality);
1460  break;
1461  case RTE_TABLEFUNC:
1462  READ_NODE_FIELD(tablefunc);
1463  /* The RTE must have a copy of the column type info, if any */
1464  if (local_node->tablefunc)
1465  {
1466  TableFunc *tf = local_node->tablefunc;
1467 
1468  local_node->coltypes = tf->coltypes;
1469  local_node->coltypmods = tf->coltypmods;
1470  local_node->colcollations = tf->colcollations;
1471  }
1472  break;
1473  case RTE_VALUES:
1474  READ_NODE_FIELD(values_lists);
1475  READ_NODE_FIELD(coltypes);
1476  READ_NODE_FIELD(coltypmods);
1477  READ_NODE_FIELD(colcollations);
1478  break;
1479  case RTE_CTE:
1480  READ_STRING_FIELD(ctename);
1481  READ_UINT_FIELD(ctelevelsup);
1482  READ_BOOL_FIELD(self_reference);
1483  READ_NODE_FIELD(coltypes);
1484  READ_NODE_FIELD(coltypmods);
1485  READ_NODE_FIELD(colcollations);
1486  break;
1487  case RTE_NAMEDTUPLESTORE:
1488  READ_STRING_FIELD(enrname);
1489  READ_FLOAT_FIELD(enrtuples);
1490  READ_OID_FIELD(relid);
1491  READ_NODE_FIELD(coltypes);
1492  READ_NODE_FIELD(coltypmods);
1493  READ_NODE_FIELD(colcollations);
1494  break;
1495  case RTE_RESULT:
1496  /* no extra fields */
1497  break;
1498  default:
1499  elog(ERROR, "unrecognized RTE kind: %d",
1500  (int) local_node->rtekind);
1501  break;
1502  }
1503 
1504  READ_BOOL_FIELD(lateral);
1505  READ_BOOL_FIELD(inh);
1506  READ_BOOL_FIELD(inFromCl);
1507  READ_UINT_FIELD(requiredPerms);
1508  READ_OID_FIELD(checkAsUser);
1509  READ_BITMAPSET_FIELD(selectedCols);
1510  READ_BITMAPSET_FIELD(insertedCols);
1511  READ_BITMAPSET_FIELD(updatedCols);
1512  READ_BITMAPSET_FIELD(extraUpdatedCols);
1513  READ_NODE_FIELD(securityQuals);
1514 
1515  READ_DONE();
1516 }
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:314
#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 1522 of file readfuncs.c.

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

Referenced by parseNodeString().

1523 {
1525 
1526  READ_NODE_FIELD(funcexpr);
1527  READ_INT_FIELD(funccolcount);
1528  READ_NODE_FIELD(funccolnames);
1529  READ_NODE_FIELD(funccoltypes);
1530  READ_NODE_FIELD(funccoltypmods);
1531  READ_NODE_FIELD(funccolcollations);
1532  READ_BITMAPSET_FIELD(funcparams);
1533 
1534  READ_DONE();
1535 }
#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 1329 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, and READ_LOCALS.

Referenced by parseNodeString().

1330 {
1332 
1333  READ_INT_FIELD(rtindex);
1334 
1335  READ_DONE();
1336 }
#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 1752 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().

1753 {
1755 
1756  ReadCommonPlan(&local_node->plan);
1757 
1758  READ_INT_FIELD(wtParam);
1759  READ_INT_FIELD(numCols);
1760  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
1761  READ_OID_ARRAY(dupOperators, local_node->numCols);
1762  READ_OID_ARRAY(dupCollations, local_node->numCols);
1763  READ_LONG_FIELD(numGroups);
1764 
1765  READ_DONE();
1766 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:86
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 928 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().

929 {
931 
933  READ_OID_FIELD(resulttype);
934  READ_INT_FIELD(resulttypmod);
935  READ_OID_FIELD(resultcollid);
936  READ_ENUM_FIELD(relabelformat, CoercionForm);
937  READ_LOCATION_FIELD(location);
938 
939  READ_DONE();
940 }
#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 1650 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readResultCache()

static ResultCache* _readResultCache ( void  )
static

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

2221 {
2223 
2224  ReadCommonPlan(&local_node->plan);
2225 
2226  READ_INT_FIELD(numKeys);
2227  READ_OID_ARRAY(hashOperators, local_node->numKeys);
2228  READ_OID_ARRAY(collations, local_node->numKeys);
2229  READ_NODE_FIELD(param_exprs);
2230  READ_BOOL_FIELD(singlerow);
2231  READ_UINT_FIELD(est_entries);
2232 
2233  READ_DONE();
2234 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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

◆ _readRowCompareExpr()

static RowCompareExpr* _readRowCompareExpr ( void  )
static

Definition at line 1096 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

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

◆ _readRowExpr()

static RowExpr* _readRowExpr ( void  )
static

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

1080 {
1082 
1084  READ_OID_FIELD(row_typeid);
1085  READ_ENUM_FIELD(row_format, CoercionForm);
1086  READ_NODE_FIELD(colnames);
1087  READ_LOCATION_FIELD(location);
1088 
1089  READ_DONE();
1090 }
#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 1843 of file readfuncs.c.

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

Referenced by parseNodeString().

1844 {
1846 
1847  ReadCommonScan(&local_node->scan);
1848 
1849  READ_NODE_FIELD(tablesample);
1850 
1851  READ_DONE();
1852 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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_BOOL_FIELD(useOr);
836  READ_OID_FIELD(inputcollid);
838  READ_LOCATION_FIELD(location);
839 
840  READ_DONE();
841 }
#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 1817 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

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

◆ _readSeqScan()

static SeqScan* _readSeqScan ( void  )
static

Definition at line 1830 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

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

◆ _readSetOp()

static SetOp* _readSetOp ( void  )
static

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

2439 {
2440  READ_LOCALS(SetOp);
2441 
2442  ReadCommonPlan(&local_node->plan);
2443 
2444  READ_ENUM_FIELD(cmd, SetOpCmd);
2445  READ_ENUM_FIELD(strategy, SetOpStrategy);
2446  READ_INT_FIELD(numCols);
2447  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
2448  READ_OID_ARRAY(dupOperators, local_node->numCols);
2449  READ_OID_ARRAY(dupCollations, local_node->numCols);
2450  READ_INT_FIELD(flagColIdx);
2451  READ_INT_FIELD(firstFlag);
2452  READ_LONG_FIELD(numGroups);
2453 
2454  READ_DONE();
2455 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:86
SetOpStrategy
Definition: nodes.h:820
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 1250 of file readfuncs.c.

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

Referenced by parseNodeString().

1251 {
1253 
1254  READ_OID_FIELD(typeId);
1255  READ_INT_FIELD(typeMod);
1256  READ_OID_FIELD(collation);
1257  READ_LOCATION_FIELD(location);
1258 
1259  READ_DONE();
1260 }
#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 2258 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonSort().

Referenced by parseNodeString().

2259 {
2261 
2262  ReadCommonSort(local_node);
2263 
2264  READ_DONE();
2265 }
static void ReadCommonSort(Sort *local_node)
Definition: readfuncs.c:2241
#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 1148 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().

1149 {
1151 
1154  READ_INT_FIELD(typmod);
1155  READ_LOCATION_FIELD(location);
1156 
1157  READ_DONE();
1158 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
SQLValueFunctionOp
Definition: primnodes.h:1157
#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 873 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().

874 {
876 
877  READ_ENUM_FIELD(subLinkType, SubLinkType);
878  READ_INT_FIELD(subLinkId);
879  READ_NODE_FIELD(testexpr);
880  READ_NODE_FIELD(operName);
881  READ_NODE_FIELD(subselect);
882  READ_LOCATION_FIELD(location);
883 
884  READ_DONE();
885 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:105
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
SubLinkType
Definition: primnodes.h:671
#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 2601 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().

2602 {
2604 
2605  READ_ENUM_FIELD(subLinkType, SubLinkType);
2606  READ_NODE_FIELD(testexpr);
2607  READ_NODE_FIELD(paramIds);
2608  READ_INT_FIELD(plan_id);
2609  READ_STRING_FIELD(plan_name);
2610  READ_OID_FIELD(firstColType);
2611  READ_INT_FIELD(firstColTypmod);
2612  READ_OID_FIELD(firstColCollation);
2613  READ_BOOL_FIELD(useHashTable);
2614  READ_BOOL_FIELD(unknownEqFalse);
2615  READ_BOOL_FIELD(parallel_safe);
2616  READ_NODE_FIELD(setParam);
2617  READ_NODE_FIELD(parParam);
2619  READ_FLOAT_FIELD(startup_cost);
2620  READ_FLOAT_FIELD(per_call_cost);
2621 
2622  READ_DONE();
2623 }
#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:671
#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 1961 of file readfuncs.c.

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

Referenced by parseNodeString().

1962 {
1964 
1965  ReadCommonScan(&local_node->scan);
1966 
1967  READ_NODE_FIELD(subplan);
1968 
1969  READ_DONE();
1970 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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 2007 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readTableSampleClause()

static TableSampleClause* _readTableSampleClause ( void  )
static

Definition at line 1541 of file readfuncs.c.

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

Referenced by parseNodeString().

1542 {
1544 
1545  READ_OID_FIELD(tsmhandler);
1547  READ_NODE_FIELD(repeatable);
1548 
1549  READ_DONE();
1550 }
#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 1310 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().

1311 {
1313 
1314  READ_NODE_FIELD(expr);
1315  READ_INT_FIELD(resno);
1316  READ_STRING_FIELD(resname);
1317  READ_UINT_FIELD(ressortgroupref);
1318  READ_OID_FIELD(resorigtbl);
1319  READ_INT_FIELD(resorigcol);
1320  READ_BOOL_FIELD(resjunk);
1321 
1322  READ_DONE();
1323 }
#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 1946 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readTidScan()

static TidScan* _readTidScan ( void  )
static

Definition at line 1931 of file readfuncs.c.

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

Referenced by parseNodeString().

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

◆ _readUnique()

static Unique* _readUnique ( void  )
static

Definition at line 2360 of file readfuncs.c.

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

Referenced by parseNodeString().

2361 {
2363 
2364  ReadCommonPlan(&local_node->plan);
2365 
2366  READ_INT_FIELD(numCols);
2367  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
2368  READ_OID_ARRAY(uniqOperators, local_node->numCols);
2369  READ_OID_ARRAY(uniqCollations, local_node->numCols);
2370 
2371  READ_DONE();
2372 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 1992 of file readfuncs.c.

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

Referenced by parseNodeString().

1993 {
1995 
1996  ReadCommonScan(&local_node->scan);
1997 
1998  READ_NODE_FIELD(values_lists);
1999 
2000  READ_DONE();
2001 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:143
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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 2329 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().

2330 {
2332 
2333  ReadCommonPlan(&local_node->plan);
2334 
2335  READ_UINT_FIELD(winref);
2336  READ_INT_FIELD(partNumCols);
2337  READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
2338  READ_OID_ARRAY(partOperators, local_node->partNumCols);
2339  READ_OID_ARRAY(partCollations, local_node->partNumCols);
2340  READ_INT_FIELD(ordNumCols);
2341  READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
2342  READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
2343  READ_OID_ARRAY(ordCollations, local_node->ordNumCols);
2344  READ_INT_FIELD(frameOptions);
2345  READ_NODE_FIELD(startOffset);
2346  READ_NODE_FIELD(endOffset);
2347  READ_OID_FIELD(startInRangeFunc);
2348  READ_OID_FIELD(endInRangeFunc);
2349  READ_OID_FIELD(inRangeColl);
2350  READ_BOOL_FIELD(inRangeAsc);
2351  READ_BOOL_FIELD(inRangeNullsFirst);
2352 
2353  READ_DONE();
2354 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:117
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1612
#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 2053 of file readfuncs.c.

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

Referenced by parseNodeString().

2054 {
2056 
2057  ReadCommonScan(&local_node->scan);
2058 
2059  READ_INT_FIELD(wtParam);
2060 
2061  READ_DONE();
2062 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1804
#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 1164 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().

1165 {
1167 
1170  READ_NODE_FIELD(named_args);
1171  READ_NODE_FIELD(arg_names);
1175  READ_INT_FIELD(typmod);
1176  READ_LOCATION_FIELD(location);
1177 
1178  READ_DONE();
1179 }
XmlExprOp
Definition: primnodes.h:1196
#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:1208
#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 2712 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(), _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(), _readResultCache(), _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().

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