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 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_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 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 165 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 169 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:2716

Definition at line 135 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:177

Definition at line 129 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:2788

Definition at line 150 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 */ \
local_node->fldname = token[0]
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107

Definition at line 86 of file readfuncs.c.

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

#define READ_DONE ( )    return local_node

Definition at line 155 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(), _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 98 of file readfuncs.c.

Referenced by _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:2764

Definition at line 145 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:48
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52

Definition at line 57 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(), _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 74 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
#define NULL
Definition: c.h:229

Definition at line 123 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:2740

Definition at line 140 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:169

Definition at line 110 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 52 of file readfuncs.c.

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

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

Definition at line 68 of file readfuncs.c.

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

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

Definition at line 167 of file readfuncs.c.

Referenced by readBoolCols().

Function Documentation

static Agg* _readAgg ( void  )
static

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

2079 {
2080  READ_LOCALS(Agg);
2081 
2082  ReadCommonPlan(&local_node->plan);
2083 
2084  READ_ENUM_FIELD(aggstrategy, AggStrategy);
2085  READ_ENUM_FIELD(aggsplit, AggSplit);
2086  READ_INT_FIELD(numCols);
2087  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2088  READ_OID_ARRAY(grpOperators, local_node->numCols);
2089  READ_LONG_FIELD(numGroups);
2090  READ_BITMAPSET_FIELD(aggParams);
2091  READ_NODE_FIELD(groupingSets);
2092  READ_NODE_FIELD(chain);
2093 
2094  READ_DONE();
2095 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:74
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
AggSplit
Definition: nodes.h:756
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
AggStrategy
Definition: nodes.h:734
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
Definition: plannodes.h:771
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static Aggref* _readAggref ( void  )
static

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

572 {
574 
575  READ_OID_FIELD(aggfnoid);
576  READ_OID_FIELD(aggtype);
577  READ_OID_FIELD(aggcollid);
578  READ_OID_FIELD(inputcollid);
579  READ_OID_FIELD(aggtranstype);
580  READ_NODE_FIELD(aggargtypes);
581  READ_NODE_FIELD(aggdirectargs);
583  READ_NODE_FIELD(aggorder);
584  READ_NODE_FIELD(aggdistinct);
585  READ_NODE_FIELD(aggfilter);
586  READ_BOOL_FIELD(aggstar);
587  READ_BOOL_FIELD(aggvariadic);
588  READ_CHAR_FIELD(aggkind);
589  READ_UINT_FIELD(agglevelsup);
590  READ_ENUM_FIELD(aggsplit, AggSplit);
591  READ_LOCATION_FIELD(location);
592 
593  READ_DONE();
594 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:86
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
AggSplit
Definition: nodes.h:756
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static Alias* _readAlias ( void  )
static

Definition at line 434 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

435 {
437 
438  READ_STRING_FIELD(aliasname);
439  READ_NODE_FIELD(colnames);
440 
441  READ_DONE();
442 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
static AlternativeSubPlan* _readAlternativeSubPlan ( void  )
static

Definition at line 2328 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2329 {
2331 
2332  READ_NODE_FIELD(subplans);
2333 
2334  READ_DONE();
2335 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static Append* _readAppend ( void  )
static

Definition at line 1572 of file readfuncs.c.

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

Referenced by parseNodeString().

1573 {
1575 
1576  ReadCommonPlan(&local_node->plan);
1577 
1578  READ_NODE_FIELD(partitioned_rels);
1579  READ_NODE_FIELD(appendplans);
1580 
1581  READ_DONE();
1582 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static ArrayCoerceExpr* _readArrayCoerceExpr ( void  )
static

Definition at line 890 of file readfuncs.c.

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

Referenced by parseNodeString().

891 {
893 
895  READ_OID_FIELD(elemfuncid);
896  READ_OID_FIELD(resulttype);
897  READ_INT_FIELD(resulttypmod);
898  READ_OID_FIELD(resultcollid);
899  READ_BOOL_FIELD(isExplicit);
900  READ_ENUM_FIELD(coerceformat, CoercionForm);
901  READ_LOCATION_FIELD(location);
902 
903  READ_DONE();
904 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
CoercionForm
Definition: primnodes.h:435
static ArrayExpr* _readArrayExpr ( void  )
static

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

990 {
992 
993  READ_OID_FIELD(array_typeid);
994  READ_OID_FIELD(array_collid);
995  READ_OID_FIELD(element_typeid);
996  READ_NODE_FIELD(elements);
997  READ_BOOL_FIELD(multidims);
998  READ_LOCATION_FIELD(location);
999 
1000  READ_DONE();
1001 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static ArrayRef* _readArrayRef ( void  )
static

Definition at line 639 of file readfuncs.c.

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

Referenced by parseNodeString().

640 {
642 
643  READ_OID_FIELD(refarraytype);
644  READ_OID_FIELD(refelemtype);
645  READ_INT_FIELD(reftypmod);
646  READ_OID_FIELD(refcollid);
647  READ_NODE_FIELD(refupperindexpr);
648  READ_NODE_FIELD(reflowerindexpr);
649  READ_NODE_FIELD(refexpr);
650  READ_NODE_FIELD(refassgnexpr);
651 
652  READ_DONE();
653 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static BitmapAnd* _readBitmapAnd ( void  )
static

Definition at line 1628 of file readfuncs.c.

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

Referenced by parseNodeString().

1629 {
1631 
1632  ReadCommonPlan(&local_node->plan);
1633 
1634  READ_NODE_FIELD(bitmapplans);
1635 
1636  READ_DONE();
1637 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static BitmapHeapScan* _readBitmapHeapScan ( void  )
static

Definition at line 1772 of file readfuncs.c.

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

Referenced by parseNodeString().

1773 {
1775 
1776  ReadCommonScan(&local_node->scan);
1777 
1778  READ_NODE_FIELD(bitmapqualorig);
1779 
1780  READ_DONE();
1781 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static BitmapIndexScan* _readBitmapIndexScan ( void  )
static

Definition at line 1754 of file readfuncs.c.

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

Referenced by parseNodeString().

1755 {
1757 
1758  ReadCommonScan(&local_node->scan);
1759 
1760  READ_OID_FIELD(indexid);
1761  READ_BOOL_FIELD(isshared);
1762  READ_NODE_FIELD(indexqual);
1763  READ_NODE_FIELD(indexqualorig);
1764 
1765  READ_DONE();
1766 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static BitmapOr* _readBitmapOr ( void  )
static

Definition at line 1643 of file readfuncs.c.

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

Referenced by parseNodeString().

1644 {
1646 
1647  ReadCommonPlan(&local_node->plan);
1648 
1649  READ_BOOL_FIELD(isshared);
1650  READ_NODE_FIELD(bitmapplans);
1651 
1652  READ_DONE();
1653 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static Bitmapset* _readBitmapset ( void  )
static

Definition at line 177 of file readfuncs.c.

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

Referenced by readBitmapset().

178 {
179  Bitmapset *result = NULL;
180 
182 
183  token = pg_strtok(&length);
184  if (token == NULL)
185  elog(ERROR, "incomplete Bitmapset structure");
186  if (length != 1 || token[0] != '(')
187  elog(ERROR, "unrecognized token: \"%.*s\"", length, token);
188 
189  token = pg_strtok(&length);
190  if (token == NULL)
191  elog(ERROR, "incomplete Bitmapset structure");
192  if (length != 1 || token[0] != 'b')
193  elog(ERROR, "unrecognized token: \"%.*s\"", length, token);
194 
195  for (;;)
196  {
197  int val;
198  char *endptr;
199 
200  token = pg_strtok(&length);
201  if (token == NULL)
202  elog(ERROR, "unterminated Bitmapset structure");
203  if (length == 1 && token[0] == ')')
204  break;
205  val = (int) strtol(token, &endptr, 10);
206  if (endptr != token + length)
207  elog(ERROR, "unrecognized integer: \"%.*s\"", length, token);
208  result = bms_add_member(result, val);
209  }
210 
211  return result;
212 }
int length(const List *list)
Definition: list.c:1271
char * pg_strtok(int *length)
Definition: read.c:107
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
#define NULL
Definition: c.h:229
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 1129 of file readfuncs.c.

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

Referenced by parseNodeString().

1130 {
1132 
1134  READ_ENUM_FIELD(booltesttype, BoolTestType);
1135  READ_LOCATION_FIELD(location);
1136 
1137  READ_DONE();
1138 }
BoolTestType
Definition: primnodes.h:1194
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
static BoolExpr* _readBoolExpr ( void  )
static

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

775 {
777 
778  /* do-it-yourself enum representation */
779  token = pg_strtok(&length); /* skip :boolop */
780  token = pg_strtok(&length); /* get field value */
781  if (strncmp(token, "and", 3) == 0)
782  local_node->boolop = AND_EXPR;
783  else if (strncmp(token, "or", 2) == 0)
784  local_node->boolop = OR_EXPR;
785  else if (strncmp(token, "not", 3) == 0)
786  local_node->boolop = NOT_EXPR;
787  else
788  elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
789 
791  READ_LOCATION_FIELD(location);
792 
793  READ_DONE();
794 }
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:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define elog
Definition: elog.h:219
static CaseExpr* _readCaseExpr ( void  )
static

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

942 {
944 
945  READ_OID_FIELD(casetype);
946  READ_OID_FIELD(casecollid);
949  READ_NODE_FIELD(defresult);
950  READ_LOCATION_FIELD(location);
951 
952  READ_DONE();
953 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
static CaseTestExpr* _readCaseTestExpr ( void  )
static

Definition at line 974 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

975 {
977 
978  READ_OID_FIELD(typeId);
979  READ_INT_FIELD(typeMod);
980  READ_OID_FIELD(collation);
981 
982  READ_DONE();
983 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static CaseWhen* _readCaseWhen ( void  )
static

Definition at line 959 of file readfuncs.c.

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

Referenced by parseNodeString().

960 {
962 
963  READ_NODE_FIELD(expr);
965  READ_LOCATION_FIELD(location);
966 
967  READ_DONE();
968 }
return result
Definition: formatting.c:1618
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static CoalesceExpr* _readCoalesceExpr ( void  )
static

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

1043 {
1045 
1046  READ_OID_FIELD(coalescetype);
1047  READ_OID_FIELD(coalescecollid);
1049  READ_LOCATION_FIELD(location);
1050 
1051  READ_DONE();
1052 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static CoerceToDomain* _readCoerceToDomain ( void  )
static

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

1145 {
1147 
1149  READ_OID_FIELD(resulttype);
1150  READ_INT_FIELD(resulttypmod);
1151  READ_OID_FIELD(resultcollid);
1152  READ_ENUM_FIELD(coercionformat, CoercionForm);
1153  READ_LOCATION_FIELD(location);
1154 
1155  READ_DONE();
1156 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
CoercionForm
Definition: primnodes.h:435
static CoerceToDomainValue* _readCoerceToDomainValue ( void  )
static

Definition at line 1162 of file readfuncs.c.

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

Referenced by parseNodeString().

1163 {
1165 
1166  READ_OID_FIELD(typeId);
1167  READ_INT_FIELD(typeMod);
1168  READ_OID_FIELD(collation);
1169  READ_LOCATION_FIELD(location);
1170 
1171  READ_DONE();
1172 }
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static CoerceViaIO* _readCoerceViaIO ( void  )
static

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

874 {
876 
878  READ_OID_FIELD(resulttype);
879  READ_OID_FIELD(resultcollid);
880  READ_ENUM_FIELD(coerceformat, CoercionForm);
881  READ_LOCATION_FIELD(location);
882 
883  READ_DONE();
884 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
CoercionForm
Definition: primnodes.h:435
static CollateExpr* _readCollateExpr ( void  )
static

Definition at line 926 of file readfuncs.c.

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

Referenced by parseNodeString().

927 {
929 
931  READ_OID_FIELD(collOid);
932  READ_LOCATION_FIELD(location);
933 
934  READ_DONE();
935 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
static CommonTableExpr* _readCommonTableExpr ( void  )
static

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

391 {
393 
394  READ_STRING_FIELD(ctename);
395  READ_NODE_FIELD(aliascolnames);
396  READ_NODE_FIELD(ctequery);
397  READ_LOCATION_FIELD(location);
398  READ_BOOL_FIELD(cterecursive);
399  READ_INT_FIELD(cterefcount);
400  READ_NODE_FIELD(ctecolnames);
401  READ_NODE_FIELD(ctecoltypes);
402  READ_NODE_FIELD(ctecoltypmods);
403  READ_NODE_FIELD(ctecolcollations);
404 
405  READ_DONE();
406 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static Const* _readConst ( void  )
static

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

529 {
531 
532  READ_OID_FIELD(consttype);
533  READ_INT_FIELD(consttypmod);
534  READ_OID_FIELD(constcollid);
535  READ_INT_FIELD(constlen);
536  READ_BOOL_FIELD(constbyval);
537  READ_BOOL_FIELD(constisnull);
538  READ_LOCATION_FIELD(location);
539 
540  token = pg_strtok(&length); /* skip :constvalue */
541  if (local_node->constisnull)
542  token = pg_strtok(&length); /* skip "<>" */
543  else
544  local_node->constvalue = readDatum(local_node->constbyval);
545 
546  READ_DONE();
547 }
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:104
Datum readDatum(bool typbyval)
Definition: readfuncs.c:2659
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static ConvertRowtypeExpr* _readConvertRowtypeExpr ( void  )
static

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

911 {
913 
915  READ_OID_FIELD(resulttype);
916  READ_ENUM_FIELD(convertformat, CoercionForm);
917  READ_LOCATION_FIELD(location);
918 
919  READ_DONE();
920 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
CoercionForm
Definition: primnodes.h:435
static CteScan* _readCteScan ( void  )
static

Definition at line 1863 of file readfuncs.c.

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

Referenced by parseNodeString().

1864 {
1866 
1867  ReadCommonScan(&local_node->scan);
1868 
1869  READ_INT_FIELD(ctePlanId);
1870  READ_INT_FIELD(cteParam);
1871 
1872  READ_DONE();
1873 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static CurrentOfExpr* _readCurrentOfExpr ( void  )
static

Definition at line 1194 of file readfuncs.c.

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

Referenced by parseNodeString().

1195 {
1197 
1198  READ_UINT_FIELD(cvarno);
1199  READ_STRING_FIELD(cursor_name);
1200  READ_INT_FIELD(cursor_param);
1201 
1202  READ_DONE();
1203 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static CustomScan* _readCustomScan ( void  )
static

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

1917 {
1919  char *custom_name;
1920  const CustomScanMethods *methods;
1921 
1922  ReadCommonScan(&local_node->scan);
1923 
1924  READ_UINT_FIELD(flags);
1925  READ_NODE_FIELD(custom_plans);
1926  READ_NODE_FIELD(custom_exprs);
1927  READ_NODE_FIELD(custom_private);
1928  READ_NODE_FIELD(custom_scan_tlist);
1929  READ_BITMAPSET_FIELD(custom_relids);
1930 
1931  /* Lookup CustomScanMethods by CustomName */
1932  token = pg_strtok(&length); /* skip methods: */
1933  token = pg_strtok(&length); /* CustomName */
1934  custom_name = nullable_string(token, length);
1935  methods = GetCustomScanMethods(custom_name, false);
1936  local_node->methods = methods;
1937 
1938  READ_DONE();
1939 }
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:68
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_DONE()
Definition: readfuncs.c:155
const CustomScanMethods * GetCustomScanMethods(const char *CustomName, bool missing_ok)
Definition: extensible.c:137
#define nullable_string(token, length)
Definition: readfuncs.c:169
static DeclareCursorStmt* _readDeclareCursorStmt ( void  )
static

Definition at line 289 of file readfuncs.c.

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

Referenced by parseNodeString().

290 {
292 
293  READ_STRING_FIELD(portalname);
295  READ_NODE_FIELD(query);
296 
297  READ_DONE();
298 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static DefElem* _readDefElem ( void  )
static

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

1424 {
1426 
1427  READ_STRING_FIELD(defnamespace);
1428  READ_STRING_FIELD(defname);
1430  READ_ENUM_FIELD(defaction, DefElemAction);
1431  READ_LOCATION_FIELD(location);
1432 
1433  READ_DONE();
1434 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
DefElemAction
Definition: parsenodes.h:708
void * arg
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
static DistinctExpr* _readDistinctExpr ( void  )
static

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

717 {
719 
720  READ_OID_FIELD(opno);
721  READ_OID_FIELD(opfuncid);
722  READ_OID_FIELD(opresulttype);
723  READ_BOOL_FIELD(opretset);
724  READ_OID_FIELD(opcollid);
725  READ_OID_FIELD(inputcollid);
727  READ_LOCATION_FIELD(location);
728 
729  READ_DONE();
730 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static ExtensibleNode* _readExtensibleNode ( void  )
static

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

2342 {
2343  const ExtensibleNodeMethods *methods;
2344  ExtensibleNode *local_node;
2345  const char *extnodename;
2346 
2347  READ_TEMP_LOCALS();
2348 
2349  token = pg_strtok(&length); /* skip :extnodename */
2350  token = pg_strtok(&length); /* get extnodename */
2351 
2352  extnodename = nullable_string(token, length);
2353  if (!extnodename)
2354  elog(ERROR, "extnodename has to be supplied");
2355  methods = GetExtensibleNodeMethods(extnodename, false);
2356 
2357  local_node = (ExtensibleNode *) newNode(methods->node_size,
2359  local_node->extnodename = extnodename;
2360 
2361  /* deserialize the private fields */
2362  methods->nodeRead(local_node);
2363 
2364  READ_DONE();
2365 }
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:547
#define ERROR
Definition: elog.h:43
void(* nodeRead)(struct ExtensibleNode *node)
Definition: extensible.h:70
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
const char * extnodename
Definition: extensible.h:35
#define READ_DONE()
Definition: readfuncs.c:155
#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:169
static FieldSelect* _readFieldSelect ( void  )
static

Definition at line 822 of file readfuncs.c.

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

Referenced by parseNodeString().

823 {
825 
827  READ_INT_FIELD(fieldnum);
828  READ_OID_FIELD(resulttype);
829  READ_INT_FIELD(resulttypmod);
830  READ_OID_FIELD(resultcollid);
831 
832  READ_DONE();
833 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static FieldStore* _readFieldStore ( void  )
static

Definition at line 839 of file readfuncs.c.

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

Referenced by parseNodeString().

840 {
842 
844  READ_NODE_FIELD(newvals);
845  READ_NODE_FIELD(fieldnums);
846  READ_OID_FIELD(resulttype);
847 
848  READ_DONE();
849 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
static ForeignScan* _readForeignScan ( void  )
static

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

1895 {
1897 
1898  ReadCommonScan(&local_node->scan);
1899 
1900  READ_ENUM_FIELD(operation, CmdType);
1901  READ_OID_FIELD(fs_server);
1902  READ_NODE_FIELD(fdw_exprs);
1903  READ_NODE_FIELD(fdw_private);
1904  READ_NODE_FIELD(fdw_scan_tlist);
1905  READ_NODE_FIELD(fdw_recheck_quals);
1906  READ_BITMAPSET_FIELD(fs_relids);
1907  READ_BOOL_FIELD(fsSystemCol);
1908 
1909  READ_DONE();
1910 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_DONE()
Definition: readfuncs.c:155
CmdType
Definition: nodes.h:648
static FromExpr* _readFromExpr ( void  )
static

Definition at line 1276 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1277 {
1279 
1280  READ_NODE_FIELD(fromlist);
1281  READ_NODE_FIELD(quals);
1282 
1283  READ_DONE();
1284 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static FuncExpr* _readFuncExpr ( void  )
static

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

660 {
662 
663  READ_OID_FIELD(funcid);
664  READ_OID_FIELD(funcresulttype);
665  READ_BOOL_FIELD(funcretset);
666  READ_BOOL_FIELD(funcvariadic);
667  READ_ENUM_FIELD(funcformat, CoercionForm);
668  READ_OID_FIELD(funccollid);
669  READ_OID_FIELD(inputcollid);
671  READ_LOCATION_FIELD(location);
672 
673  READ_DONE();
674 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
CoercionForm
Definition: primnodes.h:435
static FunctionScan* _readFunctionScan ( void  )
static

Definition at line 1817 of file readfuncs.c.

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

Referenced by parseNodeString().

1818 {
1820 
1821  ReadCommonScan(&local_node->scan);
1822 
1824  READ_BOOL_FIELD(funcordinality);
1825 
1826  READ_DONE();
1827 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
static const struct fns functions
Definition: regcomp.c:299
#define READ_DONE()
Definition: readfuncs.c:155
static Gather* _readGather ( void  )
static

Definition at line 2142 of file readfuncs.c.

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

Referenced by parseNodeString().

2143 {
2145 
2146  ReadCommonPlan(&local_node->plan);
2147 
2148  READ_INT_FIELD(num_workers);
2149  READ_BOOL_FIELD(single_copy);
2150  READ_BOOL_FIELD(invisible);
2151 
2152  READ_DONE();
2153 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static GatherMerge* _readGatherMerge ( void  )
static

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

2160 {
2162 
2163  ReadCommonPlan(&local_node->plan);
2164 
2165  READ_INT_FIELD(num_workers);
2166  READ_INT_FIELD(numCols);
2167  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2168  READ_OID_ARRAY(sortOperators, local_node->numCols);
2169  READ_OID_ARRAY(collations, local_node->numCols);
2170  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2171 
2172  READ_DONE();
2173 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static Group* _readGroup ( void  )
static

Definition at line 2061 of file readfuncs.c.

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

Referenced by parseNodeString().

2062 {
2063  READ_LOCALS(Group);
2064 
2065  ReadCommonPlan(&local_node->plan);
2066 
2067  READ_INT_FIELD(numCols);
2068  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2069  READ_OID_ARRAY(grpOperators, local_node->numCols);
2070 
2071  READ_DONE();
2072 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static GroupingFunc* _readGroupingFunc ( void  )
static

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

601 {
603 
605  READ_NODE_FIELD(refs);
606  READ_NODE_FIELD(cols);
607  READ_UINT_FIELD(agglevelsup);
608  READ_LOCATION_FIELD(location);
609 
610  READ_DONE();
611 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static GroupingSet* _readGroupingSet ( void  )
static

Definition at line 338 of file readfuncs.c.

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

Referenced by parseNodeString().

339 {
341 
343  READ_NODE_FIELD(content);
344  READ_LOCATION_FIELD(location);
345 
346  READ_DONE();
347 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
GroupingSetKind
Definition: parsenodes.h:1214
#define READ_DONE()
Definition: readfuncs.c:155
static Hash* _readHash ( void  )
static

Definition at line 2179 of file readfuncs.c.

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

Referenced by parseNodeString().

2180 {
2181  READ_LOCALS(Hash);
2182 
2183  ReadCommonPlan(&local_node->plan);
2184 
2185  READ_OID_FIELD(skewTable);
2186  READ_INT_FIELD(skewColumn);
2187  READ_BOOL_FIELD(skewInherit);
2188  READ_OID_FIELD(skewColType);
2189  READ_INT_FIELD(skewColTypmod);
2190 
2191  READ_DONE();
2192 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static HashJoin* _readHashJoin ( void  )
static

Definition at line 2014 of file readfuncs.c.

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

Referenced by parseNodeString().

2015 {
2017 
2018  ReadCommonJoin(&local_node->join);
2019 
2020  READ_NODE_FIELD(hashclauses);
2021 
2022  READ_DONE();
2023 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1946
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static IndexOnlyScan* _readIndexOnlyScan ( void  )
static

Definition at line 1735 of file readfuncs.c.

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

Referenced by parseNodeString().

1736 {
1738 
1739  ReadCommonScan(&local_node->scan);
1740 
1741  READ_OID_FIELD(indexid);
1742  READ_NODE_FIELD(indexqual);
1743  READ_NODE_FIELD(indexorderby);
1744  READ_NODE_FIELD(indextlist);
1745  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1746 
1747  READ_DONE();
1748 }
ScanDirection
Definition: sdir.h:22
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static IndexScan* _readIndexScan ( void  )
static

Definition at line 1714 of file readfuncs.c.

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

Referenced by parseNodeString().

1715 {
1717 
1718  ReadCommonScan(&local_node->scan);
1719 
1720  READ_OID_FIELD(indexid);
1721  READ_NODE_FIELD(indexqual);
1722  READ_NODE_FIELD(indexqualorig);
1723  READ_NODE_FIELD(indexorderby);
1724  READ_NODE_FIELD(indexorderbyorig);
1725  READ_NODE_FIELD(indexorderbyops);
1726  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1727 
1728  READ_DONE();
1729 }
ScanDirection
Definition: sdir.h:22
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static InferenceElem* _readInferenceElem ( void  )
static

Definition at line 1209 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1210 {
1212 
1213  READ_NODE_FIELD(expr);
1214  READ_OID_FIELD(infercollid);
1215  READ_OID_FIELD(inferopclass);
1216 
1217  READ_DONE();
1218 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static IntoClause* _readIntoClause ( void  )
static

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

489 {
491 
492  READ_NODE_FIELD(rel);
493  READ_NODE_FIELD(colNames);
495  READ_ENUM_FIELD(onCommit, OnCommitAction);
496  READ_STRING_FIELD(tableSpaceName);
497  READ_NODE_FIELD(viewQuery);
498  READ_BOOL_FIELD(skipData);
499 
500  READ_DONE();
501 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
OnCommitAction
Definition: primnodes.h:47
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
static Join* _readJoin ( void  )
static

Definition at line 1961 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonJoin().

Referenced by parseNodeString().

1962 {
1964 
1965  ReadCommonJoin(local_node);
1966 
1967  READ_DONE();
1968 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1946
#define READ_DONE()
Definition: readfuncs.c:155
static JoinExpr* _readJoinExpr ( void  )
static

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

1257 {
1259 
1260  READ_ENUM_FIELD(jointype, JoinType);
1261  READ_BOOL_FIELD(isNatural);
1262  READ_NODE_FIELD(larg);
1263  READ_NODE_FIELD(rarg);
1264  READ_NODE_FIELD(usingClause);
1265  READ_NODE_FIELD(quals);
1266  READ_NODE_FIELD(alias);
1267  READ_INT_FIELD(rtindex);
1268 
1269  READ_DONE();
1270 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
JoinType
Definition: nodes.h:672
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static Limit* _readLimit ( void  )
static

Definition at line 2236 of file readfuncs.c.

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

Referenced by parseNodeString().

2237 {
2238  READ_LOCALS(Limit);
2239 
2240  ReadCommonPlan(&local_node->plan);
2241 
2242  READ_NODE_FIELD(limitOffset);
2243  READ_NODE_FIELD(limitCount);
2244 
2245  READ_DONE();
2246 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static LockRows* _readLockRows ( void  )
static

Definition at line 2220 of file readfuncs.c.

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

Referenced by parseNodeString().

2221 {
2223 
2224  ReadCommonPlan(&local_node->plan);
2225 
2226  READ_NODE_FIELD(rowMarks);
2227  READ_INT_FIELD(epqParam);
2228 
2229  READ_DONE();
2230 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static Material* _readMaterial ( void  )
static

Definition at line 2029 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

2030 {
2032 
2033  ReadCommonPlan(&local_node->plan);
2034 
2035  READ_DONE();
2036 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_DONE()
Definition: readfuncs.c:155
static MergeAppend* _readMergeAppend ( void  )
static

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

1589 {
1591 
1592  ReadCommonPlan(&local_node->plan);
1593 
1594  READ_NODE_FIELD(partitioned_rels);
1595  READ_NODE_FIELD(mergeplans);
1596  READ_INT_FIELD(numCols);
1597  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
1598  READ_OID_ARRAY(sortOperators, local_node->numCols);
1599  READ_OID_ARRAY(collations, local_node->numCols);
1600  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
1601 
1602  READ_DONE();
1603 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static MergeJoin* _readMergeJoin ( void  )
static

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

1990 {
1991  int numCols;
1992 
1994 
1995  ReadCommonJoin(&local_node->join);
1996 
1997  READ_BOOL_FIELD(skip_mark_restore);
1998  READ_NODE_FIELD(mergeclauses);
1999 
2000  numCols = list_length(local_node->mergeclauses);
2001 
2002  READ_OID_ARRAY(mergeFamilies, numCols);
2003  READ_OID_ARRAY(mergeCollations, numCols);
2004  READ_INT_ARRAY(mergeStrategies, numCols);
2005  READ_BOOL_ARRAY(mergeNullsFirst, numCols);
2006 
2007  READ_DONE();
2008 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1946
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
static int list_length(const List *l)
Definition: pg_list.h:89
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_ARRAY(fldname, len)
Definition: readfuncs.c:145
static MinMaxExpr* _readMinMaxExpr ( void  )
static

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

1059 {
1061 
1062  READ_OID_FIELD(minmaxtype);
1063  READ_OID_FIELD(minmaxcollid);
1064  READ_OID_FIELD(inputcollid);
1067  READ_LOCATION_FIELD(location);
1068 
1069  READ_DONE();
1070 }
MinMaxOp
Definition: primnodes.h:1053
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static ModifyTable* _readModifyTable ( void  )
static

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

1540 {
1542 
1543  ReadCommonPlan(&local_node->plan);
1544 
1545  READ_ENUM_FIELD(operation, CmdType);
1546  READ_BOOL_FIELD(canSetTag);
1547  READ_UINT_FIELD(nominalRelation);
1548  READ_NODE_FIELD(partitioned_rels);
1549  READ_NODE_FIELD(resultRelations);
1550  READ_INT_FIELD(resultRelIndex);
1551  READ_NODE_FIELD(plans);
1552  READ_NODE_FIELD(withCheckOptionLists);
1553  READ_NODE_FIELD(returningLists);
1554  READ_NODE_FIELD(fdwPrivLists);
1555  READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
1556  READ_NODE_FIELD(rowMarks);
1557  READ_INT_FIELD(epqParam);
1558  READ_ENUM_FIELD(onConflictAction, OnConflictAction);
1559  READ_NODE_FIELD(arbiterIndexes);
1560  READ_NODE_FIELD(onConflictSet);
1561  READ_NODE_FIELD(onConflictWhere);
1562  READ_UINT_FIELD(exclRelRTI);
1563  READ_NODE_FIELD(exclRelTlist);
1564 
1565  READ_DONE();
1566 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
OnConflictAction
Definition: nodes.h:798
CmdType
Definition: nodes.h:648
static NamedArgExpr* _readNamedArgExpr ( void  )
static

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

681 {
683 
686  READ_INT_FIELD(argnumber);
687  READ_LOCATION_FIELD(location);
688 
689  READ_DONE();
690 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
const char * name
Definition: encode.c:521
void * arg
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static NestLoop* _readNestLoop ( void  )
static

Definition at line 1974 of file readfuncs.c.

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

Referenced by parseNodeString().

1975 {
1977 
1978  ReadCommonJoin(&local_node->join);
1979 
1980  READ_NODE_FIELD(nestParams);
1981 
1982  READ_DONE();
1983 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1946
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static NestLoopParam* _readNestLoopParam ( void  )
static

Definition at line 2252 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2253 {
2255 
2256  READ_INT_FIELD(paramno);
2257  READ_NODE_FIELD(paramval);
2258 
2259  READ_DONE();
2260 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static NotifyStmt* _readNotifyStmt ( void  )
static

Definition at line 275 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_STRING_FIELD.

Referenced by parseNodeString().

276 {
278 
279  READ_STRING_FIELD(conditionname);
280  READ_STRING_FIELD(payload);
281 
282  READ_DONE();
283 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
static NullIfExpr* _readNullIfExpr ( void  )
static

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

737 {
739 
740  READ_OID_FIELD(opno);
741  READ_OID_FIELD(opfuncid);
742  READ_OID_FIELD(opresulttype);
743  READ_BOOL_FIELD(opretset);
744  READ_OID_FIELD(opcollid);
745  READ_OID_FIELD(inputcollid);
747  READ_LOCATION_FIELD(location);
748 
749  READ_DONE();
750 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static NullTest* _readNullTest ( void  )
static

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

1114 {
1116 
1118  READ_ENUM_FIELD(nulltesttype, NullTestType);
1119  READ_BOOL_FIELD(argisrow);
1120  READ_LOCATION_FIELD(location);
1121 
1122  READ_DONE();
1123 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
NullTestType
Definition: primnodes.h:1171
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
static OnConflictExpr* _readOnConflictExpr ( void  )
static

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

1291 {
1293 
1295  READ_NODE_FIELD(arbiterElems);
1296  READ_NODE_FIELD(arbiterWhere);
1297  READ_OID_FIELD(constraint);
1298  READ_NODE_FIELD(onConflictSet);
1299  READ_NODE_FIELD(onConflictWhere);
1300  READ_INT_FIELD(exclRelIndex);
1301  READ_NODE_FIELD(exclRelTlist);
1302 
1303  READ_DONE();
1304 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
OnConflictAction
Definition: nodes.h:798
static OpExpr* _readOpExpr ( void  )
static

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

697 {
699 
700  READ_OID_FIELD(opno);
701  READ_OID_FIELD(opfuncid);
702  READ_OID_FIELD(opresulttype);
703  READ_BOOL_FIELD(opretset);
704  READ_OID_FIELD(opcollid);
705  READ_OID_FIELD(inputcollid);
707  READ_LOCATION_FIELD(location);
708 
709  READ_DONE();
710 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static Param* _readParam ( void  )
static

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

554 {
556 
557  READ_ENUM_FIELD(paramkind, ParamKind);
558  READ_INT_FIELD(paramid);
559  READ_OID_FIELD(paramtype);
560  READ_INT_FIELD(paramtypmod);
561  READ_OID_FIELD(paramcollid);
562  READ_LOCATION_FIELD(location);
563 
564  READ_DONE();
565 }
ParamKind
Definition: primnodes.h:233
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static PartitionBoundSpec* _readPartitionBoundSpec ( void  )
static

Definition at line 2371 of file readfuncs.c.

References READ_CHAR_FIELD, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2372 {
2374 
2375  READ_CHAR_FIELD(strategy);
2376  READ_NODE_FIELD(listdatums);
2377  READ_NODE_FIELD(lowerdatums);
2378  READ_NODE_FIELD(upperdatums);
2379 
2380  READ_DONE();
2381 }
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:86
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static PartitionRangeDatum* _readPartitionRangeDatum ( void  )
static

Definition at line 2387 of file readfuncs.c.

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

Referenced by parseNodeString().

2388 {
2390 
2391  READ_BOOL_FIELD(infinite);
2393 
2394  READ_DONE();
2395 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static struct @121 value
static Plan* _readPlan ( void  )
static

Definition at line 1498 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1499 {
1501 
1502  ReadCommonPlan(local_node);
1503 
1504  READ_DONE();
1505 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_DONE()
Definition: readfuncs.c:155
static PlanInvalItem* _readPlanInvalItem ( void  )
static

Definition at line 2286 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

2287 {
2289 
2290  READ_INT_FIELD(cacheId);
2291  READ_UINT_FIELD(hashValue);
2292 
2293  READ_DONE();
2294 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static PlannedStmt* _readPlannedStmt ( void  )
static

Definition at line 1440 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_UINT_FIELD.

Referenced by parseNodeString().

1441 {
1443 
1444  READ_ENUM_FIELD(commandType, CmdType);
1445  READ_UINT_FIELD(queryId);
1446  READ_BOOL_FIELD(hasReturning);
1447  READ_BOOL_FIELD(hasModifyingCTE);
1448  READ_BOOL_FIELD(canSetTag);
1449  READ_BOOL_FIELD(transientPlan);
1450  READ_BOOL_FIELD(dependsOnRole);
1451  READ_BOOL_FIELD(parallelModeNeeded);
1452  READ_NODE_FIELD(planTree);
1453  READ_NODE_FIELD(rtable);
1454  READ_NODE_FIELD(resultRelations);
1455  READ_NODE_FIELD(nonleafResultRelations);
1456  READ_NODE_FIELD(subplans);
1457  READ_BITMAPSET_FIELD(rewindPlanIDs);
1458  READ_NODE_FIELD(rowMarks);
1459  READ_NODE_FIELD(relationOids);
1460  READ_NODE_FIELD(invalItems);
1461  READ_INT_FIELD(nParamExec);
1462  READ_NODE_FIELD(utilityStmt);
1463  READ_LOCATION_FIELD(stmt_location);
1464  READ_LOCATION_FIELD(stmt_len);
1465 
1466  READ_DONE();
1467 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
CmdType
Definition: nodes.h:648
static PlanRowMark* _readPlanRowMark ( void  )
static

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

2267 {
2269 
2270  READ_UINT_FIELD(rti);
2271  READ_UINT_FIELD(prti);
2272  READ_UINT_FIELD(rowmarkId);
2273  READ_ENUM_FIELD(markType, RowMarkType);
2274  READ_INT_FIELD(allMarkTypes);
2276  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2277  READ_BOOL_FIELD(isParent);
2278 
2279  READ_DONE();
2280 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
LockClauseStrength
Definition: lockoptions.h:21
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
RowMarkType
Definition: plannodes.h:944
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
LockWaitPolicy
Definition: lockoptions.h:36
static ProjectSet* _readProjectSet ( void  )
static

Definition at line 1526 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1527 {
1529 
1530  ReadCommonPlan(&local_node->plan);
1531 
1532  READ_DONE();
1533 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_DONE()
Definition: readfuncs.c:155
static Query* _readQuery ( void  )
static

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

228 {
230 
231  READ_ENUM_FIELD(commandType, CmdType);
232  READ_ENUM_FIELD(querySource, QuerySource);
233  local_node->queryId = 0; /* not saved in output format */
234  READ_BOOL_FIELD(canSetTag);
235  READ_NODE_FIELD(utilityStmt);
236  READ_INT_FIELD(resultRelation);
237  READ_BOOL_FIELD(hasAggs);
238  READ_BOOL_FIELD(hasWindowFuncs);
239  READ_BOOL_FIELD(hasTargetSRFs);
240  READ_BOOL_FIELD(hasSubLinks);
241  READ_BOOL_FIELD(hasDistinctOn);
242  READ_BOOL_FIELD(hasRecursive);
243  READ_BOOL_FIELD(hasModifyingCTE);
244  READ_BOOL_FIELD(hasForUpdate);
245  READ_BOOL_FIELD(hasRowSecurity);
246  READ_NODE_FIELD(cteList);
247  READ_NODE_FIELD(rtable);
248  READ_NODE_FIELD(jointree);
249  READ_NODE_FIELD(targetList);
250  READ_ENUM_FIELD(override, OverridingKind);
251  READ_NODE_FIELD(onConflict);
252  READ_NODE_FIELD(returningList);
253  READ_NODE_FIELD(groupClause);
254  READ_NODE_FIELD(groupingSets);
255  READ_NODE_FIELD(havingQual);
256  READ_NODE_FIELD(windowClause);
257  READ_NODE_FIELD(distinctClause);
258  READ_NODE_FIELD(sortClause);
259  READ_NODE_FIELD(limitOffset);
260  READ_NODE_FIELD(limitCount);
261  READ_NODE_FIELD(rowMarks);
262  READ_NODE_FIELD(setOperations);
263  READ_NODE_FIELD(constraintDeps);
264  /* withCheckOptions intentionally omitted, see comment in parsenodes.h */
265  READ_LOCATION_FIELD(stmt_location);
266  READ_LOCATION_FIELD(stmt_len);
267 
268  READ_DONE();
269 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
QuerySource
Definition: parsenodes.h:38
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
CmdType
Definition: nodes.h:648
OverridingKind
Definition: parsenodes.h:30
static RangeTblEntry* _readRangeTblEntry ( void  )
static

Definition at line 1314 of file readfuncs.c.

References elog, ERROR, functions, READ_BITMAPSET_FIELD, READ_BOOL_FIELD, READ_CHAR_FIELD, READ_DONE, READ_ENUM_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().

1315 {
1317 
1318  /* put alias + eref first to make dump more legible */
1319  READ_NODE_FIELD(alias);
1320  READ_NODE_FIELD(eref);
1321  READ_ENUM_FIELD(rtekind, RTEKind);
1322 
1323  switch (local_node->rtekind)
1324  {
1325  case RTE_RELATION:
1326  READ_OID_FIELD(relid);
1327  READ_CHAR_FIELD(relkind);
1328  READ_NODE_FIELD(tablesample);
1329  break;
1330  case RTE_SUBQUERY:
1331  READ_NODE_FIELD(subquery);
1332  READ_BOOL_FIELD(security_barrier);
1333  break;
1334  case RTE_JOIN:
1335  READ_ENUM_FIELD(jointype, JoinType);
1336  READ_NODE_FIELD(joinaliasvars);
1337  break;
1338  case RTE_FUNCTION:
1340  READ_BOOL_FIELD(funcordinality);
1341  break;
1342  case RTE_TABLEFUNC:
1343  READ_NODE_FIELD(tablefunc);
1344  break;
1345  case RTE_VALUES:
1346  READ_NODE_FIELD(values_lists);
1347  READ_NODE_FIELD(coltypes);
1348  READ_NODE_FIELD(coltypmods);
1349  READ_NODE_FIELD(colcollations);
1350  break;
1351  case RTE_CTE:
1352  READ_STRING_FIELD(ctename);
1353  READ_UINT_FIELD(ctelevelsup);
1354  READ_BOOL_FIELD(self_reference);
1355  READ_NODE_FIELD(coltypes);
1356  READ_NODE_FIELD(coltypmods);
1357  READ_NODE_FIELD(colcollations);
1358  break;
1359  case RTE_NAMEDTUPLESTORE:
1360  READ_STRING_FIELD(enrname);
1361  READ_OID_FIELD(relid);
1362  READ_NODE_FIELD(coltypes);
1363  READ_NODE_FIELD(coltypmods);
1364  READ_NODE_FIELD(colcollations);
1365  break;
1366  default:
1367  elog(ERROR, "unrecognized RTE kind: %d",
1368  (int) local_node->rtekind);
1369  break;
1370  }
1371 
1372  READ_BOOL_FIELD(lateral);
1373  READ_BOOL_FIELD(inh);
1374  READ_BOOL_FIELD(inFromCl);
1375  READ_UINT_FIELD(requiredPerms);
1376  READ_OID_FIELD(checkAsUser);
1377  READ_BITMAPSET_FIELD(selectedCols);
1378  READ_BITMAPSET_FIELD(insertedCols);
1379  READ_BITMAPSET_FIELD(updatedCols);
1380  READ_NODE_FIELD(securityQuals);
1381 
1382  READ_DONE();
1383 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
JoinType
Definition: nodes.h:672
#define ERROR
Definition: elog.h:43
RTEKind
Definition: parsenodes.h:913
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:86
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
static const struct fns functions
Definition: regcomp.c:299
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define elog
Definition: elog.h:219
static RangeTblFunction* _readRangeTblFunction ( void  )
static

Definition at line 1389 of file readfuncs.c.

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

Referenced by parseNodeString().

1390 {
1392 
1393  READ_NODE_FIELD(funcexpr);
1394  READ_INT_FIELD(funccolcount);
1395  READ_NODE_FIELD(funccolnames);
1396  READ_NODE_FIELD(funccoltypes);
1397  READ_NODE_FIELD(funccoltypmods);
1398  READ_NODE_FIELD(funccolcollations);
1399  READ_BITMAPSET_FIELD(funcparams);
1400 
1401  READ_DONE();
1402 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static RangeTblRef* _readRangeTblRef ( void  )
static

Definition at line 1243 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, and READ_LOCALS.

Referenced by parseNodeString().

1244 {
1246 
1247  READ_INT_FIELD(rtindex);
1248 
1249  READ_DONE();
1250 }
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static RangeVar* _readRangeVar ( void  )
static

Definition at line 445 of file readfuncs.c.

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

Referenced by parseNodeString().

446 {
448 
449  local_node->catalogname = NULL; /* not currently saved in output
450  * format */
451 
452  READ_STRING_FIELD(schemaname);
453  READ_STRING_FIELD(relname);
454  READ_BOOL_FIELD(inh);
455  READ_CHAR_FIELD(relpersistence);
456  READ_NODE_FIELD(alias);
457  READ_LOCATION_FIELD(location);
458 
459  READ_DONE();
460 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:86
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define NULL
Definition: c.h:229
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
static RecursiveUnion* _readRecursiveUnion ( void  )
static

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

1610 {
1612 
1613  ReadCommonPlan(&local_node->plan);
1614 
1615  READ_INT_FIELD(wtParam);
1616  READ_INT_FIELD(numCols);
1617  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
1618  READ_OID_ARRAY(dupOperators, local_node->numCols);
1619  READ_LONG_FIELD(numGroups);
1620 
1621  READ_DONE();
1622 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:74
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static RelabelType* _readRelabelType ( void  )
static

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

856 {
858 
860  READ_OID_FIELD(resulttype);
861  READ_INT_FIELD(resulttypmod);
862  READ_OID_FIELD(resultcollid);
863  READ_ENUM_FIELD(relabelformat, CoercionForm);
864  READ_LOCATION_FIELD(location);
865 
866  READ_DONE();
867 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
void * arg
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
CoercionForm
Definition: primnodes.h:435
static Result* _readResult ( void  )
static

Definition at line 1511 of file readfuncs.c.

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

Referenced by parseNodeString().

1512 {
1514 
1515  ReadCommonPlan(&local_node->plan);
1516 
1517  READ_NODE_FIELD(resconstantqual);
1518 
1519  READ_DONE();
1520 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static RowCompareExpr* _readRowCompareExpr ( void  )
static

Definition at line 1024 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1025 {
1027 
1029  READ_NODE_FIELD(opnos);
1030  READ_NODE_FIELD(opfamilies);
1031  READ_NODE_FIELD(inputcollids);
1032  READ_NODE_FIELD(largs);
1033  READ_NODE_FIELD(rargs);
1034 
1035  READ_DONE();
1036 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
RowCompareType
Definition: primnodes.h:1016
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static RowExpr* _readRowExpr ( void  )
static

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

1008 {
1010 
1012  READ_OID_FIELD(row_typeid);
1013  READ_ENUM_FIELD(row_format, CoercionForm);
1014  READ_NODE_FIELD(colnames);
1015  READ_LOCATION_FIELD(location);
1016 
1017  READ_DONE();
1018 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
CoercionForm
Definition: primnodes.h:435
static RowMarkClause* _readRowMarkClause ( void  )
static

Definition at line 374 of file readfuncs.c.

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

Referenced by parseNodeString().

375 {
377 
378  READ_UINT_FIELD(rti);
380  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
381  READ_BOOL_FIELD(pushedDown);
382 
383  READ_DONE();
384 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
LockClauseStrength
Definition: lockoptions.h:21
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
LockWaitPolicy
Definition: lockoptions.h:36
static SampleScan* _readSampleScan ( void  )
static

Definition at line 1699 of file readfuncs.c.

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

Referenced by parseNodeString().

1700 {
1702 
1703  ReadCommonScan(&local_node->scan);
1704 
1705  READ_NODE_FIELD(tablesample);
1706 
1707  READ_DONE();
1708 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static ScalarArrayOpExpr* _readScalarArrayOpExpr ( void  )
static

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

757 {
759 
760  READ_OID_FIELD(opno);
761  READ_OID_FIELD(opfuncid);
762  READ_BOOL_FIELD(useOr);
763  READ_OID_FIELD(inputcollid);
765  READ_LOCATION_FIELD(location);
766 
767  READ_DONE();
768 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static Scan* _readScan ( void  )
static

Definition at line 1673 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1674 {
1676 
1677  ReadCommonScan(local_node);
1678 
1679  READ_DONE();
1680 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_DONE()
Definition: readfuncs.c:155
static SeqScan* _readSeqScan ( void  )
static

Definition at line 1686 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1687 {
1689 
1690  ReadCommonScan(local_node);
1691 
1692  READ_DONE();
1693 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_DONE()
Definition: readfuncs.c:155
static SetOp* _readSetOp ( void  )
static

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

2199 {
2200  READ_LOCALS(SetOp);
2201 
2202  ReadCommonPlan(&local_node->plan);
2203 
2204  READ_ENUM_FIELD(cmd, SetOpCmd);
2205  READ_ENUM_FIELD(strategy, SetOpStrategy);
2206  READ_INT_FIELD(numCols);
2207  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
2208  READ_OID_ARRAY(dupOperators, local_node->numCols);
2209  READ_INT_FIELD(flagColIdx);
2210  READ_INT_FIELD(firstFlag);
2211  READ_LONG_FIELD(numGroups);
2212 
2213  READ_DONE();
2214 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:74
SetOpStrategy
Definition: nodes.h:786
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
SetOpCmd
Definition: nodes.h:778
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static SetOperationStmt* _readSetOperationStmt ( void  )
static

Definition at line 412 of file readfuncs.c.

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

Referenced by parseNodeString().

413 {
415 
417  READ_BOOL_FIELD(all);
418  READ_NODE_FIELD(larg);
419  READ_NODE_FIELD(rarg);
420  READ_NODE_FIELD(colTypes);
421  READ_NODE_FIELD(colTypmods);
422  READ_NODE_FIELD(colCollations);
423  READ_NODE_FIELD(groupClauses);
424 
425  READ_DONE();
426 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
SetOperation
Definition: parsenodes.h:1463
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static SetToDefault* _readSetToDefault ( void  )
static

Definition at line 1178 of file readfuncs.c.

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

Referenced by parseNodeString().

1179 {
1181 
1182  READ_OID_FIELD(typeId);
1183  READ_INT_FIELD(typeMod);
1184  READ_OID_FIELD(collation);
1185  READ_LOCATION_FIELD(location);
1186 
1187  READ_DONE();
1188 }
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static Sort* _readSort ( void  )
static

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

2043 {
2044  READ_LOCALS(Sort);
2045 
2046  ReadCommonPlan(&local_node->plan);
2047 
2048  READ_INT_FIELD(numCols);
2049  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2050  READ_OID_ARRAY(sortOperators, local_node->numCols);
2051  READ_OID_ARRAY(collations, local_node->numCols);
2052  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2053 
2054  READ_DONE();
2055 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static SortGroupClause* _readSortGroupClause ( void  )
static

Definition at line 321 of file readfuncs.c.

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

Referenced by parseNodeString().

322 {
324 
325  READ_UINT_FIELD(tleSortGroupRef);
326  READ_OID_FIELD(eqop);
327  READ_OID_FIELD(sortop);
328  READ_BOOL_FIELD(nulls_first);
329  READ_BOOL_FIELD(hashable);
330 
331  READ_DONE();
332 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static SQLValueFunction* _readSQLValueFunction ( void  )
static

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

1077 {
1079 
1081  READ_OID_FIELD(type);
1082  READ_INT_FIELD(typmod);
1083  READ_LOCATION_FIELD(location);
1084 
1085  READ_DONE();
1086 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
SQLValueFunctionOp
Definition: primnodes.h:1081
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static SubLink* _readSubLink ( void  )
static

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

801 {
803 
804  READ_ENUM_FIELD(subLinkType, SubLinkType);
805  READ_INT_FIELD(subLinkId);
806  READ_NODE_FIELD(testexpr);
807  READ_NODE_FIELD(operName);
808  READ_NODE_FIELD(subselect);
809  READ_LOCATION_FIELD(location);
810 
811  READ_DONE();
812 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
SubLinkType
Definition: primnodes.h:617
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static SubPlan* _readSubPlan ( void  )
static

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

2301 {
2303 
2304  READ_ENUM_FIELD(subLinkType, SubLinkType);
2305  READ_NODE_FIELD(testexpr);
2306  READ_NODE_FIELD(paramIds);
2307  READ_INT_FIELD(plan_id);
2308  READ_STRING_FIELD(plan_name);
2309  READ_OID_FIELD(firstColType);
2310  READ_INT_FIELD(firstColTypmod);
2311  READ_OID_FIELD(firstColCollation);
2312  READ_BOOL_FIELD(useHashTable);
2313  READ_BOOL_FIELD(unknownEqFalse);
2314  READ_BOOL_FIELD(parallel_safe);
2315  READ_NODE_FIELD(setParam);
2316  READ_NODE_FIELD(parParam);
2318  READ_FLOAT_FIELD(startup_cost);
2319  READ_FLOAT_FIELD(per_call_cost);
2320 
2321  READ_DONE();
2322 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:98
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
SubLinkType
Definition: primnodes.h:617
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static SubqueryScan* _readSubqueryScan ( void  )
static

Definition at line 1802 of file readfuncs.c.

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

Referenced by parseNodeString().

1803 {
1805 
1806  ReadCommonScan(&local_node->scan);
1807 
1808  READ_NODE_FIELD(subplan);
1809 
1810  READ_DONE();
1811 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static TableFunc* _readTableFunc ( void  )
static

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

467 {
469 
470  READ_NODE_FIELD(ns_names);
471  READ_NODE_FIELD(ns_uris);
472  READ_NODE_FIELD(docexpr);
473  READ_NODE_FIELD(rowexpr);
474  READ_NODE_FIELD(colnames);
475  READ_NODE_FIELD(coltypes);
476  READ_NODE_FIELD(coltypmods);
477  READ_NODE_FIELD(colcollations);
478  READ_NODE_FIELD(colexprs);
479  READ_NODE_FIELD(coldefexprs);
480  READ_BITMAPSET_FIELD(notnulls);
481  READ_INT_FIELD(ordinalitycol);
482  READ_LOCATION_FIELD(location);
483 
484  READ_DONE();
485 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static TableFuncScan* _readTableFuncScan ( void  )
static

Definition at line 1848 of file readfuncs.c.

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

Referenced by parseNodeString().

1849 {
1851 
1852  ReadCommonScan(&local_node->scan);
1853 
1854  READ_NODE_FIELD(tablefunc);
1855 
1856  READ_DONE();
1857 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static TableSampleClause* _readTableSampleClause ( void  )
static

Definition at line 1408 of file readfuncs.c.

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

Referenced by parseNodeString().

1409 {
1411 
1412  READ_OID_FIELD(tsmhandler);
1414  READ_NODE_FIELD(repeatable);
1415 
1416  READ_DONE();
1417 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static TargetEntry* _readTargetEntry ( void  )
static

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

1225 {
1227 
1228  READ_NODE_FIELD(expr);
1229  READ_INT_FIELD(resno);
1230  READ_STRING_FIELD(resname);
1231  READ_UINT_FIELD(ressortgroupref);
1232  READ_OID_FIELD(resorigtbl);
1233  READ_INT_FIELD(resorigcol);
1234  READ_BOOL_FIELD(resjunk);
1235 
1236  READ_DONE();
1237 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static TidScan* _readTidScan ( void  )
static

Definition at line 1787 of file readfuncs.c.

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

Referenced by parseNodeString().

1788 {
1790 
1791  ReadCommonScan(&local_node->scan);
1792 
1793  READ_NODE_FIELD(tidquals);
1794 
1795  READ_DONE();
1796 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static Unique* _readUnique ( void  )
static

Definition at line 2125 of file readfuncs.c.

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

Referenced by parseNodeString().

2126 {
2128 
2129  ReadCommonPlan(&local_node->plan);
2130 
2131  READ_INT_FIELD(numCols);
2132  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
2133  READ_OID_ARRAY(uniqOperators, local_node->numCols);
2134 
2135  READ_DONE();
2136 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static ValuesScan* _readValuesScan ( void  )
static

Definition at line 1833 of file readfuncs.c.

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

Referenced by parseNodeString().

1834 {
1836 
1837  ReadCommonScan(&local_node->scan);
1838 
1839  READ_NODE_FIELD(values_lists);
1840 
1841  READ_DONE();
1842 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static Var* _readVar ( void  )
static

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

508 {
509  READ_LOCALS(Var);
510 
511  READ_UINT_FIELD(varno);
512  READ_INT_FIELD(varattno);
513  READ_OID_FIELD(vartype);
514  READ_INT_FIELD(vartypmod);
515  READ_OID_FIELD(varcollid);
516  READ_UINT_FIELD(varlevelsup);
517  READ_UINT_FIELD(varnoold);
518  READ_INT_FIELD(varoattno);
519  READ_LOCATION_FIELD(location);
520 
521  READ_DONE();
522 }
Definition: primnodes.h:163
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static WindowAgg* _readWindowAgg ( void  )
static

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

2102 {
2104 
2105  ReadCommonPlan(&local_node->plan);
2106 
2107  READ_UINT_FIELD(winref);
2108  READ_INT_FIELD(partNumCols);
2109  READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
2110  READ_OID_ARRAY(partOperators, local_node->partNumCols);
2111  READ_INT_FIELD(ordNumCols);
2112  READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
2113  READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
2114  READ_INT_FIELD(frameOptions);
2115  READ_NODE_FIELD(startOffset);
2116  READ_NODE_FIELD(endOffset);
2117 
2118  READ_DONE();
2119 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:140
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static WindowClause* _readWindowClause ( void  )
static

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

354 {
356 
358  READ_STRING_FIELD(refname);
359  READ_NODE_FIELD(partitionClause);
360  READ_NODE_FIELD(orderClause);
361  READ_INT_FIELD(frameOptions);
362  READ_NODE_FIELD(startOffset);
363  READ_NODE_FIELD(endOffset);
364  READ_UINT_FIELD(winref);
365  READ_BOOL_FIELD(copiedOrder);
366 
367  READ_DONE();
368 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
const char * name
Definition: encode.c:521
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static WindowFunc* _readWindowFunc ( void  )
static

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

618 {
620 
621  READ_OID_FIELD(winfnoid);
622  READ_OID_FIELD(wintype);
623  READ_OID_FIELD(wincollid);
624  READ_OID_FIELD(inputcollid);
626  READ_NODE_FIELD(aggfilter);
627  READ_UINT_FIELD(winref);
628  READ_BOOL_FIELD(winstar);
629  READ_BOOL_FIELD(winagg);
630  READ_LOCATION_FIELD(location);
631 
632  READ_DONE();
633 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static WithCheckOption* _readWithCheckOption ( void  )
static

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

305 {
307 
308  READ_ENUM_FIELD(kind, WCOKind);
309  READ_STRING_FIELD(relname);
310  READ_STRING_FIELD(polname);
311  READ_NODE_FIELD(qual);
312  READ_BOOL_FIELD(cascaded);
313 
314  READ_DONE();
315 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
WCOKind
Definition: parsenodes.h:1078
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
static WorkTableScan* _readWorkTableScan ( void  )
static

Definition at line 1879 of file readfuncs.c.

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

Referenced by parseNodeString().

1880 {
1882 
1883  ReadCommonScan(&local_node->scan);
1884 
1885  READ_INT_FIELD(wtParam);
1886 
1887  READ_DONE();
1888 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1660
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static XmlExpr* _readXmlExpr ( void  )
static

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

1093 {
1095 
1098  READ_NODE_FIELD(named_args);
1099  READ_NODE_FIELD(arg_names);
1102  READ_OID_FIELD(type);
1103  READ_INT_FIELD(typmod);
1104  READ_LOCATION_FIELD(location);
1105 
1106  READ_DONE();
1107 }
XmlExprOp
Definition: primnodes.h:1120
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:116
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
XmlOptionType
Definition: primnodes.h:1132
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
const char * name
Definition: encode.c:521
int xmloption
Definition: xml.c:97
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:110
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
Node* parseNodeString ( void  )

Definition at line 2406 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(), _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, NULL, pg_strtok(), and READ_TEMP_LOCALS.

Referenced by nodeRead().

2407 {
2408  void *return_value;
2409 
2410  READ_TEMP_LOCALS();
2411 
2412  token = pg_strtok(&length);
2413 
2414 #define MATCH(tokname, namelen) \
2415  (length == namelen && memcmp(token, tokname, namelen) == 0)
2416 
2417  if (MATCH("QUERY", 5))
2418  return_value = _readQuery();
2419  else if (MATCH("WITHCHECKOPTION", 15))
2420  return_value = _readWithCheckOption();
2421  else if (MATCH("SORTGROUPCLAUSE", 15))
2422  return_value = _readSortGroupClause();
2423  else if (MATCH("GROUPINGSET", 11))
2424  return_value = _readGroupingSet();
2425  else if (MATCH("WINDOWCLAUSE", 12))
2426  return_value = _readWindowClause();
2427  else if (MATCH("ROWMARKCLAUSE", 13))
2428  return_value = _readRowMarkClause();
2429  else if (MATCH("COMMONTABLEEXPR", 15))
2430  return_value = _readCommonTableExpr();
2431  else if (MATCH("SETOPERATIONSTMT", 16))
2432  return_value = _readSetOperationStmt();
2433  else if (MATCH("ALIAS", 5))
2434  return_value = _readAlias();
2435  else if (MATCH("RANGEVAR", 8))
2436  return_value = _readRangeVar();
2437  else if (MATCH("INTOCLAUSE", 10))
2438  return_value = _readIntoClause();
2439  else if (MATCH("TABLEFUNC", 9))
2440  return_value = _readTableFunc();
2441  else if (MATCH("VAR", 3))
2442  return_value = _readVar();
2443  else if (MATCH("CONST", 5))
2444  return_value = _readConst();
2445  else if (MATCH("PARAM", 5))
2446  return_value = _readParam();
2447  else if (MATCH("AGGREF", 6))
2448  return_value = _readAggref();
2449  else if (MATCH("GROUPINGFUNC", 12))
2450  return_value = _readGroupingFunc();
2451  else if (MATCH("WINDOWFUNC", 10))
2452  return_value = _readWindowFunc();
2453  else if (MATCH("ARRAYREF", 8))
2454  return_value = _readArrayRef();
2455  else if (MATCH("FUNCEXPR", 8))
2456  return_value = _readFuncExpr();
2457  else if (MATCH("NAMEDARGEXPR", 12))
2458  return_value = _readNamedArgExpr();
2459  else if (MATCH("OPEXPR", 6))
2460  return_value = _readOpExpr();
2461  else if (MATCH("DISTINCTEXPR", 12))
2462  return_value = _readDistinctExpr();
2463  else if (MATCH("NULLIFEXPR", 10))
2464  return_value = _readNullIfExpr();
2465  else if (MATCH("SCALARARRAYOPEXPR", 17))
2466  return_value = _readScalarArrayOpExpr();
2467  else if (MATCH("BOOLEXPR", 8))
2468  return_value = _readBoolExpr();
2469  else if (MATCH("SUBLINK", 7))
2470  return_value = _readSubLink();
2471  else if (MATCH("FIELDSELECT", 11))
2472  return_value = _readFieldSelect();
2473  else if (MATCH("FIELDSTORE", 10))
2474  return_value = _readFieldStore();
2475  else if (MATCH("RELABELTYPE", 11))
2476  return_value = _readRelabelType();
2477  else if (MATCH("COERCEVIAIO", 11))
2478  return_value = _readCoerceViaIO();
2479  else if (MATCH("ARRAYCOERCEEXPR", 15))
2480  return_value = _readArrayCoerceExpr();
2481  else if (MATCH("CONVERTROWTYPEEXPR", 18))
2482  return_value = _readConvertRowtypeExpr();
2483  else if (MATCH("COLLATE", 7))
2484  return_value = _readCollateExpr();
2485  else if (MATCH("CASE", 4))
2486  return_value = _readCaseExpr();
2487  else if (MATCH("WHEN", 4))
2488  return_value = _readCaseWhen();
2489  else if (MATCH("CASETESTEXPR", 12))
2490  return_value = _readCaseTestExpr();
2491  else if (MATCH("ARRAY", 5))
2492  return_value = _readArrayExpr();
2493  else if (MATCH("ROW", 3))
2494  return_value = _readRowExpr();
2495  else if (MATCH("ROWCOMPARE", 10))
2496  return_value = _readRowCompareExpr();
2497  else if (MATCH("COALESCE", 8))
2498  return_value = _readCoalesceExpr();
2499  else if (MATCH("MINMAX", 6))
2500  return_value = _readMinMaxExpr();
2501  else if (MATCH("SQLVALUEFUNCTION", 16))
2502  return_value = _readSQLValueFunction();
2503  else if (MATCH("XMLEXPR", 7))
2504  return_value = _readXmlExpr();
2505  else if (MATCH("NULLTEST", 8))
2506  return_value = _readNullTest();
2507  else if (MATCH("BOOLEANTEST", 11))
2508  return_value = _readBooleanTest();
2509  else if (MATCH("COERCETODOMAIN", 14))
2510  return_value = _readCoerceToDomain();
2511  else if (MATCH("COERCETODOMAINVALUE", 19))
2512  return_value = _readCoerceToDomainValue();
2513  else if (MATCH("SETTODEFAULT", 12))
2514  return_value = _readSetToDefault();
2515  else if (MATCH("CURRENTOFEXPR", 13))
2516  return_value = _readCurrentOfExpr();
2517  else if (MATCH("INFERENCEELEM", 13))
2518  return_value = _readInferenceElem();
2519  else if (MATCH("TARGETENTRY", 11))
2520  return_value = _readTargetEntry();
2521  else if (MATCH("RANGETBLREF", 11))
2522  return_value = _readRangeTblRef();
2523  else if (MATCH("JOINEXPR", 8))
2524  return_value = _readJoinExpr();
2525  else if (MATCH("FROMEXPR", 8))
2526  return_value = _readFromExpr();
2527  else if (MATCH("ONCONFLICTEXPR", 14))
2528  return_value = _readOnConflictExpr();
2529  else if (MATCH("RTE", 3))
2530  return_value = _readRangeTblEntry();
2531  else if (MATCH("RANGETBLFUNCTION", 16))
2532  return_value = _readRangeTblFunction();
2533  else if (MATCH("TABLESAMPLECLAUSE", 17))
2534  return_value = _readTableSampleClause();
2535  else if (MATCH("NOTIFY", 6))
2536  return_value = _readNotifyStmt();
2537  else if (MATCH("DEFELEM", 7))
2538  return_value = _readDefElem();
2539  else if (MATCH("DECLARECURSOR", 13))
2540  return_value = _readDeclareCursorStmt();
2541  else if (MATCH("PLANNEDSTMT", 11))
2542  return_value = _readPlannedStmt();
2543  else if (MATCH("PLAN", 4))
2544  return_value = _readPlan();
2545  else if (MATCH("RESULT", 6))
2546  return_value = _readResult();
2547  else if (MATCH("PROJECTSET", 10))
2548  return_value = _readProjectSet();
2549  else if (MATCH("MODIFYTABLE", 11))
2550  return_value = _readModifyTable();
2551  else if (MATCH("APPEND", 6))
2552  return_value = _readAppend();
2553  else if (MATCH("MERGEAPPEND", 11))
2554  return_value = _readMergeAppend();
2555  else if (MATCH("RECURSIVEUNION", 14))
2556  return_value = _readRecursiveUnion();
2557  else if (MATCH("BITMAPAND", 9))
2558  return_value = _readBitmapAnd();
2559  else if (MATCH("BITMAPOR", 8))
2560  return_value = _readBitmapOr();
2561  else if (MATCH("SCAN", 4))
2562  return_value = _readScan();
2563  else if (MATCH("SEQSCAN", 7))
2564  return_value = _readSeqScan();
2565  else if (MATCH("SAMPLESCAN", 10))
2566  return_value = _readSampleScan();
2567  else if (MATCH("INDEXSCAN", 9))
2568  return_value = _readIndexScan();
2569  else if (MATCH("INDEXONLYSCAN", 13))
2570  return_value = _readIndexOnlyScan();
2571  else if (MATCH("BITMAPINDEXSCAN", 15))
2572  return_value = _readBitmapIndexScan();
2573  else if (MATCH("BITMAPHEAPSCAN", 14))
2574  return_value = _readBitmapHeapScan();
2575  else if (MATCH("TIDSCAN", 7))
2576  return_value = _readTidScan();
2577  else if (MATCH("SUBQUERYSCAN", 12))
2578  return_value = _readSubqueryScan();
2579  else if (MATCH("FUNCTIONSCAN", 12))
2580  return_value = _readFunctionScan();
2581  else if (MATCH("VALUESSCAN", 10))
2582  return_value = _readValuesScan();
2583  else if (MATCH("TABLEFUNCSCAN", 13))
2584  return_value = _readTableFuncScan();
2585  else if (MATCH("CTESCAN", 7))
2586  return_value = _readCteScan();
2587  else if (MATCH("WORKTABLESCAN", 13))
2588  return_value = _readWorkTableScan();
2589  else if (MATCH("FOREIGNSCAN", 11))
2590  return_value = _readForeignScan();
2591  else if (MATCH("CUSTOMSCAN", 10))
2592  return_value = _readCustomScan();
2593  else if (MATCH("JOIN", 4))
2594  return_value = _readJoin();
2595  else if (MATCH("NESTLOOP", 8))
2596  return_value = _readNestLoop();
2597  else if (MATCH("MERGEJOIN", 9))
2598  return_value = _readMergeJoin();
2599  else if (MATCH("HASHJOIN", 8))
2600  return_value = _readHashJoin();
2601  else if (MATCH("MATERIAL", 8))
2602  return_value = _readMaterial();
2603  else if (MATCH("SORT", 4))
2604  return_value = _readSort();
2605  else if (MATCH("GROUP", 5))
2606  return_value = _readGroup();
2607  else if (MATCH("AGG", 3))
2608  return_value = _readAgg();
2609  else if (MATCH("WINDOWAGG", 9))
2610  return_value = _readWindowAgg();
2611  else if (MATCH("UNIQUE", 6))
2612  return_value = _readUnique();
2613  else if (MATCH("GATHER", 6))
2614  return_value = _readGather();
2615  else if (MATCH("GATHERMERGE", 11))
2616  return_value = _readGatherMerge();
2617  else if (MATCH("HASH", 4))
2618  return_value = _readHash();
2619  else if (MATCH("SETOP", 5))
2620  return_value = _readSetOp();
2621  else if (MATCH("LOCKROWS", 8))
2622  return_value = _readLockRows();
2623  else if (MATCH("LIMIT", 5))
2624  return_value = _readLimit();
2625  else if (MATCH("NESTLOOPPARAM", 13))
2626  return_value = _readNestLoopParam();
2627  else if (MATCH("PLANROWMARK", 11))
2628  return_value = _readPlanRowMark();
2629  else if (MATCH("PLANINVALITEM", 13))
2630  return_value = _readPlanInvalItem();
2631  else if (MATCH("SUBPLAN", 7))
2632  return_value = _readSubPlan();
2633  else if (MATCH("ALTERNATIVESUBPLAN", 18))
2634  return_value = _readAlternativeSubPlan();
2635  else if (MATCH("EXTENSIBLENODE", 14))
2636  return_value = _readExtensibleNode();
2637  else if (MATCH("PARTITIONBOUND", 14))
2638  return_value = _readPartitionBoundSpec();
2639  else if (MATCH("PARTRANGEDATUM", 14))
2640  return_value = _readPartitionRangeDatum();
2641  else
2642  {
2643  elog(ERROR, "badly formatted node string \"%.32s\"...", token);
2644  return_value = NULL; /* keep compiler quiet */
2645  }
2646 
2647  return (Node *) return_value;
2648 }
static NullTest * _readNullTest(void)
Definition: readfuncs.c:1113
static JoinExpr * _readJoinExpr(void)
Definition: readfuncs.c:1256
static RangeVar * _readRangeVar(void)
Definition: readfuncs.c:445
static RangeTblEntry * _readRangeTblEntry(void)
Definition: readfuncs.c:1314
static DefElem * _readDefElem(void)
Definition: readfuncs.c:1423
static RowExpr * _readRowExpr(void)
Definition: readfuncs.c:1007
int length(const List *list)
Definition: list.c:1271
static MergeJoin * _readMergeJoin(void)
Definition: readfuncs.c:1989
static MinMaxExpr * _readMinMaxExpr(void)
Definition: readfuncs.c:1058
static RowMarkClause * _readRowMarkClause(void)
Definition: readfuncs.c:374
static FuncExpr * _readFuncExpr(void)
Definition: readfuncs.c:659
static Hash * _readHash(void)
Definition: readfuncs.c:2179
char * pg_strtok(int *length)
Definition: read.c:107
static Result * _readResult(void)
Definition: readfuncs.c:1511
static Query * _readQuery(void)
Definition: readfuncs.c:227
static RowCompareExpr * _readRowCompareExpr(void)
Definition: readfuncs.c:1024
static Param * _readParam(void)
Definition: readfuncs.c:553
static PlanInvalItem * _readPlanInvalItem(void)
Definition: readfuncs.c:2286
static WindowAgg * _readWindowAgg(void)
Definition: readfuncs.c:2101
static IndexScan * _readIndexScan(void)
Definition: readfuncs.c:1714
static NotifyStmt * _readNotifyStmt(void)
Definition: readfuncs.c:275
static Scan * _readScan(void)
Definition: readfuncs.c:1673
static NamedArgExpr * _readNamedArgExpr(void)
Definition: readfuncs.c:680
static LockRows * _readLockRows(void)
Definition: readfuncs.c:2220
static CurrentOfExpr * _readCurrentOfExpr(void)
Definition: readfuncs.c:1194
static CollateExpr * _readCollateExpr(void)
Definition: readfuncs.c:926
static SubqueryScan * _readSubqueryScan(void)
Definition: readfuncs.c:1802
static BitmapIndexScan * _readBitmapIndexScan(void)
Definition: readfuncs.c:1754
static CaseExpr * _readCaseExpr(void)
Definition: readfuncs.c:941
static FunctionScan * _readFunctionScan(void)
Definition: readfuncs.c:1817
static PartitionBoundSpec * _readPartitionBoundSpec(void)
Definition: readfuncs.c:2371
static Unique * _readUnique(void)
Definition: readfuncs.c:2125
static MergeAppend * _readMergeAppend(void)
Definition: readfuncs.c:1588
Definition: nodes.h:509
static WindowFunc * _readWindowFunc(void)
Definition: readfuncs.c:617
static WindowClause * _readWindowClause(void)
Definition: readfuncs.c:353
static OpExpr * _readOpExpr(void)
Definition: readfuncs.c:696
static IndexOnlyScan * _readIndexOnlyScan(void)
Definition: readfuncs.c:1735
static BitmapAnd * _readBitmapAnd(void)
Definition: readfuncs.c:1628
static FromExpr * _readFromExpr(void)
Definition: readfuncs.c:1276
static Aggref * _readAggref(void)
Definition: readfuncs.c:571
static NestLoop * _readNestLoop(void)
Definition: readfuncs.c:1974
static ModifyTable * _readModifyTable(void)
Definition: readfuncs.c:1539
static DistinctExpr * _readDistinctExpr(void)
Definition: readfuncs.c:716
static ArrayCoerceExpr * _readArrayCoerceExpr(void)
Definition: readfuncs.c:890
static TargetEntry * _readTargetEntry(void)
Definition: readfuncs.c:1224
static Agg * _readAgg(void)
Definition: readfuncs.c:2078
static SeqScan * _readSeqScan(void)
Definition: readfuncs.c:1686
static AlternativeSubPlan * _readAlternativeSubPlan(void)
Definition: readfuncs.c:2328
static CteScan * _readCteScan(void)
Definition: readfuncs.c:1863
#define ERROR
Definition: elog.h:43
static GroupingFunc * _readGroupingFunc(void)
Definition: readfuncs.c:600
static CoerceToDomain * _readCoerceToDomain(void)
Definition: readfuncs.c:1144
static SubLink * _readSubLink(void)
Definition: readfuncs.c:800
static HashJoin * _readHashJoin(void)
Definition: readfuncs.c:2014
static ValuesScan * _readValuesScan(void)
Definition: readfuncs.c:1833
static ConvertRowtypeExpr * _readConvertRowtypeExpr(void)
Definition: readfuncs.c:910
static OnConflictExpr * _readOnConflictExpr(void)
Definition: readfuncs.c:1290
static NullIfExpr * _readNullIfExpr(void)
Definition: readfuncs.c:736
static Append * _readAppend(void)
Definition: readfuncs.c:1572
static ExtensibleNode * _readExtensibleNode(void)
Definition: readfuncs.c:2341
static PlanRowMark * _readPlanRowMark(void)
Definition: readfuncs.c:2266
static FieldSelect * _readFieldSelect(void)
Definition: readfuncs.c:822
static ArrayRef * _readArrayRef(void)
Definition: readfuncs.c:639
static CaseWhen * _readCaseWhen(void)
Definition: readfuncs.c:959
static SQLValueFunction * _readSQLValueFunction(void)
Definition: readfuncs.c:1076
#define MATCH(tokname, namelen)
static ForeignScan * _readForeignScan(void)
Definition: readfuncs.c:1894
static RelabelType * _readRelabelType(void)
Definition: readfuncs.c:855
static SetOp * _readSetOp(void)
Definition: readfuncs.c:2198
static SortGroupClause * _readSortGroupClause(void)
Definition: readfuncs.c:321
static Limit * _readLimit(void)
Definition: readfuncs.c:2236
static PartitionRangeDatum * _readPartitionRangeDatum(void)
Definition: readfuncs.c:2387
static GatherMerge * _readGatherMerge(void)
Definition: readfuncs.c:2159
static DeclareCursorStmt * _readDeclareCursorStmt(void)
Definition: readfuncs.c:289
static Gather * _readGather(void)
Definition: readfuncs.c:2142
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
static Var * _readVar(void)
Definition: readfuncs.c:507
static SampleScan * _readSampleScan(void)
Definition: readfuncs.c:1699
static SubPlan * _readSubPlan(void)
Definition: readfuncs.c:2300
#define NULL
Definition: c.h:229
static TidScan * _readTidScan(void)
Definition: readfuncs.c:1787
static CoerceToDomainValue * _readCoerceToDomainValue(void)
Definition: readfuncs.c:1162
static TableFuncScan * _readTableFuncScan(void)
Definition: readfuncs.c:1848
static IntoClause * _readIntoClause(void)
Definition: readfuncs.c:488
static Const * _readConst(void)
Definition: readfuncs.c:528
static SetOperationStmt * _readSetOperationStmt(void)
Definition: readfuncs.c:412
static PlannedStmt * _readPlannedStmt(void)
Definition: readfuncs.c:1440
static Material * _readMaterial(void)
Definition: readfuncs.c:2029
static CaseTestExpr * _readCaseTestExpr(void)
Definition: readfuncs.c:974
static Alias * _readAlias(void)
Definition: readfuncs.c:434
static BitmapOr * _readBitmapOr(void)
Definition: readfuncs.c:1643
static RangeTblRef * _readRangeTblRef(void)
Definition: readfuncs.c:1243
static RecursiveUnion * _readRecursiveUnion(void)
Definition: readfuncs.c:1609
static FieldStore * _readFieldStore(void)
Definition: readfuncs.c:839
static CoalesceExpr * _readCoalesceExpr(void)
Definition: readfuncs.c:1042
static SetToDefault * _readSetToDefault(void)
Definition: readfuncs.c:1178
static WithCheckOption * _readWithCheckOption(void)
Definition: readfuncs.c:304
static InferenceElem * _readInferenceElem(void)
Definition: readfuncs.c:1209
static ScalarArrayOpExpr * _readScalarArrayOpExpr(void)
Definition: readfuncs.c:756
static BoolExpr * _readBoolExpr(void)
Definition: readfuncs.c:774
static CustomScan * _readCustomScan(void)
Definition: readfuncs.c:1916
static CommonTableExpr * _readCommonTableExpr(void)
Definition: readfuncs.c:390
static ArrayExpr * _readArrayExpr(void)
Definition: readfuncs.c:989
#define elog
Definition: elog.h:219
static RangeTblFunction * _readRangeTblFunction(void)
Definition: readfuncs.c:1389
static BooleanTest * _readBooleanTest(void)
Definition: readfuncs.c:1129
static Plan * _readPlan(void)
Definition: readfuncs.c:1498
static XmlExpr * _readXmlExpr(void)
Definition: readfuncs.c:1092
static TableFunc * _readTableFunc(void)
Definition: readfuncs.c:466
static TableSampleClause * _readTableSampleClause(void)
Definition: readfuncs.c:1408
static NestLoopParam * _readNestLoopParam(void)
Definition: readfuncs.c:2252
static ProjectSet * _readProjectSet(void)
Definition: readfuncs.c:1526
static BitmapHeapScan * _readBitmapHeapScan(void)
Definition: readfuncs.c:1772
static Join * _readJoin(void)
Definition: readfuncs.c:1961
static Sort * _readSort(void)
Definition: readfuncs.c:2042
static CoerceViaIO * _readCoerceViaIO(void)
Definition: readfuncs.c:873
static Group * _readGroup(void)
Definition: readfuncs.c:2061
static GroupingSet * _readGroupingSet(void)
Definition: readfuncs.c:338
static WorkTableScan * _readWorkTableScan(void)
Definition: readfuncs.c:1879
AttrNumber* readAttrNumberCols ( int  numCols)

Definition at line 2716 of file readfuncs.c.

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

2717 {
2718  int tokenLength,
2719  i;
2720  char *token;
2721  AttrNumber *attr_vals;
2722 
2723  if (numCols <= 0)
2724  return NULL;
2725 
2726  attr_vals = (AttrNumber *) palloc(numCols * sizeof(AttrNumber));
2727  for (i = 0; i < numCols; i++)
2728  {
2729  token = pg_strtok(&tokenLength);
2730  attr_vals[i] = atoi(token);
2731  }
2732 
2733  return attr_vals;
2734 }
char * pg_strtok(int *length)
Definition: read.c:107
#define NULL
Definition: c.h:229
void * palloc(Size size)
Definition: mcxt.c:849
int i
int16 AttrNumber
Definition: attnum.h:21
Bitmapset* readBitmapset ( void  )

Definition at line 218 of file readfuncs.c.

References _readBitmapset().

219 {
220  return _readBitmapset();
221 }
static Bitmapset * _readBitmapset(void)
Definition: readfuncs.c:177
bool* readBoolCols ( int  numCols)

Definition at line 2788 of file readfuncs.c.

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

2789 {
2790  int tokenLength,
2791  i;
2792  char *token;
2793  bool *bool_vals;
2794 
2795  if (numCols <= 0)
2796  return NULL;
2797 
2798  bool_vals = (bool *) palloc(numCols * sizeof(bool));
2799  for (i = 0; i < numCols; i++)
2800  {
2801  token = pg_strtok(&tokenLength);
2802  bool_vals[i] = strtobool(token);
2803  }
2804 
2805  return bool_vals;
2806 }
char * pg_strtok(int *length)
Definition: read.c:107
#define strtobool(x)
Definition: readfuncs.c:167
#define NULL
Definition: c.h:229
void * palloc(Size size)
Definition: mcxt.c:849
int i
static void ReadCommonJoin ( Join local_node)
static

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

1947 {
1948  READ_TEMP_LOCALS();
1949 
1950  ReadCommonPlan(&local_node->plan);
1951 
1952  READ_ENUM_FIELD(jointype, JoinType);
1953  READ_BOOL_FIELD(inner_unique);
1954  READ_NODE_FIELD(joinqual);
1955 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
JoinType
Definition: nodes.h:672
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
Plan plan
Definition: plannodes.h:657
static void ReadCommonPlan ( Plan local_node)
static

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

1475 {
1476  READ_TEMP_LOCALS();
1477 
1478  READ_FLOAT_FIELD(startup_cost);
1479  READ_FLOAT_FIELD(total_cost);
1480  READ_FLOAT_FIELD(plan_rows);
1481  READ_INT_FIELD(plan_width);
1482  READ_BOOL_FIELD(parallel_aware);
1483  READ_BOOL_FIELD(parallel_safe);
1484  READ_INT_FIELD(plan_node_id);
1485  READ_NODE_FIELD(targetlist);
1486  READ_NODE_FIELD(qual);
1487  READ_NODE_FIELD(lefttree);
1488  READ_NODE_FIELD(righttree);
1489  READ_NODE_FIELD(initPlan);
1490  READ_BITMAPSET_FIELD(extParam);
1491  READ_BITMAPSET_FIELD(allParam);
1492 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:98
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
static void ReadCommonScan ( Scan local_node)
static

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

1661 {
1662  READ_TEMP_LOCALS();
1663 
1664  ReadCommonPlan(&local_node->plan);
1665 
1666  READ_UINT_FIELD(scanrelid);
1667 }
Plan plan
Definition: plannodes.h:317
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1474
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
Datum readDatum ( bool  typbyval)

Definition at line 2659 of file readfuncs.c.

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

Referenced by _readConst().

2660 {
2661  Size length,
2662  i;
2663  int tokenLength;
2664  char *token;
2665  Datum res;
2666  char *s;
2667 
2668  /*
2669  * read the actual length of the value
2670  */
2671  token = pg_strtok(&tokenLength);
2672  length = atoui(token);
2673 
2674  token = pg_strtok(&tokenLength); /* read the '[' */
2675  if (token == NULL || token[0] != '[')
2676  elog(ERROR, "expected \"[\" to start datum, but got \"%s\"; length = %zu",
2677  token ? (const char *) token : "[NULL]", length);
2678 
2679  if (typbyval)
2680  {
2681  if (length > (Size) sizeof(Datum))
2682  elog(ERROR, "byval datum but length = %zu", length);
2683  res = (Datum) 0;
2684  s = (char *) (&res);
2685  for (i = 0; i < (Size) sizeof(Datum); i++)
2686  {
2687  token = pg_strtok(&tokenLength);
2688  s[i] = (char) atoi(token);
2689  }
2690  }
2691  else if (length <= 0)
2692  res = (Datum) NULL;
2693  else
2694  {
2695  s = (char *) palloc(length);
2696  for (i = 0; i < length; i++)
2697  {
2698  token = pg_strtok(&tokenLength);
2699  s[i] = (char) atoi(token);
2700  }
2701  res = PointerGetDatum(s);
2702  }
2703 
2704  token = pg_strtok(&tokenLength); /* read the ']' */
2705  if (token == NULL || token[0] != ']')
2706  elog(ERROR, "expected \"]\" to end datum, but got \"%s\"; length = %zu",
2707  token ? (const char *) token : "[NULL]", length);
2708 
2709  return res;
2710 }
#define atoui(x)
Definition: readfuncs.c:165
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
#define NULL
Definition: c.h:229
size_t Size
Definition: c.h:356
void * palloc(Size size)
Definition: mcxt.c:849
int i
#define elog
Definition: elog.h:219
int* readIntCols ( int  numCols)

Definition at line 2764 of file readfuncs.c.

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

2765 {
2766  int tokenLength,
2767  i;
2768  char *token;
2769  int *int_vals;
2770 
2771  if (numCols <= 0)
2772  return NULL;
2773 
2774  int_vals = (int *) palloc(numCols * sizeof(int));
2775  for (i = 0; i < numCols; i++)
2776  {
2777  token = pg_strtok(&tokenLength);
2778  int_vals[i] = atoi(token);
2779  }
2780 
2781  return int_vals;
2782 }
char * pg_strtok(int *length)
Definition: read.c:107
#define NULL
Definition: c.h:229
void * palloc(Size size)
Definition: mcxt.c:849
int i
Oid* readOidCols ( int  numCols)

Definition at line 2740 of file readfuncs.c.

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

2741 {
2742  int tokenLength,
2743  i;
2744  char *token;
2745  Oid *oid_vals;
2746 
2747  if (numCols <= 0)
2748  return NULL;
2749 
2750  oid_vals = (Oid *) palloc(numCols * sizeof(Oid));
2751  for (i = 0; i < numCols; i++)
2752  {
2753  token = pg_strtok(&tokenLength);
2754  oid_vals[i] = atooid(token);
2755  }
2756 
2757  return oid_vals;
2758 }
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
#define NULL
Definition: c.h:229
void * palloc(Size size)
Definition: mcxt.c:849
int i