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:2705

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:2777

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:2753

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:2729

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 2067 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().

2068 {
2069  READ_LOCALS(Agg);
2070 
2071  ReadCommonPlan(&local_node->plan);
2072 
2073  READ_ENUM_FIELD(aggstrategy, AggStrategy);
2074  READ_ENUM_FIELD(aggsplit, AggSplit);
2075  READ_INT_FIELD(numCols);
2076  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2077  READ_OID_ARRAY(grpOperators, local_node->numCols);
2078  READ_LONG_FIELD(numGroups);
2079  READ_BITMAPSET_FIELD(aggParams);
2080  READ_NODE_FIELD(groupingSets);
2081  READ_NODE_FIELD(chain);
2082 
2083  READ_DONE();
2084 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:74
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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:762
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:129
AggStrategy
Definition: nodes.h:741
#define READ_DONE()
Definition: readfuncs.c:155
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:62
Definition: plannodes.h:751
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:135
static Aggref* _readAggref ( void  )
static

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

571 {
573 
574  READ_OID_FIELD(aggfnoid);
575  READ_OID_FIELD(aggtype);
576  READ_OID_FIELD(aggcollid);
577  READ_OID_FIELD(inputcollid);
578  READ_OID_FIELD(aggtranstype);
579  READ_NODE_FIELD(aggargtypes);
580  READ_NODE_FIELD(aggdirectargs);
582  READ_NODE_FIELD(aggorder);
583  READ_NODE_FIELD(aggdistinct);
584  READ_NODE_FIELD(aggfilter);
585  READ_BOOL_FIELD(aggstar);
586  READ_BOOL_FIELD(aggvariadic);
587  READ_CHAR_FIELD(aggkind);
588  READ_UINT_FIELD(agglevelsup);
589  READ_ENUM_FIELD(aggsplit, AggSplit);
590  READ_LOCATION_FIELD(location);
591 
592  READ_DONE();
593 }
#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:762
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
#define READ_DONE()
Definition: readfuncs.c:155
static Alias* _readAlias ( void  )
static

Definition at line 433 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

434 {
436 
437  READ_STRING_FIELD(aliasname);
438  READ_NODE_FIELD(colnames);
439 
440  READ_DONE();
441 }
#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 2317 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2318 {
2320 
2321  READ_NODE_FIELD(subplans);
2322 
2323  READ_DONE();
2324 }
#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 1563 of file readfuncs.c.

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

Referenced by parseNodeString().

1564 {
1566 
1567  ReadCommonPlan(&local_node->plan);
1568 
1569  READ_NODE_FIELD(partitioned_rels);
1570  READ_NODE_FIELD(appendplans);
1571 
1572  READ_DONE();
1573 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 889 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().

890 {
892 
894  READ_OID_FIELD(elemfuncid);
895  READ_OID_FIELD(resulttype);
896  READ_INT_FIELD(resulttypmod);
897  READ_OID_FIELD(resultcollid);
898  READ_BOOL_FIELD(isExplicit);
899  READ_ENUM_FIELD(coerceformat, CoercionForm);
900  READ_LOCATION_FIELD(location);
901 
902  READ_DONE();
903 }
#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 988 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().

989 {
991 
992  READ_OID_FIELD(array_typeid);
993  READ_OID_FIELD(array_collid);
994  READ_OID_FIELD(element_typeid);
995  READ_NODE_FIELD(elements);
996  READ_BOOL_FIELD(multidims);
997  READ_LOCATION_FIELD(location);
998 
999  READ_DONE();
1000 }
#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 638 of file readfuncs.c.

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

Referenced by parseNodeString().

639 {
641 
642  READ_OID_FIELD(refarraytype);
643  READ_OID_FIELD(refelemtype);
644  READ_INT_FIELD(reftypmod);
645  READ_OID_FIELD(refcollid);
646  READ_NODE_FIELD(refupperindexpr);
647  READ_NODE_FIELD(reflowerindexpr);
648  READ_NODE_FIELD(refexpr);
649  READ_NODE_FIELD(refassgnexpr);
650 
651  READ_DONE();
652 }
#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 1619 of file readfuncs.c.

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

Referenced by parseNodeString().

1620 {
1622 
1623  ReadCommonPlan(&local_node->plan);
1624 
1625  READ_NODE_FIELD(bitmapplans);
1626 
1627  READ_DONE();
1628 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 1763 of file readfuncs.c.

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

Referenced by parseNodeString().

1764 {
1766 
1767  ReadCommonScan(&local_node->scan);
1768 
1769  READ_NODE_FIELD(bitmapqualorig);
1770 
1771  READ_DONE();
1772 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static BitmapIndexScan* _readBitmapIndexScan ( void  )
static

Definition at line 1745 of file readfuncs.c.

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

Referenced by parseNodeString().

1746 {
1748 
1749  ReadCommonScan(&local_node->scan);
1750 
1751  READ_OID_FIELD(indexid);
1752  READ_BOOL_FIELD(isshared);
1753  READ_NODE_FIELD(indexqual);
1754  READ_NODE_FIELD(indexqualorig);
1755 
1756  READ_DONE();
1757 }
#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:1651
#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 1634 of file readfuncs.c.

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

Referenced by parseNodeString().

1635 {
1637 
1638  ReadCommonPlan(&local_node->plan);
1639 
1640  READ_BOOL_FIELD(isshared);
1641  READ_NODE_FIELD(bitmapplans);
1642 
1643  READ_DONE();
1644 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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:668
#define elog
Definition: elog.h:219
long val
Definition: informix.c:689
static BooleanTest* _readBooleanTest ( void  )
static

Definition at line 1128 of file readfuncs.c.

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

Referenced by parseNodeString().

1129 {
1131 
1133  READ_ENUM_FIELD(booltesttype, BoolTestType);
1134  READ_LOCATION_FIELD(location);
1135 
1136  READ_DONE();
1137 }
BoolTestType
Definition: primnodes.h:1193
#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 773 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().

774 {
776 
777  /* do-it-yourself enum representation */
778  token = pg_strtok(&length); /* skip :boolop */
779  token = pg_strtok(&length); /* get field value */
780  if (strncmp(token, "and", 3) == 0)
781  local_node->boolop = AND_EXPR;
782  else if (strncmp(token, "or", 2) == 0)
783  local_node->boolop = OR_EXPR;
784  else if (strncmp(token, "not", 3) == 0)
785  local_node->boolop = NOT_EXPR;
786  else
787  elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
788 
790  READ_LOCATION_FIELD(location);
791 
792  READ_DONE();
793 }
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 940 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().

941 {
943 
944  READ_OID_FIELD(casetype);
945  READ_OID_FIELD(casecollid);
948  READ_NODE_FIELD(defresult);
949  READ_LOCATION_FIELD(location);
950 
951  READ_DONE();
952 }
#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 973 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

974 {
976 
977  READ_OID_FIELD(typeId);
978  READ_INT_FIELD(typeMod);
979  READ_OID_FIELD(collation);
980 
981  READ_DONE();
982 }
#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 958 of file readfuncs.c.

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

Referenced by parseNodeString().

959 {
961 
962  READ_NODE_FIELD(expr);
964  READ_LOCATION_FIELD(location);
965 
966  READ_DONE();
967 }
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 1041 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().

1042 {
1044 
1045  READ_OID_FIELD(coalescetype);
1046  READ_OID_FIELD(coalescecollid);
1048  READ_LOCATION_FIELD(location);
1049 
1050  READ_DONE();
1051 }
#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 1143 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().

1144 {
1146 
1148  READ_OID_FIELD(resulttype);
1149  READ_INT_FIELD(resulttypmod);
1150  READ_OID_FIELD(resultcollid);
1151  READ_ENUM_FIELD(coercionformat, CoercionForm);
1152  READ_LOCATION_FIELD(location);
1153 
1154  READ_DONE();
1155 }
#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 1161 of file readfuncs.c.

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

Referenced by parseNodeString().

1162 {
1164 
1165  READ_OID_FIELD(typeId);
1166  READ_INT_FIELD(typeMod);
1167  READ_OID_FIELD(collation);
1168  READ_LOCATION_FIELD(location);
1169 
1170  READ_DONE();
1171 }
#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 872 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().

873 {
875 
877  READ_OID_FIELD(resulttype);
878  READ_OID_FIELD(resultcollid);
879  READ_ENUM_FIELD(coerceformat, CoercionForm);
880  READ_LOCATION_FIELD(location);
881 
882  READ_DONE();
883 }
#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 925 of file readfuncs.c.

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

Referenced by parseNodeString().

926 {
928 
930  READ_OID_FIELD(collOid);
931  READ_LOCATION_FIELD(location);
932 
933  READ_DONE();
934 }
#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 389 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().

390 {
392 
393  READ_STRING_FIELD(ctename);
394  READ_NODE_FIELD(aliascolnames);
395  READ_NODE_FIELD(ctequery);
396  READ_LOCATION_FIELD(location);
397  READ_BOOL_FIELD(cterecursive);
398  READ_INT_FIELD(cterefcount);
399  READ_NODE_FIELD(ctecolnames);
400  READ_NODE_FIELD(ctecoltypes);
401  READ_NODE_FIELD(ctecoltypmods);
402  READ_NODE_FIELD(ctecolcollations);
403 
404  READ_DONE();
405 }
#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 527 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().

528 {
530 
531  READ_OID_FIELD(consttype);
532  READ_INT_FIELD(consttypmod);
533  READ_OID_FIELD(constcollid);
534  READ_INT_FIELD(constlen);
535  READ_BOOL_FIELD(constbyval);
536  READ_BOOL_FIELD(constisnull);
537  READ_LOCATION_FIELD(location);
538 
539  token = pg_strtok(&length); /* skip :constvalue */
540  if (local_node->constisnull)
541  token = pg_strtok(&length); /* skip "<>" */
542  else
543  local_node->constvalue = readDatum(local_node->constbyval);
544 
545  READ_DONE();
546 }
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:2648
#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 909 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().

910 {
912 
914  READ_OID_FIELD(resulttype);
915  READ_ENUM_FIELD(convertformat, CoercionForm);
916  READ_LOCATION_FIELD(location);
917 
918  READ_DONE();
919 }
#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 1854 of file readfuncs.c.

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

Referenced by parseNodeString().

1855 {
1857 
1858  ReadCommonScan(&local_node->scan);
1859 
1860  READ_INT_FIELD(ctePlanId);
1861  READ_INT_FIELD(cteParam);
1862 
1863  READ_DONE();
1864 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#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 1193 of file readfuncs.c.

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

Referenced by parseNodeString().

1194 {
1196 
1197  READ_UINT_FIELD(cvarno);
1198  READ_STRING_FIELD(cursor_name);
1199  READ_INT_FIELD(cursor_param);
1200 
1201  READ_DONE();
1202 }
#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 1907 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().

1908 {
1910  char *custom_name;
1911  const CustomScanMethods *methods;
1912 
1913  ReadCommonScan(&local_node->scan);
1914 
1915  READ_UINT_FIELD(flags);
1916  READ_NODE_FIELD(custom_plans);
1917  READ_NODE_FIELD(custom_exprs);
1918  READ_NODE_FIELD(custom_private);
1919  READ_NODE_FIELD(custom_scan_tlist);
1920  READ_BITMAPSET_FIELD(custom_relids);
1921 
1922  /* Lookup CustomScanMethods by CustomName */
1923  token = pg_strtok(&length); /* skip methods: */
1924  token = pg_strtok(&length); /* CustomName */
1925  custom_name = nullable_string(token, length);
1926  methods = GetCustomScanMethods(custom_name, false);
1927  local_node->methods = methods;
1928 
1929  READ_DONE();
1930 }
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:1651
#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 288 of file readfuncs.c.

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

Referenced by parseNodeString().

289 {
291 
292  READ_STRING_FIELD(portalname);
294  READ_NODE_FIELD(query);
295 
296  READ_DONE();
297 }
#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 1415 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().

1416 {
1418 
1419  READ_STRING_FIELD(defnamespace);
1420  READ_STRING_FIELD(defname);
1422  READ_ENUM_FIELD(defaction, DefElemAction);
1423  READ_LOCATION_FIELD(location);
1424 
1425  READ_DONE();
1426 }
#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:696
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 715 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().

716 {
718 
719  READ_OID_FIELD(opno);
720  READ_OID_FIELD(opfuncid);
721  READ_OID_FIELD(opresulttype);
722  READ_BOOL_FIELD(opretset);
723  READ_OID_FIELD(opcollid);
724  READ_OID_FIELD(inputcollid);
726  READ_LOCATION_FIELD(location);
727 
728  READ_DONE();
729 }
#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 2330 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().

2331 {
2332  const ExtensibleNodeMethods *methods;
2333  ExtensibleNode *local_node;
2334  const char *extnodename;
2335 
2336  READ_TEMP_LOCALS();
2337 
2338  token = pg_strtok(&length); /* skip :extnodename */
2339  token = pg_strtok(&length); /* get extnodename */
2340 
2341  extnodename = nullable_string(token, length);
2342  if (!extnodename)
2343  elog(ERROR, "extnodename has to be supplied");
2344  methods = GetExtensibleNodeMethods(extnodename, false);
2345 
2346  local_node = (ExtensibleNode *) newNode(methods->node_size,
2348  local_node->extnodename = extnodename;
2349 
2350  /* deserialize the private fields */
2351  methods->nodeRead(local_node);
2352 
2353  READ_DONE();
2354 }
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:560
#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 821 of file readfuncs.c.

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

Referenced by parseNodeString().

822 {
824 
826  READ_INT_FIELD(fieldnum);
827  READ_OID_FIELD(resulttype);
828  READ_INT_FIELD(resulttypmod);
829  READ_OID_FIELD(resultcollid);
830 
831  READ_DONE();
832 }
#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 838 of file readfuncs.c.

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

Referenced by parseNodeString().

839 {
841 
843  READ_NODE_FIELD(newvals);
844  READ_NODE_FIELD(fieldnums);
845  READ_OID_FIELD(resulttype);
846 
847  READ_DONE();
848 }
#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 1885 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().

1886 {
1888 
1889  ReadCommonScan(&local_node->scan);
1890 
1891  READ_ENUM_FIELD(operation, CmdType);
1892  READ_OID_FIELD(fs_server);
1893  READ_NODE_FIELD(fdw_exprs);
1894  READ_NODE_FIELD(fdw_private);
1895  READ_NODE_FIELD(fdw_scan_tlist);
1896  READ_NODE_FIELD(fdw_recheck_quals);
1897  READ_BITMAPSET_FIELD(fs_relids);
1898  READ_BOOL_FIELD(fsSystemCol);
1899 
1900  READ_DONE();
1901 }
#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:1651
#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:655
static FromExpr* _readFromExpr ( void  )
static

Definition at line 1275 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

1276 {
1278 
1279  READ_NODE_FIELD(fromlist);
1280  READ_NODE_FIELD(quals);
1281 
1282  READ_DONE();
1283 }
#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 658 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().

659 {
661 
662  READ_OID_FIELD(funcid);
663  READ_OID_FIELD(funcresulttype);
664  READ_BOOL_FIELD(funcretset);
665  READ_BOOL_FIELD(funcvariadic);
666  READ_ENUM_FIELD(funcformat, CoercionForm);
667  READ_OID_FIELD(funccollid);
668  READ_OID_FIELD(inputcollid);
670  READ_LOCATION_FIELD(location);
671 
672  READ_DONE();
673 }
#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 1808 of file readfuncs.c.

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

Referenced by parseNodeString().

1809 {
1811 
1812  ReadCommonScan(&local_node->scan);
1813 
1815  READ_BOOL_FIELD(funcordinality);
1816 
1817  READ_DONE();
1818 }
#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:1651
#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 2131 of file readfuncs.c.

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

Referenced by parseNodeString().

2132 {
2134 
2135  ReadCommonPlan(&local_node->plan);
2136 
2137  READ_INT_FIELD(num_workers);
2138  READ_BOOL_FIELD(single_copy);
2139  READ_BOOL_FIELD(invisible);
2140 
2141  READ_DONE();
2142 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 2148 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().

2149 {
2151 
2152  ReadCommonPlan(&local_node->plan);
2153 
2154  READ_INT_FIELD(num_workers);
2155  READ_INT_FIELD(numCols);
2156  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2157  READ_OID_ARRAY(sortOperators, local_node->numCols);
2158  READ_OID_ARRAY(collations, local_node->numCols);
2159  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2160 
2161  READ_DONE();
2162 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 2050 of file readfuncs.c.

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

Referenced by parseNodeString().

2051 {
2052  READ_LOCALS(Group);
2053 
2054  ReadCommonPlan(&local_node->plan);
2055 
2056  READ_INT_FIELD(numCols);
2057  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2058  READ_OID_ARRAY(grpOperators, local_node->numCols);
2059 
2060  READ_DONE();
2061 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 599 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().

600 {
602 
604  READ_NODE_FIELD(refs);
605  READ_NODE_FIELD(cols);
606  READ_UINT_FIELD(agglevelsup);
607  READ_LOCATION_FIELD(location);
608 
609  READ_DONE();
610 }
#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 337 of file readfuncs.c.

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

Referenced by parseNodeString().

338 {
340 
342  READ_NODE_FIELD(content);
343  READ_LOCATION_FIELD(location);
344 
345  READ_DONE();
346 }
#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:1198
#define READ_DONE()
Definition: readfuncs.c:155
static Hash* _readHash ( void  )
static

Definition at line 2168 of file readfuncs.c.

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

Referenced by parseNodeString().

2169 {
2170  READ_LOCALS(Hash);
2171 
2172  ReadCommonPlan(&local_node->plan);
2173 
2174  READ_OID_FIELD(skewTable);
2175  READ_INT_FIELD(skewColumn);
2176  READ_BOOL_FIELD(skewInherit);
2177  READ_OID_FIELD(skewColType);
2178  READ_INT_FIELD(skewColTypmod);
2179 
2180  READ_DONE();
2181 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 2003 of file readfuncs.c.

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

Referenced by parseNodeString().

2004 {
2006 
2007  ReadCommonJoin(&local_node->join);
2008 
2009  READ_NODE_FIELD(hashclauses);
2010 
2011  READ_DONE();
2012 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1937
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static IndexOnlyScan* _readIndexOnlyScan ( void  )
static

Definition at line 1726 of file readfuncs.c.

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

Referenced by parseNodeString().

1727 {
1729 
1730  ReadCommonScan(&local_node->scan);
1731 
1732  READ_OID_FIELD(indexid);
1733  READ_NODE_FIELD(indexqual);
1734  READ_NODE_FIELD(indexorderby);
1735  READ_NODE_FIELD(indextlist);
1736  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1737 
1738  READ_DONE();
1739 }
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:1651
#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 1705 of file readfuncs.c.

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

Referenced by parseNodeString().

1706 {
1708 
1709  ReadCommonScan(&local_node->scan);
1710 
1711  READ_OID_FIELD(indexid);
1712  READ_NODE_FIELD(indexqual);
1713  READ_NODE_FIELD(indexqualorig);
1714  READ_NODE_FIELD(indexorderby);
1715  READ_NODE_FIELD(indexorderbyorig);
1716  READ_NODE_FIELD(indexorderbyops);
1717  READ_ENUM_FIELD(indexorderdir, ScanDirection);
1718 
1719  READ_DONE();
1720 }
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:1651
#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 1208 of file readfuncs.c.

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

1209 {
1211 
1212  READ_NODE_FIELD(expr);
1213  READ_OID_FIELD(infercollid);
1214  READ_OID_FIELD(inferopclass);
1215 
1216  READ_DONE();
1217 }
#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 487 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().

488 {
490 
491  READ_NODE_FIELD(rel);
492  READ_NODE_FIELD(colNames);
494  READ_ENUM_FIELD(onCommit, OnCommitAction);
495  READ_STRING_FIELD(tableSpaceName);
496  READ_NODE_FIELD(viewQuery);
497  READ_BOOL_FIELD(skipData);
498 
499  READ_DONE();
500 }
#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 1951 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonJoin().

Referenced by parseNodeString().

1952 {
1954 
1955  ReadCommonJoin(local_node);
1956 
1957  READ_DONE();
1958 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1937
#define READ_DONE()
Definition: readfuncs.c:155
static JoinExpr* _readJoinExpr ( void  )
static

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

1256 {
1258 
1259  READ_ENUM_FIELD(jointype, JoinType);
1260  READ_BOOL_FIELD(isNatural);
1261  READ_NODE_FIELD(larg);
1262  READ_NODE_FIELD(rarg);
1263  READ_NODE_FIELD(usingClause);
1264  READ_NODE_FIELD(quals);
1265  READ_NODE_FIELD(alias);
1266  READ_INT_FIELD(rtindex);
1267 
1268  READ_DONE();
1269 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
JoinType
Definition: nodes.h:679
#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 2225 of file readfuncs.c.

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

Referenced by parseNodeString().

2226 {
2227  READ_LOCALS(Limit);
2228 
2229  ReadCommonPlan(&local_node->plan);
2230 
2231  READ_NODE_FIELD(limitOffset);
2232  READ_NODE_FIELD(limitCount);
2233 
2234  READ_DONE();
2235 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 2209 of file readfuncs.c.

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

Referenced by parseNodeString().

2210 {
2212 
2213  ReadCommonPlan(&local_node->plan);
2214 
2215  READ_NODE_FIELD(rowMarks);
2216  READ_INT_FIELD(epqParam);
2217 
2218  READ_DONE();
2219 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 2018 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

2019 {
2021 
2022  ReadCommonPlan(&local_node->plan);
2023 
2024  READ_DONE();
2025 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#define READ_DONE()
Definition: readfuncs.c:155
static MergeAppend* _readMergeAppend ( void  )
static

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

1580 {
1582 
1583  ReadCommonPlan(&local_node->plan);
1584 
1585  READ_NODE_FIELD(partitioned_rels);
1586  READ_NODE_FIELD(mergeplans);
1587  READ_INT_FIELD(numCols);
1588  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
1589  READ_OID_ARRAY(sortOperators, local_node->numCols);
1590  READ_OID_ARRAY(collations, local_node->numCols);
1591  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
1592 
1593  READ_DONE();
1594 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 1979 of file readfuncs.c.

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

Referenced by parseNodeString().

1980 {
1981  int numCols;
1982 
1984 
1985  ReadCommonJoin(&local_node->join);
1986 
1987  READ_NODE_FIELD(mergeclauses);
1988 
1989  numCols = list_length(local_node->mergeclauses);
1990 
1991  READ_OID_ARRAY(mergeFamilies, numCols);
1992  READ_OID_ARRAY(mergeCollations, numCols);
1993  READ_INT_ARRAY(mergeStrategies, numCols);
1994  READ_BOOL_ARRAY(mergeNullsFirst, numCols);
1995 
1996  READ_DONE();
1997 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
#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:1937
#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 1057 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().

1058 {
1060 
1061  READ_OID_FIELD(minmaxtype);
1062  READ_OID_FIELD(minmaxcollid);
1063  READ_OID_FIELD(inputcollid);
1066  READ_LOCATION_FIELD(location);
1067 
1068  READ_DONE();
1069 }
MinMaxOp
Definition: primnodes.h:1052
#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 1530 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().

1531 {
1533 
1534  ReadCommonPlan(&local_node->plan);
1535 
1536  READ_ENUM_FIELD(operation, CmdType);
1537  READ_BOOL_FIELD(canSetTag);
1538  READ_UINT_FIELD(nominalRelation);
1539  READ_NODE_FIELD(partitioned_rels);
1540  READ_NODE_FIELD(resultRelations);
1541  READ_INT_FIELD(resultRelIndex);
1542  READ_NODE_FIELD(plans);
1543  READ_NODE_FIELD(withCheckOptionLists);
1544  READ_NODE_FIELD(returningLists);
1545  READ_NODE_FIELD(fdwPrivLists);
1546  READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
1547  READ_NODE_FIELD(rowMarks);
1548  READ_INT_FIELD(epqParam);
1549  READ_ENUM_FIELD(onConflictAction, OnConflictAction);
1550  READ_NODE_FIELD(arbiterIndexes);
1551  READ_NODE_FIELD(onConflictSet);
1552  READ_NODE_FIELD(onConflictWhere);
1553  READ_UINT_FIELD(exclRelRTI);
1554  READ_NODE_FIELD(exclRelTlist);
1555 
1556  READ_DONE();
1557 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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:804
CmdType
Definition: nodes.h:655
static NamedArgExpr* _readNamedArgExpr ( void  )
static

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

680 {
682 
685  READ_INT_FIELD(argnumber);
686  READ_LOCATION_FIELD(location);
687 
688  READ_DONE();
689 }
#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 1964 of file readfuncs.c.

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

Referenced by parseNodeString().

1965 {
1967 
1968  ReadCommonJoin(&local_node->join);
1969 
1970  READ_NODE_FIELD(nestParams);
1971 
1972  READ_DONE();
1973 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:1937
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static NestLoopParam* _readNestLoopParam ( void  )
static

Definition at line 2241 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2242 {
2244 
2245  READ_INT_FIELD(paramno);
2246  READ_NODE_FIELD(paramval);
2247 
2248  READ_DONE();
2249 }
#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 274 of file readfuncs.c.

References READ_DONE, READ_LOCALS, and READ_STRING_FIELD.

Referenced by parseNodeString().

275 {
277 
278  READ_STRING_FIELD(conditionname);
279  READ_STRING_FIELD(payload);
280 
281  READ_DONE();
282 }
#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 735 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().

736 {
738 
739  READ_OID_FIELD(opno);
740  READ_OID_FIELD(opfuncid);
741  READ_OID_FIELD(opresulttype);
742  READ_BOOL_FIELD(opretset);
743  READ_OID_FIELD(opcollid);
744  READ_OID_FIELD(inputcollid);
746  READ_LOCATION_FIELD(location);
747 
748  READ_DONE();
749 }
#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 1112 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().

1113 {
1115 
1117  READ_ENUM_FIELD(nulltesttype, NullTestType);
1118  READ_BOOL_FIELD(argisrow);
1119  READ_LOCATION_FIELD(location);
1120 
1121  READ_DONE();
1122 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
NullTestType
Definition: primnodes.h:1170
#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 1289 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().

1290 {
1292 
1294  READ_NODE_FIELD(arbiterElems);
1295  READ_NODE_FIELD(arbiterWhere);
1296  READ_OID_FIELD(constraint);
1297  READ_NODE_FIELD(onConflictSet);
1298  READ_NODE_FIELD(onConflictWhere);
1299  READ_INT_FIELD(exclRelIndex);
1300  READ_NODE_FIELD(exclRelTlist);
1301 
1302  READ_DONE();
1303 }
#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:804
static OpExpr* _readOpExpr ( void  )
static

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

696 {
698 
699  READ_OID_FIELD(opno);
700  READ_OID_FIELD(opfuncid);
701  READ_OID_FIELD(opresulttype);
702  READ_BOOL_FIELD(opretset);
703  READ_OID_FIELD(opcollid);
704  READ_OID_FIELD(inputcollid);
706  READ_LOCATION_FIELD(location);
707 
708  READ_DONE();
709 }
#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 552 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().

553 {
555 
556  READ_ENUM_FIELD(paramkind, ParamKind);
557  READ_INT_FIELD(paramid);
558  READ_OID_FIELD(paramtype);
559  READ_INT_FIELD(paramtypmod);
560  READ_OID_FIELD(paramcollid);
561  READ_LOCATION_FIELD(location);
562 
563  READ_DONE();
564 }
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 2360 of file readfuncs.c.

References READ_CHAR_FIELD, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

2361 {
2363 
2364  READ_CHAR_FIELD(strategy);
2365  READ_NODE_FIELD(listdatums);
2366  READ_NODE_FIELD(lowerdatums);
2367  READ_NODE_FIELD(upperdatums);
2368 
2369  READ_DONE();
2370 }
#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 2376 of file readfuncs.c.

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

Referenced by parseNodeString().

2377 {
2379 
2380  READ_BOOL_FIELD(infinite);
2382 
2383  READ_DONE();
2384 }
static struct @78 value
#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 Plan* _readPlan ( void  )
static

Definition at line 1489 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1490 {
1492 
1493  ReadCommonPlan(local_node);
1494 
1495  READ_DONE();
1496 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#define READ_DONE()
Definition: readfuncs.c:155
static PlanInvalItem* _readPlanInvalItem ( void  )
static

Definition at line 2275 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

2276 {
2278 
2279  READ_INT_FIELD(cacheId);
2280  READ_UINT_FIELD(hashValue);
2281 
2282  READ_DONE();
2283 }
#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 1432 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().

1433 {
1435 
1436  READ_ENUM_FIELD(commandType, CmdType);
1437  READ_UINT_FIELD(queryId);
1438  READ_BOOL_FIELD(hasReturning);
1439  READ_BOOL_FIELD(hasModifyingCTE);
1440  READ_BOOL_FIELD(canSetTag);
1441  READ_BOOL_FIELD(transientPlan);
1442  READ_BOOL_FIELD(dependsOnRole);
1443  READ_BOOL_FIELD(parallelModeNeeded);
1444  READ_NODE_FIELD(planTree);
1445  READ_NODE_FIELD(rtable);
1446  READ_NODE_FIELD(resultRelations);
1447  READ_NODE_FIELD(nonleafResultRelations);
1448  READ_NODE_FIELD(subplans);
1449  READ_BITMAPSET_FIELD(rewindPlanIDs);
1450  READ_NODE_FIELD(rowMarks);
1451  READ_NODE_FIELD(relationOids);
1452  READ_NODE_FIELD(invalItems);
1453  READ_INT_FIELD(nParamExec);
1454  READ_NODE_FIELD(utilityStmt);
1455  READ_LOCATION_FIELD(stmt_location);
1456  READ_LOCATION_FIELD(stmt_len);
1457 
1458  READ_DONE();
1459 }
#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:655
static PlanRowMark* _readPlanRowMark ( void  )
static

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

2256 {
2258 
2259  READ_UINT_FIELD(rti);
2260  READ_UINT_FIELD(prti);
2261  READ_UINT_FIELD(rowmarkId);
2262  READ_ENUM_FIELD(markType, RowMarkType);
2263  READ_INT_FIELD(allMarkTypes);
2265  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2266  READ_BOOL_FIELD(isParent);
2267 
2268  READ_DONE();
2269 }
#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:924
#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 1517 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

1518 {
1520 
1521  ReadCommonPlan(&local_node->plan);
1522 
1523  READ_DONE();
1524 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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_NODE_FIELD(onConflict);
251  READ_NODE_FIELD(returningList);
252  READ_NODE_FIELD(groupClause);
253  READ_NODE_FIELD(groupingSets);
254  READ_NODE_FIELD(havingQual);
255  READ_NODE_FIELD(windowClause);
256  READ_NODE_FIELD(distinctClause);
257  READ_NODE_FIELD(sortClause);
258  READ_NODE_FIELD(limitOffset);
259  READ_NODE_FIELD(limitCount);
260  READ_NODE_FIELD(rowMarks);
261  READ_NODE_FIELD(setOperations);
262  READ_NODE_FIELD(constraintDeps);
263  /* withCheckOptions intentionally omitted, see comment in parsenodes.h */
264  READ_LOCATION_FIELD(stmt_location);
265  READ_LOCATION_FIELD(stmt_len);
266 
267  READ_DONE();
268 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
QuerySource
Definition: parsenodes.h:31
#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:655
static RangeTblEntry* _readRangeTblEntry ( void  )
static

Definition at line 1313 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_RELATION, RTE_SUBQUERY, RTE_TABLEFUNC, and RTE_VALUES.

Referenced by parseNodeString().

1314 {
1316 
1317  /* put alias + eref first to make dump more legible */
1318  READ_NODE_FIELD(alias);
1319  READ_NODE_FIELD(eref);
1320  READ_ENUM_FIELD(rtekind, RTEKind);
1321 
1322  switch (local_node->rtekind)
1323  {
1324  case RTE_RELATION:
1325  READ_OID_FIELD(relid);
1326  READ_CHAR_FIELD(relkind);
1327  READ_NODE_FIELD(tablesample);
1328  break;
1329  case RTE_SUBQUERY:
1330  READ_NODE_FIELD(subquery);
1331  READ_BOOL_FIELD(security_barrier);
1332  break;
1333  case RTE_JOIN:
1334  READ_ENUM_FIELD(jointype, JoinType);
1335  READ_NODE_FIELD(joinaliasvars);
1336  break;
1337  case RTE_FUNCTION:
1339  READ_BOOL_FIELD(funcordinality);
1340  break;
1341  case RTE_TABLEFUNC:
1342  READ_NODE_FIELD(tablefunc);
1343  break;
1344  case RTE_VALUES:
1345  READ_NODE_FIELD(values_lists);
1346  READ_NODE_FIELD(coltypes);
1347  READ_NODE_FIELD(coltypmods);
1348  READ_NODE_FIELD(colcollations);
1349  break;
1350  case RTE_CTE:
1351  READ_STRING_FIELD(ctename);
1352  READ_UINT_FIELD(ctelevelsup);
1353  READ_BOOL_FIELD(self_reference);
1354  READ_NODE_FIELD(coltypes);
1355  READ_NODE_FIELD(coltypmods);
1356  READ_NODE_FIELD(colcollations);
1357  break;
1358  default:
1359  elog(ERROR, "unrecognized RTE kind: %d",
1360  (int) local_node->rtekind);
1361  break;
1362  }
1363 
1364  READ_BOOL_FIELD(lateral);
1365  READ_BOOL_FIELD(inh);
1366  READ_BOOL_FIELD(inFromCl);
1367  READ_UINT_FIELD(requiredPerms);
1368  READ_OID_FIELD(checkAsUser);
1369  READ_BITMAPSET_FIELD(selectedCols);
1370  READ_BITMAPSET_FIELD(insertedCols);
1371  READ_BITMAPSET_FIELD(updatedCols);
1372  READ_NODE_FIELD(securityQuals);
1373 
1374  READ_DONE();
1375 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
JoinType
Definition: nodes.h:679
#define ERROR
Definition: elog.h:43
RTEKind
Definition: parsenodes.h:901
#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 1381 of file readfuncs.c.

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

Referenced by parseNodeString().

1382 {
1384 
1385  READ_NODE_FIELD(funcexpr);
1386  READ_INT_FIELD(funccolcount);
1387  READ_NODE_FIELD(funccolnames);
1388  READ_NODE_FIELD(funccoltypes);
1389  READ_NODE_FIELD(funccoltypmods);
1390  READ_NODE_FIELD(funccolcollations);
1391  READ_BITMAPSET_FIELD(funcparams);
1392 
1393  READ_DONE();
1394 }
#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 1242 of file readfuncs.c.

References READ_DONE, READ_INT_FIELD, and READ_LOCALS.

Referenced by parseNodeString().

1243 {
1245 
1246  READ_INT_FIELD(rtindex);
1247 
1248  READ_DONE();
1249 }
#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 444 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().

445 {
447 
448  local_node->catalogname = NULL; /* not currently saved in output
449  * format */
450 
451  READ_STRING_FIELD(schemaname);
452  READ_STRING_FIELD(relname);
453  READ_BOOL_FIELD(inh);
454  READ_CHAR_FIELD(relpersistence);
455  READ_NODE_FIELD(alias);
456  READ_LOCATION_FIELD(location);
457 
458  READ_DONE();
459 }
#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 1600 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().

1601 {
1603 
1604  ReadCommonPlan(&local_node->plan);
1605 
1606  READ_INT_FIELD(wtParam);
1607  READ_INT_FIELD(numCols);
1608  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
1609  READ_OID_ARRAY(dupOperators, local_node->numCols);
1610  READ_LONG_FIELD(numGroups);
1611 
1612  READ_DONE();
1613 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:74
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 854 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().

855 {
857 
859  READ_OID_FIELD(resulttype);
860  READ_INT_FIELD(resulttypmod);
861  READ_OID_FIELD(resultcollid);
862  READ_ENUM_FIELD(relabelformat, CoercionForm);
863  READ_LOCATION_FIELD(location);
864 
865  READ_DONE();
866 }
#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 1502 of file readfuncs.c.

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

Referenced by parseNodeString().

1503 {
1505 
1506  ReadCommonPlan(&local_node->plan);
1507 
1508  READ_NODE_FIELD(resconstantqual);
1509 
1510  READ_DONE();
1511 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 1023 of file readfuncs.c.

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

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

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

1007 {
1009 
1011  READ_OID_FIELD(row_typeid);
1012  READ_ENUM_FIELD(row_format, CoercionForm);
1013  READ_NODE_FIELD(colnames);
1014  READ_LOCATION_FIELD(location);
1015 
1016  READ_DONE();
1017 }
#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 373 of file readfuncs.c.

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

Referenced by parseNodeString().

374 {
376 
377  READ_UINT_FIELD(rti);
379  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
380  READ_BOOL_FIELD(pushedDown);
381 
382  READ_DONE();
383 }
#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 1690 of file readfuncs.c.

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

Referenced by parseNodeString().

1691 {
1693 
1694  ReadCommonScan(&local_node->scan);
1695 
1696  READ_NODE_FIELD(tablesample);
1697 
1698  READ_DONE();
1699 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static ScalarArrayOpExpr* _readScalarArrayOpExpr ( void  )
static

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

756 {
758 
759  READ_OID_FIELD(opno);
760  READ_OID_FIELD(opfuncid);
761  READ_BOOL_FIELD(useOr);
762  READ_OID_FIELD(inputcollid);
764  READ_LOCATION_FIELD(location);
765 
766  READ_DONE();
767 }
#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 1664 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1665 {
1667 
1668  ReadCommonScan(local_node);
1669 
1670  READ_DONE();
1671 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_DONE()
Definition: readfuncs.c:155
static SeqScan* _readSeqScan ( void  )
static

Definition at line 1677 of file readfuncs.c.

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

1678 {
1680 
1681  ReadCommonScan(local_node);
1682 
1683  READ_DONE();
1684 }
#define READ_LOCALS_NO_FIELDS(nodeTypeName)
Definition: readfuncs.c:48
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_DONE()
Definition: readfuncs.c:155
static SetOp* _readSetOp ( void  )
static

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

2188 {
2189  READ_LOCALS(SetOp);
2190 
2191  ReadCommonPlan(&local_node->plan);
2192 
2193  READ_ENUM_FIELD(cmd, SetOpCmd);
2194  READ_ENUM_FIELD(strategy, SetOpStrategy);
2195  READ_INT_FIELD(numCols);
2196  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
2197  READ_OID_ARRAY(dupOperators, local_node->numCols);
2198  READ_INT_FIELD(flagColIdx);
2199  READ_INT_FIELD(firstFlag);
2200  READ_LONG_FIELD(numGroups);
2201 
2202  READ_DONE();
2203 }
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:74
SetOpStrategy
Definition: nodes.h:792
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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:784
#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 411 of file readfuncs.c.

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

Referenced by parseNodeString().

412 {
414 
416  READ_BOOL_FIELD(all);
417  READ_NODE_FIELD(larg);
418  READ_NODE_FIELD(rarg);
419  READ_NODE_FIELD(colTypes);
420  READ_NODE_FIELD(colTypmods);
421  READ_NODE_FIELD(colCollations);
422  READ_NODE_FIELD(groupClauses);
423 
424  READ_DONE();
425 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
SetOperation
Definition: parsenodes.h:1446
#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 1177 of file readfuncs.c.

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

Referenced by parseNodeString().

1178 {
1180 
1181  READ_OID_FIELD(typeId);
1182  READ_INT_FIELD(typeMod);
1183  READ_OID_FIELD(collation);
1184  READ_LOCATION_FIELD(location);
1185 
1186  READ_DONE();
1187 }
#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 2031 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().

2032 {
2033  READ_LOCALS(Sort);
2034 
2035  ReadCommonPlan(&local_node->plan);
2036 
2037  READ_INT_FIELD(numCols);
2038  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2039  READ_OID_ARRAY(sortOperators, local_node->numCols);
2040  READ_OID_ARRAY(collations, local_node->numCols);
2041  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2042 
2043  READ_DONE();
2044 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:150
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 320 of file readfuncs.c.

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

Referenced by parseNodeString().

321 {
323 
324  READ_UINT_FIELD(tleSortGroupRef);
325  READ_OID_FIELD(eqop);
326  READ_OID_FIELD(sortop);
327  READ_BOOL_FIELD(nulls_first);
328  READ_BOOL_FIELD(hashable);
329 
330  READ_DONE();
331 }
#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 1075 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().

1076 {
1078 
1080  READ_OID_FIELD(type);
1081  READ_INT_FIELD(typmod);
1082  READ_LOCATION_FIELD(location);
1083 
1084  READ_DONE();
1085 }
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:92
SQLValueFunctionOp
Definition: primnodes.h:1080
#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 799 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().

800 {
802 
803  READ_ENUM_FIELD(subLinkType, SubLinkType);
804  READ_INT_FIELD(subLinkId);
805  READ_NODE_FIELD(testexpr);
806  READ_NODE_FIELD(operName);
807  READ_NODE_FIELD(subselect);
808  READ_LOCATION_FIELD(location);
809 
810  READ_DONE();
811 }
#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 2289 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().

2290 {
2292 
2293  READ_ENUM_FIELD(subLinkType, SubLinkType);
2294  READ_NODE_FIELD(testexpr);
2295  READ_NODE_FIELD(paramIds);
2296  READ_INT_FIELD(plan_id);
2297  READ_STRING_FIELD(plan_name);
2298  READ_OID_FIELD(firstColType);
2299  READ_INT_FIELD(firstColTypmod);
2300  READ_OID_FIELD(firstColCollation);
2301  READ_BOOL_FIELD(useHashTable);
2302  READ_BOOL_FIELD(unknownEqFalse);
2303  READ_BOOL_FIELD(parallel_safe);
2304  READ_NODE_FIELD(setParam);
2305  READ_NODE_FIELD(parParam);
2307  READ_FLOAT_FIELD(startup_cost);
2308  READ_FLOAT_FIELD(per_call_cost);
2309 
2310  READ_DONE();
2311 }
#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 1793 of file readfuncs.c.

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

Referenced by parseNodeString().

1794 {
1796 
1797  ReadCommonScan(&local_node->scan);
1798 
1799  READ_NODE_FIELD(subplan);
1800 
1801  READ_DONE();
1802 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static TableFunc* _readTableFunc ( void  )
static

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

466 {
468 
469  READ_NODE_FIELD(ns_names);
470  READ_NODE_FIELD(ns_uris);
471  READ_NODE_FIELD(docexpr);
472  READ_NODE_FIELD(rowexpr);
473  READ_NODE_FIELD(colnames);
474  READ_NODE_FIELD(coltypes);
475  READ_NODE_FIELD(coltypmods);
476  READ_NODE_FIELD(colcollations);
477  READ_NODE_FIELD(colexprs);
478  READ_NODE_FIELD(coldefexprs);
479  READ_BITMAPSET_FIELD(notnulls);
480  READ_INT_FIELD(ordinalitycol);
481  READ_LOCATION_FIELD(location);
482 
483  READ_DONE();
484 }
#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 1839 of file readfuncs.c.

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

Referenced by parseNodeString().

1840 {
1842 
1843  ReadCommonScan(&local_node->scan);
1844 
1845  READ_NODE_FIELD(tablefunc);
1846 
1847  READ_DONE();
1848 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static TableSampleClause* _readTableSampleClause ( void  )
static

Definition at line 1400 of file readfuncs.c.

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

Referenced by parseNodeString().

1401 {
1403 
1404  READ_OID_FIELD(tsmhandler);
1406  READ_NODE_FIELD(repeatable);
1407 
1408  READ_DONE();
1409 }
#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 1223 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().

1224 {
1226 
1227  READ_NODE_FIELD(expr);
1228  READ_INT_FIELD(resno);
1229  READ_STRING_FIELD(resname);
1230  READ_UINT_FIELD(ressortgroupref);
1231  READ_OID_FIELD(resorigtbl);
1232  READ_INT_FIELD(resorigcol);
1233  READ_BOOL_FIELD(resjunk);
1234 
1235  READ_DONE();
1236 }
#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 1778 of file readfuncs.c.

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

Referenced by parseNodeString().

1779 {
1781 
1782  ReadCommonScan(&local_node->scan);
1783 
1784  READ_NODE_FIELD(tidquals);
1785 
1786  READ_DONE();
1787 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static Unique* _readUnique ( void  )
static

Definition at line 2114 of file readfuncs.c.

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

Referenced by parseNodeString().

2115 {
2117 
2118  ReadCommonPlan(&local_node->plan);
2119 
2120  READ_INT_FIELD(numCols);
2121  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
2122  READ_OID_ARRAY(uniqOperators, local_node->numCols);
2123 
2124  READ_DONE();
2125 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 1824 of file readfuncs.c.

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

Referenced by parseNodeString().

1825 {
1827 
1828  ReadCommonScan(&local_node->scan);
1829 
1830  READ_NODE_FIELD(values_lists);
1831 
1832  READ_DONE();
1833 }
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:123
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:57
#define READ_DONE()
Definition: readfuncs.c:155
static Var* _readVar ( void  )
static

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

507 {
508  READ_LOCALS(Var);
509 
510  READ_UINT_FIELD(varno);
511  READ_INT_FIELD(varattno);
512  READ_OID_FIELD(vartype);
513  READ_INT_FIELD(vartypmod);
514  READ_OID_FIELD(varcollid);
515  READ_UINT_FIELD(varlevelsup);
516  READ_UINT_FIELD(varnoold);
517  READ_INT_FIELD(varoattno);
518  READ_LOCATION_FIELD(location);
519 
520  READ_DONE();
521 }
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 2090 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().

2091 {
2093 
2094  ReadCommonPlan(&local_node->plan);
2095 
2096  READ_UINT_FIELD(winref);
2097  READ_INT_FIELD(partNumCols);
2098  READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
2099  READ_OID_ARRAY(partOperators, local_node->partNumCols);
2100  READ_INT_FIELD(ordNumCols);
2101  READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
2102  READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
2103  READ_INT_FIELD(frameOptions);
2104  READ_NODE_FIELD(startOffset);
2105  READ_NODE_FIELD(endOffset);
2106 
2107  READ_DONE();
2108 }
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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 352 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().

353 {
355 
357  READ_STRING_FIELD(refname);
358  READ_NODE_FIELD(partitionClause);
359  READ_NODE_FIELD(orderClause);
360  READ_INT_FIELD(frameOptions);
361  READ_NODE_FIELD(startOffset);
362  READ_NODE_FIELD(endOffset);
363  READ_UINT_FIELD(winref);
364  READ_BOOL_FIELD(copiedOrder);
365 
366  READ_DONE();
367 }
#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 616 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().

617 {
619 
620  READ_OID_FIELD(winfnoid);
621  READ_OID_FIELD(wintype);
622  READ_OID_FIELD(wincollid);
623  READ_OID_FIELD(inputcollid);
625  READ_NODE_FIELD(aggfilter);
626  READ_UINT_FIELD(winref);
627  READ_BOOL_FIELD(winstar);
628  READ_BOOL_FIELD(winagg);
629  READ_LOCATION_FIELD(location);
630 
631  READ_DONE();
632 }
#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 303 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().

304 {
306 
307  READ_ENUM_FIELD(kind, WCOKind);
308  READ_STRING_FIELD(relname);
309  READ_STRING_FIELD(polname);
310  READ_NODE_FIELD(qual);
311  READ_BOOL_FIELD(cascaded);
312 
313  READ_DONE();
314 }
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:104
WCOKind
Definition: parsenodes.h:1062
#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 1870 of file readfuncs.c.

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

Referenced by parseNodeString().

1871 {
1873 
1874  ReadCommonScan(&local_node->scan);
1875 
1876  READ_INT_FIELD(wtParam);
1877 
1878  READ_DONE();
1879 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:1651
#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 1091 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().

1092 {
1094 
1097  READ_NODE_FIELD(named_args);
1098  READ_NODE_FIELD(arg_names);
1101  READ_OID_FIELD(type);
1102  READ_INT_FIELD(typmod);
1103  READ_LOCATION_FIELD(location);
1104 
1105  READ_DONE();
1106 }
XmlExprOp
Definition: primnodes.h:1119
#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:1131
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:80
const char * name
Definition: encode.c:521
int xmloption
Definition: xml.c:98
#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 2395 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().

2396 {
2397  void *return_value;
2398 
2399  READ_TEMP_LOCALS();
2400 
2401  token = pg_strtok(&length);
2402 
2403 #define MATCH(tokname, namelen) \
2404  (length == namelen && memcmp(token, tokname, namelen) == 0)
2405 
2406  if (MATCH("QUERY", 5))
2407  return_value = _readQuery();
2408  else if (MATCH("WITHCHECKOPTION", 15))
2409  return_value = _readWithCheckOption();
2410  else if (MATCH("SORTGROUPCLAUSE", 15))
2411  return_value = _readSortGroupClause();
2412  else if (MATCH("GROUPINGSET", 11))
2413  return_value = _readGroupingSet();
2414  else if (MATCH("WINDOWCLAUSE", 12))
2415  return_value = _readWindowClause();
2416  else if (MATCH("ROWMARKCLAUSE", 13))
2417  return_value = _readRowMarkClause();
2418  else if (MATCH("COMMONTABLEEXPR", 15))
2419  return_value = _readCommonTableExpr();
2420  else if (MATCH("SETOPERATIONSTMT", 16))
2421  return_value = _readSetOperationStmt();
2422  else if (MATCH("ALIAS", 5))
2423  return_value = _readAlias();
2424  else if (MATCH("RANGEVAR", 8))
2425  return_value = _readRangeVar();
2426  else if (MATCH("INTOCLAUSE", 10))
2427  return_value = _readIntoClause();
2428  else if (MATCH("TABLEFUNC", 9))
2429  return_value = _readTableFunc();
2430  else if (MATCH("VAR", 3))
2431  return_value = _readVar();
2432  else if (MATCH("CONST", 5))
2433  return_value = _readConst();
2434  else if (MATCH("PARAM", 5))
2435  return_value = _readParam();
2436  else if (MATCH("AGGREF", 6))
2437  return_value = _readAggref();
2438  else if (MATCH("GROUPINGFUNC", 12))
2439  return_value = _readGroupingFunc();
2440  else if (MATCH("WINDOWFUNC", 10))
2441  return_value = _readWindowFunc();
2442  else if (MATCH("ARRAYREF", 8))
2443  return_value = _readArrayRef();
2444  else if (MATCH("FUNCEXPR", 8))
2445  return_value = _readFuncExpr();
2446  else if (MATCH("NAMEDARGEXPR", 12))
2447  return_value = _readNamedArgExpr();
2448  else if (MATCH("OPEXPR", 6))
2449  return_value = _readOpExpr();
2450  else if (MATCH("DISTINCTEXPR", 12))
2451  return_value = _readDistinctExpr();
2452  else if (MATCH("NULLIFEXPR", 10))
2453  return_value = _readNullIfExpr();
2454  else if (MATCH("SCALARARRAYOPEXPR", 17))
2455  return_value = _readScalarArrayOpExpr();
2456  else if (MATCH("BOOLEXPR", 8))
2457  return_value = _readBoolExpr();
2458  else if (MATCH("SUBLINK", 7))
2459  return_value = _readSubLink();
2460  else if (MATCH("FIELDSELECT", 11))
2461  return_value = _readFieldSelect();
2462  else if (MATCH("FIELDSTORE", 10))
2463  return_value = _readFieldStore();
2464  else if (MATCH("RELABELTYPE", 11))
2465  return_value = _readRelabelType();
2466  else if (MATCH("COERCEVIAIO", 11))
2467  return_value = _readCoerceViaIO();
2468  else if (MATCH("ARRAYCOERCEEXPR", 15))
2469  return_value = _readArrayCoerceExpr();
2470  else if (MATCH("CONVERTROWTYPEEXPR", 18))
2471  return_value = _readConvertRowtypeExpr();
2472  else if (MATCH("COLLATE", 7))
2473  return_value = _readCollateExpr();
2474  else if (MATCH("CASE", 4))
2475  return_value = _readCaseExpr();
2476  else if (MATCH("WHEN", 4))
2477  return_value = _readCaseWhen();
2478  else if (MATCH("CASETESTEXPR", 12))
2479  return_value = _readCaseTestExpr();
2480  else if (MATCH("ARRAY", 5))
2481  return_value = _readArrayExpr();
2482  else if (MATCH("ROW", 3))
2483  return_value = _readRowExpr();
2484  else if (MATCH("ROWCOMPARE", 10))
2485  return_value = _readRowCompareExpr();
2486  else if (MATCH("COALESCE", 8))
2487  return_value = _readCoalesceExpr();
2488  else if (MATCH("MINMAX", 6))
2489  return_value = _readMinMaxExpr();
2490  else if (MATCH("SQLVALUEFUNCTION", 16))
2491  return_value = _readSQLValueFunction();
2492  else if (MATCH("XMLEXPR", 7))
2493  return_value = _readXmlExpr();
2494  else if (MATCH("NULLTEST", 8))
2495  return_value = _readNullTest();
2496  else if (MATCH("BOOLEANTEST", 11))
2497  return_value = _readBooleanTest();
2498  else if (MATCH("COERCETODOMAIN", 14))
2499  return_value = _readCoerceToDomain();
2500  else if (MATCH("COERCETODOMAINVALUE", 19))
2501  return_value = _readCoerceToDomainValue();
2502  else if (MATCH("SETTODEFAULT", 12))
2503  return_value = _readSetToDefault();
2504  else if (MATCH("CURRENTOFEXPR", 13))
2505  return_value = _readCurrentOfExpr();
2506  else if (MATCH("INFERENCEELEM", 13))
2507  return_value = _readInferenceElem();
2508  else if (MATCH("TARGETENTRY", 11))
2509  return_value = _readTargetEntry();
2510  else if (MATCH("RANGETBLREF", 11))
2511  return_value = _readRangeTblRef();
2512  else if (MATCH("JOINEXPR", 8))
2513  return_value = _readJoinExpr();
2514  else if (MATCH("FROMEXPR", 8))
2515  return_value = _readFromExpr();
2516  else if (MATCH("ONCONFLICTEXPR", 14))
2517  return_value = _readOnConflictExpr();
2518  else if (MATCH("RTE", 3))
2519  return_value = _readRangeTblEntry();
2520  else if (MATCH("RANGETBLFUNCTION", 16))
2521  return_value = _readRangeTblFunction();
2522  else if (MATCH("TABLESAMPLECLAUSE", 17))
2523  return_value = _readTableSampleClause();
2524  else if (MATCH("NOTIFY", 6))
2525  return_value = _readNotifyStmt();
2526  else if (MATCH("DEFELEM", 7))
2527  return_value = _readDefElem();
2528  else if (MATCH("DECLARECURSOR", 13))
2529  return_value = _readDeclareCursorStmt();
2530  else if (MATCH("PLANNEDSTMT", 11))
2531  return_value = _readPlannedStmt();
2532  else if (MATCH("PLAN", 4))
2533  return_value = _readPlan();
2534  else if (MATCH("RESULT", 6))
2535  return_value = _readResult();
2536  else if (MATCH("PROJECTSET", 10))
2537  return_value = _readProjectSet();
2538  else if (MATCH("MODIFYTABLE", 11))
2539  return_value = _readModifyTable();
2540  else if (MATCH("APPEND", 6))
2541  return_value = _readAppend();
2542  else if (MATCH("MERGEAPPEND", 11))
2543  return_value = _readMergeAppend();
2544  else if (MATCH("RECURSIVEUNION", 14))
2545  return_value = _readRecursiveUnion();
2546  else if (MATCH("BITMAPAND", 9))
2547  return_value = _readBitmapAnd();
2548  else if (MATCH("BITMAPOR", 8))
2549  return_value = _readBitmapOr();
2550  else if (MATCH("SCAN", 4))
2551  return_value = _readScan();
2552  else if (MATCH("SEQSCAN", 7))
2553  return_value = _readSeqScan();
2554  else if (MATCH("SAMPLESCAN", 10))
2555  return_value = _readSampleScan();
2556  else if (MATCH("INDEXSCAN", 9))
2557  return_value = _readIndexScan();
2558  else if (MATCH("INDEXONLYSCAN", 13))
2559  return_value = _readIndexOnlyScan();
2560  else if (MATCH("BITMAPINDEXSCAN", 15))
2561  return_value = _readBitmapIndexScan();
2562  else if (MATCH("BITMAPHEAPSCAN", 14))
2563  return_value = _readBitmapHeapScan();
2564  else if (MATCH("TIDSCAN", 7))
2565  return_value = _readTidScan();
2566  else if (MATCH("SUBQUERYSCAN", 12))
2567  return_value = _readSubqueryScan();
2568  else if (MATCH("FUNCTIONSCAN", 12))
2569  return_value = _readFunctionScan();
2570  else if (MATCH("VALUESSCAN", 10))
2571  return_value = _readValuesScan();
2572  else if (MATCH("TABLEFUNCSCAN", 13))
2573  return_value = _readTableFuncScan();
2574  else if (MATCH("CTESCAN", 7))
2575  return_value = _readCteScan();
2576  else if (MATCH("WORKTABLESCAN", 13))
2577  return_value = _readWorkTableScan();
2578  else if (MATCH("FOREIGNSCAN", 11))
2579  return_value = _readForeignScan();
2580  else if (MATCH("CUSTOMSCAN", 10))
2581  return_value = _readCustomScan();
2582  else if (MATCH("JOIN", 4))
2583  return_value = _readJoin();
2584  else if (MATCH("NESTLOOP", 8))
2585  return_value = _readNestLoop();
2586  else if (MATCH("MERGEJOIN", 9))
2587  return_value = _readMergeJoin();
2588  else if (MATCH("HASHJOIN", 8))
2589  return_value = _readHashJoin();
2590  else if (MATCH("MATERIAL", 8))
2591  return_value = _readMaterial();
2592  else if (MATCH("SORT", 4))
2593  return_value = _readSort();
2594  else if (MATCH("GROUP", 5))
2595  return_value = _readGroup();
2596  else if (MATCH("AGG", 3))
2597  return_value = _readAgg();
2598  else if (MATCH("WINDOWAGG", 9))
2599  return_value = _readWindowAgg();
2600  else if (MATCH("UNIQUE", 6))
2601  return_value = _readUnique();
2602  else if (MATCH("GATHER", 6))
2603  return_value = _readGather();
2604  else if (MATCH("GATHERMERGE", 11))
2605  return_value = _readGatherMerge();
2606  else if (MATCH("HASH", 4))
2607  return_value = _readHash();
2608  else if (MATCH("SETOP", 5))
2609  return_value = _readSetOp();
2610  else if (MATCH("LOCKROWS", 8))
2611  return_value = _readLockRows();
2612  else if (MATCH("LIMIT", 5))
2613  return_value = _readLimit();
2614  else if (MATCH("NESTLOOPPARAM", 13))
2615  return_value = _readNestLoopParam();
2616  else if (MATCH("PLANROWMARK", 11))
2617  return_value = _readPlanRowMark();
2618  else if (MATCH("PLANINVALITEM", 13))
2619  return_value = _readPlanInvalItem();
2620  else if (MATCH("SUBPLAN", 7))
2621  return_value = _readSubPlan();
2622  else if (MATCH("ALTERNATIVESUBPLAN", 18))
2623  return_value = _readAlternativeSubPlan();
2624  else if (MATCH("EXTENSIBLENODE", 14))
2625  return_value = _readExtensibleNode();
2626  else if (MATCH("PARTITIONBOUND", 14))
2627  return_value = _readPartitionBoundSpec();
2628  else if (MATCH("PARTRANGEDATUM", 14))
2629  return_value = _readPartitionRangeDatum();
2630  else
2631  {
2632  elog(ERROR, "badly formatted node string \"%.32s\"...", token);
2633  return_value = NULL; /* keep compiler quiet */
2634  }
2635 
2636  return (Node *) return_value;
2637 }
static NullTest * _readNullTest(void)
Definition: readfuncs.c:1112
static JoinExpr * _readJoinExpr(void)
Definition: readfuncs.c:1255
static RangeVar * _readRangeVar(void)
Definition: readfuncs.c:444
static RangeTblEntry * _readRangeTblEntry(void)
Definition: readfuncs.c:1313
static DefElem * _readDefElem(void)
Definition: readfuncs.c:1415
static RowExpr * _readRowExpr(void)
Definition: readfuncs.c:1006
int length(const List *list)
Definition: list.c:1271
static MergeJoin * _readMergeJoin(void)
Definition: readfuncs.c:1979
static MinMaxExpr * _readMinMaxExpr(void)
Definition: readfuncs.c:1057
static RowMarkClause * _readRowMarkClause(void)
Definition: readfuncs.c:373
static FuncExpr * _readFuncExpr(void)
Definition: readfuncs.c:658
static Hash * _readHash(void)
Definition: readfuncs.c:2168
char * pg_strtok(int *length)
Definition: read.c:107
static Result * _readResult(void)
Definition: readfuncs.c:1502
static Query * _readQuery(void)
Definition: readfuncs.c:227
static RowCompareExpr * _readRowCompareExpr(void)
Definition: readfuncs.c:1023
static Param * _readParam(void)
Definition: readfuncs.c:552
static PlanInvalItem * _readPlanInvalItem(void)
Definition: readfuncs.c:2275
static WindowAgg * _readWindowAgg(void)
Definition: readfuncs.c:2090
static IndexScan * _readIndexScan(void)
Definition: readfuncs.c:1705
static NotifyStmt * _readNotifyStmt(void)
Definition: readfuncs.c:274
static Scan * _readScan(void)
Definition: readfuncs.c:1664
static NamedArgExpr * _readNamedArgExpr(void)
Definition: readfuncs.c:679
static LockRows * _readLockRows(void)
Definition: readfuncs.c:2209
static CurrentOfExpr * _readCurrentOfExpr(void)
Definition: readfuncs.c:1193
static CollateExpr * _readCollateExpr(void)
Definition: readfuncs.c:925
static SubqueryScan * _readSubqueryScan(void)
Definition: readfuncs.c:1793
static BitmapIndexScan * _readBitmapIndexScan(void)
Definition: readfuncs.c:1745
static CaseExpr * _readCaseExpr(void)
Definition: readfuncs.c:940
static FunctionScan * _readFunctionScan(void)
Definition: readfuncs.c:1808
static PartitionBoundSpec * _readPartitionBoundSpec(void)
Definition: readfuncs.c:2360
static Unique * _readUnique(void)
Definition: readfuncs.c:2114
static MergeAppend * _readMergeAppend(void)
Definition: readfuncs.c:1579
Definition: nodes.h:522
static WindowFunc * _readWindowFunc(void)
Definition: readfuncs.c:616
static WindowClause * _readWindowClause(void)
Definition: readfuncs.c:352
static OpExpr * _readOpExpr(void)
Definition: readfuncs.c:695
static IndexOnlyScan * _readIndexOnlyScan(void)
Definition: readfuncs.c:1726
static BitmapAnd * _readBitmapAnd(void)
Definition: readfuncs.c:1619
static FromExpr * _readFromExpr(void)
Definition: readfuncs.c:1275
static Aggref * _readAggref(void)
Definition: readfuncs.c:570
static NestLoop * _readNestLoop(void)
Definition: readfuncs.c:1964
static ModifyTable * _readModifyTable(void)
Definition: readfuncs.c:1530
static DistinctExpr * _readDistinctExpr(void)
Definition: readfuncs.c:715
static ArrayCoerceExpr * _readArrayCoerceExpr(void)
Definition: readfuncs.c:889
static TargetEntry * _readTargetEntry(void)
Definition: readfuncs.c:1223
static Agg * _readAgg(void)
Definition: readfuncs.c:2067
static SeqScan * _readSeqScan(void)
Definition: readfuncs.c:1677
static AlternativeSubPlan * _readAlternativeSubPlan(void)
Definition: readfuncs.c:2317
static CteScan * _readCteScan(void)
Definition: readfuncs.c:1854
#define ERROR
Definition: elog.h:43
static GroupingFunc * _readGroupingFunc(void)
Definition: readfuncs.c:599
static CoerceToDomain * _readCoerceToDomain(void)
Definition: readfuncs.c:1143
static SubLink * _readSubLink(void)
Definition: readfuncs.c:799
static HashJoin * _readHashJoin(void)
Definition: readfuncs.c:2003
static ValuesScan * _readValuesScan(void)
Definition: readfuncs.c:1824
static ConvertRowtypeExpr * _readConvertRowtypeExpr(void)
Definition: readfuncs.c:909
static OnConflictExpr * _readOnConflictExpr(void)
Definition: readfuncs.c:1289
static NullIfExpr * _readNullIfExpr(void)
Definition: readfuncs.c:735
static Append * _readAppend(void)
Definition: readfuncs.c:1563
static ExtensibleNode * _readExtensibleNode(void)
Definition: readfuncs.c:2330
static PlanRowMark * _readPlanRowMark(void)
Definition: readfuncs.c:2255
static FieldSelect * _readFieldSelect(void)
Definition: readfuncs.c:821
static ArrayRef * _readArrayRef(void)
Definition: readfuncs.c:638
static CaseWhen * _readCaseWhen(void)
Definition: readfuncs.c:958
static SQLValueFunction * _readSQLValueFunction(void)
Definition: readfuncs.c:1075
#define MATCH(tokname, namelen)
static ForeignScan * _readForeignScan(void)
Definition: readfuncs.c:1885
static RelabelType * _readRelabelType(void)
Definition: readfuncs.c:854
static SetOp * _readSetOp(void)
Definition: readfuncs.c:2187
static SortGroupClause * _readSortGroupClause(void)
Definition: readfuncs.c:320
static Limit * _readLimit(void)
Definition: readfuncs.c:2225
static PartitionRangeDatum * _readPartitionRangeDatum(void)
Definition: readfuncs.c:2376
static GatherMerge * _readGatherMerge(void)
Definition: readfuncs.c:2148
static DeclareCursorStmt * _readDeclareCursorStmt(void)
Definition: readfuncs.c:288
static Gather * _readGather(void)
Definition: readfuncs.c:2131
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
static Var * _readVar(void)
Definition: readfuncs.c:506
static SampleScan * _readSampleScan(void)
Definition: readfuncs.c:1690
static SubPlan * _readSubPlan(void)
Definition: readfuncs.c:2289
#define NULL
Definition: c.h:229
static TidScan * _readTidScan(void)
Definition: readfuncs.c:1778
static CoerceToDomainValue * _readCoerceToDomainValue(void)
Definition: readfuncs.c:1161
static TableFuncScan * _readTableFuncScan(void)
Definition: readfuncs.c:1839
static IntoClause * _readIntoClause(void)
Definition: readfuncs.c:487
static Const * _readConst(void)
Definition: readfuncs.c:527
static SetOperationStmt * _readSetOperationStmt(void)
Definition: readfuncs.c:411
static PlannedStmt * _readPlannedStmt(void)
Definition: readfuncs.c:1432
static Material * _readMaterial(void)
Definition: readfuncs.c:2018
static CaseTestExpr * _readCaseTestExpr(void)
Definition: readfuncs.c:973
static Alias * _readAlias(void)
Definition: readfuncs.c:433
static BitmapOr * _readBitmapOr(void)
Definition: readfuncs.c:1634
static RangeTblRef * _readRangeTblRef(void)
Definition: readfuncs.c:1242
static RecursiveUnion * _readRecursiveUnion(void)
Definition: readfuncs.c:1600
static FieldStore * _readFieldStore(void)
Definition: readfuncs.c:838
static CoalesceExpr * _readCoalesceExpr(void)
Definition: readfuncs.c:1041
static SetToDefault * _readSetToDefault(void)
Definition: readfuncs.c:1177
static WithCheckOption * _readWithCheckOption(void)
Definition: readfuncs.c:303
static InferenceElem * _readInferenceElem(void)
Definition: readfuncs.c:1208
static ScalarArrayOpExpr * _readScalarArrayOpExpr(void)
Definition: readfuncs.c:755
static BoolExpr * _readBoolExpr(void)
Definition: readfuncs.c:773
static CustomScan * _readCustomScan(void)
Definition: readfuncs.c:1907
static CommonTableExpr * _readCommonTableExpr(void)
Definition: readfuncs.c:389
static ArrayExpr * _readArrayExpr(void)
Definition: readfuncs.c:988
#define elog
Definition: elog.h:219
static RangeTblFunction * _readRangeTblFunction(void)
Definition: readfuncs.c:1381
static BooleanTest * _readBooleanTest(void)
Definition: readfuncs.c:1128
static Plan * _readPlan(void)
Definition: readfuncs.c:1489
static XmlExpr * _readXmlExpr(void)
Definition: readfuncs.c:1091
static TableFunc * _readTableFunc(void)
Definition: readfuncs.c:465
static TableSampleClause * _readTableSampleClause(void)
Definition: readfuncs.c:1400
static NestLoopParam * _readNestLoopParam(void)
Definition: readfuncs.c:2241
static ProjectSet * _readProjectSet(void)
Definition: readfuncs.c:1517
static BitmapHeapScan * _readBitmapHeapScan(void)
Definition: readfuncs.c:1763
static Join * _readJoin(void)
Definition: readfuncs.c:1951
static Sort * _readSort(void)
Definition: readfuncs.c:2031
static CoerceViaIO * _readCoerceViaIO(void)
Definition: readfuncs.c:872
static Group * _readGroup(void)
Definition: readfuncs.c:2050
static GroupingSet * _readGroupingSet(void)
Definition: readfuncs.c:337
static WorkTableScan * _readWorkTableScan(void)
Definition: readfuncs.c:1870
AttrNumber* readAttrNumberCols ( int  numCols)

Definition at line 2705 of file readfuncs.c.

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

2706 {
2707  int tokenLength,
2708  i;
2709  char *token;
2710  AttrNumber *attr_vals;
2711 
2712  if (numCols <= 0)
2713  return NULL;
2714 
2715  attr_vals = (AttrNumber *) palloc(numCols * sizeof(AttrNumber));
2716  for (i = 0; i < numCols; i++)
2717  {
2718  token = pg_strtok(&tokenLength);
2719  attr_vals[i] = atoi(token);
2720  }
2721 
2722  return attr_vals;
2723 }
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 2777 of file readfuncs.c.

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

2778 {
2779  int tokenLength,
2780  i;
2781  char *token;
2782  bool *bool_vals;
2783 
2784  if (numCols <= 0)
2785  return NULL;
2786 
2787  bool_vals = (bool *) palloc(numCols * sizeof(bool));
2788  for (i = 0; i < numCols; i++)
2789  {
2790  token = pg_strtok(&tokenLength);
2791  bool_vals[i] = strtobool(token);
2792  }
2793 
2794  return bool_vals;
2795 }
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 1937 of file readfuncs.c.

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

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

1938 {
1939  READ_TEMP_LOCALS();
1940 
1941  ReadCommonPlan(&local_node->plan);
1942 
1943  READ_ENUM_FIELD(jointype, JoinType);
1944  READ_NODE_FIELD(joinqual);
1945 }
JoinType
Definition: nodes.h:679
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#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:639
static void ReadCommonPlan ( Plan local_node)
static

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

1467 {
1468  READ_TEMP_LOCALS();
1469 
1470  READ_FLOAT_FIELD(startup_cost);
1471  READ_FLOAT_FIELD(total_cost);
1472  READ_FLOAT_FIELD(plan_rows);
1473  READ_INT_FIELD(plan_width);
1474  READ_BOOL_FIELD(parallel_aware);
1475  READ_INT_FIELD(plan_node_id);
1476  READ_NODE_FIELD(targetlist);
1477  READ_NODE_FIELD(qual);
1478  READ_NODE_FIELD(lefttree);
1479  READ_NODE_FIELD(righttree);
1480  READ_NODE_FIELD(initPlan);
1481  READ_BITMAPSET_FIELD(extParam);
1482  READ_BITMAPSET_FIELD(allParam);
1483 }
#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 1651 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().

1652 {
1653  READ_TEMP_LOCALS();
1654 
1655  ReadCommonPlan(&local_node->plan);
1656 
1657  READ_UINT_FIELD(scanrelid);
1658 }
Plan plan
Definition: plannodes.h:315
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1466
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:68
#define READ_TEMP_LOCALS()
Definition: readfuncs.c:52
Datum readDatum ( bool  typbyval)

Definition at line 2648 of file readfuncs.c.

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

Referenced by _readConst().

2649 {
2650  Size length,
2651  i;
2652  int tokenLength;
2653  char *token;
2654  Datum res;
2655  char *s;
2656 
2657  /*
2658  * read the actual length of the value
2659  */
2660  token = pg_strtok(&tokenLength);
2661  length = atoui(token);
2662 
2663  token = pg_strtok(&tokenLength); /* read the '[' */
2664  if (token == NULL || token[0] != '[')
2665  elog(ERROR, "expected \"[\" to start datum, but got \"%s\"; length = %zu",
2666  token ? (const char *) token : "[NULL]", length);
2667 
2668  if (typbyval)
2669  {
2670  if (length > (Size) sizeof(Datum))
2671  elog(ERROR, "byval datum but length = %zu", length);
2672  res = (Datum) 0;
2673  s = (char *) (&res);
2674  for (i = 0; i < (Size) sizeof(Datum); i++)
2675  {
2676  token = pg_strtok(&tokenLength);
2677  s[i] = (char) atoi(token);
2678  }
2679  }
2680  else if (length <= 0)
2681  res = (Datum) NULL;
2682  else
2683  {
2684  s = (char *) palloc(length);
2685  for (i = 0; i < length; i++)
2686  {
2687  token = pg_strtok(&tokenLength);
2688  s[i] = (char) atoi(token);
2689  }
2690  res = PointerGetDatum(s);
2691  }
2692 
2693  token = pg_strtok(&tokenLength); /* read the ']' */
2694  if (token == NULL || token[0] != ']')
2695  elog(ERROR, "expected \"]\" to end datum, but got \"%s\"; length = %zu",
2696  token ? (const char *) token : "[NULL]", length);
2697 
2698  return res;
2699 }
#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 2753 of file readfuncs.c.

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

2754 {
2755  int tokenLength,
2756  i;
2757  char *token;
2758  int *int_vals;
2759 
2760  if (numCols <= 0)
2761  return NULL;
2762 
2763  int_vals = (int *) palloc(numCols * sizeof(int));
2764  for (i = 0; i < numCols; i++)
2765  {
2766  token = pg_strtok(&tokenLength);
2767  int_vals[i] = atoi(token);
2768  }
2769 
2770  return int_vals;
2771 }
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 2729 of file readfuncs.c.

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

2730 {
2731  int tokenLength,
2732  i;
2733  char *token;
2734  Oid *oid_vals;
2735 
2736  if (numCols <= 0)
2737  return NULL;
2738 
2739  oid_vals = (Oid *) palloc(numCols * sizeof(Oid));
2740  for (i = 0; i < numCols; i++)
2741  {
2742  token = pg_strtok(&tokenLength);
2743  oid_vals[i] = atooid(token);
2744  }
2745 
2746  return oid_vals;
2747 }
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