PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
readfuncs.c File Reference
#include "postgres.h"
#include <math.h>
#include "fmgr.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 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 ArrayRef_readArrayRef (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 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 SubqueryScan_readSubqueryScan (void)
 
static FunctionScan_readFunctionScan (void)
 
static ValuesScan_readValuesScan (void)
 
static TableFuncScan_readTableFuncScan (void)
 
static CteScan_readCteScan (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 Sort_readSort (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 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

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

Definition at line 173 of file readfuncs.c.

Referenced by readDatum().

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

Referenced by parseNodeString().

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

Definition at line 177 of file readfuncs.c.

Referenced by _readCustomScan(), and _readExtensibleNode().

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

Definition at line 143 of file readfuncs.c.

Referenced by _readAgg(), _readGatherMerge(), _readGroup(), _readMergeAppend(), _readRecursiveUnion(), _readSetOp(), _readSort(), _readUnique(), and _readWindowAgg().

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

Definition at line 137 of file readfuncs.c.

Referenced by _readAgg(), _readCustomScan(), _readForeignScan(), _readModifyTable(), _readPlannedStmt(), _readRangeTblEntry(), _readRangeTblFunction(), _readTableFunc(), and ReadCommonPlan().

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

Definition at line 158 of file readfuncs.c.

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

#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])
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107

Definition at line 93 of file readfuncs.c.

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

#define READ_DONE ( )    return local_node

Definition at line 163 of file readfuncs.c.

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

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

Definition at line 106 of file readfuncs.c.

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

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

Definition at line 153 of file readfuncs.c.

Referenced by _readMergeJoin().

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

Definition at line 58 of file readfuncs.c.

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

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

Definition at line 81 of file readfuncs.c.

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

#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)
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
void * nodeRead(char *token, int tok_len)
Definition: read.c:278

Definition at line 131 of file readfuncs.c.

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

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

Definition at line 148 of file readfuncs.c.

Referenced by _readAgg(), _readGatherMerge(), _readGroup(), _readMergeAppend(), _readMergeJoin(), _readRecursiveUnion(), _readSetOp(), _readSort(), _readUnique(), and _readWindowAgg().

#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)
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define nullable_string(token, length)
Definition: readfuncs.c:177

Definition at line 118 of file readfuncs.c.

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

#define READ_TEMP_LOCALS ( )
Value:
char *token; \
int length
int length(const List *list)
Definition: list.c:1271

Definition at line 53 of file readfuncs.c.

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

#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)
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
uint64 pg_strtouint64(const char *str, char **endptr, int base)
Definition: numutils.c:405

Definition at line 75 of file readfuncs.c.

Referenced by _readPlannedStmt().

#define READ_UINT_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atoui(token)
#define atoui(x)
Definition: readfuncs.c:173
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107

Definition at line 69 of file readfuncs.c.

Referenced by _readAggref(), _readCurrentOfExpr(), _readCustomScan(), _readGroupingFunc(), _readModifyTable(), _readPlanInvalItem(), _readPlanRowMark(), _readRangeTblEntry(), _readRowMarkClause(), _readSortGroupClause(), _readTargetEntry(), _readVar(), _readWindowAgg(), _readWindowClause(), _readWindowFunc(), and ReadCommonScan().

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

Definition at line 175 of file readfuncs.c.

Referenced by readBoolCols().

Function Documentation

static Agg* _readAgg ( void  )
static

Definition at line 2101 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, and ReadCommonPlan().

Referenced by parseNodeString().

2102 {
2103  READ_LOCALS(Agg);
2104 
2105  ReadCommonPlan(&local_node->plan);
2106 
2107  READ_ENUM_FIELD(aggstrategy, AggStrategy);
2108  READ_ENUM_FIELD(aggsplit, AggSplit);
2109  READ_INT_FIELD(numCols);
2110  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2111  READ_OID_ARRAY(grpOperators, local_node->numCols);
2112  READ_LONG_FIELD(numGroups);
2113  READ_BITMAPSET_FIELD(aggParams);
2114  READ_NODE_FIELD(groupingSets);
2115  READ_NODE_FIELD(chain);
2116 
2117  READ_DONE();
2118 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:81
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
AggSplit
Definition: nodes.h:758
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
AggStrategy
Definition: nodes.h:736
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
Definition: plannodes.h:780
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static Aggref* _readAggref ( void  )
static

Definition at line 578 of file readfuncs.c.

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

Referenced by parseNodeString().

579 {
581 
582  READ_OID_FIELD(aggfnoid);
583  READ_OID_FIELD(aggtype);
584  READ_OID_FIELD(aggcollid);
585  READ_OID_FIELD(inputcollid);
586  READ_OID_FIELD(aggtranstype);
587  READ_NODE_FIELD(aggargtypes);
588  READ_NODE_FIELD(aggdirectargs);
590  READ_NODE_FIELD(aggorder);
591  READ_NODE_FIELD(aggdistinct);
592  READ_NODE_FIELD(aggfilter);
593  READ_BOOL_FIELD(aggstar);
594  READ_BOOL_FIELD(aggvariadic);
595  READ_CHAR_FIELD(aggkind);
596  READ_UINT_FIELD(agglevelsup);
597  READ_ENUM_FIELD(aggsplit, AggSplit);
598  READ_LOCATION_FIELD(location);
599 
600  READ_DONE();
601 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:93
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
AggSplit
Definition: nodes.h:758
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static Alias* _readAlias ( void  )
static

Definition at line 442 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

443 {
445 
446  READ_STRING_FIELD(aliasname);
447  READ_NODE_FIELD(colnames);
448 
449  READ_DONE();
450 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
static AlternativeSubPlan* _readAlternativeSubPlan ( void  )
static

Definition at line 2351 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2352 {
2354 
2355  READ_NODE_FIELD(subplans);
2356 
2357  READ_DONE();
2358 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static Append* _readAppend ( void  )
static

Definition at line 1595 of file readfuncs.c.

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

Referenced by parseNodeString().

1596 {
1598 
1599  ReadCommonPlan(&local_node->plan);
1600 
1601  READ_NODE_FIELD(partitioned_rels);
1602  READ_NODE_FIELD(appendplans);
1603 
1604  READ_DONE();
1605 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static ArrayCoerceExpr* _readArrayCoerceExpr ( void  )
static

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

898 {
900 
902  READ_NODE_FIELD(elemexpr);
903  READ_OID_FIELD(resulttype);
904  READ_INT_FIELD(resulttypmod);
905  READ_OID_FIELD(resultcollid);
906  READ_ENUM_FIELD(coerceformat, CoercionForm);
907  READ_LOCATION_FIELD(location);
908 
909  READ_DONE();
910 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
CoercionForm
Definition: primnodes.h:436
static ArrayExpr* _readArrayExpr ( void  )
static

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

996 {
998 
999  READ_OID_FIELD(array_typeid);
1000  READ_OID_FIELD(array_collid);
1001  READ_OID_FIELD(element_typeid);
1002  READ_NODE_FIELD(elements);
1003  READ_BOOL_FIELD(multidims);
1004  READ_LOCATION_FIELD(location);
1005 
1006  READ_DONE();
1007 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static ArrayRef* _readArrayRef ( void  )
static

Definition at line 646 of file readfuncs.c.

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

Referenced by parseNodeString().

647 {
649 
650  READ_OID_FIELD(refarraytype);
651  READ_OID_FIELD(refelemtype);
652  READ_INT_FIELD(reftypmod);
653  READ_OID_FIELD(refcollid);
654  READ_NODE_FIELD(refupperindexpr);
655  READ_NODE_FIELD(reflowerindexpr);
656  READ_NODE_FIELD(refexpr);
657  READ_NODE_FIELD(refassgnexpr);
658 
659  READ_DONE();
660 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static BitmapAnd* _readBitmapAnd ( void  )
static

Definition at line 1651 of file readfuncs.c.

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

Referenced by parseNodeString().

1652 {
1654 
1655  ReadCommonPlan(&local_node->plan);
1656 
1657  READ_NODE_FIELD(bitmapplans);
1658 
1659  READ_DONE();
1660 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static BitmapHeapScan* _readBitmapHeapScan ( void  )
static

Definition at line 1795 of file readfuncs.c.

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

Referenced by parseNodeString().

1796 {
1798 
1799  ReadCommonScan(&local_node->scan);
1800 
1801  READ_NODE_FIELD(bitmapqualorig);
1802 
1803  READ_DONE();
1804 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static BitmapIndexScan* _readBitmapIndexScan ( void  )
static

Definition at line 1777 of file readfuncs.c.

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

Referenced by parseNodeString().

1778 {
1780 
1781  ReadCommonScan(&local_node->scan);
1782 
1783  READ_OID_FIELD(indexid);
1784  READ_BOOL_FIELD(isshared);
1785  READ_NODE_FIELD(indexqual);
1786  READ_NODE_FIELD(indexqualorig);
1787 
1788  READ_DONE();
1789 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static BitmapOr* _readBitmapOr ( void  )
static

Definition at line 1666 of file readfuncs.c.

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

Referenced by parseNodeString().

1667 {
1669 
1670  ReadCommonPlan(&local_node->plan);
1671 
1672  READ_BOOL_FIELD(isshared);
1673  READ_NODE_FIELD(bitmapplans);
1674 
1675  READ_DONE();
1676 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static Bitmapset* _readBitmapset ( void  )
static

Definition at line 185 of file readfuncs.c.

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

Referenced by readBitmapset().

186 {
187  Bitmapset *result = NULL;
188 
190 
191  token = pg_strtok(&length);
192  if (token == NULL)
193  elog(ERROR, "incomplete Bitmapset structure");
194  if (length != 1 || token[0] != '(')
195  elog(ERROR, "unrecognized token: \"%.*s\"", length, token);
196 
197  token = pg_strtok(&length);
198  if (token == NULL)
199  elog(ERROR, "incomplete Bitmapset structure");
200  if (length != 1 || token[0] != 'b')
201  elog(ERROR, "unrecognized token: \"%.*s\"", length, token);
202 
203  for (;;)
204  {
205  int val;
206  char *endptr;
207 
208  token = pg_strtok(&length);
209  if (token == NULL)
210  elog(ERROR, "unterminated Bitmapset structure");
211  if (length == 1 && token[0] == ')')
212  break;
213  val = (int) strtol(token, &endptr, 10);
214  if (endptr != token + length)
215  elog(ERROR, "unrecognized integer: \"%.*s\"", length, token);
216  result = bms_add_member(result, val);
217  }
218 
219  return result;
220 }
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define ERROR
Definition: elog.h:43
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:53
Bitmapset * bms_add_member(Bitmapset *a, int x)
Definition: bitmapset.c:698
#define elog
Definition: elog.h:219
long val
Definition: informix.c:689
static BooleanTest* _readBooleanTest ( void  )
static

Definition at line 1135 of file readfuncs.c.

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

Referenced by parseNodeString().

1136 {
1138 
1140  READ_ENUM_FIELD(booltesttype, BoolTestType);
1141  READ_LOCATION_FIELD(location);
1142 
1143  READ_DONE();
1144 }
BoolTestType
Definition: primnodes.h:1195
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
static BoolExpr* _readBoolExpr ( void  )
static

Definition at line 781 of file readfuncs.c.

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

Referenced by parseNodeString().

782 {
784 
785  /* do-it-yourself enum representation */
786  token = pg_strtok(&length); /* skip :boolop */
787  token = pg_strtok(&length); /* get field value */
788  if (strncmp(token, "and", 3) == 0)
789  local_node->boolop = AND_EXPR;
790  else if (strncmp(token, "or", 2) == 0)
791  local_node->boolop = OR_EXPR;
792  else if (strncmp(token, "not", 3) == 0)
793  local_node->boolop = NOT_EXPR;
794  else
795  elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
796 
798  READ_LOCATION_FIELD(location);
799 
800  READ_DONE();
801 }
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define ERROR
Definition: elog.h:43
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define elog
Definition: elog.h:219
static CaseExpr* _readCaseExpr ( void  )
static

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

948 {
950 
951  READ_OID_FIELD(casetype);
952  READ_OID_FIELD(casecollid);
955  READ_NODE_FIELD(defresult);
956  READ_LOCATION_FIELD(location);
957 
958  READ_DONE();
959 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
static CaseTestExpr* _readCaseTestExpr ( void  )
static

Definition at line 980 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

981 {
983 
984  READ_OID_FIELD(typeId);
985  READ_INT_FIELD(typeMod);
986  READ_OID_FIELD(collation);
987 
988  READ_DONE();
989 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static CaseWhen* _readCaseWhen ( void  )
static

Definition at line 965 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

966 {
968 
969  READ_NODE_FIELD(expr);
970  READ_NODE_FIELD(result);
971  READ_LOCATION_FIELD(location);
972 
973  READ_DONE();
974 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static CoalesceExpr* _readCoalesceExpr ( void  )
static

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

1049 {
1051 
1052  READ_OID_FIELD(coalescetype);
1053  READ_OID_FIELD(coalescecollid);
1055  READ_LOCATION_FIELD(location);
1056 
1057  READ_DONE();
1058 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static CoerceToDomain* _readCoerceToDomain ( void  )
static

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

1151 {
1153 
1155  READ_OID_FIELD(resulttype);
1156  READ_INT_FIELD(resulttypmod);
1157  READ_OID_FIELD(resultcollid);
1158  READ_ENUM_FIELD(coercionformat, CoercionForm);
1159  READ_LOCATION_FIELD(location);
1160 
1161  READ_DONE();
1162 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
CoercionForm
Definition: primnodes.h:436
static CoerceToDomainValue* _readCoerceToDomainValue ( void  )
static

Definition at line 1168 of file readfuncs.c.

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

Referenced by parseNodeString().

1169 {
1171 
1172  READ_OID_FIELD(typeId);
1173  READ_INT_FIELD(typeMod);
1174  READ_OID_FIELD(collation);
1175  READ_LOCATION_FIELD(location);
1176 
1177  READ_DONE();
1178 }
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static CoerceViaIO* _readCoerceViaIO ( void  )
static

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

881 {
883 
885  READ_OID_FIELD(resulttype);
886  READ_OID_FIELD(resultcollid);
887  READ_ENUM_FIELD(coerceformat, CoercionForm);
888  READ_LOCATION_FIELD(location);
889 
890  READ_DONE();
891 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
CoercionForm
Definition: primnodes.h:436
static CollateExpr* _readCollateExpr ( void  )
static

Definition at line 932 of file readfuncs.c.

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

Referenced by parseNodeString().

933 {
935 
937  READ_OID_FIELD(collOid);
938  READ_LOCATION_FIELD(location);
939 
940  READ_DONE();
941 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
static CommonTableExpr* _readCommonTableExpr ( void  )
static

Definition at line 398 of file readfuncs.c.

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

Referenced by parseNodeString().

399 {
401 
402  READ_STRING_FIELD(ctename);
403  READ_NODE_FIELD(aliascolnames);
404  READ_NODE_FIELD(ctequery);
405  READ_LOCATION_FIELD(location);
406  READ_BOOL_FIELD(cterecursive);
407  READ_INT_FIELD(cterefcount);
408  READ_NODE_FIELD(ctecolnames);
409  READ_NODE_FIELD(ctecoltypes);
410  READ_NODE_FIELD(ctecoltypmods);
411  READ_NODE_FIELD(ctecolcollations);
412 
413  READ_DONE();
414 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static Const* _readConst ( void  )
static

Definition at line 535 of file readfuncs.c.

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

Referenced by parseNodeString().

536 {
538 
539  READ_OID_FIELD(consttype);
540  READ_INT_FIELD(consttypmod);
541  READ_OID_FIELD(constcollid);
542  READ_INT_FIELD(constlen);
543  READ_BOOL_FIELD(constbyval);
544  READ_BOOL_FIELD(constisnull);
545  READ_LOCATION_FIELD(location);
546 
547  token = pg_strtok(&length); /* skip :constvalue */
548  if (local_node->constisnull)
549  token = pg_strtok(&length); /* skip "<>" */
550  else
551  local_node->constvalue = readDatum(local_node->constbyval);
552 
553  READ_DONE();
554 }
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
Datum readDatum(bool typbyval)
Definition: readfuncs.c:2687
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static ConvertRowtypeExpr* _readConvertRowtypeExpr ( void  )
static

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

917 {
919 
921  READ_OID_FIELD(resulttype);
922  READ_ENUM_FIELD(convertformat, CoercionForm);
923  READ_LOCATION_FIELD(location);
924 
925  READ_DONE();
926 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
CoercionForm
Definition: primnodes.h:436
static CteScan* _readCteScan ( void  )
static

Definition at line 1886 of file readfuncs.c.

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

Referenced by parseNodeString().

1887 {
1889 
1890  ReadCommonScan(&local_node->scan);
1891 
1892  READ_INT_FIELD(ctePlanId);
1893  READ_INT_FIELD(cteParam);
1894 
1895  READ_DONE();
1896 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static CurrentOfExpr* _readCurrentOfExpr ( void  )
static

Definition at line 1200 of file readfuncs.c.

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

Referenced by parseNodeString().

1201 {
1203 
1204  READ_UINT_FIELD(cvarno);
1205  READ_STRING_FIELD(cursor_name);
1206  READ_INT_FIELD(cursor_param);
1207 
1208  READ_DONE();
1209 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static CustomScan* _readCustomScan ( void  )
static

Definition at line 1939 of file readfuncs.c.

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

Referenced by parseNodeString().

1940 {
1942  char *custom_name;
1943  const CustomScanMethods *methods;
1944 
1945  ReadCommonScan(&local_node->scan);
1946 
1947  READ_UINT_FIELD(flags);
1948  READ_NODE_FIELD(custom_plans);
1949  READ_NODE_FIELD(custom_exprs);
1950  READ_NODE_FIELD(custom_private);
1951  READ_NODE_FIELD(custom_scan_tlist);
1952  READ_BITMAPSET_FIELD(custom_relids);
1953 
1954  /* Lookup CustomScanMethods by CustomName */
1955  token = pg_strtok(&length); /* skip methods: */
1956  token = pg_strtok(&length); /* CustomName */
1957  custom_name = nullable_string(token, length);
1958  methods = GetCustomScanMethods(custom_name, false);
1959  local_node->methods = methods;
1960 
1961  READ_DONE();
1962 }
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_DONE()
Definition: readfuncs.c:163
const CustomScanMethods * GetCustomScanMethods(const char *CustomName, bool missing_ok)
Definition: extensible.c:137
#define nullable_string(token, length)
Definition: readfuncs.c:177
static DeclareCursorStmt* _readDeclareCursorStmt ( void  )
static

Definition at line 297 of file readfuncs.c.

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

Referenced by parseNodeString().

298 {
300 
301  READ_STRING_FIELD(portalname);
303  READ_NODE_FIELD(query);
304 
305  READ_DONE();
306 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static DefElem* _readDefElem ( void  )
static

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

1445 {
1447 
1448  READ_STRING_FIELD(defnamespace);
1449  READ_STRING_FIELD(defname);
1451  READ_ENUM_FIELD(defaction, DefElemAction);
1452  READ_LOCATION_FIELD(location);
1453 
1454  READ_DONE();
1455 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
DefElemAction
Definition: parsenodes.h:707
void * arg
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
static DistinctExpr* _readDistinctExpr ( void  )
static

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

724 {
726 
727  READ_OID_FIELD(opno);
728  READ_OID_FIELD(opfuncid);
729  READ_OID_FIELD(opresulttype);
730  READ_BOOL_FIELD(opretset);
731  READ_OID_FIELD(opcollid);
732  READ_OID_FIELD(inputcollid);
734  READ_LOCATION_FIELD(location);
735 
736  READ_DONE();
737 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static ExtensibleNode* _readExtensibleNode ( void  )
static

Definition at line 2364 of file readfuncs.c.

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

Referenced by parseNodeString().

2365 {
2366  const ExtensibleNodeMethods *methods;
2367  ExtensibleNode *local_node;
2368  const char *extnodename;
2369 
2370  READ_TEMP_LOCALS();
2371 
2372  token = pg_strtok(&length); /* skip :extnodename */
2373  token = pg_strtok(&length); /* get extnodename */
2374 
2375  extnodename = nullable_string(token, length);
2376  if (!extnodename)
2377  elog(ERROR, "extnodename has to be supplied");
2378  methods = GetExtensibleNodeMethods(extnodename, false);
2379 
2380  local_node = (ExtensibleNode *) newNode(methods->node_size,
2382  local_node->extnodename = extnodename;
2383 
2384  /* deserialize the private fields */
2385  methods->nodeRead(local_node);
2386 
2387  READ_DONE();
2388 }
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define newNode(size, tag)
Definition: nodes.h:548
#define ERROR
Definition: elog.h:43
void(* nodeRead)(struct ExtensibleNode *node)
Definition: extensible.h:70
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:53
const char * extnodename
Definition: extensible.h:35
#define READ_DONE()
Definition: readfuncs.c:163
#define elog
Definition: elog.h:219
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125
#define nullable_string(token, length)
Definition: readfuncs.c:177
static FieldSelect* _readFieldSelect ( void  )
static

Definition at line 829 of file readfuncs.c.

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

Referenced by parseNodeString().

830 {
832 
834  READ_INT_FIELD(fieldnum);
835  READ_OID_FIELD(resulttype);
836  READ_INT_FIELD(resulttypmod);
837  READ_OID_FIELD(resultcollid);
838 
839  READ_DONE();
840 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static FieldStore* _readFieldStore ( void  )
static

Definition at line 846 of file readfuncs.c.

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

Referenced by parseNodeString().

847 {
849 
851  READ_NODE_FIELD(newvals);
852  READ_NODE_FIELD(fieldnums);
853  READ_OID_FIELD(resulttype);
854 
855  READ_DONE();
856 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
static ForeignScan* _readForeignScan ( void  )
static

Definition at line 1917 of file readfuncs.c.

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

Referenced by parseNodeString().

1918 {
1920 
1921  ReadCommonScan(&local_node->scan);
1922 
1923  READ_ENUM_FIELD(operation, CmdType);
1924  READ_OID_FIELD(fs_server);
1925  READ_NODE_FIELD(fdw_exprs);
1926  READ_NODE_FIELD(fdw_private);
1927  READ_NODE_FIELD(fdw_scan_tlist);
1928  READ_NODE_FIELD(fdw_recheck_quals);
1929  READ_BITMAPSET_FIELD(fs_relids);
1930  READ_BOOL_FIELD(fsSystemCol);
1931 
1932  READ_DONE();
1933 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_DONE()
Definition: readfuncs.c:163
CmdType
Definition: nodes.h:650
static FromExpr* _readFromExpr ( void  )
static

Definition at line 1296 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1297 {
1299 
1300  READ_NODE_FIELD(fromlist);
1301  READ_NODE_FIELD(quals);
1302 
1303  READ_DONE();
1304 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static FuncExpr* _readFuncExpr ( void  )
static

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

667 {
669 
670  READ_OID_FIELD(funcid);
671  READ_OID_FIELD(funcresulttype);
672  READ_BOOL_FIELD(funcretset);
673  READ_BOOL_FIELD(funcvariadic);
674  READ_ENUM_FIELD(funcformat, CoercionForm);
675  READ_OID_FIELD(funccollid);
676  READ_OID_FIELD(inputcollid);
678  READ_LOCATION_FIELD(location);
679 
680  READ_DONE();
681 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
CoercionForm
Definition: primnodes.h:436
static FunctionScan* _readFunctionScan ( void  )
static

Definition at line 1840 of file readfuncs.c.

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

Referenced by parseNodeString().

1841 {
1843 
1844  ReadCommonScan(&local_node->scan);
1845 
1847  READ_BOOL_FIELD(funcordinality);
1848 
1849  READ_DONE();
1850 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
static const struct fns functions
Definition: regcomp.c:299
#define READ_DONE()
Definition: readfuncs.c:163
static Gather* _readGather ( void  )
static

Definition at line 2165 of file readfuncs.c.

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

Referenced by parseNodeString().

2166 {
2168 
2169  ReadCommonPlan(&local_node->plan);
2170 
2171  READ_INT_FIELD(num_workers);
2172  READ_INT_FIELD(rescan_param);
2173  READ_BOOL_FIELD(single_copy);
2174  READ_BOOL_FIELD(invisible);
2175 
2176  READ_DONE();
2177 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static GatherMerge* _readGatherMerge ( void  )
static

Definition at line 2183 of file readfuncs.c.

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

Referenced by parseNodeString().

2184 {
2186 
2187  ReadCommonPlan(&local_node->plan);
2188 
2189  READ_INT_FIELD(num_workers);
2190  READ_INT_FIELD(rescan_param);
2191  READ_INT_FIELD(numCols);
2192  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2193  READ_OID_ARRAY(sortOperators, local_node->numCols);
2194  READ_OID_ARRAY(collations, local_node->numCols);
2195  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2196 
2197  READ_DONE();
2198 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:158
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static Group* _readGroup ( void  )
static

Definition at line 2084 of file readfuncs.c.

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

Referenced by parseNodeString().

2085 {
2086  READ_LOCALS(Group);
2087 
2088  ReadCommonPlan(&local_node->plan);
2089 
2090  READ_INT_FIELD(numCols);
2091  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2092  READ_OID_ARRAY(grpOperators, local_node->numCols);
2093 
2094  READ_DONE();
2095 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static GroupingFunc* _readGroupingFunc ( void  )
static

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

608 {
610 
612  READ_NODE_FIELD(refs);
613  READ_NODE_FIELD(cols);
614  READ_UINT_FIELD(agglevelsup);
615  READ_LOCATION_FIELD(location);
616 
617  READ_DONE();
618 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static GroupingSet* _readGroupingSet ( void  )
static

Definition at line 346 of file readfuncs.c.

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

Referenced by parseNodeString().

347 {
349 
351  READ_NODE_FIELD(content);
352  READ_LOCATION_FIELD(location);
353 
354  READ_DONE();
355 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
GroupingSetKind
Definition: parsenodes.h:1247
#define READ_DONE()
Definition: readfuncs.c:163
static Hash* _readHash ( void  )
static

Definition at line 2204 of file readfuncs.c.

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

Referenced by parseNodeString().

2205 {
2206  READ_LOCALS(Hash);
2207 
2208  ReadCommonPlan(&local_node->plan);
2209 
2210  READ_OID_FIELD(skewTable);
2211  READ_INT_FIELD(skewColumn);
2212  READ_BOOL_FIELD(skewInherit);
2213 
2214  READ_DONE();
2215 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static HashJoin* _readHashJoin ( void  )
static

Definition at line 2037 of file readfuncs.c.

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

Referenced by parseNodeString().

2038 {
2040 
2041  ReadCommonJoin(&local_node->join);
2042 
2043  READ_NODE_FIELD(hashclauses);
2044 
2045  READ_DONE();
2046 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1969
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static IndexOnlyScan* _readIndexOnlyScan ( void  )
static

Definition at line 1758 of file readfuncs.c.

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

Referenced by parseNodeString().

1759 {
1761 
1762  ReadCommonScan(&local_node->scan);
1763 
1764  READ_OID_FIELD(indexid);
1765  READ_NODE_FIELD(indexqual);
1766  READ_NODE_FIELD(indexorderby);
1767  READ_NODE_FIELD(indextlist);
1768  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1769 
1770  READ_DONE();
1771 }
ScanDirection
Definition: sdir.h:22
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static IndexScan* _readIndexScan ( void  )
static

Definition at line 1737 of file readfuncs.c.

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

Referenced by parseNodeString().

1738 {
1740 
1741  ReadCommonScan(&local_node->scan);
1742 
1743  READ_OID_FIELD(indexid);
1744  READ_NODE_FIELD(indexqual);
1745  READ_NODE_FIELD(indexqualorig);
1746  READ_NODE_FIELD(indexorderby);
1747  READ_NODE_FIELD(indexorderbyorig);
1748  READ_NODE_FIELD(indexorderbyops);
1749  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1750 
1751  READ_DONE();
1752 }
ScanDirection
Definition: sdir.h:22
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static InferenceElem* _readInferenceElem ( void  )
static

Definition at line 1229 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1230 {
1232 
1233  READ_NODE_FIELD(expr);
1234  READ_OID_FIELD(infercollid);
1235  READ_OID_FIELD(inferopclass);
1236 
1237  READ_DONE();
1238 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static IntoClause* _readIntoClause ( void  )
static

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

496 {
498 
499  READ_NODE_FIELD(rel);
500  READ_NODE_FIELD(colNames);
502  READ_ENUM_FIELD(onCommit, OnCommitAction);
503  READ_STRING_FIELD(tableSpaceName);
504  READ_NODE_FIELD(viewQuery);
505  READ_BOOL_FIELD(skipData);
506 
507  READ_DONE();
508 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
OnCommitAction
Definition: primnodes.h:47
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
static Join* _readJoin ( void  )
static

Definition at line 1984 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonJoin().

Referenced by parseNodeString().

1985 {
1987 
1988  ReadCommonJoin(local_node);
1989 
1990  READ_DONE();
1991 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:49
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1969
#define READ_DONE()
Definition: readfuncs.c:163
static JoinExpr* _readJoinExpr ( void  )
static

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

1277 {
1279 
1280  READ_ENUM_FIELD(jointype, JoinType);
1281  READ_BOOL_FIELD(isNatural);
1282  READ_NODE_FIELD(larg);
1283  READ_NODE_FIELD(rarg);
1284  READ_NODE_FIELD(usingClause);
1285  READ_NODE_FIELD(quals);
1286  READ_NODE_FIELD(alias);
1287  READ_INT_FIELD(rtindex);
1288 
1289  READ_DONE();
1290 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
JoinType
Definition: nodes.h:674
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static Limit* _readLimit ( void  )
static

Definition at line 2259 of file readfuncs.c.

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

Referenced by parseNodeString().

2260 {
2261  READ_LOCALS(Limit);
2262 
2263  ReadCommonPlan(&local_node->plan);
2264 
2265  READ_NODE_FIELD(limitOffset);
2266  READ_NODE_FIELD(limitCount);
2267 
2268  READ_DONE();
2269 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static LockRows* _readLockRows ( void  )
static

Definition at line 2243 of file readfuncs.c.

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

Referenced by parseNodeString().

2244 {
2246 
2247  ReadCommonPlan(&local_node->plan);
2248 
2249  READ_NODE_FIELD(rowMarks);
2250  READ_INT_FIELD(epqParam);
2251 
2252  READ_DONE();
2253 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static Material* _readMaterial ( void  )
static

Definition at line 2052 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

2053 {
2055 
2056  ReadCommonPlan(&local_node->plan);
2057 
2058  READ_DONE();
2059 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:49
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_DONE()
Definition: readfuncs.c:163
static MergeAppend* _readMergeAppend ( void  )
static

Definition at line 1611 of file readfuncs.c.

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

Referenced by parseNodeString().

1612 {
1614 
1615  ReadCommonPlan(&local_node->plan);
1616 
1617  READ_NODE_FIELD(partitioned_rels);
1618  READ_NODE_FIELD(mergeplans);
1619  READ_INT_FIELD(numCols);
1620  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
1621  READ_OID_ARRAY(sortOperators, local_node->numCols);
1622  READ_OID_ARRAY(collations, local_node->numCols);
1623  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
1624 
1625  READ_DONE();
1626 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:158
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static MergeJoin* _readMergeJoin ( void  )
static

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

2013 {
2014  int numCols;
2015 
2017 
2018  ReadCommonJoin(&local_node->join);
2019 
2020  READ_BOOL_FIELD(skip_mark_restore);
2021  READ_NODE_FIELD(mergeclauses);
2022 
2023  numCols = list_length(local_node->mergeclauses);
2024 
2025  READ_OID_ARRAY(mergeFamilies, numCols);
2026  READ_OID_ARRAY(mergeCollations, numCols);
2027  READ_INT_ARRAY(mergeStrategies, numCols);
2028  READ_BOOL_ARRAY(mergeNullsFirst, numCols);
2029 
2030  READ_DONE();
2031 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:158
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1969
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
static int list_length(const List *l)
Definition: pg_list.h:89
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_ARRAY(fldname, len)
Definition: readfuncs.c:153
static MinMaxExpr* _readMinMaxExpr ( void  )
static

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

1065 {
1067 
1068  READ_OID_FIELD(minmaxtype);
1069  READ_OID_FIELD(minmaxcollid);
1070  READ_OID_FIELD(inputcollid);
1073  READ_LOCATION_FIELD(location);
1074 
1075  READ_DONE();
1076 }
MinMaxOp
Definition: primnodes.h:1054
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static ModifyTable* _readModifyTable ( void  )
static

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

1562 {
1564 
1565  ReadCommonPlan(&local_node->plan);
1566 
1567  READ_ENUM_FIELD(operation, CmdType);
1568  READ_BOOL_FIELD(canSetTag);
1569  READ_UINT_FIELD(nominalRelation);
1570  READ_NODE_FIELD(partitioned_rels);
1571  READ_NODE_FIELD(resultRelations);
1572  READ_INT_FIELD(resultRelIndex);
1573  READ_INT_FIELD(rootResultRelIndex);
1574  READ_NODE_FIELD(plans);
1575  READ_NODE_FIELD(withCheckOptionLists);
1576  READ_NODE_FIELD(returningLists);
1577  READ_NODE_FIELD(fdwPrivLists);
1578  READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
1579  READ_NODE_FIELD(rowMarks);
1580  READ_INT_FIELD(epqParam);
1581  READ_ENUM_FIELD(onConflictAction, OnConflictAction);
1582  READ_NODE_FIELD(arbiterIndexes);
1583  READ_NODE_FIELD(onConflictSet);
1584  READ_NODE_FIELD(onConflictWhere);
1585  READ_UINT_FIELD(exclRelRTI);
1586  READ_NODE_FIELD(exclRelTlist);
1587 
1588  READ_DONE();
1589 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
OnConflictAction
Definition: nodes.h:800
CmdType
Definition: nodes.h:650
static NamedArgExpr* _readNamedArgExpr ( void  )
static

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

688 {
690 
693  READ_INT_FIELD(argnumber);
694  READ_LOCATION_FIELD(location);
695 
696  READ_DONE();
697 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
const char * name
Definition: encode.c:521
void * arg
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static NestLoop* _readNestLoop ( void  )
static

Definition at line 1997 of file readfuncs.c.

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

Referenced by parseNodeString().

1998 {
2000 
2001  ReadCommonJoin(&local_node->join);
2002 
2003  READ_NODE_FIELD(nestParams);
2004 
2005  READ_DONE();
2006 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1969
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static NestLoopParam* _readNestLoopParam ( void  )
static

Definition at line 2275 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2276 {
2278 
2279  READ_INT_FIELD(paramno);
2280  READ_NODE_FIELD(paramval);
2281 
2282  READ_DONE();
2283 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static NextValueExpr* _readNextValueExpr ( void  )
static

Definition at line 1215 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

1216 {
1218 
1219  READ_OID_FIELD(seqid);
1220  READ_OID_FIELD(typeId);
1221 
1222  READ_DONE();
1223 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static NotifyStmt* _readNotifyStmt ( void  )
static

Definition at line 283 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_STRING_FIELD.

Referenced by parseNodeString().

284 {
286 
287  READ_STRING_FIELD(conditionname);
288  READ_STRING_FIELD(payload);
289 
290  READ_DONE();
291 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
static NullIfExpr* _readNullIfExpr ( void  )
static

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

744 {
746 
747  READ_OID_FIELD(opno);
748  READ_OID_FIELD(opfuncid);
749  READ_OID_FIELD(opresulttype);
750  READ_BOOL_FIELD(opretset);
751  READ_OID_FIELD(opcollid);
752  READ_OID_FIELD(inputcollid);
754  READ_LOCATION_FIELD(location);
755 
756  READ_DONE();
757 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static NullTest* _readNullTest ( void  )
static

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

1120 {
1122 
1124  READ_ENUM_FIELD(nulltesttype, NullTestType);
1125  READ_BOOL_FIELD(argisrow);
1126  READ_LOCATION_FIELD(location);
1127 
1128  READ_DONE();
1129 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
NullTestType
Definition: primnodes.h:1172
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
static OnConflictExpr* _readOnConflictExpr ( void  )
static

Definition at line 1310 of file readfuncs.c.

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

Referenced by parseNodeString().

1311 {
1313 
1315  READ_NODE_FIELD(arbiterElems);
1316  READ_NODE_FIELD(arbiterWhere);
1317  READ_OID_FIELD(constraint);
1318  READ_NODE_FIELD(onConflictSet);
1319  READ_NODE_FIELD(onConflictWhere);
1320  READ_INT_FIELD(exclRelIndex);
1321  READ_NODE_FIELD(exclRelTlist);
1322 
1323  READ_DONE();
1324 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
OnConflictAction
Definition: nodes.h:800
static OpExpr* _readOpExpr ( void  )
static

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

704 {
706 
707  READ_OID_FIELD(opno);
708  READ_OID_FIELD(opfuncid);
709  READ_OID_FIELD(opresulttype);
710  READ_BOOL_FIELD(opretset);
711  READ_OID_FIELD(opcollid);
712  READ_OID_FIELD(inputcollid);
714  READ_LOCATION_FIELD(location);
715 
716  READ_DONE();
717 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static Param* _readParam ( void  )
static

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

561 {
563 
564  READ_ENUM_FIELD(paramkind, ParamKind);
565  READ_INT_FIELD(paramid);
566  READ_OID_FIELD(paramtype);
567  READ_INT_FIELD(paramtypmod);
568  READ_OID_FIELD(paramcollid);
569  READ_LOCATION_FIELD(location);
570 
571  READ_DONE();
572 }
ParamKind
Definition: primnodes.h:233
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static PartitionBoundSpec* _readPartitionBoundSpec ( void  )
static

Definition at line 2394 of file readfuncs.c.

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

Referenced by parseNodeString().

2395 {
2397 
2398  READ_CHAR_FIELD(strategy);
2399  READ_BOOL_FIELD(is_default);
2400  READ_NODE_FIELD(listdatums);
2401  READ_NODE_FIELD(lowerdatums);
2402  READ_NODE_FIELD(upperdatums);
2403  READ_LOCATION_FIELD(location);
2404 
2405  READ_DONE();
2406 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:93
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static PartitionRangeDatum* _readPartitionRangeDatum ( void  )
static

Definition at line 2412 of file readfuncs.c.

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

Referenced by parseNodeString().

2413 {
2415 
2418  READ_LOCATION_FIELD(location);
2419 
2420  READ_DONE();
2421 }
PartitionRangeDatumKind
Definition: parsenodes.h:817
static struct @121 value
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static Plan* _readPlan ( void  )
static

Definition at line 1520 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1521 {
1523 
1524  ReadCommonPlan(local_node);
1525 
1526  READ_DONE();
1527 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:49
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_DONE()
Definition: readfuncs.c:163
static PlanInvalItem* _readPlanInvalItem ( void  )
static

Definition at line 2309 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

2310 {
2312 
2313  READ_INT_FIELD(cacheId);
2314  READ_UINT_FIELD(hashValue);
2315 
2316  READ_DONE();
2317 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static PlannedStmt* _readPlannedStmt ( void  )
static

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

1462 {
1464 
1465  READ_ENUM_FIELD(commandType, CmdType);
1466  READ_UINT64_FIELD(queryId);
1467  READ_BOOL_FIELD(hasReturning);
1468  READ_BOOL_FIELD(hasModifyingCTE);
1469  READ_BOOL_FIELD(canSetTag);
1470  READ_BOOL_FIELD(transientPlan);
1471  READ_BOOL_FIELD(dependsOnRole);
1472  READ_BOOL_FIELD(parallelModeNeeded);
1473  READ_NODE_FIELD(planTree);
1474  READ_NODE_FIELD(rtable);
1475  READ_NODE_FIELD(resultRelations);
1476  READ_NODE_FIELD(nonleafResultRelations);
1477  READ_NODE_FIELD(rootResultRelations);
1478  READ_NODE_FIELD(subplans);
1479  READ_BITMAPSET_FIELD(rewindPlanIDs);
1480  READ_NODE_FIELD(rowMarks);
1481  READ_NODE_FIELD(relationOids);
1482  READ_NODE_FIELD(invalItems);
1483  READ_INT_FIELD(nParamExec);
1484  READ_NODE_FIELD(utilityStmt);
1485  READ_LOCATION_FIELD(stmt_location);
1486  READ_LOCATION_FIELD(stmt_len);
1487 
1488  READ_DONE();
1489 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_UINT64_FIELD(fldname)
Definition: readfuncs.c:75
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
CmdType
Definition: nodes.h:650
static PlanRowMark* _readPlanRowMark ( void  )
static

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

2290 {
2292 
2293  READ_UINT_FIELD(rti);
2294  READ_UINT_FIELD(prti);
2295  READ_UINT_FIELD(rowmarkId);
2296  READ_ENUM_FIELD(markType, RowMarkType);
2297  READ_INT_FIELD(allMarkTypes);
2299  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2300  READ_BOOL_FIELD(isParent);
2301 
2302  READ_DONE();
2303 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
LockClauseStrength
Definition: lockoptions.h:21
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
RowMarkType
Definition: plannodes.h:959
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
LockWaitPolicy
Definition: lockoptions.h:36
static ProjectSet* _readProjectSet ( void  )
static

Definition at line 1548 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1549 {
1551 
1552  ReadCommonPlan(&local_node->plan);
1553 
1554  READ_DONE();
1555 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:49
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_DONE()
Definition: readfuncs.c:163
static Query* _readQuery ( void  )
static

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

236 {
238 
239  READ_ENUM_FIELD(commandType, CmdType);
240  READ_ENUM_FIELD(querySource, QuerySource);
241  local_node->queryId = UINT64CONST(0); /* not saved in output format */
242  READ_BOOL_FIELD(canSetTag);
243  READ_NODE_FIELD(utilityStmt);
244  READ_INT_FIELD(resultRelation);
245  READ_BOOL_FIELD(hasAggs);
246  READ_BOOL_FIELD(hasWindowFuncs);
247  READ_BOOL_FIELD(hasTargetSRFs);
248  READ_BOOL_FIELD(hasSubLinks);
249  READ_BOOL_FIELD(hasDistinctOn);
250  READ_BOOL_FIELD(hasRecursive);
251  READ_BOOL_FIELD(hasModifyingCTE);
252  READ_BOOL_FIELD(hasForUpdate);
253  READ_BOOL_FIELD(hasRowSecurity);
254  READ_NODE_FIELD(cteList);
255  READ_NODE_FIELD(rtable);
256  READ_NODE_FIELD(jointree);
257  READ_NODE_FIELD(targetList);
258  READ_ENUM_FIELD(override, OverridingKind);
259  READ_NODE_FIELD(onConflict);
260  READ_NODE_FIELD(returningList);
261  READ_NODE_FIELD(groupClause);
262  READ_NODE_FIELD(groupingSets);
263  READ_NODE_FIELD(havingQual);
264  READ_NODE_FIELD(windowClause);
265  READ_NODE_FIELD(distinctClause);
266  READ_NODE_FIELD(sortClause);
267  READ_NODE_FIELD(limitOffset);
268  READ_NODE_FIELD(limitCount);
269  READ_NODE_FIELD(rowMarks);
270  READ_NODE_FIELD(setOperations);
271  READ_NODE_FIELD(constraintDeps);
272  /* withCheckOptions intentionally omitted, see comment in parsenodes.h */
273  READ_LOCATION_FIELD(stmt_location);
274  READ_LOCATION_FIELD(stmt_len);
275 
276  READ_DONE();
277 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
QuerySource
Definition: parsenodes.h:38
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
CmdType
Definition: nodes.h:650
OverridingKind
Definition: parsenodes.h:30
static RangeTblEntry* _readRangeTblEntry ( void  )
static

Definition at line 1334 of file readfuncs.c.

References elog, ERROR, functions, READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_CHAR_FIELD, READ_DONE, READ_ENUM_FIELD, READ_FLOAT_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_SUBQUERY, RTE_TABLEFUNC, and RTE_VALUES.

Referenced by parseNodeString().

1335 {
1337 
1338  /* put alias + eref first to make dump more legible */
1339  READ_NODE_FIELD(alias);
1340  READ_NODE_FIELD(eref);
1341  READ_ENUM_FIELD(rtekind, RTEKind);
1342 
1343  switch (local_node->rtekind)
1344  {
1345  case RTE_RELATION:
1346  READ_OID_FIELD(relid);
1347  READ_CHAR_FIELD(relkind);
1348  READ_NODE_FIELD(tablesample);
1349  break;
1350  case RTE_SUBQUERY:
1351  READ_NODE_FIELD(subquery);
1352  READ_BOOL_FIELD(security_barrier);
1353  break;
1354  case RTE_JOIN:
1355  READ_ENUM_FIELD(jointype, JoinType);
1356  READ_NODE_FIELD(joinaliasvars);
1357  break;
1358  case RTE_FUNCTION:
1360  READ_BOOL_FIELD(funcordinality);
1361  break;
1362  case RTE_TABLEFUNC:
1363  READ_NODE_FIELD(tablefunc);
1364  break;
1365  case RTE_VALUES:
1366  READ_NODE_FIELD(values_lists);
1367  READ_NODE_FIELD(coltypes);
1368  READ_NODE_FIELD(coltypmods);
1369  READ_NODE_FIELD(colcollations);
1370  break;
1371  case RTE_CTE:
1372  READ_STRING_FIELD(ctename);
1373  READ_UINT_FIELD(ctelevelsup);
1374  READ_BOOL_FIELD(self_reference);
1375  READ_NODE_FIELD(coltypes);
1376  READ_NODE_FIELD(coltypmods);
1377  READ_NODE_FIELD(colcollations);
1378  break;
1379  case RTE_NAMEDTUPLESTORE:
1380  READ_STRING_FIELD(enrname);
1381  READ_FLOAT_FIELD(enrtuples);
1382  READ_OID_FIELD(relid);
1383  READ_NODE_FIELD(coltypes);
1384  READ_NODE_FIELD(coltypmods);
1385  READ_NODE_FIELD(colcollations);
1386  break;
1387  default:
1388  elog(ERROR, "unrecognized RTE kind: %d",
1389  (int) local_node->rtekind);
1390  break;
1391  }
1392 
1393  READ_BOOL_FIELD(lateral);
1394  READ_BOOL_FIELD(inh);
1395  READ_BOOL_FIELD(inFromCl);
1396  READ_UINT_FIELD(requiredPerms);
1397  READ_OID_FIELD(checkAsUser);
1398  READ_BITMAPSET_FIELD(selectedCols);
1399  READ_BITMAPSET_FIELD(insertedCols);
1400  READ_BITMAPSET_FIELD(updatedCols);
1401  READ_NODE_FIELD(securityQuals);
1402 
1403  READ_DONE();
1404 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
JoinType
Definition: nodes.h:674
#define ERROR
Definition: elog.h:43
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:106
RTEKind
Definition: parsenodes.h:929
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:93
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
static const struct fns functions
Definition: regcomp.c:299
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define elog
Definition: elog.h:219
static RangeTblFunction* _readRangeTblFunction ( void  )
static

Definition at line 1410 of file readfuncs.c.

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

Referenced by parseNodeString().

1411 {
1413 
1414  READ_NODE_FIELD(funcexpr);
1415  READ_INT_FIELD(funccolcount);
1416  READ_NODE_FIELD(funccolnames);
1417  READ_NODE_FIELD(funccoltypes);
1418  READ_NODE_FIELD(funccoltypmods);
1419  READ_NODE_FIELD(funccolcollations);
1420  READ_BITMAPSET_FIELD(funcparams);
1421 
1422  READ_DONE();
1423 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static RangeTblRef* _readRangeTblRef ( void  )
static

Definition at line 1263 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, and READ_LOCALS.

Referenced by parseNodeString().

1264 {
1266 
1267  READ_INT_FIELD(rtindex);
1268 
1269  READ_DONE();
1270 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static RangeVar* _readRangeVar ( void  )
static

Definition at line 453 of file readfuncs.c.

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

Referenced by parseNodeString().

454 {
456 
457  local_node->catalogname = NULL; /* not currently saved in output format */
458 
459  READ_STRING_FIELD(schemaname);
460  READ_STRING_FIELD(relname);
461  READ_BOOL_FIELD(inh);
462  READ_CHAR_FIELD(relpersistence);
463  READ_NODE_FIELD(alias);
464  READ_LOCATION_FIELD(location);
465 
466  READ_DONE();
467 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:93
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
static RecursiveUnion* _readRecursiveUnion ( void  )
static

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

1633 {
1635 
1636  ReadCommonPlan(&local_node->plan);
1637 
1638  READ_INT_FIELD(wtParam);
1639  READ_INT_FIELD(numCols);
1640  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
1641  READ_OID_ARRAY(dupOperators, local_node->numCols);
1642  READ_LONG_FIELD(numGroups);
1643 
1644  READ_DONE();
1645 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:81
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static RelabelType* _readRelabelType ( void  )
static

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

863 {
865 
867  READ_OID_FIELD(resulttype);
868  READ_INT_FIELD(resulttypmod);
869  READ_OID_FIELD(resultcollid);
870  READ_ENUM_FIELD(relabelformat, CoercionForm);
871  READ_LOCATION_FIELD(location);
872 
873  READ_DONE();
874 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
void * arg
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
CoercionForm
Definition: primnodes.h:436
static Result* _readResult ( void  )
static

Definition at line 1533 of file readfuncs.c.

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

Referenced by parseNodeString().

1534 {
1536 
1537  ReadCommonPlan(&local_node->plan);
1538 
1539  READ_NODE_FIELD(resconstantqual);
1540 
1541  READ_DONE();
1542 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static RowCompareExpr* _readRowCompareExpr ( void  )
static

Definition at line 1030 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1031 {
1033 
1035  READ_NODE_FIELD(opnos);
1036  READ_NODE_FIELD(opfamilies);
1037  READ_NODE_FIELD(inputcollids);
1038  READ_NODE_FIELD(largs);
1039  READ_NODE_FIELD(rargs);
1040 
1041  READ_DONE();
1042 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
RowCompareType
Definition: primnodes.h:1017
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static RowExpr* _readRowExpr ( void  )
static

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

1014 {
1016 
1018  READ_OID_FIELD(row_typeid);
1019  READ_ENUM_FIELD(row_format, CoercionForm);
1020  READ_NODE_FIELD(colnames);
1021  READ_LOCATION_FIELD(location);
1022 
1023  READ_DONE();
1024 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
CoercionForm
Definition: primnodes.h:436
static RowMarkClause* _readRowMarkClause ( void  )
static

Definition at line 382 of file readfuncs.c.

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

Referenced by parseNodeString().

383 {
385 
386  READ_UINT_FIELD(rti);
388  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
389  READ_BOOL_FIELD(pushedDown);
390 
391  READ_DONE();
392 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
LockClauseStrength
Definition: lockoptions.h:21
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
LockWaitPolicy
Definition: lockoptions.h:36
static SampleScan* _readSampleScan ( void  )
static

Definition at line 1722 of file readfuncs.c.

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

Referenced by parseNodeString().

1723 {
1725 
1726  ReadCommonScan(&local_node->scan);
1727 
1728  READ_NODE_FIELD(tablesample);
1729 
1730  READ_DONE();
1731 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static ScalarArrayOpExpr* _readScalarArrayOpExpr ( void  )
static

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

764 {
766 
767  READ_OID_FIELD(opno);
768  READ_OID_FIELD(opfuncid);
769  READ_BOOL_FIELD(useOr);
770  READ_OID_FIELD(inputcollid);
772  READ_LOCATION_FIELD(location);
773 
774  READ_DONE();
775 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static Scan* _readScan ( void  )
static

Definition at line 1696 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1697 {
1699 
1700  ReadCommonScan(local_node);
1701 
1702  READ_DONE();
1703 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:49
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_DONE()
Definition: readfuncs.c:163
static SeqScan* _readSeqScan ( void  )
static

Definition at line 1709 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1710 {
1712 
1713  ReadCommonScan(local_node);
1714 
1715  READ_DONE();
1716 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:49
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_DONE()
Definition: readfuncs.c:163
static SetOp* _readSetOp ( void  )
static

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

2222 {
2223  READ_LOCALS(SetOp);
2224 
2225  ReadCommonPlan(&local_node->plan);
2226 
2227  READ_ENUM_FIELD(cmd, SetOpCmd);
2228  READ_ENUM_FIELD(strategy, SetOpStrategy);
2229  READ_INT_FIELD(numCols);
2230  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
2231  READ_OID_ARRAY(dupOperators, local_node->numCols);
2232  READ_INT_FIELD(flagColIdx);
2233  READ_INT_FIELD(firstFlag);
2234  READ_LONG_FIELD(numGroups);
2235 
2236  READ_DONE();
2237 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:81
SetOpStrategy
Definition: nodes.h:788
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
SetOpCmd
Definition: nodes.h:780
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static SetOperationStmt* _readSetOperationStmt ( void  )
static

Definition at line 420 of file readfuncs.c.

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

Referenced by parseNodeString().

421 {
423 
425  READ_BOOL_FIELD(all);
426  READ_NODE_FIELD(larg);
427  READ_NODE_FIELD(rarg);
428  READ_NODE_FIELD(colTypes);
429  READ_NODE_FIELD(colTypmods);
430  READ_NODE_FIELD(colCollations);
431  READ_NODE_FIELD(groupClauses);
432 
433  READ_DONE();
434 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
SetOperation
Definition: parsenodes.h:1496
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static SetToDefault* _readSetToDefault ( void  )
static

Definition at line 1184 of file readfuncs.c.

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

Referenced by parseNodeString().

1185 {
1187 
1188  READ_OID_FIELD(typeId);
1189  READ_INT_FIELD(typeMod);
1190  READ_OID_FIELD(collation);
1191  READ_LOCATION_FIELD(location);
1192 
1193  READ_DONE();
1194 }
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static Sort* _readSort ( void  )
static

Definition at line 2065 of file readfuncs.c.

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

Referenced by parseNodeString().

2066 {
2067  READ_LOCALS(Sort);
2068 
2069  ReadCommonPlan(&local_node->plan);
2070 
2071  READ_INT_FIELD(numCols);
2072  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2073  READ_OID_ARRAY(sortOperators, local_node->numCols);
2074  READ_OID_ARRAY(collations, local_node->numCols);
2075  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2076 
2077  READ_DONE();
2078 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:158
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static SortGroupClause* _readSortGroupClause ( void  )
static

Definition at line 329 of file readfuncs.c.

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

Referenced by parseNodeString().

330 {
332 
333  READ_UINT_FIELD(tleSortGroupRef);
334  READ_OID_FIELD(eqop);
335  READ_OID_FIELD(sortop);
336  READ_BOOL_FIELD(nulls_first);
337  READ_BOOL_FIELD(hashable);
338 
339  READ_DONE();
340 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static SQLValueFunction* _readSQLValueFunction ( void  )
static

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

1083 {
1085 
1087  READ_OID_FIELD(type);
1088  READ_INT_FIELD(typmod);
1089  READ_LOCATION_FIELD(location);
1090 
1091  READ_DONE();
1092 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
SQLValueFunctionOp
Definition: primnodes.h:1082
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static SubLink* _readSubLink ( void  )
static

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

808 {
810 
811  READ_ENUM_FIELD(subLinkType, SubLinkType);
812  READ_INT_FIELD(subLinkId);
813  READ_NODE_FIELD(testexpr);
814  READ_NODE_FIELD(operName);
815  READ_NODE_FIELD(subselect);
816  READ_LOCATION_FIELD(location);
817 
818  READ_DONE();
819 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
SubLinkType
Definition: primnodes.h:618
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static SubPlan* _readSubPlan ( void  )
static

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

2324 {
2326 
2327  READ_ENUM_FIELD(subLinkType, SubLinkType);
2328  READ_NODE_FIELD(testexpr);
2329  READ_NODE_FIELD(paramIds);
2330  READ_INT_FIELD(plan_id);
2331  READ_STRING_FIELD(plan_name);
2332  READ_OID_FIELD(firstColType);
2333  READ_INT_FIELD(firstColTypmod);
2334  READ_OID_FIELD(firstColCollation);
2335  READ_BOOL_FIELD(useHashTable);
2336  READ_BOOL_FIELD(unknownEqFalse);
2337  READ_BOOL_FIELD(parallel_safe);
2338  READ_NODE_FIELD(setParam);
2339  READ_NODE_FIELD(parParam);
2341  READ_FLOAT_FIELD(startup_cost);
2342  READ_FLOAT_FIELD(per_call_cost);
2343 
2344  READ_DONE();
2345 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:106
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
SubLinkType
Definition: primnodes.h:618
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static SubqueryScan* _readSubqueryScan ( void  )
static

Definition at line 1825 of file readfuncs.c.

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

Referenced by parseNodeString().

1826 {
1828 
1829  ReadCommonScan(&local_node->scan);
1830 
1831  READ_NODE_FIELD(subplan);
1832 
1833  READ_DONE();
1834 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static TableFunc* _readTableFunc ( void  )
static

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

474 {
476 
477  READ_NODE_FIELD(ns_uris);
478  READ_NODE_FIELD(ns_names);
479  READ_NODE_FIELD(docexpr);
480  READ_NODE_FIELD(rowexpr);
481  READ_NODE_FIELD(colnames);
482  READ_NODE_FIELD(coltypes);
483  READ_NODE_FIELD(coltypmods);
484  READ_NODE_FIELD(colcollations);
485  READ_NODE_FIELD(colexprs);
486  READ_NODE_FIELD(coldefexprs);
487  READ_BITMAPSET_FIELD(notnulls);
488  READ_INT_FIELD(ordinalitycol);
489  READ_LOCATION_FIELD(location);
490 
491  READ_DONE();
492 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static TableFuncScan* _readTableFuncScan ( void  )
static

Definition at line 1871 of file readfuncs.c.

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

Referenced by parseNodeString().

1872 {
1874 
1875  ReadCommonScan(&local_node->scan);
1876 
1877  READ_NODE_FIELD(tablefunc);
1878 
1879  READ_DONE();
1880 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static TableSampleClause* _readTableSampleClause ( void  )
static

Definition at line 1429 of file readfuncs.c.

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

Referenced by parseNodeString().

1430 {
1432 
1433  READ_OID_FIELD(tsmhandler);
1435  READ_NODE_FIELD(repeatable);
1436 
1437  READ_DONE();
1438 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static TargetEntry* _readTargetEntry ( void  )
static

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

1245 {
1247 
1248  READ_NODE_FIELD(expr);
1249  READ_INT_FIELD(resno);
1250  READ_STRING_FIELD(resname);
1251  READ_UINT_FIELD(ressortgroupref);
1252  READ_OID_FIELD(resorigtbl);
1253  READ_INT_FIELD(resorigcol);
1254  READ_BOOL_FIELD(resjunk);
1255 
1256  READ_DONE();
1257 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static TidScan* _readTidScan ( void  )
static

Definition at line 1810 of file readfuncs.c.

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

Referenced by parseNodeString().

1811 {
1813 
1814  ReadCommonScan(&local_node->scan);
1815 
1816  READ_NODE_FIELD(tidquals);
1817 
1818  READ_DONE();
1819 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static Unique* _readUnique ( void  )
static

Definition at line 2148 of file readfuncs.c.

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

Referenced by parseNodeString().

2149 {
2151 
2152  ReadCommonPlan(&local_node->plan);
2153 
2154  READ_INT_FIELD(numCols);
2155  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
2156  READ_OID_ARRAY(uniqOperators, local_node->numCols);
2157 
2158  READ_DONE();
2159 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static ValuesScan* _readValuesScan ( void  )
static

Definition at line 1856 of file readfuncs.c.

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

Referenced by parseNodeString().

1857 {
1859 
1860  ReadCommonScan(&local_node->scan);
1861 
1862  READ_NODE_FIELD(values_lists);
1863 
1864  READ_DONE();
1865 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
static Var* _readVar ( void  )
static

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

515 {
516  READ_LOCALS(Var);
517 
518  READ_UINT_FIELD(varno);
519  READ_INT_FIELD(varattno);
520  READ_OID_FIELD(vartype);
521  READ_INT_FIELD(vartypmod);
522  READ_OID_FIELD(varcollid);
523  READ_UINT_FIELD(varlevelsup);
524  READ_UINT_FIELD(varnoold);
525  READ_INT_FIELD(varoattno);
526  READ_LOCATION_FIELD(location);
527 
528  READ_DONE();
529 }
Definition: primnodes.h:163
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static WindowAgg* _readWindowAgg ( void  )
static

Definition at line 2124 of file readfuncs.c.

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

Referenced by parseNodeString().

2125 {
2127 
2128  ReadCommonPlan(&local_node->plan);
2129 
2130  READ_UINT_FIELD(winref);
2131  READ_INT_FIELD(partNumCols);
2132  READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
2133  READ_OID_ARRAY(partOperators, local_node->partNumCols);
2134  READ_INT_FIELD(ordNumCols);
2135  READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
2136  READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
2137  READ_INT_FIELD(frameOptions);
2138  READ_NODE_FIELD(startOffset);
2139  READ_NODE_FIELD(endOffset);
2140 
2141  READ_DONE();
2142 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:148
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:143
static WindowClause* _readWindowClause ( void  )
static

Definition at line 361 of file readfuncs.c.

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

Referenced by parseNodeString().

362 {
364 
366  READ_STRING_FIELD(refname);
367  READ_NODE_FIELD(partitionClause);
368  READ_NODE_FIELD(orderClause);
369  READ_INT_FIELD(frameOptions);
370  READ_NODE_FIELD(startOffset);
371  READ_NODE_FIELD(endOffset);
372  READ_UINT_FIELD(winref);
373  READ_BOOL_FIELD(copiedOrder);
374 
375  READ_DONE();
376 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
const char * name
Definition: encode.c:521
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static WindowFunc* _readWindowFunc ( void  )
static

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

625 {
627 
628  READ_OID_FIELD(winfnoid);
629  READ_OID_FIELD(wintype);
630  READ_OID_FIELD(wincollid);
631  READ_OID_FIELD(inputcollid);
633  READ_NODE_FIELD(aggfilter);
634  READ_UINT_FIELD(winref);
635  READ_BOOL_FIELD(winstar);
636  READ_BOOL_FIELD(winagg);
637  READ_LOCATION_FIELD(location);
638 
639  READ_DONE();
640 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
#define READ_DONE()
Definition: readfuncs.c:163
static WithCheckOption* _readWithCheckOption ( void  )
static

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

313 {
315 
316  READ_ENUM_FIELD(kind, WCOKind);
317  READ_STRING_FIELD(relname);
318  READ_STRING_FIELD(polname);
319  READ_NODE_FIELD(qual);
320  READ_BOOL_FIELD(cascaded);
321 
322  READ_DONE();
323 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
WCOKind
Definition: parsenodes.h:1111
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
static WorkTableScan* _readWorkTableScan ( void  )
static

Definition at line 1902 of file readfuncs.c.

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

Referenced by parseNodeString().

1903 {
1905 
1906  ReadCommonScan(&local_node->scan);
1907 
1908  READ_INT_FIELD(wtParam);
1909 
1910  READ_DONE();
1911 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1683
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static XmlExpr* _readXmlExpr ( void  )
static

Definition at line 1098 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, and xmloption.

Referenced by parseNodeString().

1099 {
1101 
1104  READ_NODE_FIELD(named_args);
1105  READ_NODE_FIELD(arg_names);
1108  READ_OID_FIELD(type);
1109  READ_INT_FIELD(typmod);
1110  READ_LOCATION_FIELD(location);
1111 
1112  READ_DONE();
1113 }
XmlExprOp
Definition: primnodes.h:1121
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:124
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:58
XmlOptionType
Definition: primnodes.h:1133
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:87
const char * name
Definition: encode.c:521
int xmloption
Definition: xml.c:97
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:118
#define READ_DONE()
Definition: readfuncs.c:163
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
Node* parseNodeString ( void  )

Definition at line 2432 of file readfuncs.c.

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

Referenced by nodeRead().

2433 {
2434  void *return_value;
2435 
2436  READ_TEMP_LOCALS();
2437 
2438  token = pg_strtok(&length);
2439 
2440 #define MATCH(tokname, namelen) \
2441  (length == namelen && memcmp(token, tokname, namelen) == 0)
2442 
2443  if (MATCH("QUERY", 5))
2444  return_value = _readQuery();
2445  else if (MATCH("WITHCHECKOPTION", 15))
2446  return_value = _readWithCheckOption();
2447  else if (MATCH("SORTGROUPCLAUSE", 15))
2448  return_value = _readSortGroupClause();
2449  else if (MATCH("GROUPINGSET", 11))
2450  return_value = _readGroupingSet();
2451  else if (MATCH("WINDOWCLAUSE", 12))
2452  return_value = _readWindowClause();
2453  else if (MATCH("ROWMARKCLAUSE", 13))
2454  return_value = _readRowMarkClause();
2455  else if (MATCH("COMMONTABLEEXPR", 15))
2456  return_value = _readCommonTableExpr();
2457  else if (MATCH("SETOPERATIONSTMT", 16))
2458  return_value = _readSetOperationStmt();
2459  else if (MATCH("ALIAS", 5))
2460  return_value = _readAlias();
2461  else if (MATCH("RANGEVAR", 8))
2462  return_value = _readRangeVar();
2463  else if (MATCH("INTOCLAUSE", 10))
2464  return_value = _readIntoClause();
2465  else if (MATCH("TABLEFUNC", 9))
2466  return_value = _readTableFunc();
2467  else if (MATCH("VAR", 3))
2468  return_value = _readVar();
2469  else if (MATCH("CONST", 5))
2470  return_value = _readConst();
2471  else if (MATCH("PARAM", 5))
2472  return_value = _readParam();
2473  else if (MATCH("AGGREF", 6))
2474  return_value = _readAggref();
2475  else if (MATCH("GROUPINGFUNC", 12))
2476  return_value = _readGroupingFunc();
2477  else if (MATCH("WINDOWFUNC", 10))
2478  return_value = _readWindowFunc();
2479  else if (MATCH("ARRAYREF", 8))
2480  return_value = _readArrayRef();
2481  else if (MATCH("FUNCEXPR", 8))
2482  return_value = _readFuncExpr();
2483  else if (MATCH("NAMEDARGEXPR", 12))
2484  return_value = _readNamedArgExpr();
2485  else if (MATCH("OPEXPR", 6))
2486  return_value = _readOpExpr();
2487  else if (MATCH("DISTINCTEXPR", 12))
2488  return_value = _readDistinctExpr();
2489  else if (MATCH("NULLIFEXPR", 10))
2490  return_value = _readNullIfExpr();
2491  else if (MATCH("SCALARARRAYOPEXPR", 17))
2492  return_value = _readScalarArrayOpExpr();
2493  else if (MATCH("BOOLEXPR", 8))
2494  return_value = _readBoolExpr();
2495  else if (MATCH("SUBLINK", 7))
2496  return_value = _readSubLink();
2497  else if (MATCH("FIELDSELECT", 11))
2498  return_value = _readFieldSelect();
2499  else if (MATCH("FIELDSTORE", 10))
2500  return_value = _readFieldStore();
2501  else if (MATCH("RELABELTYPE", 11))
2502  return_value = _readRelabelType();
2503  else if (MATCH("COERCEVIAIO", 11))
2504  return_value = _readCoerceViaIO();
2505  else if (MATCH("ARRAYCOERCEEXPR", 15))
2506  return_value = _readArrayCoerceExpr();
2507  else if (MATCH("CONVERTROWTYPEEXPR", 18))
2508  return_value = _readConvertRowtypeExpr();
2509  else if (MATCH("COLLATE", 7))
2510  return_value = _readCollateExpr();
2511  else if (MATCH("CASE", 4))
2512  return_value = _readCaseExpr();
2513  else if (MATCH("WHEN", 4))
2514  return_value = _readCaseWhen();
2515  else if (MATCH("CASETESTEXPR", 12))
2516  return_value = _readCaseTestExpr();
2517  else if (MATCH("ARRAY", 5))
2518  return_value = _readArrayExpr();
2519  else if (MATCH("ROW", 3))
2520  return_value = _readRowExpr();
2521  else if (MATCH("ROWCOMPARE", 10))
2522  return_value = _readRowCompareExpr();
2523  else if (MATCH("COALESCE", 8))
2524  return_value = _readCoalesceExpr();
2525  else if (MATCH("MINMAX", 6))
2526  return_value = _readMinMaxExpr();
2527  else if (MATCH("SQLVALUEFUNCTION", 16))
2528  return_value = _readSQLValueFunction();
2529  else if (MATCH("XMLEXPR", 7))
2530  return_value = _readXmlExpr();
2531  else if (MATCH("NULLTEST", 8))
2532  return_value = _readNullTest();
2533  else if (MATCH("BOOLEANTEST", 11))
2534  return_value = _readBooleanTest();
2535  else if (MATCH("COERCETODOMAIN", 14))
2536  return_value = _readCoerceToDomain();
2537  else if (MATCH("COERCETODOMAINVALUE", 19))
2538  return_value = _readCoerceToDomainValue();
2539  else if (MATCH("SETTODEFAULT", 12))
2540  return_value = _readSetToDefault();
2541  else if (MATCH("CURRENTOFEXPR", 13))
2542  return_value = _readCurrentOfExpr();
2543  else if (MATCH("NEXTVALUEEXPR", 13))
2544  return_value = _readNextValueExpr();
2545  else if (MATCH("INFERENCEELEM", 13))
2546  return_value = _readInferenceElem();
2547  else if (MATCH("TARGETENTRY", 11))
2548  return_value = _readTargetEntry();
2549  else if (MATCH("RANGETBLREF", 11))
2550  return_value = _readRangeTblRef();
2551  else if (MATCH("JOINEXPR", 8))
2552  return_value = _readJoinExpr();
2553  else if (MATCH("FROMEXPR", 8))
2554  return_value = _readFromExpr();
2555  else if (MATCH("ONCONFLICTEXPR", 14))
2556  return_value = _readOnConflictExpr();
2557  else if (MATCH("RTE", 3))
2558  return_value = _readRangeTblEntry();
2559  else if (MATCH("RANGETBLFUNCTION", 16))
2560  return_value = _readRangeTblFunction();
2561  else if (MATCH("TABLESAMPLECLAUSE", 17))
2562  return_value = _readTableSampleClause();
2563  else if (MATCH("NOTIFY", 6))
2564  return_value = _readNotifyStmt();
2565  else if (MATCH("DEFELEM", 7))
2566  return_value = _readDefElem();
2567  else if (MATCH("DECLARECURSOR", 13))
2568  return_value = _readDeclareCursorStmt();
2569  else if (MATCH("PLANNEDSTMT", 11))
2570  return_value = _readPlannedStmt();
2571  else if (MATCH("PLAN", 4))
2572  return_value = _readPlan();
2573  else if (MATCH("RESULT", 6))
2574  return_value = _readResult();
2575  else if (MATCH("PROJECTSET", 10))
2576  return_value = _readProjectSet();
2577  else if (MATCH("MODIFYTABLE", 11))
2578  return_value = _readModifyTable();
2579  else if (MATCH("APPEND", 6))
2580  return_value = _readAppend();
2581  else if (MATCH("MERGEAPPEND", 11))
2582  return_value = _readMergeAppend();
2583  else if (MATCH("RECURSIVEUNION", 14))
2584  return_value = _readRecursiveUnion();
2585  else if (MATCH("BITMAPAND", 9))
2586  return_value = _readBitmapAnd();
2587  else if (MATCH("BITMAPOR", 8))
2588  return_value = _readBitmapOr();
2589  else if (MATCH("SCAN", 4))
2590  return_value = _readScan();
2591  else if (MATCH("SEQSCAN", 7))
2592  return_value = _readSeqScan();
2593  else if (MATCH("SAMPLESCAN", 10))
2594  return_value = _readSampleScan();
2595  else if (MATCH("INDEXSCAN", 9))
2596  return_value = _readIndexScan();
2597  else if (MATCH("INDEXONLYSCAN", 13))
2598  return_value = _readIndexOnlyScan();
2599  else if (MATCH("BITMAPINDEXSCAN", 15))
2600  return_value = _readBitmapIndexScan();
2601  else if (MATCH("BITMAPHEAPSCAN", 14))
2602  return_value = _readBitmapHeapScan();
2603  else if (MATCH("TIDSCAN", 7))
2604  return_value = _readTidScan();
2605  else if (MATCH("SUBQUERYSCAN", 12))
2606  return_value = _readSubqueryScan();
2607  else if (MATCH("FUNCTIONSCAN", 12))
2608  return_value = _readFunctionScan();
2609  else if (MATCH("VALUESSCAN", 10))
2610  return_value = _readValuesScan();
2611  else if (MATCH("TABLEFUNCSCAN", 13))
2612  return_value = _readTableFuncScan();
2613  else if (MATCH("CTESCAN", 7))
2614  return_value = _readCteScan();
2615  else if (MATCH("WORKTABLESCAN", 13))
2616  return_value = _readWorkTableScan();
2617  else if (MATCH("FOREIGNSCAN", 11))
2618  return_value = _readForeignScan();
2619  else if (MATCH("CUSTOMSCAN", 10))
2620  return_value = _readCustomScan();
2621  else if (MATCH("JOIN", 4))
2622  return_value = _readJoin();
2623  else if (MATCH("NESTLOOP", 8))
2624  return_value = _readNestLoop();
2625  else if (MATCH("MERGEJOIN", 9))
2626  return_value = _readMergeJoin();
2627  else if (MATCH("HASHJOIN", 8))
2628  return_value = _readHashJoin();
2629  else if (MATCH("MATERIAL", 8))
2630  return_value = _readMaterial();
2631  else if (MATCH("SORT", 4))
2632  return_value = _readSort();
2633  else if (MATCH("GROUP", 5))
2634  return_value = _readGroup();
2635  else if (MATCH("AGG", 3))
2636  return_value = _readAgg();
2637  else if (MATCH("WINDOWAGG", 9))
2638  return_value = _readWindowAgg();
2639  else if (MATCH("UNIQUE", 6))
2640  return_value = _readUnique();
2641  else if (MATCH("GATHER", 6))
2642  return_value = _readGather();
2643  else if (MATCH("GATHERMERGE", 11))
2644  return_value = _readGatherMerge();
2645  else if (MATCH("HASH", 4))
2646  return_value = _readHash();
2647  else if (MATCH("SETOP", 5))
2648  return_value = _readSetOp();
2649  else if (MATCH("LOCKROWS", 8))
2650  return_value = _readLockRows();
2651  else if (MATCH("LIMIT", 5))
2652  return_value = _readLimit();
2653  else if (MATCH("NESTLOOPPARAM", 13))
2654  return_value = _readNestLoopParam();
2655  else if (MATCH("PLANROWMARK", 11))
2656  return_value = _readPlanRowMark();
2657  else if (MATCH("PLANINVALITEM", 13))
2658  return_value = _readPlanInvalItem();
2659  else if (MATCH("SUBPLAN", 7))
2660  return_value = _readSubPlan();
2661  else if (MATCH("ALTERNATIVESUBPLAN", 18))
2662  return_value = _readAlternativeSubPlan();
2663  else if (MATCH("EXTENSIBLENODE", 14))
2664  return_value = _readExtensibleNode();
2665  else if (MATCH("PARTITIONBOUNDSPEC", 18))
2666  return_value = _readPartitionBoundSpec();
2667  else if (MATCH("PARTITIONRANGEDATUM", 19))
2668  return_value = _readPartitionRangeDatum();
2669  else
2670  {
2671  elog(ERROR, "badly formatted node string \"%.32s\"...", token);
2672  return_value = NULL; /* keep compiler quiet */
2673  }
2674 
2675  return (Node *) return_value;
2676 }
static NullTest * _readNullTest(void)
Definition: readfuncs.c:1119
static JoinExpr * _readJoinExpr(void)
Definition: readfuncs.c:1276
static RangeVar * _readRangeVar(void)
Definition: readfuncs.c:453
static RangeTblEntry * _readRangeTblEntry(void)
Definition: readfuncs.c:1334
static DefElem * _readDefElem(void)
Definition: readfuncs.c:1444
static RowExpr * _readRowExpr(void)
Definition: readfuncs.c:1013
int length(const List *list)
Definition: list.c:1271
static MergeJoin * _readMergeJoin(void)
Definition: readfuncs.c:2012
static MinMaxExpr * _readMinMaxExpr(void)
Definition: readfuncs.c:1064
static RowMarkClause * _readRowMarkClause(void)
Definition: readfuncs.c:382
static FuncExpr * _readFuncExpr(void)
Definition: readfuncs.c:666
static Hash * _readHash(void)
Definition: readfuncs.c:2204
char * pg_strtok(int *length)
Definition: read.c:107
static Result * _readResult(void)
Definition: readfuncs.c:1533
static Query * _readQuery(void)
Definition: readfuncs.c:235
static RowCompareExpr * _readRowCompareExpr(void)
Definition: readfuncs.c:1030
static Param * _readParam(void)
Definition: readfuncs.c:560
static PlanInvalItem * _readPlanInvalItem(void)
Definition: readfuncs.c:2309
static WindowAgg * _readWindowAgg(void)
Definition: readfuncs.c:2124
static IndexScan * _readIndexScan(void)
Definition: readfuncs.c:1737
static NotifyStmt * _readNotifyStmt(void)
Definition: readfuncs.c:283
static Scan * _readScan(void)
Definition: readfuncs.c:1696
static NamedArgExpr * _readNamedArgExpr(void)
Definition: readfuncs.c:687
static LockRows * _readLockRows(void)
Definition: readfuncs.c:2243
static CurrentOfExpr * _readCurrentOfExpr(void)
Definition: readfuncs.c:1200
static CollateExpr * _readCollateExpr(void)
Definition: readfuncs.c:932
static SubqueryScan * _readSubqueryScan(void)
Definition: readfuncs.c:1825
static BitmapIndexScan * _readBitmapIndexScan(void)
Definition: readfuncs.c:1777
static CaseExpr * _readCaseExpr(void)
Definition: readfuncs.c:947
static FunctionScan * _readFunctionScan(void)
Definition: readfuncs.c:1840
static PartitionBoundSpec * _readPartitionBoundSpec(void)
Definition: readfuncs.c:2394
static Unique * _readUnique(void)
Definition: readfuncs.c:2148
static MergeAppend * _readMergeAppend(void)
Definition: readfuncs.c:1611
Definition: nodes.h:510
static WindowFunc * _readWindowFunc(void)
Definition: readfuncs.c:624
static WindowClause * _readWindowClause(void)
Definition: readfuncs.c:361
static OpExpr * _readOpExpr(void)
Definition: readfuncs.c:703
static IndexOnlyScan * _readIndexOnlyScan(void)
Definition: readfuncs.c:1758
static BitmapAnd * _readBitmapAnd(void)
Definition: readfuncs.c:1651
static FromExpr * _readFromExpr(void)
Definition: readfuncs.c:1296
static Aggref * _readAggref(void)
Definition: readfuncs.c:578
static NestLoop * _readNestLoop(void)
Definition: readfuncs.c:1997
static ModifyTable * _readModifyTable(void)
Definition: readfuncs.c:1561
static NextValueExpr * _readNextValueExpr(void)
Definition: readfuncs.c:1215
static DistinctExpr * _readDistinctExpr(void)
Definition: readfuncs.c:723
static ArrayCoerceExpr * _readArrayCoerceExpr(void)
Definition: readfuncs.c:897
static TargetEntry * _readTargetEntry(void)
Definition: readfuncs.c:1244
static Agg * _readAgg(void)
Definition: readfuncs.c:2101
static SeqScan * _readSeqScan(void)
Definition: readfuncs.c:1709
static AlternativeSubPlan * _readAlternativeSubPlan(void)
Definition: readfuncs.c:2351
static CteScan * _readCteScan(void)
Definition: readfuncs.c:1886
#define ERROR
Definition: elog.h:43
static GroupingFunc * _readGroupingFunc(void)
Definition: readfuncs.c:607
static CoerceToDomain * _readCoerceToDomain(void)
Definition: readfuncs.c:1150
static SubLink * _readSubLink(void)
Definition: readfuncs.c:807
static HashJoin * _readHashJoin(void)
Definition: readfuncs.c:2037
static ValuesScan * _readValuesScan(void)
Definition: readfuncs.c:1856
static ConvertRowtypeExpr * _readConvertRowtypeExpr(void)
Definition: readfuncs.c:916
static OnConflictExpr * _readOnConflictExpr(void)
Definition: readfuncs.c:1310
static NullIfExpr * _readNullIfExpr(void)
Definition: readfuncs.c:743
static Append * _readAppend(void)
Definition: readfuncs.c:1595
static ExtensibleNode * _readExtensibleNode(void)
Definition: readfuncs.c:2364
static PlanRowMark * _readPlanRowMark(void)
Definition: readfuncs.c:2289
static FieldSelect * _readFieldSelect(void)
Definition: readfuncs.c:829
static ArrayRef * _readArrayRef(void)
Definition: readfuncs.c:646
static CaseWhen * _readCaseWhen(void)
Definition: readfuncs.c:965
static SQLValueFunction * _readSQLValueFunction(void)
Definition: readfuncs.c:1082
#define MATCH(tokname, namelen)
static ForeignScan * _readForeignScan(void)
Definition: readfuncs.c:1917
static RelabelType * _readRelabelType(void)
Definition: readfuncs.c:862
static SetOp * _readSetOp(void)
Definition: readfuncs.c:2221
static SortGroupClause * _readSortGroupClause(void)
Definition: readfuncs.c:329
static Limit * _readLimit(void)
Definition: readfuncs.c:2259
static PartitionRangeDatum * _readPartitionRangeDatum(void)
Definition: readfuncs.c:2412
static GatherMerge * _readGatherMerge(void)
Definition: readfuncs.c:2183
static DeclareCursorStmt * _readDeclareCursorStmt(void)
Definition: readfuncs.c:297
static Gather * _readGather(void)
Definition: readfuncs.c:2165
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:53
static Var * _readVar(void)
Definition: readfuncs.c:514
static SampleScan * _readSampleScan(void)
Definition: readfuncs.c:1722
static SubPlan * _readSubPlan(void)
Definition: readfuncs.c:2323
static TidScan * _readTidScan(void)
Definition: readfuncs.c:1810
static CoerceToDomainValue * _readCoerceToDomainValue(void)
Definition: readfuncs.c:1168
static TableFuncScan * _readTableFuncScan(void)
Definition: readfuncs.c:1871
static IntoClause * _readIntoClause(void)
Definition: readfuncs.c:495
static Const * _readConst(void)
Definition: readfuncs.c:535
static SetOperationStmt * _readSetOperationStmt(void)
Definition: readfuncs.c:420
static PlannedStmt * _readPlannedStmt(void)
Definition: readfuncs.c:1461
static Material * _readMaterial(void)
Definition: readfuncs.c:2052
static CaseTestExpr * _readCaseTestExpr(void)
Definition: readfuncs.c:980
static Alias * _readAlias(void)
Definition: readfuncs.c:442
static BitmapOr * _readBitmapOr(void)
Definition: readfuncs.c:1666
static RangeTblRef * _readRangeTblRef(void)
Definition: readfuncs.c:1263
static RecursiveUnion * _readRecursiveUnion(void)
Definition: readfuncs.c:1632
static FieldStore * _readFieldStore(void)
Definition: readfuncs.c:846
static CoalesceExpr * _readCoalesceExpr(void)
Definition: readfuncs.c:1048
static SetToDefault * _readSetToDefault(void)
Definition: readfuncs.c:1184
static WithCheckOption * _readWithCheckOption(void)
Definition: readfuncs.c:312
static InferenceElem * _readInferenceElem(void)
Definition: readfuncs.c:1229
static ScalarArrayOpExpr * _readScalarArrayOpExpr(void)
Definition: readfuncs.c:763
static BoolExpr * _readBoolExpr(void)
Definition: readfuncs.c:781
static CustomScan * _readCustomScan(void)
Definition: readfuncs.c:1939
static CommonTableExpr * _readCommonTableExpr(void)
Definition: readfuncs.c:398
static ArrayExpr * _readArrayExpr(void)
Definition: readfuncs.c:995
#define elog
Definition: elog.h:219
static RangeTblFunction * _readRangeTblFunction(void)
Definition: readfuncs.c:1410
static BooleanTest * _readBooleanTest(void)
Definition: readfuncs.c:1135
static Plan * _readPlan(void)
Definition: readfuncs.c:1520
static XmlExpr * _readXmlExpr(void)
Definition: readfuncs.c:1098
static TableFunc * _readTableFunc(void)
Definition: readfuncs.c:473
static TableSampleClause * _readTableSampleClause(void)
Definition: readfuncs.c:1429
static NestLoopParam * _readNestLoopParam(void)
Definition: readfuncs.c:2275
static ProjectSet * _readProjectSet(void)
Definition: readfuncs.c:1548
static BitmapHeapScan * _readBitmapHeapScan(void)
Definition: readfuncs.c:1795
static Join * _readJoin(void)
Definition: readfuncs.c:1984
static Sort * _readSort(void)
Definition: readfuncs.c:2065
static CoerceViaIO * _readCoerceViaIO(void)
Definition: readfuncs.c:880
static Group * _readGroup(void)
Definition: readfuncs.c:2084
static GroupingSet * _readGroupingSet(void)
Definition: readfuncs.c:346
static WorkTableScan * _readWorkTableScan(void)
Definition: readfuncs.c:1902
AttrNumber* readAttrNumberCols ( int  numCols)

Definition at line 2744 of file readfuncs.c.

References i, palloc(), and pg_strtok().

2745 {
2746  int tokenLength,
2747  i;
2748  char *token;
2749  AttrNumber *attr_vals;
2750 
2751  if (numCols <= 0)
2752  return NULL;
2753 
2754  attr_vals = (AttrNumber *) palloc(numCols * sizeof(AttrNumber));
2755  for (i = 0; i < numCols; i++)
2756  {
2757  token = pg_strtok(&tokenLength);
2758  attr_vals[i] = atoi(token);
2759  }
2760 
2761  return attr_vals;
2762 }
char * pg_strtok(int *length)
Definition: read.c:107
void * palloc(Size size)
Definition: mcxt.c:848
int i
int16 AttrNumber
Definition: attnum.h:21
Bitmapset* readBitmapset ( void  )

Definition at line 226 of file readfuncs.c.

References _readBitmapset().

227 {
228  return _readBitmapset();
229 }
static Bitmapset * _readBitmapset(void)
Definition: readfuncs.c:185
bool* readBoolCols ( int  numCols)

Definition at line 2816 of file readfuncs.c.

References i, palloc(), pg_strtok(), and strtobool.

2817 {
2818  int tokenLength,
2819  i;
2820  char *token;
2821  bool *bool_vals;
2822 
2823  if (numCols <= 0)
2824  return NULL;
2825 
2826  bool_vals = (bool *) palloc(numCols * sizeof(bool));
2827  for (i = 0; i < numCols; i++)
2828  {
2829  token = pg_strtok(&tokenLength);
2830  bool_vals[i] = strtobool(token);
2831  }
2832 
2833  return bool_vals;
2834 }
char * pg_strtok(int *length)
Definition: read.c:107
#define strtobool(x)
Definition: readfuncs.c:175
void * palloc(Size size)
Definition: mcxt.c:848
int i
static void ReadCommonJoin ( Join local_node)
static

Definition at line 1969 of file readfuncs.c.

References Join::plan, READ_BOOL_FIELD, READ_ENUM_FIELD, READ_NODE_FIELD, READ_TEMP_LOCALS, and ReadCommonPlan().

Referenced by _readHashJoin(), _readJoin(), _readMergeJoin(), and _readNestLoop().

1970 {
1971  READ_TEMP_LOCALS();
1972 
1973  ReadCommonPlan(&local_node->plan);
1974 
1975  READ_ENUM_FIELD(jointype, JoinType);
1976  READ_BOOL_FIELD(inner_unique);
1977  READ_NODE_FIELD(joinqual);
1978 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
JoinType
Definition: nodes.h:674
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:100
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:53
Plan plan
Definition: plannodes.h:666
static void ReadCommonPlan ( Plan local_node)
static

Definition at line 1496 of file readfuncs.c.

References READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_FLOAT_FIELD, READ_INT_FIELD, READ_NODE_FIELD, and READ_TEMP_LOCALS.

Referenced by _readAgg(), _readAppend(), _readBitmapAnd(), _readBitmapOr(), _readGather(), _readGatherMerge(), _readGroup(), _readHash(), _readLimit(), _readLockRows(), _readMaterial(), _readMergeAppend(), _readModifyTable(), _readPlan(), _readProjectSet(), _readRecursiveUnion(), _readResult(), _readSetOp(), _readSort(), _readUnique(), _readWindowAgg(), ReadCommonJoin(), and ReadCommonScan().

1497 {
1498  READ_TEMP_LOCALS();
1499 
1500  READ_FLOAT_FIELD(startup_cost);
1501  READ_FLOAT_FIELD(total_cost);
1502  READ_FLOAT_FIELD(plan_rows);
1503  READ_INT_FIELD(plan_width);
1504  READ_BOOL_FIELD(parallel_aware);
1505  READ_BOOL_FIELD(parallel_safe);
1506  READ_INT_FIELD(plan_node_id);
1507  READ_NODE_FIELD(targetlist);
1508  READ_NODE_FIELD(qual);
1509  READ_NODE_FIELD(lefttree);
1510  READ_NODE_FIELD(righttree);
1511  READ_NODE_FIELD(initPlan);
1512  READ_BITMAPSET_FIELD(extParam);
1513  READ_BITMAPSET_FIELD(allParam);
1514 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:112
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:106
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:131
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:53
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:137
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:63
static void ReadCommonScan ( Scan local_node)
static

Definition at line 1683 of file readfuncs.c.

References Scan::plan, READ_TEMP_LOCALS, READ_UINT_FIELD, and ReadCommonPlan().

Referenced by _readBitmapHeapScan(), _readBitmapIndexScan(), _readCteScan(), _readCustomScan(), _readForeignScan(), _readFunctionScan(), _readIndexOnlyScan(), _readIndexScan(), _readSampleScan(), _readScan(), _readSeqScan(), _readSubqueryScan(), _readTableFuncScan(), _readTidScan(), _readValuesScan(), and _readWorkTableScan().

1684 {
1685  READ_TEMP_LOCALS();
1686 
1687  ReadCommonPlan(&local_node->plan);
1688 
1689  READ_UINT_FIELD(scanrelid);
1690 }
Plan plan
Definition: plannodes.h:328
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1496
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:69
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:53
Datum readDatum ( bool  typbyval)

Definition at line 2687 of file readfuncs.c.

References atoui, elog, ERROR, i, length(), palloc(), pg_strtok(), and PointerGetDatum.

Referenced by _readConst().

2688 {
2689  Size length,
2690  i;
2691  int tokenLength;
2692  char *token;
2693  Datum res;
2694  char *s;
2695 
2696  /*
2697  * read the actual length of the value
2698  */
2699  token = pg_strtok(&tokenLength);
2700  length = atoui(token);
2701 
2702  token = pg_strtok(&tokenLength); /* read the '[' */
2703  if (token == NULL || token[0] != '[')
2704  elog(ERROR, "expected \"[\" to start datum, but got \"%s\"; length = %zu",
2705  token ? (const char *) token : "[NULL]", length);
2706 
2707  if (typbyval)
2708  {
2709  if (length > (Size) sizeof(Datum))
2710  elog(ERROR, "byval datum but length = %zu", length);
2711  res = (Datum) 0;
2712  s = (char *) (&res);
2713  for (i = 0; i < (Size) sizeof(Datum); i++)
2714  {
2715  token = pg_strtok(&tokenLength);
2716  s[i] = (char) atoi(token);
2717  }
2718  }
2719  else if (length <= 0)
2720  res = (Datum) NULL;
2721  else
2722  {
2723  s = (char *) palloc(length);
2724  for (i = 0; i < length; i++)
2725  {
2726  token = pg_strtok(&tokenLength);
2727  s[i] = (char) atoi(token);
2728  }
2729  res = PointerGetDatum(s);
2730  }
2731 
2732  token = pg_strtok(&tokenLength); /* read the ']' */
2733  if (token == NULL || token[0] != ']')
2734  elog(ERROR, "expected \"]\" to end datum, but got \"%s\"; length = %zu",
2735  token ? (const char *) token : "[NULL]", length);
2736 
2737  return res;
2738 }
#define atoui(x)
Definition: readfuncs.c:173
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
#define PointerGetDatum(X)
Definition: postgres.h:562
#define ERROR
Definition: elog.h:43
uintptr_t Datum
Definition: postgres.h:372
size_t Size
Definition: c.h:350
void * palloc(Size size)
Definition: mcxt.c:848
int i
#define elog
Definition: elog.h:219
int* readIntCols ( int  numCols)

Definition at line 2792 of file readfuncs.c.

References i, palloc(), and pg_strtok().

2793 {
2794  int tokenLength,
2795  i;
2796  char *token;
2797  int *int_vals;
2798 
2799  if (numCols <= 0)
2800  return NULL;
2801 
2802  int_vals = (int *) palloc(numCols * sizeof(int));
2803  for (i = 0; i < numCols; i++)
2804  {
2805  token = pg_strtok(&tokenLength);
2806  int_vals[i] = atoi(token);
2807  }
2808 
2809  return int_vals;
2810 }
char * pg_strtok(int *length)
Definition: read.c:107
void * palloc(Size size)
Definition: mcxt.c:848
int i
Oid* readOidCols ( int  numCols)

Definition at line 2768 of file readfuncs.c.

References atooid, i, palloc(), and pg_strtok().

2769 {
2770  int tokenLength,
2771  i;
2772  char *token;
2773  Oid *oid_vals;
2774 
2775  if (numCols <= 0)
2776  return NULL;
2777 
2778  oid_vals = (Oid *) palloc(numCols * sizeof(Oid));
2779  for (i = 0; i < numCols; i++)
2780  {
2781  token = pg_strtok(&tokenLength);
2782  oid_vals[i] = atooid(token);
2783  }
2784 
2785  return oid_vals;
2786 }
char * pg_strtok(int *length)
Definition: read.c:107
unsigned int Oid
Definition: postgres_ext.h:31
#define atooid(x)
Definition: postgres_ext.h:42
void * palloc(Size size)
Definition: mcxt.c:848
int i