PostgreSQL Source Code  git master
readfuncs.c File Reference
#include "postgres.h"
#include <math.h>
#include "miscadmin.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_UINT64_FIELD(fldname)
 
#define READ_LONG_FIELD(fldname)
 
#define READ_OID_FIELD(fldname)
 
#define READ_CHAR_FIELD(fldname)
 
#define READ_ENUM_FIELD(fldname, enumtype)
 
#define READ_FLOAT_FIELD(fldname)
 
#define READ_BOOL_FIELD(fldname)
 
#define READ_STRING_FIELD(fldname)
 
#define READ_LOCATION_FIELD(fldname)
 
#define READ_NODE_FIELD(fldname)
 
#define READ_BITMAPSET_FIELD(fldname)
 
#define READ_ATTRNUMBER_ARRAY(fldname, len)
 
#define READ_OID_ARRAY(fldname, len)
 
#define READ_INT_ARRAY(fldname, len)
 
#define READ_BOOL_ARRAY(fldname, len)
 
#define READ_DONE()    return local_node
 
#define atoui(x)   ((unsigned int) strtoul((x), NULL, 10))
 
#define strtobool(x)   ((*(x) == 't') ? true : false)
 
#define nullable_string(token, length)    ((length) == 0 ? NULL : debackslash(token, length))
 
#define MATCH(tokname, namelen)    (length == namelen && memcmp(token, tokname, namelen) == 0)
 

Functions

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

Macro Definition Documentation

◆ atoui

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

Definition at line 183 of file readfuncs.c.

◆ MATCH

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

◆ nullable_string

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

Definition at line 187 of file readfuncs.c.

◆ READ_ATTRNUMBER_ARRAY

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

Definition at line 153 of file readfuncs.c.

◆ READ_BITMAPSET_FIELD

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

Definition at line 147 of file readfuncs.c.

◆ READ_BOOL_ARRAY

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

Definition at line 168 of file readfuncs.c.

◆ READ_BOOL_FIELD

#define READ_BOOL_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = strtobool(token)
#define strtobool(x)
Definition: readfuncs.c:185

Definition at line 115 of file readfuncs.c.

◆ READ_CHAR_FIELD

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

Definition at line 96 of file readfuncs.c.

◆ READ_DONE

#define READ_DONE ( )     return local_node

Definition at line 173 of file readfuncs.c.

◆ READ_ENUM_FIELD

#define READ_ENUM_FIELD (   fldname,
  enumtype 
)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = (enumtype) atoi(token)

Definition at line 103 of file readfuncs.c.

◆ READ_FLOAT_FIELD

#define READ_FLOAT_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atof(token)

Definition at line 109 of file readfuncs.c.

◆ READ_INT_ARRAY

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

Definition at line 163 of file readfuncs.c.

◆ READ_INT_FIELD

#define READ_INT_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atoi(token)

Definition at line 66 of file readfuncs.c.

◆ READ_LOCALS

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

Definition at line 61 of file readfuncs.c.

◆ READ_LOCALS_NO_FIELDS

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

Definition at line 52 of file readfuncs.c.

◆ READ_LOCATION_FIELD

#define READ_LOCATION_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
(void) token; /* in case not used elsewhere */ \
local_node->fldname = -1 /* set field to "unknown" */

Definition at line 133 of file readfuncs.c.

◆ READ_LONG_FIELD

#define READ_LONG_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atol(token)

Definition at line 84 of file readfuncs.c.

◆ READ_NODE_FIELD

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

Definition at line 141 of file readfuncs.c.

◆ READ_OID_ARRAY

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

Definition at line 158 of file readfuncs.c.

◆ READ_OID_FIELD

#define READ_OID_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = atooid(token)
#define atooid(x)
Definition: postgres_ext.h:42

Definition at line 90 of file readfuncs.c.

◆ READ_STRING_FIELD

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

Definition at line 121 of file readfuncs.c.

◆ READ_TEMP_LOCALS

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

Definition at line 56 of file readfuncs.c.

◆ READ_UINT64_FIELD

#define READ_UINT64_FIELD (   fldname)
Value:
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
local_node->fldname = strtou64(token, NULL, 10)
#define strtou64(str, endptr, base)
Definition: c.h:1333

Definition at line 78 of file readfuncs.c.

◆ READ_UINT_FIELD

#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:183

Definition at line 72 of file readfuncs.c.

◆ strtobool

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

Definition at line 185 of file readfuncs.c.

Function Documentation

◆ _readAgg()

static Agg* _readAgg ( void  )
static

Definition at line 2539 of file readfuncs.c.

2540 {
2541  READ_LOCALS(Agg);
2542 
2543  ReadCommonPlan(&local_node->plan);
2544 
2545  READ_ENUM_FIELD(aggstrategy, AggStrategy);
2546  READ_ENUM_FIELD(aggsplit, AggSplit);
2547  READ_INT_FIELD(numCols);
2548  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2549  READ_OID_ARRAY(grpOperators, local_node->numCols);
2550  READ_OID_ARRAY(grpCollations, local_node->numCols);
2551  READ_LONG_FIELD(numGroups);
2552  READ_UINT64_FIELD(transitionSpace);
2553  READ_BITMAPSET_FIELD(aggParams);
2554  READ_NODE_FIELD(groupingSets);
2555  READ_NODE_FIELD(chain);
2556 
2557  READ_DONE();
2558 }
AggStrategy
Definition: nodes.h:807
AggSplit
Definition: nodes.h:829
static void ReadCommonPlan(Plan *local_node)
Definition: readfuncs.c:1841
#define READ_INT_FIELD(fldname)
Definition: readfuncs.c:66
#define READ_NODE_FIELD(fldname)
Definition: readfuncs.c:141
#define READ_BITMAPSET_FIELD(fldname)
Definition: readfuncs.c:147
#define READ_LONG_FIELD(fldname)
Definition: readfuncs.c:84
#define READ_ATTRNUMBER_ARRAY(fldname, len)
Definition: readfuncs.c:153
#define READ_UINT64_FIELD(fldname)
Definition: readfuncs.c:78
#define READ_ENUM_FIELD(fldname, enumtype)
Definition: readfuncs.c:103
#define READ_LOCALS(nodeTypeName)
Definition: readfuncs.c:61
#define READ_DONE()
Definition: readfuncs.c:173
#define READ_OID_ARRAY(fldname, len)
Definition: readfuncs.c:158
Definition: plannodes.h:966

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

Referenced by parseNodeString().

◆ _readAggref()

static Aggref* _readAggref ( void  )
static

Definition at line 680 of file readfuncs.c.

681 {
683 
684  READ_OID_FIELD(aggfnoid);
685  READ_OID_FIELD(aggtype);
686  READ_OID_FIELD(aggcollid);
687  READ_OID_FIELD(inputcollid);
688  READ_OID_FIELD(aggtranstype);
689  READ_NODE_FIELD(aggargtypes);
690  READ_NODE_FIELD(aggdirectargs);
692  READ_NODE_FIELD(aggorder);
693  READ_NODE_FIELD(aggdistinct);
694  READ_NODE_FIELD(aggfilter);
695  READ_BOOL_FIELD(aggstar);
696  READ_BOOL_FIELD(aggvariadic);
697  READ_CHAR_FIELD(aggkind);
698  READ_UINT_FIELD(agglevelsup);
699  READ_ENUM_FIELD(aggsplit, AggSplit);
700  READ_INT_FIELD(aggno);
701  READ_INT_FIELD(aggtransno);
702  READ_LOCATION_FIELD(location);
703 
704  READ_DONE();
705 }
#define READ_UINT_FIELD(fldname)
Definition: readfuncs.c:72
#define READ_CHAR_FIELD(fldname)
Definition: readfuncs.c:96
#define READ_OID_FIELD(fldname)
Definition: readfuncs.c:90
#define READ_LOCATION_FIELD(fldname)
Definition: readfuncs.c:133
#define READ_BOOL_FIELD(fldname)
Definition: readfuncs.c:115

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

Referenced by parseNodeString().

◆ _readAlias()

static Alias* _readAlias ( void  )
static

Definition at line 540 of file readfuncs.c.

541 {
543 
544  READ_STRING_FIELD(aliasname);
545  READ_NODE_FIELD(colnames);
546 
547  READ_DONE();
548 }
#define READ_STRING_FIELD(fldname)
Definition: readfuncs.c:121

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_STRING_FIELD.

Referenced by parseNodeString().

◆ _readAlternativeSubPlan()

static AlternativeSubPlan* _readAlternativeSubPlan ( void  )
static

Definition at line 2867 of file readfuncs.c.

2868 {
2870 
2871  READ_NODE_FIELD(subplans);
2872 
2873  READ_DONE();
2874 }

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readAppend()

static Append* _readAppend ( void  )
static

Definition at line 1942 of file readfuncs.c.

1943 {
1945 
1946  ReadCommonPlan(&local_node->plan);
1947 
1948  READ_BITMAPSET_FIELD(apprelids);
1949  READ_NODE_FIELD(appendplans);
1950  READ_INT_FIELD(nasyncplans);
1951  READ_INT_FIELD(first_partial_plan);
1952  READ_NODE_FIELD(part_prune_info);
1953 
1954  READ_DONE();
1955 }

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

Referenced by parseNodeString().

◆ _readAppendRelInfo()

static AppendRelInfo* _readAppendRelInfo ( void  )
static

Definition at line 1633 of file readfuncs.c.

1634 {
1636 
1637  READ_UINT_FIELD(parent_relid);
1638  READ_UINT_FIELD(child_relid);
1639  READ_OID_FIELD(parent_reltype);
1640  READ_OID_FIELD(child_reltype);
1641  READ_NODE_FIELD(translated_vars);
1642  READ_INT_FIELD(num_child_cols);
1643  READ_ATTRNUMBER_ARRAY(parent_colnos, local_node->num_child_cols);
1644  READ_OID_FIELD(parent_reloid);
1645 
1646  READ_DONE();
1647 }

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

Referenced by parseNodeString().

◆ _readArrayCoerceExpr()

static ArrayCoerceExpr* _readArrayCoerceExpr ( void  )
static

Definition at line 1004 of file readfuncs.c.

1005 {
1007 
1009  READ_NODE_FIELD(elemexpr);
1010  READ_OID_FIELD(resulttype);
1011  READ_INT_FIELD(resulttypmod);
1012  READ_OID_FIELD(resultcollid);
1013  READ_ENUM_FIELD(coerceformat, CoercionForm);
1014  READ_LOCATION_FIELD(location);
1015 
1016  READ_DONE();
1017 }
void * arg
CoercionForm
Definition: primnodes.h:572

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

◆ _readArrayExpr()

static ArrayExpr* _readArrayExpr ( void  )
static

Definition at line 1102 of file readfuncs.c.

1103 {
1105 
1106  READ_OID_FIELD(array_typeid);
1107  READ_OID_FIELD(array_collid);
1108  READ_OID_FIELD(element_typeid);
1109  READ_NODE_FIELD(elements);
1110  READ_BOOL_FIELD(multidims);
1111  READ_LOCATION_FIELD(location);
1112 
1113  READ_DONE();
1114 }

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

Referenced by parseNodeString().

◆ _readBitmapAnd()

static BitmapAnd* _readBitmapAnd ( void  )
static

Definition at line 2003 of file readfuncs.c.

2004 {
2006 
2007  ReadCommonPlan(&local_node->plan);
2008 
2009  READ_NODE_FIELD(bitmapplans);
2010 
2011  READ_DONE();
2012 }

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

Referenced by parseNodeString().

◆ _readBitmapHeapScan()

static BitmapHeapScan* _readBitmapHeapScan ( void  )
static

Definition at line 2148 of file readfuncs.c.

2149 {
2151 
2152  ReadCommonScan(&local_node->scan);
2153 
2154  READ_NODE_FIELD(bitmapqualorig);
2155 
2156  READ_DONE();
2157 }
static void ReadCommonScan(Scan *local_node)
Definition: readfuncs.c:2035

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

Referenced by parseNodeString().

◆ _readBitmapIndexScan()

static BitmapIndexScan* _readBitmapIndexScan ( void  )
static

Definition at line 2130 of file readfuncs.c.

2131 {
2133 
2134  ReadCommonScan(&local_node->scan);
2135 
2136  READ_OID_FIELD(indexid);
2137  READ_BOOL_FIELD(isshared);
2138  READ_NODE_FIELD(indexqual);
2139  READ_NODE_FIELD(indexqualorig);
2140 
2141  READ_DONE();
2142 }

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

Referenced by parseNodeString().

◆ _readBitmapOr()

static BitmapOr* _readBitmapOr ( void  )
static

Definition at line 2018 of file readfuncs.c.

2019 {
2021 
2022  ReadCommonPlan(&local_node->plan);
2023 
2024  READ_BOOL_FIELD(isshared);
2025  READ_NODE_FIELD(bitmapplans);
2026 
2027  READ_DONE();
2028 }

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

Referenced by parseNodeString().

◆ _readBitmapset()

static Bitmapset* _readBitmapset ( void  )
static

Definition at line 195 of file readfuncs.c.

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

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

Referenced by readBitmapset().

◆ _readBooleanTest()

static BooleanTest* _readBooleanTest ( void  )
static

Definition at line 1242 of file readfuncs.c.

1243 {
1245 
1247  READ_ENUM_FIELD(booltesttype, BoolTestType);
1248  READ_LOCATION_FIELD(location);
1249 
1250  READ_DONE();
1251 }
BoolTestType
Definition: primnodes.h:1654

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

Referenced by parseNodeString().

◆ _readBoolExpr()

static BoolExpr* _readBoolExpr ( void  )
static

Definition at line 888 of file readfuncs.c.

889 {
891 
892  /* do-it-yourself enum representation */
893  token = pg_strtok(&length); /* skip :boolop */
894  token = pg_strtok(&length); /* get field value */
895  if (strncmp(token, "and", 3) == 0)
896  local_node->boolop = AND_EXPR;
897  else if (strncmp(token, "or", 2) == 0)
898  local_node->boolop = OR_EXPR;
899  else if (strncmp(token, "not", 3) == 0)
900  local_node->boolop = NOT_EXPR;
901  else
902  elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
903 
905  READ_LOCATION_FIELD(location);
906 
907  READ_DONE();
908 }
@ AND_EXPR
Definition: primnodes.h:740
@ OR_EXPR
Definition: primnodes.h:740
@ NOT_EXPR
Definition: primnodes.h:740

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

Referenced by parseNodeString().

◆ _readCaseExpr()

static CaseExpr* _readCaseExpr ( void  )
static

Definition at line 1054 of file readfuncs.c.

1055 {
1057 
1058  READ_OID_FIELD(casetype);
1059  READ_OID_FIELD(casecollid);
1062  READ_NODE_FIELD(defresult);
1063  READ_LOCATION_FIELD(location);
1064 
1065  READ_DONE();
1066 }

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

Referenced by parseNodeString().

◆ _readCaseTestExpr()

static CaseTestExpr* _readCaseTestExpr ( void  )
static

Definition at line 1087 of file readfuncs.c.

1088 {
1090 
1091  READ_OID_FIELD(typeId);
1092  READ_INT_FIELD(typeMod);
1093  READ_OID_FIELD(collation);
1094 
1095  READ_DONE();
1096 }

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

◆ _readCaseWhen()

static CaseWhen* _readCaseWhen ( void  )
static

Definition at line 1072 of file readfuncs.c.

1073 {
1075 
1076  READ_NODE_FIELD(expr);
1077  READ_NODE_FIELD(result);
1078  READ_LOCATION_FIELD(location);
1079 
1080  READ_DONE();
1081 }

References READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readCoalesceExpr()

static CoalesceExpr* _readCoalesceExpr ( void  )
static

Definition at line 1155 of file readfuncs.c.

1156 {
1158 
1159  READ_OID_FIELD(coalescetype);
1160  READ_OID_FIELD(coalescecollid);
1162  READ_LOCATION_FIELD(location);
1163 
1164  READ_DONE();
1165 }

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

Referenced by parseNodeString().

◆ _readCoerceToDomain()

static CoerceToDomain* _readCoerceToDomain ( void  )
static

Definition at line 1257 of file readfuncs.c.

1258 {
1260 
1262  READ_OID_FIELD(resulttype);
1263  READ_INT_FIELD(resulttypmod);
1264  READ_OID_FIELD(resultcollid);
1265  READ_ENUM_FIELD(coercionformat, CoercionForm);
1266  READ_LOCATION_FIELD(location);
1267 
1268  READ_DONE();
1269 }

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

◆ _readCoerceToDomainValue()

static CoerceToDomainValue* _readCoerceToDomainValue ( void  )
static

Definition at line 1275 of file readfuncs.c.

1276 {
1278 
1279  READ_OID_FIELD(typeId);
1280  READ_INT_FIELD(typeMod);
1281  READ_OID_FIELD(collation);
1282  READ_LOCATION_FIELD(location);
1283 
1284  READ_DONE();
1285 }

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

Referenced by parseNodeString().

◆ _readCoerceViaIO()

static CoerceViaIO* _readCoerceViaIO ( void  )
static

Definition at line 987 of file readfuncs.c.

988 {
990 
992  READ_OID_FIELD(resulttype);
993  READ_OID_FIELD(resultcollid);
994  READ_ENUM_FIELD(coerceformat, CoercionForm);
995  READ_LOCATION_FIELD(location);
996 
997  READ_DONE();
998 }

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

Referenced by parseNodeString().

◆ _readCollateExpr()

static CollateExpr* _readCollateExpr ( void  )
static

Definition at line 1039 of file readfuncs.c.

1040 {
1042 
1044  READ_OID_FIELD(collOid);
1045  READ_LOCATION_FIELD(location);
1046 
1047  READ_DONE();
1048 }

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

Referenced by parseNodeString().

◆ _readCommonTableExpr()

static CommonTableExpr* _readCommonTableExpr ( void  )
static

Definition at line 457 of file readfuncs.c.

458 {
460 
461  READ_STRING_FIELD(ctename);
462  READ_NODE_FIELD(aliascolnames);
463  READ_ENUM_FIELD(ctematerialized, CTEMaterialize);
464  READ_NODE_FIELD(ctequery);
465  READ_NODE_FIELD(search_clause);
466  READ_NODE_FIELD(cycle_clause);
467  READ_LOCATION_FIELD(location);
468  READ_BOOL_FIELD(cterecursive);
469  READ_INT_FIELD(cterefcount);
470  READ_NODE_FIELD(ctecolnames);
471  READ_NODE_FIELD(ctecoltypes);
472  READ_NODE_FIELD(ctecoltypmods);
473  READ_NODE_FIELD(ctecolcollations);
474 
475  READ_DONE();
476 }
CTEMaterialize
Definition: parsenodes.h:1490

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

Referenced by parseNodeString().

◆ _readConst()

static Const* _readConst ( void  )
static

Definition at line 637 of file readfuncs.c.

638 {
640 
641  READ_OID_FIELD(consttype);
642  READ_INT_FIELD(consttypmod);
643  READ_OID_FIELD(constcollid);
644  READ_INT_FIELD(constlen);
645  READ_BOOL_FIELD(constbyval);
646  READ_BOOL_FIELD(constisnull);
647  READ_LOCATION_FIELD(location);
648 
649  token = pg_strtok(&length); /* skip :constvalue */
650  if (local_node->constisnull)
651  token = pg_strtok(&length); /* skip "<>" */
652  else
653  local_node->constvalue = readDatum(local_node->constbyval);
654 
655  READ_DONE();
656 }
Datum readDatum(bool typbyval)
Definition: readfuncs.c:3256

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

Referenced by parseNodeString().

◆ _readConvertRowtypeExpr()

static ConvertRowtypeExpr* _readConvertRowtypeExpr ( void  )
static

Definition at line 1023 of file readfuncs.c.

1024 {
1026 
1028  READ_OID_FIELD(resulttype);
1029  READ_ENUM_FIELD(convertformat, CoercionForm);
1030  READ_LOCATION_FIELD(location);
1031 
1032  READ_DONE();
1033 }

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

Referenced by parseNodeString().

◆ _readCTECycleClause()

static CTECycleClause* _readCTECycleClause ( void  )
static

Definition at line 435 of file readfuncs.c.

436 {
438 
439  READ_NODE_FIELD(cycle_col_list);
440  READ_STRING_FIELD(cycle_mark_column);
441  READ_NODE_FIELD(cycle_mark_value);
442  READ_NODE_FIELD(cycle_mark_default);
443  READ_STRING_FIELD(cycle_path_column);
444  READ_LOCATION_FIELD(location);
445  READ_OID_FIELD(cycle_mark_type);
446  READ_INT_FIELD(cycle_mark_typmod);
447  READ_OID_FIELD(cycle_mark_collation);
448  READ_OID_FIELD(cycle_mark_neop);
449 
450  READ_DONE();
451 }

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

Referenced by parseNodeString().

◆ _readCteScan()

static CteScan* _readCteScan ( void  )
static

Definition at line 2255 of file readfuncs.c.

2256 {
2258 
2259  ReadCommonScan(&local_node->scan);
2260 
2261  READ_INT_FIELD(ctePlanId);
2262  READ_INT_FIELD(cteParam);
2263 
2264  READ_DONE();
2265 }

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

Referenced by parseNodeString().

◆ _readCTESearchClause()

static CTESearchClause* _readCTESearchClause ( void  )
static

Definition at line 419 of file readfuncs.c.

420 {
422 
423  READ_NODE_FIELD(search_col_list);
424  READ_BOOL_FIELD(search_breadth_first);
425  READ_STRING_FIELD(search_seq_column);
426  READ_LOCATION_FIELD(location);
427 
428  READ_DONE();
429 }

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

Referenced by parseNodeString().

◆ _readCurrentOfExpr()

static CurrentOfExpr* _readCurrentOfExpr ( void  )
static

Definition at line 1307 of file readfuncs.c.

1308 {
1310 
1311  READ_UINT_FIELD(cvarno);
1312  READ_STRING_FIELD(cursor_name);
1313  READ_INT_FIELD(cursor_param);
1314 
1315  READ_DONE();
1316 }

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

Referenced by parseNodeString().

◆ _readCustomScan()

static CustomScan* _readCustomScan ( void  )
static

Definition at line 2324 of file readfuncs.c.

2325 {
2327  char *custom_name;
2328  const CustomScanMethods *methods;
2329 
2330  ReadCommonScan(&local_node->scan);
2331 
2332  READ_UINT_FIELD(flags);
2333  READ_NODE_FIELD(custom_plans);
2334  READ_NODE_FIELD(custom_exprs);
2335  READ_NODE_FIELD(custom_private);
2336  READ_NODE_FIELD(custom_scan_tlist);
2337  READ_BITMAPSET_FIELD(custom_relids);
2338 
2339  /* Lookup CustomScanMethods by CustomName */
2340  token = pg_strtok(&length); /* skip methods: */
2341  token = pg_strtok(&length); /* CustomName */
2342  custom_name = nullable_string(token, length);
2343  methods = GetCustomScanMethods(custom_name, false);
2344  local_node->methods = methods;
2345 
2346  READ_DONE();
2347 }
const CustomScanMethods * GetCustomScanMethods(const char *CustomName, bool missing_ok)
Definition: extensible.c:137

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

Referenced by parseNodeString().

◆ _readDeclareCursorStmt()

static DeclareCursorStmt* _readDeclareCursorStmt ( void  )
static

Definition at line 312 of file readfuncs.c.

313 {
315 
316  READ_STRING_FIELD(portalname);
318  READ_NODE_FIELD(query);
319 
320  READ_DONE();
321 }

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

Referenced by parseNodeString().

◆ _readDefElem()

static DefElem* _readDefElem ( void  )
static

Definition at line 1785 of file readfuncs.c.

1786 {
1788 
1789  READ_STRING_FIELD(defnamespace);
1790  READ_STRING_FIELD(defname);
1792  READ_ENUM_FIELD(defaction, DefElemAction);
1793  READ_LOCATION_FIELD(location);
1794 
1795  READ_DONE();
1796 }
DefElemAction
Definition: parsenodes.h:755

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

Referenced by parseNodeString().

◆ _readDistinctExpr()

static DistinctExpr* _readDistinctExpr ( void  )
static

Definition at line 828 of file readfuncs.c.

829 {
831 
832  READ_OID_FIELD(opno);
833  READ_OID_FIELD(opfuncid);
834  READ_OID_FIELD(opresulttype);
835  READ_BOOL_FIELD(opretset);
836  READ_OID_FIELD(opcollid);
837  READ_OID_FIELD(inputcollid);
839  READ_LOCATION_FIELD(location);
840 
841  READ_DONE();
842 }

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

◆ _readExtensibleNode()

static ExtensibleNode* _readExtensibleNode ( void  )
static

Definition at line 2880 of file readfuncs.c.

2881 {
2882  const ExtensibleNodeMethods *methods;
2883  ExtensibleNode *local_node;
2884  const char *extnodename;
2885 
2886  READ_TEMP_LOCALS();
2887 
2888  token = pg_strtok(&length); /* skip :extnodename */
2889  token = pg_strtok(&length); /* get extnodename */
2890 
2891  extnodename = nullable_string(token, length);
2892  if (!extnodename)
2893  elog(ERROR, "extnodename has to be supplied");
2894  methods = GetExtensibleNodeMethods(extnodename, false);
2895 
2896  local_node = (ExtensibleNode *) newNode(methods->node_size,
2898  local_node->extnodename = extnodename;
2899 
2900  /* deserialize the private fields */
2901  methods->nodeRead(local_node);
2902 
2903  READ_DONE();
2904 }
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125
#define newNode(size, tag)
Definition: nodes.h:612
@ T_ExtensibleNode
Definition: nodes.h:325
void(* nodeRead)(struct ExtensibleNode *node)
Definition: extensible.h:70
const char * extnodename
Definition: extensible.h:35

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

Referenced by parseNodeString().

◆ _readFieldSelect()

static FieldSelect* _readFieldSelect ( void  )
static

Definition at line 936 of file readfuncs.c.

937 {
939 
941  READ_INT_FIELD(fieldnum);
942  READ_OID_FIELD(resulttype);
943  READ_INT_FIELD(resulttypmod);
944  READ_OID_FIELD(resultcollid);
945 
946  READ_DONE();
947 }

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

Referenced by parseNodeString().

◆ _readFieldStore()

static FieldStore* _readFieldStore ( void  )
static

Definition at line 953 of file readfuncs.c.

954 {
956 
958  READ_NODE_FIELD(newvals);
959  READ_NODE_FIELD(fieldnums);
960  READ_OID_FIELD(resulttype);
961 
962  READ_DONE();
963 }

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

Referenced by parseNodeString().

◆ _readForeignScan()

static ForeignScan* _readForeignScan ( void  )
static

Definition at line 2301 of file readfuncs.c.

2302 {
2304 
2305  ReadCommonScan(&local_node->scan);
2306 
2307  READ_ENUM_FIELD(operation, CmdType);
2308  READ_UINT_FIELD(resultRelation);
2309  READ_OID_FIELD(fs_server);
2310  READ_NODE_FIELD(fdw_exprs);
2311  READ_NODE_FIELD(fdw_private);
2312  READ_NODE_FIELD(fdw_scan_tlist);
2313  READ_NODE_FIELD(fdw_recheck_quals);
2314  READ_BITMAPSET_FIELD(fs_relids);
2315  READ_BOOL_FIELD(fsSystemCol);
2316 
2317  READ_DONE();
2318 }
CmdType
Definition: nodes.h:720

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

Referenced by parseNodeString().

◆ _readFromExpr()

static FromExpr* _readFromExpr ( void  )
static

Definition at line 1404 of file readfuncs.c.

1405 {
1407 
1408  READ_NODE_FIELD(fromlist);
1409  READ_NODE_FIELD(quals);
1410 
1411  READ_DONE();
1412 }

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readFuncExpr()

static FuncExpr* _readFuncExpr ( void  )
static

Definition at line 771 of file readfuncs.c.

772 {
774 
775  READ_OID_FIELD(funcid);
776  READ_OID_FIELD(funcresulttype);
777  READ_BOOL_FIELD(funcretset);
778  READ_BOOL_FIELD(funcvariadic);
779  READ_ENUM_FIELD(funcformat, CoercionForm);
780  READ_OID_FIELD(funccollid);
781  READ_OID_FIELD(inputcollid);
783  READ_LOCATION_FIELD(location);
784 
785  READ_DONE();
786 }

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

◆ _readFunctionScan()

static FunctionScan* _readFunctionScan ( void  )
static

Definition at line 2209 of file readfuncs.c.

2210 {
2212 
2213  ReadCommonScan(&local_node->scan);
2214 
2216  READ_BOOL_FIELD(funcordinality);
2217 
2218  READ_DONE();
2219 }
static const struct fns functions
Definition: regcomp.c:313

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

Referenced by parseNodeString().

◆ _readGather()

static Gather* _readGather ( void  )
static

Definition at line 2616 of file readfuncs.c.

2617 {
2619 
2620  ReadCommonPlan(&local_node->plan);
2621 
2622  READ_INT_FIELD(num_workers);
2623  READ_INT_FIELD(rescan_param);
2624  READ_BOOL_FIELD(single_copy);
2625  READ_BOOL_FIELD(invisible);
2626  READ_BITMAPSET_FIELD(initParam);
2627 
2628  READ_DONE();
2629 }

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

Referenced by parseNodeString().

◆ _readGatherMerge()

static GatherMerge* _readGatherMerge ( void  )
static

Definition at line 2635 of file readfuncs.c.

2636 {
2638 
2639  ReadCommonPlan(&local_node->plan);
2640 
2641  READ_INT_FIELD(num_workers);
2642  READ_INT_FIELD(rescan_param);
2643  READ_INT_FIELD(numCols);
2644  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2645  READ_OID_ARRAY(sortOperators, local_node->numCols);
2646  READ_OID_ARRAY(collations, local_node->numCols);
2647  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2648  READ_BITMAPSET_FIELD(initParam);
2649 
2650  READ_DONE();
2651 }
#define READ_BOOL_ARRAY(fldname, len)
Definition: readfuncs.c:168

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

Referenced by parseNodeString().

◆ _readGroup()

static Group* _readGroup ( void  )
static

Definition at line 2521 of file readfuncs.c.

2522 {
2523  READ_LOCALS(Group);
2524 
2525  ReadCommonPlan(&local_node->plan);
2526 
2527  READ_INT_FIELD(numCols);
2528  READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
2529  READ_OID_ARRAY(grpOperators, local_node->numCols);
2530  READ_OID_ARRAY(grpCollations, local_node->numCols);
2531 
2532  READ_DONE();
2533 }

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

Referenced by parseNodeString().

◆ _readGroupingFunc()

static GroupingFunc* _readGroupingFunc ( void  )
static

Definition at line 711 of file readfuncs.c.

712 {
714 
716  READ_NODE_FIELD(refs);
717  READ_NODE_FIELD(cols);
718  READ_UINT_FIELD(agglevelsup);
719  READ_LOCATION_FIELD(location);
720 
721  READ_DONE();
722 }

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

Referenced by parseNodeString().

◆ _readGroupingSet()

static GroupingSet* _readGroupingSet ( void  )
static

Definition at line 361 of file readfuncs.c.

362 {
364 
366  READ_NODE_FIELD(content);
367  READ_LOCATION_FIELD(location);
368 
369  READ_DONE();
370 }
GroupingSetKind
Definition: parsenodes.h:1364

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

Referenced by parseNodeString().

◆ _readHash()

static Hash* _readHash ( void  )
static

Definition at line 2657 of file readfuncs.c.

2658 {
2659  READ_LOCALS(Hash);
2660 
2661  ReadCommonPlan(&local_node->plan);
2662 
2663  READ_NODE_FIELD(hashkeys);
2664  READ_OID_FIELD(skewTable);
2665  READ_INT_FIELD(skewColumn);
2666  READ_BOOL_FIELD(skewInherit);
2667  READ_FLOAT_FIELD(rows_total);
2668 
2669  READ_DONE();
2670 }
#define READ_FLOAT_FIELD(fldname)
Definition: readfuncs.c:109

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

Referenced by parseNodeString().

◆ _readHashJoin()

static HashJoin* _readHashJoin ( void  )
static

Definition at line 2422 of file readfuncs.c.

2423 {
2425 
2426  ReadCommonJoin(&local_node->join);
2427 
2428  READ_NODE_FIELD(hashclauses);
2429  READ_NODE_FIELD(hashoperators);
2430  READ_NODE_FIELD(hashcollations);
2431  READ_NODE_FIELD(hashkeys);
2432 
2433  READ_DONE();
2434 }
static void ReadCommonJoin(Join *local_node)
Definition: readfuncs.c:2354

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

Referenced by parseNodeString().

◆ _readIncrementalSort()

static IncrementalSort* _readIncrementalSort ( void  )
static

Definition at line 2506 of file readfuncs.c.

2507 {
2509 
2510  ReadCommonSort(&local_node->sort);
2511 
2512  READ_INT_FIELD(nPresortedCols);
2513 
2514  READ_DONE();
2515 }
static void ReadCommonSort(Sort *local_node)
Definition: readfuncs.c:2476

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

Referenced by parseNodeString().

◆ _readIndexOnlyScan()

static IndexOnlyScan* _readIndexOnlyScan ( void  )
static

Definition at line 2110 of file readfuncs.c.

2111 {
2113 
2114  ReadCommonScan(&local_node->scan);
2115 
2116  READ_OID_FIELD(indexid);
2117  READ_NODE_FIELD(indexqual);
2118  READ_NODE_FIELD(recheckqual);
2119  READ_NODE_FIELD(indexorderby);
2120  READ_NODE_FIELD(indextlist);
2121  READ_ENUM_FIELD(indexorderdir, ScanDirection);
2122 
2123  READ_DONE();
2124 }
ScanDirection
Definition: sdir.h:23

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

Referenced by parseNodeString().

◆ _readIndexScan()

static IndexScan* _readIndexScan ( void  )
static

Definition at line 2089 of file readfuncs.c.

2090 {
2092 
2093  ReadCommonScan(&local_node->scan);
2094 
2095  READ_OID_FIELD(indexid);
2096  READ_NODE_FIELD(indexqual);
2097  READ_NODE_FIELD(indexqualorig);
2098  READ_NODE_FIELD(indexorderby);
2099  READ_NODE_FIELD(indexorderbyorig);
2100  READ_NODE_FIELD(indexorderbyops);
2101  READ_ENUM_FIELD(indexorderdir, ScanDirection);
2102 
2103  READ_DONE();
2104 }

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

Referenced by parseNodeString().

◆ _readInferenceElem()

static InferenceElem* _readInferenceElem ( void  )
static

Definition at line 1336 of file readfuncs.c.

1337 {
1339 
1340  READ_NODE_FIELD(expr);
1341  READ_OID_FIELD(infercollid);
1342  READ_OID_FIELD(inferopclass);
1343 
1344  READ_DONE();
1345 }

References READ_DONE, READ_LOCALS, READ_NODE_FIELD, and READ_OID_FIELD.

Referenced by parseNodeString().

◆ _readIntoClause()

static IntoClause* _readIntoClause ( void  )
static

Definition at line 596 of file readfuncs.c.

597 {
599 
600  READ_NODE_FIELD(rel);
601  READ_NODE_FIELD(colNames);
602  READ_STRING_FIELD(accessMethod);
604  READ_ENUM_FIELD(onCommit, OnCommitAction);
605  READ_STRING_FIELD(tableSpaceName);
606  READ_NODE_FIELD(viewQuery);
607  READ_BOOL_FIELD(skipData);
608 
609  READ_DONE();
610 }
OnCommitAction
Definition: primnodes.h:48

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

Referenced by parseNodeString().

◆ _readJoin()

static Join* _readJoin ( void  )
static

Definition at line 2369 of file readfuncs.c.

2370 {
2372 
2373  ReadCommonJoin(local_node);
2374 
2375  READ_DONE();
2376 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonJoin().

Referenced by parseNodeString().

◆ _readJoinExpr()

static JoinExpr* _readJoinExpr ( void  )
static

Definition at line 1383 of file readfuncs.c.

1384 {
1386 
1387  READ_ENUM_FIELD(jointype, JoinType);
1388  READ_BOOL_FIELD(isNatural);
1389  READ_NODE_FIELD(larg);
1390  READ_NODE_FIELD(rarg);
1391  READ_NODE_FIELD(usingClause);
1392  READ_NODE_FIELD(join_using_alias);
1393  READ_NODE_FIELD(quals);
1394  READ_NODE_FIELD(alias);
1395  READ_INT_FIELD(rtindex);
1396 
1397  READ_DONE();
1398 }
JoinType
Definition: nodes.h:745

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

Referenced by parseNodeString().

◆ _readJsonBehavior()

static JsonBehavior* _readJsonBehavior ( void  )
static

Definition at line 1503 of file readfuncs.c.

1504 {
1506 
1508  READ_NODE_FIELD(default_expr);
1509 
1510  READ_DONE();
1511 }
JsonBehaviorType
Definition: primnodes.h:1401

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readJsonCoercion()

static JsonCoercion* _readJsonCoercion ( void  )
static

Definition at line 1571 of file readfuncs.c.

1572 {
1574 
1575  READ_NODE_FIELD(expr);
1576  READ_BOOL_FIELD(via_populate);
1577  READ_BOOL_FIELD(via_io);
1578  READ_OID_FIELD(collation);
1579 
1580  READ_DONE();
1581 }

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

Referenced by parseNodeString().

◆ _readJsonConstructorExpr()

static JsonConstructorExpr* _readJsonConstructorExpr ( void  )
static

Definition at line 1483 of file readfuncs.c.

1484 {
1486 
1489  READ_NODE_FIELD(func);
1490  READ_NODE_FIELD(coercion);
1491  READ_NODE_FIELD(returning);
1492  READ_BOOL_FIELD(absent_on_null);
1493  READ_BOOL_FIELD(unique);
1494  READ_LOCATION_FIELD(location);
1495 
1496  READ_DONE();
1497 }
JsonConstructorType
Definition: primnodes.h:1461

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

Referenced by parseNodeString().

◆ _readJsonExpr()

static JsonExpr* _readJsonExpr ( void  )
static

Definition at line 1517 of file readfuncs.c.

1518 {
1520 
1522  READ_NODE_FIELD(formatted_expr);
1523  READ_NODE_FIELD(result_coercion);
1525  READ_NODE_FIELD(path_spec);
1526  READ_NODE_FIELD(passing_names);
1527  READ_NODE_FIELD(passing_values);
1528  READ_NODE_FIELD(returning);
1529  READ_NODE_FIELD(on_empty);
1530  READ_NODE_FIELD(on_error);
1531  READ_NODE_FIELD(coercions);
1532  READ_ENUM_FIELD(wrapper, JsonWrapper);
1533  READ_BOOL_FIELD(omit_quotes);
1534  READ_LOCATION_FIELD(location);
1535 
1536  READ_DONE();
1537 }
static char format
JsonWrapper
Definition: primnodes.h:1418
JsonExprOp
Definition: primnodes.h:1362

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

Referenced by parseNodeString().

◆ _readJsonFormat()

static JsonFormat* _readJsonFormat ( void  )
static

Definition at line 1438 of file readfuncs.c.

1439 {
1441 
1444  READ_LOCATION_FIELD(location);
1445 
1446  READ_DONE();
1447 }
Datum format_type(PG_FUNCTION_ARGS)
Definition: format_type.c:60
int32 encoding
Definition: pg_database.h:41
JsonFormatType
Definition: primnodes.h:1386
JsonEncoding
Definition: primnodes.h:1374

References encoding, format_type(), READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_LOCATION_FIELD.

Referenced by parseNodeString().

◆ _readJsonIsPredicate()

static JsonIsPredicate* _readJsonIsPredicate ( )
static

Definition at line 1609 of file readfuncs.c.

1610 {
1612 
1613  READ_NODE_FIELD(expr);
1615  READ_ENUM_FIELD(item_type, JsonValueType);
1616  READ_BOOL_FIELD(unique_keys);
1617  READ_LOCATION_FIELD(location);
1618 
1619  READ_DONE();
1620 }
JsonValueType
Definition: primnodes.h:1493

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

Referenced by parseNodeString().

◆ _readJsonItemCoercions()

static JsonItemCoercions* _readJsonItemCoercions ( void  )
static

Definition at line 1587 of file readfuncs.c.

1588 {
1590 
1591  READ_NODE_FIELD(null);
1592  READ_NODE_FIELD(string);
1594  READ_NODE_FIELD(boolean);
1596  READ_NODE_FIELD(time);
1597  READ_NODE_FIELD(timetz);
1599  READ_NODE_FIELD(timestamptz);
1600  READ_NODE_FIELD(composite);
1601 
1602  READ_DONE();
1603 }
long date
Definition: pgtypes_date.h:9
int64 timestamp

References READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readJsonReturning()

static JsonReturning* _readJsonReturning ( void  )
static

Definition at line 1453 of file readfuncs.c.

1454 {
1456 
1458  READ_OID_FIELD(typid);
1459  READ_INT_FIELD(typmod);
1460 
1461  READ_DONE();
1462 }

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

Referenced by parseNodeString().

◆ _readJsonTableParent()

static JsonTableParent* _readJsonTableParent ( void  )
static

Definition at line 1540 of file readfuncs.c.

1541 {
1543 
1544  READ_NODE_FIELD(path);
1546  READ_NODE_FIELD(child);
1547  READ_BOOL_FIELD(outerJoin);
1548  READ_INT_FIELD(colMin);
1549  READ_INT_FIELD(colMax);
1550  READ_BOOL_FIELD(errorOnError);
1551 
1552  READ_DONE();
1553 }
const char * name
Definition: encode.c:561

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

Referenced by parseNodeString().

◆ _readJsonTableSibling()

static JsonTableSibling* _readJsonTableSibling ( void  )
static

Definition at line 1556 of file readfuncs.c.

1557 {
1559 
1560  READ_NODE_FIELD(larg);
1561  READ_NODE_FIELD(rarg);
1562  READ_BOOL_FIELD(cross);
1563 
1564  READ_DONE();
1565 }

References READ_BOOL_FIELD, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readJsonValueExpr()

static JsonValueExpr* _readJsonValueExpr ( void  )
static

Definition at line 1468 of file readfuncs.c.

1469 {
1471 
1472  READ_NODE_FIELD(raw_expr);
1473  READ_NODE_FIELD(formatted_expr);
1475 
1476  READ_DONE();
1477 }

References format, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readLimit()

static Limit* _readLimit ( void  )
static

Definition at line 2715 of file readfuncs.c.

2716 {
2717  READ_LOCALS(Limit);
2718 
2719  ReadCommonPlan(&local_node->plan);
2720 
2721  READ_NODE_FIELD(limitOffset);
2722  READ_NODE_FIELD(limitCount);
2723  READ_ENUM_FIELD(limitOption, LimitOption);
2724  READ_INT_FIELD(uniqNumCols);
2725  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->uniqNumCols);
2726  READ_OID_ARRAY(uniqOperators, local_node->uniqNumCols);
2727  READ_OID_ARRAY(uniqCollations, local_node->uniqNumCols);
2728 
2729  READ_DONE();
2730 }
LimitOption
Definition: nodes.h:884

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

Referenced by parseNodeString().

◆ _readLockRows()

static LockRows* _readLockRows ( void  )
static

Definition at line 2699 of file readfuncs.c.

2700 {
2702 
2703  ReadCommonPlan(&local_node->plan);
2704 
2705  READ_NODE_FIELD(rowMarks);
2706  READ_INT_FIELD(epqParam);
2707 
2708  READ_DONE();
2709 }

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

Referenced by parseNodeString().

◆ _readMaterial()

static Material* _readMaterial ( void  )
static

Definition at line 2440 of file readfuncs.c.

2441 {
2443 
2444  ReadCommonPlan(&local_node->plan);
2445 
2446  READ_DONE();
2447 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

◆ _readMemoize()

static Memoize* _readMemoize ( void  )
static

Definition at line 2453 of file readfuncs.c.

2454 {
2456 
2457  ReadCommonPlan(&local_node->plan);
2458 
2459  READ_INT_FIELD(numKeys);
2460  READ_OID_ARRAY(hashOperators, local_node->numKeys);
2461  READ_OID_ARRAY(collations, local_node->numKeys);
2462  READ_NODE_FIELD(param_exprs);
2463  READ_BOOL_FIELD(singlerow);
2464  READ_BOOL_FIELD(binary_mode);
2465  READ_UINT_FIELD(est_entries);
2466  READ_BITMAPSET_FIELD(keyparamids);
2467 
2468  READ_DONE();
2469 }

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

Referenced by parseNodeString().

◆ _readMergeAction()

static MergeAction* _readMergeAction ( void  )
static

Definition at line 500 of file readfuncs.c.

501 {
503 
504  READ_BOOL_FIELD(matched);
505  READ_ENUM_FIELD(commandType, CmdType);
506  READ_ENUM_FIELD(override, OverridingKind);
507  READ_NODE_FIELD(qual);
508  READ_NODE_FIELD(targetList);
509  READ_NODE_FIELD(updateColnos);
510 
511  READ_DONE();
512 }
OverridingKind
Definition: parsenodes.h:33

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

Referenced by parseNodeString().

◆ _readMergeAppend()

static MergeAppend* _readMergeAppend ( void  )
static

Definition at line 1961 of file readfuncs.c.

1962 {
1964 
1965  ReadCommonPlan(&local_node->plan);
1966 
1967  READ_BITMAPSET_FIELD(apprelids);
1968  READ_NODE_FIELD(mergeplans);
1969  READ_INT_FIELD(numCols);
1970  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
1971  READ_OID_ARRAY(sortOperators, local_node->numCols);
1972  READ_OID_ARRAY(collations, local_node->numCols);
1973  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
1974  READ_NODE_FIELD(part_prune_info);
1975 
1976  READ_DONE();
1977 }

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

Referenced by parseNodeString().

◆ _readMergeJoin()

static MergeJoin* _readMergeJoin ( void  )
static

Definition at line 2397 of file readfuncs.c.

2398 {
2399  int numCols;
2400 
2402 
2403  ReadCommonJoin(&local_node->join);
2404 
2405  READ_BOOL_FIELD(skip_mark_restore);
2406  READ_NODE_FIELD(mergeclauses);
2407 
2408  numCols = list_length(local_node->mergeclauses);
2409 
2410  READ_OID_ARRAY(mergeFamilies, numCols);
2411  READ_OID_ARRAY(mergeCollations, numCols);
2412  READ_INT_ARRAY(mergeStrategies, numCols);
2413  READ_BOOL_ARRAY(mergeNullsFirst, numCols);
2414 
2415  READ_DONE();
2416 }
static int list_length(const List *l)
Definition: pg_list.h:150
#define READ_INT_ARRAY(fldname, len)
Definition: readfuncs.c:163

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

Referenced by parseNodeString().

◆ _readMergeWhenClause()

static MergeWhenClause* _readMergeWhenClause ( void  )
static

Definition at line 482 of file readfuncs.c.

483 {
485 
486  READ_BOOL_FIELD(matched);
487  READ_ENUM_FIELD(commandType, CmdType);
488  READ_NODE_FIELD(condition);
489  READ_NODE_FIELD(targetList);
491  READ_ENUM_FIELD(override, OverridingKind);
492 
493  READ_DONE();
494 }
static Datum values[MAXATTR]
Definition: bootstrap.c:156

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

Referenced by parseNodeString().

◆ _readMinMaxExpr()

static MinMaxExpr* _readMinMaxExpr ( void  )
static

Definition at line 1171 of file readfuncs.c.

1172 {
1174 
1175  READ_OID_FIELD(minmaxtype);
1176  READ_OID_FIELD(minmaxcollid);
1177  READ_OID_FIELD(inputcollid);
1180  READ_LOCATION_FIELD(location);
1181 
1182  READ_DONE();
1183 }
MinMaxOp
Definition: primnodes.h:1259

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

◆ _readModifyTable()

static ModifyTable* _readModifyTable ( void  )
static

Definition at line 1907 of file readfuncs.c.

1908 {
1910 
1911  ReadCommonPlan(&local_node->plan);
1912 
1913  READ_ENUM_FIELD(operation, CmdType);
1914  READ_BOOL_FIELD(canSetTag);
1915  READ_UINT_FIELD(nominalRelation);
1916  READ_UINT_FIELD(rootRelation);
1917  READ_BOOL_FIELD(partColsUpdated);
1918  READ_NODE_FIELD(resultRelations);
1919  READ_NODE_FIELD(updateColnosLists);
1920  READ_NODE_FIELD(withCheckOptionLists);
1921  READ_NODE_FIELD(returningLists);
1922  READ_NODE_FIELD(fdwPrivLists);
1923  READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
1924  READ_NODE_FIELD(rowMarks);
1925  READ_INT_FIELD(epqParam);
1926  READ_ENUM_FIELD(onConflictAction, OnConflictAction);
1927  READ_NODE_FIELD(arbiterIndexes);
1928  READ_NODE_FIELD(onConflictSet);
1929  READ_NODE_FIELD(onConflictCols);
1930  READ_NODE_FIELD(onConflictWhere);
1931  READ_UINT_FIELD(exclRelRTI);
1932  READ_NODE_FIELD(exclRelTlist);
1933  READ_NODE_FIELD(mergeActionLists);
1934 
1935  READ_DONE();
1936 }
OnConflictAction
Definition: nodes.h:871

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

◆ _readNamedArgExpr()

static NamedArgExpr* _readNamedArgExpr ( void  )
static

Definition at line 792 of file readfuncs.c.

793 {
795 
798  READ_INT_FIELD(argnumber);
799  READ_LOCATION_FIELD(location);
800 
801  READ_DONE();
802 }

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

Referenced by parseNodeString().

◆ _readNamedTuplestoreScan()

static NamedTuplestoreScan* _readNamedTuplestoreScan ( void  )
static

Definition at line 2271 of file readfuncs.c.

2272 {
2274 
2275  ReadCommonScan(&local_node->scan);
2276 
2277  READ_STRING_FIELD(enrname);
2278 
2279  READ_DONE();
2280 }

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

Referenced by parseNodeString().

◆ _readNestLoop()

static NestLoop* _readNestLoop ( void  )
static

Definition at line 2382 of file readfuncs.c.

2383 {
2385 
2386  ReadCommonJoin(&local_node->join);
2387 
2388  READ_NODE_FIELD(nestParams);
2389 
2390  READ_DONE();
2391 }

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

Referenced by parseNodeString().

◆ _readNestLoopParam()

static NestLoopParam* _readNestLoopParam ( void  )
static

Definition at line 2736 of file readfuncs.c.

2737 {
2739 
2740  READ_INT_FIELD(paramno);
2741  READ_NODE_FIELD(paramval);
2742 
2743  READ_DONE();
2744 }

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readNextValueExpr()

static NextValueExpr* _readNextValueExpr ( void  )
static

Definition at line 1322 of file readfuncs.c.

1323 {
1325 
1326  READ_OID_FIELD(seqid);
1327  READ_OID_FIELD(typeId);
1328 
1329  READ_DONE();
1330 }

References READ_DONE, READ_LOCALS, and READ_OID_FIELD.

Referenced by parseNodeString().

◆ _readNotifyStmt()

static NotifyStmt* _readNotifyStmt ( void  )
static

Definition at line 298 of file readfuncs.c.

299 {
301 
302  READ_STRING_FIELD(conditionname);
303  READ_STRING_FIELD(payload);
304 
305  READ_DONE();
306 }

References READ_DONE, READ_LOCALS, and READ_STRING_FIELD.

Referenced by parseNodeString().

◆ _readNullIfExpr()

static NullIfExpr* _readNullIfExpr ( void  )
static

Definition at line 848 of file readfuncs.c.

849 {
851 
852  READ_OID_FIELD(opno);
853  READ_OID_FIELD(opfuncid);
854  READ_OID_FIELD(opresulttype);
855  READ_BOOL_FIELD(opretset);
856  READ_OID_FIELD(opcollid);
857  READ_OID_FIELD(inputcollid);
859  READ_LOCATION_FIELD(location);
860 
861  READ_DONE();
862 }

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

◆ _readNullTest()

static NullTest* _readNullTest ( void  )
static

Definition at line 1226 of file readfuncs.c.

1227 {
1229 
1231  READ_ENUM_FIELD(nulltesttype, NullTestType);
1232  READ_BOOL_FIELD(argisrow);
1233  READ_LOCATION_FIELD(location);
1234 
1235  READ_DONE();
1236 }
NullTestType
Definition: primnodes.h:1631

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

Referenced by parseNodeString().

◆ _readOnConflictExpr()

static OnConflictExpr* _readOnConflictExpr ( void  )
static

Definition at line 1418 of file readfuncs.c.

1419 {
1421 
1423  READ_NODE_FIELD(arbiterElems);
1424  READ_NODE_FIELD(arbiterWhere);
1425  READ_OID_FIELD(constraint);
1426  READ_NODE_FIELD(onConflictSet);
1427  READ_NODE_FIELD(onConflictWhere);
1428  READ_INT_FIELD(exclRelIndex);
1429  READ_NODE_FIELD(exclRelTlist);
1430 
1431  READ_DONE();
1432 }

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

Referenced by parseNodeString().

◆ _readOpExpr()

static OpExpr* _readOpExpr ( void  )
static

Definition at line 808 of file readfuncs.c.

809 {
811 
812  READ_OID_FIELD(opno);
813  READ_OID_FIELD(opfuncid);
814  READ_OID_FIELD(opresulttype);
815  READ_BOOL_FIELD(opretset);
816  READ_OID_FIELD(opcollid);
817  READ_OID_FIELD(inputcollid);
819  READ_LOCATION_FIELD(location);
820 
821  READ_DONE();
822 }

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

◆ _readParam()

static Param* _readParam ( void  )
static

Definition at line 662 of file readfuncs.c.

663 {
665 
666  READ_ENUM_FIELD(paramkind, ParamKind);
667  READ_INT_FIELD(paramid);
668  READ_OID_FIELD(paramtype);
669  READ_INT_FIELD(paramtypmod);
670  READ_OID_FIELD(paramcollid);
671  READ_LOCATION_FIELD(location);
672 
673  READ_DONE();
674 }
ParamKind
Definition: primnodes.h:298

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

Referenced by parseNodeString().

◆ _readPartitionBoundSpec()

static PartitionBoundSpec* _readPartitionBoundSpec ( void  )
static

Definition at line 2910 of file readfuncs.c.

2911 {
2913 
2914  READ_CHAR_FIELD(strategy);
2915  READ_BOOL_FIELD(is_default);
2916  READ_INT_FIELD(modulus);
2917  READ_INT_FIELD(remainder);
2918  READ_NODE_FIELD(listdatums);
2919  READ_NODE_FIELD(lowerdatums);
2920  READ_NODE_FIELD(upperdatums);
2921  READ_LOCATION_FIELD(location);
2922 
2923  READ_DONE();
2924 }

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

Referenced by parseNodeString().

◆ _readPartitionedRelPruneInfo()

static PartitionedRelPruneInfo* _readPartitionedRelPruneInfo ( void  )
static

Definition at line 2778 of file readfuncs.c.

2779 {
2781 
2782  READ_UINT_FIELD(rtindex);
2783  READ_BITMAPSET_FIELD(present_parts);
2784  READ_INT_FIELD(nparts);
2785  READ_INT_ARRAY(subplan_map, local_node->nparts);
2786  READ_INT_ARRAY(subpart_map, local_node->nparts);
2787  READ_OID_ARRAY(relid_map, local_node->nparts);
2788  READ_NODE_FIELD(initial_pruning_steps);
2789  READ_NODE_FIELD(exec_pruning_steps);
2790  READ_BITMAPSET_FIELD(execparamids);
2791 
2792  READ_DONE();
2793 }

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

Referenced by parseNodeString().

◆ _readPartitionPruneInfo()

static PartitionPruneInfo* _readPartitionPruneInfo ( void  )
static

Definition at line 2767 of file readfuncs.c.

2768 {
2770 
2771  READ_NODE_FIELD(prune_infos);
2772  READ_BITMAPSET_FIELD(other_subplans);
2773 
2774  READ_DONE();
2775 }

References READ_BITMAPSET_FIELD, READ_DONE, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readPartitionPruneStepCombine()

static PartitionPruneStepCombine* _readPartitionPruneStepCombine ( void  )
static

Definition at line 2810 of file readfuncs.c.

2811 {
2813 
2814  READ_INT_FIELD(step.step_id);
2816  READ_NODE_FIELD(source_stepids);
2817 
2818  READ_DONE();
2819 }
PartitionPruneCombineOp
Definition: plannodes.h:1505

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

Referenced by parseNodeString().

◆ _readPartitionPruneStepOp()

static PartitionPruneStepOp* _readPartitionPruneStepOp ( void  )
static

Definition at line 2796 of file readfuncs.c.

2797 {
2799 
2800  READ_INT_FIELD(step.step_id);
2801  READ_INT_FIELD(opstrategy);
2802  READ_NODE_FIELD(exprs);
2803  READ_NODE_FIELD(cmpfns);
2804  READ_BITMAPSET_FIELD(nullkeys);
2805 
2806  READ_DONE();
2807 }

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

Referenced by parseNodeString().

◆ _readPartitionRangeDatum()

static PartitionRangeDatum* _readPartitionRangeDatum ( void  )
static

Definition at line 2930 of file readfuncs.c.

2931 {
2933 
2936  READ_LOCATION_FIELD(location);
2937 
2938  READ_DONE();
2939 }
static struct @151 value
PartitionRangeDatumKind
Definition: parsenodes.h:872

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

Referenced by parseNodeString().

◆ _readPlan()

static Plan* _readPlan ( void  )
static

Definition at line 1866 of file readfuncs.c.

1867 {
1869 
1870  ReadCommonPlan(local_node);
1871 
1872  READ_DONE();
1873 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

◆ _readPlanInvalItem()

static PlanInvalItem* _readPlanInvalItem ( void  )
static

Definition at line 2825 of file readfuncs.c.

2826 {
2828 
2829  READ_INT_FIELD(cacheId);
2830  READ_UINT_FIELD(hashValue);
2831 
2832  READ_DONE();
2833 }

References READ_DONE, READ_INT_FIELD, READ_LOCALS, and READ_UINT_FIELD.

Referenced by parseNodeString().

◆ _readPlannedStmt()

static PlannedStmt* _readPlannedStmt ( void  )
static

Definition at line 1806 of file readfuncs.c.

1807 {
1809 
1810  READ_ENUM_FIELD(commandType, CmdType);
1811  READ_UINT64_FIELD(queryId);
1812  READ_BOOL_FIELD(hasReturning);
1813  READ_BOOL_FIELD(hasModifyingCTE);
1814  READ_BOOL_FIELD(canSetTag);
1815  READ_BOOL_FIELD(transientPlan);
1816  READ_BOOL_FIELD(dependsOnRole);
1817  READ_BOOL_FIELD(parallelModeNeeded);
1818  READ_INT_FIELD(jitFlags);
1819  READ_NODE_FIELD(planTree);
1820  READ_NODE_FIELD(rtable);
1821  READ_NODE_FIELD(resultRelations);
1822  READ_NODE_FIELD(appendRelations);
1823  READ_NODE_FIELD(subplans);
1824  READ_BITMAPSET_FIELD(rewindPlanIDs);
1825  READ_NODE_FIELD(rowMarks);
1826  READ_NODE_FIELD(relationOids);
1827  READ_NODE_FIELD(invalItems);
1828  READ_NODE_FIELD(paramExecTypes);
1829  READ_NODE_FIELD(utilityStmt);
1830  READ_LOCATION_FIELD(stmt_location);
1831  READ_INT_FIELD(stmt_len);
1832 
1833  READ_DONE();
1834 }

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

Referenced by parseNodeString().

◆ _readPlanRowMark()

static PlanRowMark* _readPlanRowMark ( void  )
static

Definition at line 2750 of file readfuncs.c.

2751 {
2753 
2754  READ_UINT_FIELD(rti);
2755  READ_UINT_FIELD(prti);
2756  READ_UINT_FIELD(rowmarkId);
2757  READ_ENUM_FIELD(markType, RowMarkType);
2758  READ_INT_FIELD(allMarkTypes);
2760  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
2761  READ_BOOL_FIELD(isParent);
2762 
2763  READ_DONE();
2764 }
LockWaitPolicy
Definition: lockoptions.h:37
LockClauseStrength
Definition: lockoptions.h:22
RowMarkType
Definition: plannodes.h:1297

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

Referenced by parseNodeString().

◆ _readProjectSet()

static ProjectSet* _readProjectSet ( void  )
static

Definition at line 1894 of file readfuncs.c.

1895 {
1897 
1898  ReadCommonPlan(&local_node->plan);
1899 
1900  READ_DONE();
1901 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonPlan().

Referenced by parseNodeString().

◆ _readQuery()

static Query* _readQuery ( void  )
static

Definition at line 245 of file readfuncs.c.

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

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

Referenced by parseNodeString().

◆ _readRangeTblEntry()

static RangeTblEntry* _readRangeTblEntry ( void  )
static

Definition at line 1657 of file readfuncs.c.

1658 {
1660 
1661  /* put alias + eref first to make dump more legible */
1662  READ_NODE_FIELD(alias);
1663  READ_NODE_FIELD(eref);
1664  READ_ENUM_FIELD(rtekind, RTEKind);
1665 
1666  switch (local_node->rtekind)
1667  {
1668  case RTE_RELATION:
1669  READ_OID_FIELD(relid);
1670  READ_CHAR_FIELD(relkind);
1671  READ_INT_FIELD(rellockmode);
1672  READ_NODE_FIELD(tablesample);
1673  break;
1674  case RTE_SUBQUERY:
1675  READ_NODE_FIELD(subquery);
1676  READ_BOOL_FIELD(security_barrier);
1677  break;
1678  case RTE_JOIN:
1679  READ_ENUM_FIELD(jointype, JoinType);
1680  READ_INT_FIELD(joinmergedcols);
1681  READ_NODE_FIELD(joinaliasvars);
1682  READ_NODE_FIELD(joinleftcols);
1683  READ_NODE_FIELD(joinrightcols);
1684  READ_NODE_FIELD(join_using_alias);
1685  break;
1686  case RTE_FUNCTION:
1688  READ_BOOL_FIELD(funcordinality);
1689  break;
1690  case RTE_TABLEFUNC:
1691  READ_NODE_FIELD(tablefunc);
1692  /* The RTE must have a copy of the column type info, if any */
1693  if (local_node->tablefunc)
1694  {
1695  TableFunc *tf = local_node->tablefunc;
1696 
1697  local_node->coltypes = tf->coltypes;
1698  local_node->coltypmods = tf->coltypmods;
1699  local_node->colcollations = tf->colcollations;
1700  }
1701  break;
1702  case RTE_VALUES:
1703  READ_NODE_FIELD(values_lists);
1704  READ_NODE_FIELD(coltypes);
1705  READ_NODE_FIELD(coltypmods);
1706  READ_NODE_FIELD(colcollations);
1707  break;
1708  case RTE_CTE:
1709  READ_STRING_FIELD(ctename);
1710  READ_UINT_FIELD(ctelevelsup);
1711  READ_BOOL_FIELD(self_reference);
1712  READ_NODE_FIELD(coltypes);
1713  READ_NODE_FIELD(coltypmods);
1714  READ_NODE_FIELD(colcollations);
1715  break;
1716  case RTE_NAMEDTUPLESTORE:
1717  READ_STRING_FIELD(enrname);
1718  READ_FLOAT_FIELD(enrtuples);
1719  READ_OID_FIELD(relid);
1720  READ_NODE_FIELD(coltypes);
1721  READ_NODE_FIELD(coltypmods);
1722  READ_NODE_FIELD(colcollations);
1723  break;
1724  case RTE_RESULT:
1725  /* no extra fields */
1726  break;
1727  default:
1728  elog(ERROR, "unrecognized RTE kind: %d",
1729  (int) local_node->rtekind);
1730  break;
1731  }
1732 
1733  READ_BOOL_FIELD(lateral);
1734  READ_BOOL_FIELD(inh);
1735  READ_BOOL_FIELD(inFromCl);
1736  READ_UINT_FIELD(requiredPerms);
1737  READ_OID_FIELD(checkAsUser);
1738  READ_BITMAPSET_FIELD(selectedCols);
1739  READ_BITMAPSET_FIELD(insertedCols);
1740  READ_BITMAPSET_FIELD(updatedCols);
1741  READ_BITMAPSET_FIELD(extraUpdatedCols);
1742  READ_NODE_FIELD(securityQuals);
1743 
1744  READ_DONE();
1745 }
RTEKind
Definition: parsenodes.h:998
@ RTE_JOIN
Definition: parsenodes.h:1001
@ RTE_CTE
Definition: parsenodes.h:1005
@ RTE_NAMEDTUPLESTORE
Definition: parsenodes.h:1006
@ RTE_VALUES
Definition: parsenodes.h:1004
@ RTE_SUBQUERY
Definition: parsenodes.h:1000
@ RTE_RESULT
Definition: parsenodes.h:1007
@ RTE_FUNCTION
Definition: parsenodes.h:1002
@ RTE_TABLEFUNC
Definition: parsenodes.h:1003
@ RTE_RELATION
Definition: parsenodes.h:999
List * coltypmods
Definition: primnodes.h:111
List * coltypes
Definition: primnodes.h:110
List * colcollations
Definition: primnodes.h:112

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

Referenced by parseNodeString().

◆ _readRangeTblFunction()

static RangeTblFunction* _readRangeTblFunction ( void  )
static

Definition at line 1751 of file readfuncs.c.

1752 {
1754 
1755  READ_NODE_FIELD(funcexpr);
1756  READ_INT_FIELD(funccolcount);
1757  READ_NODE_FIELD(funccolnames);
1758  READ_NODE_FIELD(funccoltypes);
1759  READ_NODE_FIELD(funccoltypmods);
1760  READ_NODE_FIELD(funccolcollations);
1761  READ_BITMAPSET_FIELD(funcparams);
1762 
1763  READ_DONE();
1764 }

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

Referenced by parseNodeString().

◆ _readRangeTblRef()

static RangeTblRef* _readRangeTblRef ( void  )
static

Definition at line 1370 of file readfuncs.c.

1371 {
1373 
1374  READ_INT_FIELD(rtindex);
1375 
1376  READ_DONE();
1377 }

References READ_DONE, READ_INT_FIELD, and READ_LOCALS.

Referenced by parseNodeString().

◆ _readRangeVar()

static RangeVar* _readRangeVar ( void  )
static

Definition at line 551 of file readfuncs.c.

552 {
554 
555  local_node->catalogname = NULL; /* not currently saved in output format */
556 
557  READ_STRING_FIELD(schemaname);
559  READ_BOOL_FIELD(inh);
560  READ_CHAR_FIELD(relpersistence);
561  READ_NODE_FIELD(alias);
562  READ_LOCATION_FIELD(location);
563 
564  READ_DONE();
565 }
NameData relname
Definition: pg_class.h:38

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

Referenced by parseNodeString().

◆ _readRecursiveUnion()

static RecursiveUnion* _readRecursiveUnion ( void  )
static

Definition at line 1983 of file readfuncs.c.

1984 {
1986 
1987  ReadCommonPlan(&local_node->plan);
1988 
1989  READ_INT_FIELD(wtParam);
1990  READ_INT_FIELD(numCols);
1991  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
1992  READ_OID_ARRAY(dupOperators, local_node->numCols);
1993  READ_OID_ARRAY(dupCollations, local_node->numCols);
1994  READ_LONG_FIELD(numGroups);
1995 
1996  READ_DONE();
1997 }

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

Referenced by parseNodeString().

◆ _readRelabelType()

static RelabelType* _readRelabelType ( void  )
static

Definition at line 969 of file readfuncs.c.

970 {
972 
974  READ_OID_FIELD(resulttype);
975  READ_INT_FIELD(resulttypmod);
976  READ_OID_FIELD(resultcollid);
977  READ_ENUM_FIELD(relabelformat, CoercionForm);
978  READ_LOCATION_FIELD(location);
979 
980  READ_DONE();
981 }

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

◆ _readResult()

static Result* _readResult ( void  )
static

Definition at line 1879 of file readfuncs.c.

1880 {
1882 
1883  ReadCommonPlan(&local_node->plan);
1884 
1885  READ_NODE_FIELD(resconstantqual);
1886 
1887  READ_DONE();
1888 }

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

Referenced by parseNodeString().

◆ _readRowCompareExpr()

static RowCompareExpr* _readRowCompareExpr ( void  )
static

Definition at line 1137 of file readfuncs.c.

1138 {
1140 
1142  READ_NODE_FIELD(opnos);
1143  READ_NODE_FIELD(opfamilies);
1144  READ_NODE_FIELD(inputcollids);
1145  READ_NODE_FIELD(largs);
1146  READ_NODE_FIELD(rargs);
1147 
1148  READ_DONE();
1149 }
RowCompareType
Definition: primnodes.h:1222

References READ_DONE, READ_ENUM_FIELD, READ_LOCALS, and READ_NODE_FIELD.

Referenced by parseNodeString().

◆ _readRowExpr()

static RowExpr* _readRowExpr ( void  )
static

Definition at line 1120 of file readfuncs.c.

1121 {
1123 
1125  READ_OID_FIELD(row_typeid);
1126  READ_ENUM_FIELD(row_format, CoercionForm);
1127  READ_NODE_FIELD(colnames);
1128  READ_LOCATION_FIELD(location);
1129 
1130  READ_DONE();
1131 }

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

◆ _readRowMarkClause()

static RowMarkClause* _readRowMarkClause ( void  )
static

Definition at line 403 of file readfuncs.c.

404 {
406 
407  READ_UINT_FIELD(rti);
409  READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
410  READ_BOOL_FIELD(pushedDown);
411 
412  READ_DONE();
413 }

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

Referenced by parseNodeString().

◆ _readSampleScan()

static SampleScan* _readSampleScan ( void  )
static

Definition at line 2074 of file readfuncs.c.

2075 {
2077 
2078  ReadCommonScan(&local_node->scan);
2079 
2080  READ_NODE_FIELD(tablesample);
2081 
2082  READ_DONE();
2083 }

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

Referenced by parseNodeString().

◆ _readScalarArrayOpExpr()

static ScalarArrayOpExpr* _readScalarArrayOpExpr ( void  )
static

Definition at line 868 of file readfuncs.c.

869 {
871 
872  READ_OID_FIELD(opno);
873  READ_OID_FIELD(opfuncid);
874  READ_OID_FIELD(hashfuncid);
875  READ_OID_FIELD(negfuncid);
876  READ_BOOL_FIELD(useOr);
877  READ_OID_FIELD(inputcollid);
879  READ_LOCATION_FIELD(location);
880 
881  READ_DONE();
882 }

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

◆ _readScan()

static Scan* _readScan ( void  )
static

Definition at line 2048 of file readfuncs.c.

2049 {
2051 
2052  ReadCommonScan(local_node);
2053 
2054  READ_DONE();
2055 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

◆ _readSeqScan()

static SeqScan* _readSeqScan ( void  )
static

Definition at line 2061 of file readfuncs.c.

2062 {
2064 
2065  ReadCommonScan(&local_node->scan);
2066 
2067  READ_DONE();
2068 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonScan().

Referenced by parseNodeString().

◆ _readSetOp()

static SetOp* _readSetOp ( void  )
static

Definition at line 2676 of file readfuncs.c.

2677 {
2678  READ_LOCALS(SetOp);
2679 
2680  ReadCommonPlan(&local_node->plan);
2681 
2682  READ_ENUM_FIELD(cmd, SetOpCmd);
2683  READ_ENUM_FIELD(strategy, SetOpStrategy);
2684  READ_INT_FIELD(numCols);
2685  READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
2686  READ_OID_ARRAY(dupOperators, local_node->numCols);
2687  READ_OID_ARRAY(dupCollations, local_node->numCols);
2688  READ_INT_FIELD(flagColIdx);
2689  READ_INT_FIELD(firstFlag);
2690  READ_LONG_FIELD(numGroups);
2691 
2692  READ_DONE();
2693 }
SetOpCmd
Definition: nodes.h:851
SetOpStrategy
Definition: nodes.h:859

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

◆ _readSetOperationStmt()

static SetOperationStmt* _readSetOperationStmt ( void  )
static

Definition at line 518 of file readfuncs.c.

519 {
521 
523  READ_BOOL_FIELD(all);
524  READ_NODE_FIELD(larg);
525  READ_NODE_FIELD(rarg);
526  READ_NODE_FIELD(colTypes);
527  READ_NODE_FIELD(colTypmods);
528  READ_NODE_FIELD(colCollations);
529  READ_NODE_FIELD(groupClauses);
530 
531  READ_DONE();
532 }
SetOperation
Definition: parsenodes.h:1990

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

Referenced by parseNodeString().

◆ _readSetToDefault()

static SetToDefault* _readSetToDefault ( void  )
static

Definition at line 1291 of file readfuncs.c.

1292 {
1294 
1295  READ_OID_FIELD(typeId);
1296  READ_INT_FIELD(typeMod);
1297  READ_OID_FIELD(collation);
1298  READ_LOCATION_FIELD(location);
1299 
1300  READ_DONE();
1301 }

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

Referenced by parseNodeString().

◆ _readSort()

static Sort* _readSort ( void  )
static

Definition at line 2493 of file readfuncs.c.

2494 {
2496 
2497  ReadCommonSort(local_node);
2498 
2499  READ_DONE();
2500 }

References READ_DONE, READ_LOCALS_NO_FIELDS, and ReadCommonSort().

Referenced by parseNodeString().

◆ _readSortGroupClause()

static SortGroupClause* _readSortGroupClause ( void  )
static

Definition at line 344 of file readfuncs.c.

345 {
347 
348  READ_UINT_FIELD(tleSortGroupRef);
349  READ_OID_FIELD(eqop);
350  READ_OID_FIELD(sortop);
351  READ_BOOL_FIELD(nulls_first);
352  READ_BOOL_FIELD(hashable);
353 
354  READ_DONE();
355 }

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

Referenced by parseNodeString().

◆ _readSQLValueFunction()

static SQLValueFunction* _readSQLValueFunction ( void  )
static

Definition at line 1189 of file readfuncs.c.

1190 {
1192 
1195  READ_INT_FIELD(typmod);
1196  READ_LOCATION_FIELD(location);
1197 
1198  READ_DONE();
1199 }
SQLValueFunctionOp
Definition: primnodes.h:1287

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

Referenced by parseNodeString().

◆ _readSubLink()

static SubLink* _readSubLink ( void  )
static

Definition at line 914 of file readfuncs.c.

915 {
917 
918  READ_ENUM_FIELD(subLinkType, SubLinkType);
919  READ_INT_FIELD(subLinkId);
920  READ_NODE_FIELD(testexpr);
921  READ_NODE_FIELD(operName);
922  READ_NODE_FIELD(subselect);
923  READ_LOCATION_FIELD(location);
924 
925  READ_DONE();
926 }
SubLinkType
Definition: primnodes.h:803

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

Referenced by parseNodeString().

◆ _readSubPlan()

static SubPlan* _readSubPlan ( void  )
static

Definition at line 2839 of file readfuncs.c.

2840 {
2842 
2843  READ_ENUM_FIELD(subLinkType, SubLinkType);
2844  READ_NODE_FIELD(testexpr);
2845  READ_NODE_FIELD(paramIds);
2846  READ_INT_FIELD(plan_id);
2847  READ_STRING_FIELD(plan_name);
2848  READ_OID_FIELD(firstColType);
2849  READ_INT_FIELD(firstColTypmod);
2850  READ_OID_FIELD(firstColCollation);
2851  READ_BOOL_FIELD(useHashTable);
2852  READ_BOOL_FIELD(unknownEqFalse);
2853  READ_BOOL_FIELD(parallel_safe);
2854  READ_NODE_FIELD(setParam);
2855  READ_NODE_FIELD(parParam);
2857  READ_FLOAT_FIELD(startup_cost);
2858  READ_FLOAT_FIELD(per_call_cost);
2859 
2860  READ_DONE();
2861 }

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

◆ _readSubqueryScan()

static SubqueryScan* _readSubqueryScan ( void  )
static

Definition at line 2193 of file readfuncs.c.

2194 {
2196 
2197  ReadCommonScan(&local_node->scan);
2198 
2199  READ_NODE_FIELD(subplan);
2200  READ_ENUM_FIELD(scanstatus, SubqueryScanStatus);
2201 
2202  READ_DONE();
2203 }
SubqueryScanStatus
Definition: plannodes.h:575

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

Referenced by parseNodeString().

◆ _readSubscriptingRef()

static SubscriptingRef* _readSubscriptingRef ( void  )
static

Definition at line 750 of file readfuncs.c.

751 {
753 
754  READ_OID_FIELD(refcontainertype);
755  READ_OID_FIELD(refelemtype);
756  READ_OID_FIELD(refrestype);
757  READ_INT_FIELD(reftypmod);
758  READ_OID_FIELD(refcollid);
759  READ_NODE_FIELD(refupperindexpr);
760  READ_NODE_FIELD(reflowerindexpr);
761  READ_NODE_FIELD(refexpr);
762  READ_NODE_FIELD(refassgnexpr);
763 
764  READ_DONE();
765 }

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

Referenced by parseNodeString().

◆ _readTableFunc()

static TableFunc* _readTableFunc ( void  )
static

Definition at line 571 of file readfuncs.c.

572 {
574 
575  READ_ENUM_FIELD(functype, TableFuncType);
576  READ_NODE_FIELD(ns_uris);
577  READ_NODE_FIELD(ns_names);
578  READ_NODE_FIELD(docexpr);
579  READ_NODE_FIELD(rowexpr);
580  READ_NODE_FIELD(colnames);
581  READ_NODE_FIELD(coltypes);
582  READ_NODE_FIELD(coltypmods);
583  READ_NODE_FIELD(colcollations);
584  READ_NODE_FIELD(colexprs);
585  READ_NODE_FIELD(coldefexprs);
586  READ_NODE_FIELD(colvalexprs);
587  READ_BITMAPSET_FIELD(notnulls);
588  READ_NODE_FIELD(plan);
589  READ_INT_FIELD(ordinalitycol);
590  READ_LOCATION_FIELD(location);
591 
592  READ_DONE();
593 }
TableFuncType
Definition: primnodes.h:90

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

Referenced by parseNodeString().

◆ _readTableFuncScan()

static TableFuncScan* _readTableFuncScan ( void  )
static

Definition at line 2240 of file readfuncs.c.

2241 {
2243 
2244  ReadCommonScan(&local_node->scan);
2245 
2246  READ_NODE_FIELD(tablefunc);
2247 
2248  READ_DONE();
2249 }

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

Referenced by parseNodeString().

◆ _readTableSampleClause()

static TableSampleClause* _readTableSampleClause ( void  )
static

Definition at line 1770 of file readfuncs.c.

1771 {
1773 
1774  READ_OID_FIELD(tsmhandler);
1776  READ_NODE_FIELD(repeatable);
1777 
1778  READ_DONE();
1779 }

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

Referenced by parseNodeString().

◆ _readTargetEntry()

static TargetEntry* _readTargetEntry ( void  )
static

Definition at line 1351 of file readfuncs.c.

1352 {
1354 
1355  READ_NODE_FIELD(expr);
1356  READ_INT_FIELD(resno);
1357  READ_STRING_FIELD(resname);
1358  READ_UINT_FIELD(ressortgroupref);
1359  READ_OID_FIELD(resorigtbl);
1360  READ_INT_FIELD(resorigcol);
1361  READ_BOOL_FIELD(resjunk);
1362 
1363  READ_DONE();
1364 }

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

◆ _readTidRangeScan()

static TidRangeScan* _readTidRangeScan ( void  )
static

Definition at line 2178 of file readfuncs.c.

2179 {
2181 
2182  ReadCommonScan(&local_node->scan);
2183 
2184  READ_NODE_FIELD(tidrangequals);
2185 
2186  READ_DONE();
2187 }

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

Referenced by parseNodeString().

◆ _readTidScan()

static TidScan* _readTidScan ( void  )
static

Definition at line 2163 of file readfuncs.c.

2164 {
2166 
2167  ReadCommonScan(&local_node->scan);
2168 
2169  READ_NODE_FIELD(tidquals);
2170 
2171  READ_DONE();
2172 }

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

Referenced by parseNodeString().

◆ _readUnique()

static Unique* _readUnique ( void  )
static

Definition at line 2598 of file readfuncs.c.

2599 {
2601 
2602  ReadCommonPlan(&local_node->plan);
2603 
2604  READ_INT_FIELD(numCols);
2605  READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
2606  READ_OID_ARRAY(uniqOperators, local_node->numCols);
2607  READ_OID_ARRAY(uniqCollations, local_node->numCols);
2608 
2609  READ_DONE();
2610 }

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

Referenced by parseNodeString().

◆ _readValuesScan()

static ValuesScan* _readValuesScan ( void  )
static

Definition at line 2225 of file readfuncs.c.

2226 {
2228 
2229  ReadCommonScan(&local_node->scan);
2230 
2231  READ_NODE_FIELD(values_lists);
2232 
2233  READ_DONE();
2234 }

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

Referenced by parseNodeString().

◆ _readVar()

static Var* _readVar ( void  )
static

Definition at line 616 of file readfuncs.c.

617 {
618  READ_LOCALS(Var);
619 
620  READ_INT_FIELD(varno);
621  READ_INT_FIELD(varattno);
622  READ_OID_FIELD(vartype);
623  READ_INT_FIELD(vartypmod);
624  READ_OID_FIELD(varcollid);
625  READ_UINT_FIELD(varlevelsup);
626  READ_UINT_FIELD(varnosyn);
627  READ_INT_FIELD(varattnosyn);
628  READ_LOCATION_FIELD(location);
629 
630  READ_DONE();
631 }
Definition: primnodes.h:209

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

Referenced by parseNodeString().

◆ _readWindowAgg()

static WindowAgg* _readWindowAgg ( void  )
static

Definition at line 2564 of file readfuncs.c.

2565 {
2567 
2568  ReadCommonPlan(&local_node->plan);
2569 
2570  READ_UINT_FIELD(winref);
2571  READ_INT_FIELD(partNumCols);
2572  READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
2573  READ_OID_ARRAY(partOperators, local_node->partNumCols);
2574  READ_OID_ARRAY(partCollations, local_node->partNumCols);
2575  READ_INT_FIELD(ordNumCols);
2576  READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
2577  READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
2578  READ_OID_ARRAY(ordCollations, local_node->ordNumCols);
2579  READ_INT_FIELD(frameOptions);
2580  READ_NODE_FIELD(startOffset);
2581  READ_NODE_FIELD(endOffset);
2582  READ_NODE_FIELD(runCondition);
2583  READ_NODE_FIELD(runConditionOrig);
2584  READ_OID_FIELD(startInRangeFunc);
2585  READ_OID_FIELD(endInRangeFunc);
2586  READ_OID_FIELD(inRangeColl);
2587  READ_BOOL_FIELD(inRangeAsc);
2588  READ_BOOL_FIELD(inRangeNullsFirst);
2589  READ_BOOL_FIELD(topWindow);
2590 
2591  READ_DONE();
2592 }

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

Referenced by parseNodeString().

◆ _readWindowClause()

static WindowClause* _readWindowClause ( void  )
static

Definition at line 376 of file readfuncs.c.

377 {
379 
381  READ_STRING_FIELD(refname);
382  READ_NODE_FIELD(partitionClause);
383  READ_NODE_FIELD(orderClause);
384  READ_INT_FIELD(frameOptions);
385  READ_NODE_FIELD(startOffset);
386  READ_NODE_FIELD(endOffset);
387  READ_NODE_FIELD(runCondition);
388  READ_OID_FIELD(startInRangeFunc);
389  READ_OID_FIELD(endInRangeFunc);
390  READ_OID_FIELD(inRangeColl);
391  READ_BOOL_FIELD(inRangeAsc);
392  READ_BOOL_FIELD(inRangeNullsFirst);
393  READ_UINT_FIELD(winref);
394  READ_BOOL_FIELD(copiedOrder);
395 
396  READ_DONE();
397 }

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

Referenced by parseNodeString().

◆ _readWindowFunc()

static WindowFunc* _readWindowFunc ( void  )
static

Definition at line 728 of file readfuncs.c.

729 {
731 
732  READ_OID_FIELD(winfnoid);
733  READ_OID_FIELD(wintype);
734  READ_OID_FIELD(wincollid);
735  READ_OID_FIELD(inputcollid);
737  READ_NODE_FIELD(aggfilter);
738  READ_UINT_FIELD(winref);
739  READ_BOOL_FIELD(winstar);
740  READ_BOOL_FIELD(winagg);
741  READ_LOCATION_FIELD(location);
742 
743  READ_DONE();
744 }

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

◆ _readWithCheckOption()

static WithCheckOption* _readWithCheckOption ( void  )
static

Definition at line 327 of file readfuncs.c.

328 {
330 
331  READ_ENUM_FIELD(kind, WCOKind);
333  READ_STRING_FIELD(polname);
334  READ_NODE_FIELD(qual);
335  READ_BOOL_FIELD(cascaded);
336 
337  READ_DONE();
338 }
WCOKind
Definition: parsenodes.h:1226

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

Referenced by parseNodeString().

◆ _readWorkTableScan()

static WorkTableScan* _readWorkTableScan ( void  )
static

Definition at line 2286 of file readfuncs.c.

2287 {
2289 
2290  ReadCommonScan(&local_node->scan);
2291 
2292  READ_INT_FIELD(wtParam);
2293 
2294  READ_DONE();
2295 }

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

Referenced by parseNodeString().

◆ _readXmlExpr()

static XmlExpr* _readXmlExpr ( void  )
static

Definition at line 1205 of file readfuncs.c.

1206 {
1208 
1211  READ_NODE_FIELD(named_args);
1212  READ_NODE_FIELD(arg_names);
1216  READ_INT_FIELD(typmod);
1217  READ_LOCATION_FIELD(location);
1218 
1219  READ_DONE();
1220 }
XmlOptionType
Definition: primnodes.h:1338
XmlExprOp
Definition: primnodes.h:1326
int xmloption
Definition: xml.c:98

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

Referenced by parseNodeString().

◆ parseNodeString()

Node* parseNodeString ( void  )

Definition at line 2950 of file readfuncs.c.

2951 {
2952  void *return_value;
2953 
2954  READ_TEMP_LOCALS();
2955 
2956  /* Guard against stack overflow due to overly complex expressions */
2958 
2959  token = pg_strtok(&length);
2960 
2961 #define MATCH(tokname, namelen) \
2962  (length == namelen && memcmp(token, tokname, namelen) == 0)
2963 
2964  if (MATCH("QUERY", 5))
2965  return_value = _readQuery();
2966  else if (MATCH("WITHCHECKOPTION", 15))
2967  return_value = _readWithCheckOption();
2968  else if (MATCH("SORTGROUPCLAUSE", 15))
2969  return_value = _readSortGroupClause();
2970  else if (MATCH("GROUPINGSET", 11))
2971  return_value = _readGroupingSet();
2972  else if (MATCH("WINDOWCLAUSE", 12))
2973  return_value = _readWindowClause();
2974  else if (MATCH("ROWMARKCLAUSE", 13))
2975  return_value = _readRowMarkClause();
2976  else if (MATCH("CTESEARCHCLAUSE", 15))
2977  return_value = _readCTESearchClause();
2978  else if (MATCH("CTECYCLECLAUSE", 14))
2979  return_value = _readCTECycleClause();
2980  else if (MATCH("COMMONTABLEEXPR", 15))
2981  return_value = _readCommonTableExpr();
2982  else if (MATCH("MERGEWHENCLAUSE", 15))
2983  return_value = _readMergeWhenClause();
2984  else if (MATCH("MERGEACTION", 11))
2985  return_value = _readMergeAction();
2986  else if (MATCH("SETOPERATIONSTMT", 16))
2987  return_value = _readSetOperationStmt();
2988  else if (MATCH("ALIAS", 5))
2989  return_value = _readAlias();
2990  else if (MATCH("RANGEVAR", 8))
2991  return_value = _readRangeVar();
2992  else if (MATCH("INTOCLAUSE", 10))
2993  return_value = _readIntoClause();
2994  else if (MATCH("TABLEFUNC", 9))
2995  return_value = _readTableFunc();
2996  else if (MATCH("VAR", 3))
2997  return_value = _readVar();
2998  else if (MATCH("CONST", 5))
2999  return_value = _readConst();
3000  else if (MATCH("PARAM", 5))
3001  return_value = _readParam();
3002  else if (MATCH("AGGREF", 6))
3003  return_value = _readAggref();
3004  else if (MATCH("GROUPINGFUNC", 12))
3005  return_value = _readGroupingFunc();
3006  else if (MATCH("WINDOWFUNC", 10))
3007  return_value = _readWindowFunc();
3008  else if (MATCH("SUBSCRIPTINGREF", 15))
3009  return_value = _readSubscriptingRef();
3010  else if (MATCH("FUNCEXPR", 8))
3011  return_value = _readFuncExpr();
3012  else if (MATCH("NAMEDARGEXPR", 12))
3013  return_value = _readNamedArgExpr();
3014  else if (MATCH("OPEXPR", 6))
3015  return_value = _readOpExpr();
3016  else if (MATCH("DISTINCTEXPR", 12))
3017  return_value = _readDistinctExpr();
3018  else if (MATCH("NULLIFEXPR", 10))
3019  return_value = _readNullIfExpr();
3020  else if (MATCH("SCALARARRAYOPEXPR", 17))
3021  return_value = _readScalarArrayOpExpr();
3022  else if (MATCH("BOOLEXPR", 8))
3023  return_value = _readBoolExpr();
3024  else if (MATCH("SUBLINK", 7))
3025  return_value = _readSubLink();
3026  else if (MATCH("FIELDSELECT", 11))
3027  return_value = _readFieldSelect();
3028  else if (MATCH("FIELDSTORE", 10))
3029  return_value = _readFieldStore();
3030  else if (MATCH("RELABELTYPE", 11))
3031  return_value = _readRelabelType();
3032  else if (MATCH("COERCEVIAIO", 11))
3033  return_value = _readCoerceViaIO();
3034  else if (MATCH("ARRAYCOERCEEXPR", 15))
3035  return_value = _readArrayCoerceExpr();
3036  else if (MATCH("CONVERTROWTYPEEXPR", 18))
3037  return_value = _readConvertRowtypeExpr();
3038  else if (MATCH("COLLATEEXPR", 11))
3039  return_value = _readCollateExpr();
3040  else if (MATCH("CASEEXPR", 8))
3041  return_value = _readCaseExpr();
3042  else if (MATCH("CASEWHEN", 8))
3043  return_value = _readCaseWhen();
3044  else if (MATCH("CASETESTEXPR", 12))
3045  return_value = _readCaseTestExpr();
3046  else if (MATCH("ARRAYEXPR", 9))
3047  return_value = _readArrayExpr();
3048  else if (MATCH("ROWEXPR", 7))
3049  return_value = _readRowExpr();
3050  else if (MATCH("ROWCOMPAREEXPR", 14))
3051  return_value = _readRowCompareExpr();
3052  else if (MATCH("COALESCEEXPR", 12))
3053  return_value = _readCoalesceExpr();
3054  else if (MATCH("MINMAXEXPR", 10))
3055  return_value = _readMinMaxExpr();
3056  else if (MATCH("SQLVALUEFUNCTION", 16))
3057  return_value = _readSQLValueFunction();
3058  else if (MATCH("XMLEXPR", 7))
3059  return_value = _readXmlExpr();
3060  else if (MATCH("NULLTEST", 8))
3061  return_value = _readNullTest();
3062  else if (MATCH("BOOLEANTEST", 11))
3063  return_value = _readBooleanTest();
3064  else if (MATCH("COERCETODOMAIN", 14))
3065  return_value = _readCoerceToDomain();
3066  else if (MATCH("COERCETODOMAINVALUE", 19))
3067  return_value = _readCoerceToDomainValue();
3068  else if (MATCH("SETTODEFAULT", 12))
3069  return_value = _readSetToDefault();
3070  else if (MATCH("CURRENTOFEXPR", 13))
3071  return_value = _readCurrentOfExpr();
3072  else if (MATCH("NEXTVALUEEXPR", 13))
3073  return_value = _readNextValueExpr();
3074  else if (MATCH("INFERENCEELEM", 13))
3075  return_value = _readInferenceElem();
3076  else if (MATCH("TARGETENTRY", 11))
3077  return_value = _readTargetEntry();
3078  else if (MATCH("RANGETBLREF", 11))
3079  return_value = _readRangeTblRef();
3080  else if (MATCH("JOINEXPR", 8))
3081  return_value = _readJoinExpr();
3082  else if (MATCH("FROMEXPR", 8))
3083  return_value = _readFromExpr();
3084  else if (MATCH("ONCONFLICTEXPR", 14))
3085  return_value = _readOnConflictExpr();
3086  else if (MATCH("APPENDRELINFO", 13))
3087  return_value = _readAppendRelInfo();
3088  else if (MATCH("RANGETBLENTRY", 13))
3089  return_value = _readRangeTblEntry();
3090  else if (MATCH("RANGETBLFUNCTION", 16))
3091  return_value = _readRangeTblFunction();
3092  else if (MATCH("TABLESAMPLECLAUSE", 17))
3093  return_value = _readTableSampleClause();
3094  else if (MATCH("NOTIFYSTMT", 10))
3095  return_value = _readNotifyStmt();
3096  else if (MATCH("DEFELEM", 7))
3097  return_value = _readDefElem();
3098  else if (MATCH("DECLARECURSORSTMT", 17))
3099  return_value = _readDeclareCursorStmt();
3100  else if (MATCH("PLANNEDSTMT", 11))
3101  return_value = _readPlannedStmt();
3102  else if (MATCH("PLAN", 4))
3103  return_value = _readPlan();
3104  else if (MATCH("RESULT", 6))
3105  return_value = _readResult();
3106  else if (MATCH("PROJECTSET", 10))
3107  return_value = _readProjectSet();
3108  else if (MATCH("MODIFYTABLE", 11))
3109  return_value = _readModifyTable();
3110  else if (MATCH("APPEND", 6))
3111  return_value = _readAppend();
3112  else if (MATCH("MERGEAPPEND", 11))
3113  return_value = _readMergeAppend();
3114  else if (MATCH("RECURSIVEUNION", 14))
3115  return_value = _readRecursiveUnion();
3116  else if (MATCH("BITMAPAND", 9))
3117  return_value = _readBitmapAnd();
3118  else if (MATCH("BITMAPOR", 8))
3119  return_value = _readBitmapOr();
3120  else if (MATCH("SCAN", 4))
3121  return_value = _readScan();
3122  else if (MATCH("SEQSCAN", 7))
3123  return_value = _readSeqScan();
3124  else if (MATCH("SAMPLESCAN", 10))
3125  return_value = _readSampleScan();
3126  else if (MATCH("INDEXSCAN", 9))
3127  return_value = _readIndexScan();
3128  else if (MATCH("INDEXONLYSCAN", 13))
3129  return_value = _readIndexOnlyScan();
3130  else if (MATCH("BITMAPINDEXSCAN", 15))
3131  return_value = _readBitmapIndexScan();
3132  else if (MATCH("BITMAPHEAPSCAN", 14))
3133  return_value = _readBitmapHeapScan();
3134  else if (MATCH("TIDSCAN", 7))
3135  return_value = _readTidScan();
3136  else if (MATCH("TIDRANGESCAN", 12))
3137  return_value = _readTidRangeScan();
3138  else if (MATCH("SUBQUERYSCAN", 12))
3139  return_value = _readSubqueryScan();
3140  else if (MATCH("FUNCTIONSCAN", 12))
3141  return_value = _readFunctionScan();
3142  else if (MATCH("VALUESSCAN", 10))
3143  return_value = _readValuesScan();
3144  else if (MATCH("TABLEFUNCSCAN", 13))
3145  return_value = _readTableFuncScan();
3146  else if (MATCH("CTESCAN", 7))
3147  return_value = _readCteScan();
3148  else if (MATCH("NAMEDTUPLESTORESCAN", 19))
3149  return_value = _readNamedTuplestoreScan();
3150  else if (MATCH("WORKTABLESCAN", 13))
3151  return_value = _readWorkTableScan();
3152  else if (MATCH("FOREIGNSCAN", 11))
3153  return_value = _readForeignScan();
3154  else if (MATCH("CUSTOMSCAN", 10))
3155  return_value = _readCustomScan();
3156  else if (MATCH("JOIN", 4))
3157  return_value = _readJoin();
3158  else if (MATCH("NESTLOOP", 8))
3159  return_value = _readNestLoop();
3160  else if (MATCH("MERGEJOIN", 9))
3161  return_value = _readMergeJoin();
3162  else if (MATCH("HASHJOIN", 8))
3163  return_value = _readHashJoin();
3164  else if (MATCH("MATERIAL", 8))
3165  return_value = _readMaterial();
3166  else if (MATCH("MEMOIZE", 7))
3167  return_value = _readMemoize();
3168  else if (MATCH("SORT", 4))
3169  return_value = _readSort();
3170  else if (MATCH("INCREMENTALSORT", 15))
3171  return_value = _readIncrementalSort();
3172  else if (MATCH("GROUP", 5))
3173  return_value = _readGroup();
3174  else if (MATCH("AGG", 3))
3175  return_value = _readAgg();
3176  else if (MATCH("WINDOWAGG", 9))
3177  return_value = _readWindowAgg();
3178  else if (MATCH("UNIQUE", 6))
3179  return_value = _readUnique();
3180  else if (MATCH("GATHER", 6))
3181  return_value = _readGather();
3182  else if (MATCH("GATHERMERGE", 11))
3183  return_value = _readGatherMerge();
3184  else if (MATCH("HASH", 4))
3185  return_value = _readHash();
3186  else if (MATCH("SETOP", 5))
3187  return_value = _readSetOp();
3188  else if (MATCH("LOCKROWS", 8))
3189  return_value = _readLockRows();
3190  else if (MATCH("LIMIT", 5))
3191  return_value = _readLimit();
3192  else if (MATCH("NESTLOOPPARAM", 13))
3193  return_value = _readNestLoopParam();
3194  else if (MATCH("PLANROWMARK", 11))
3195  return_value = _readPlanRowMark();
3196  else if (MATCH("PARTITIONPRUNEINFO", 18))
3197  return_value = _readPartitionPruneInfo();
3198  else if (MATCH("PARTITIONEDRELPRUNEINFO", 23))
3199  return_value = _readPartitionedRelPruneInfo();
3200  else if (MATCH("PARTITIONPRUNESTEPOP", 20))
3201  return_value = _readPartitionPruneStepOp();
3202  else if (MATCH("PARTITIONPRUNESTEPCOMBINE", 25))
3203  return_value = _readPartitionPruneStepCombine();
3204  else if (MATCH("PLANINVALITEM", 13))
3205  return_value = _readPlanInvalItem();
3206  else if (MATCH("SUBPLAN", 7))
3207  return_value = _readSubPlan();
3208  else if (MATCH("ALTERNATIVESUBPLAN", 18))
3209  return_value = _readAlternativeSubPlan();
3210  else if (MATCH("EXTENSIBLENODE", 14))
3211  return_value = _readExtensibleNode();
3212  else if (MATCH("PARTITIONBOUNDSPEC", 18))
3213  return_value = _readPartitionBoundSpec();
3214  else if (MATCH("PARTITIONRANGEDATUM", 19))
3215  return_value = _readPartitionRangeDatum();
3216  else if (MATCH("JSONFORMAT", 10))
3217  return_value = _readJsonFormat();
3218  else if (MATCH("JSONRETURNING", 13))
3219  return_value = _readJsonReturning();
3220  else if (MATCH("JSONVALUEEXPR", 13))
3221  return_value = _readJsonValueExpr();
3222  else if (MATCH("JSONCONSTRUCTOREXPR", 19))
3223  return_value = _readJsonConstructorExpr();
3224  else if (MATCH("JSONISPREDICATE", 15))
3225  return_value = _readJsonIsPredicate();
3226  else if (MATCH("JSONBEHAVIOR", 12))
3227  return_value = _readJsonBehavior();
3228  else if (MATCH("JSONEXPR", 8))
3229  return_value = _readJsonExpr();
3230  else if (MATCH("JSONCOERCION", 12))
3231  return_value = _readJsonCoercion();
3232  else if (MATCH("JSONITEMCOERCIONS", 17))
3233  return_value = _readJsonItemCoercions();
3234  else if (MATCH("JSONTABLEPARENT", 15))
3235  return_value = _readJsonTableParent();
3236  else if (MATCH("JSONTABLESIBLING", 16))
3237  return_value = _readJsonTableSibling();
3238  else
3239  {
3240  elog(ERROR, "badly formatted node string \"%.32s\"...", token);
3241  return_value = NULL; /* keep compiler quiet */
3242  }
3243 
3244  return (Node *) return_value;
3245 }
void check_stack_depth(void)
Definition: postgres.c:3503
static MergeAction * _readMergeAction(void)
Definition: readfuncs.c:500
static PlannedStmt * _readPlannedStmt(void)
Definition: readfuncs.c:1806
static JsonCoercion * _readJsonCoercion(void)
Definition: readfuncs.c:1571
static PartitionedRelPruneInfo * _readPartitionedRelPruneInfo(void)
Definition: readfuncs.c:2778
static CollateExpr * _readCollateExpr(void)
Definition: readfuncs.c:1039
static CoerceViaIO * _readCoerceViaIO(void)
Definition: readfuncs.c:987
static PlanInvalItem * _readPlanInvalItem(void)
Definition: readfuncs.c:2825
static WithCheckOption * _readWithCheckOption(void)
Definition: readfuncs.c:327
static Alias * _readAlias(void)
Definition: readfuncs.c:540
static NestLoopParam * _readNestLoopParam(void)
Definition: readfuncs.c:2736
static PartitionPruneStepOp * _readPartitionPruneStepOp(void)
Definition: readfuncs.c:2796
static RangeTblFunction * _readRangeTblFunction(void)
Definition: readfuncs.c:1751
static JsonValueExpr * _readJsonValueExpr(void)
Definition: readfuncs.c:1468
static PartitionPruneInfo * _readPartitionPruneInfo(void)
Definition: readfuncs.c:2767
static Result * _readResult(void)
Definition: readfuncs.c:1879
static AlternativeSubPlan * _readAlternativeSubPlan(void)
Definition: readfuncs.c:2867
static JsonConstructorExpr * _readJsonConstructorExpr(void)
Definition: readfuncs.c:1483
static PartitionRangeDatum * _readPartitionRangeDatum(void)
Definition: readfuncs.c:2930
static WorkTableScan * _readWorkTableScan(void)
Definition: readfuncs.c:2286
static CoerceToDomain * _readCoerceToDomain(void)
Definition: readfuncs.c:1257
static IndexScan * _readIndexScan(void)
Definition: readfuncs.c:2089
static ArrayCoerceExpr * _readArrayCoerceExpr(void)
Definition: readfuncs.c:1004
static Group * _readGroup(void)
Definition: readfuncs.c:2521
static WindowAgg * _readWindowAgg(void)
Definition: readfuncs.c:2564
static NamedArgExpr * _readNamedArgExpr(void)
Definition: readfuncs.c:792
static RowExpr * _readRowExpr(void)
Definition: readfuncs.c:1120
static CoerceToDomainValue * _readCoerceToDomainValue(void)
Definition: readfuncs.c:1275
static RangeTblEntry * _readRangeTblEntry(void)
Definition: readfuncs.c:1657
static JsonTableParent * _readJsonTableParent(void)
Definition: readfuncs.c:1540
static FieldStore * _readFieldStore(void)
Definition: readfuncs.c:953
static ScalarArrayOpExpr * _readScalarArrayOpExpr(void)
Definition: readfuncs.c:868
static TableFunc * _readTableFunc(void)
Definition: readfuncs.c:571
static SetOp * _readSetOp(void)
Definition: readfuncs.c:2676
static TableFuncScan * _readTableFuncScan(void)
Definition: readfuncs.c:2240
static CoalesceExpr * _readCoalesceExpr(void)
Definition: readfuncs.c:1155
static TableSampleClause * _readTableSampleClause(void)
Definition: readfuncs.c:1770
static DefElem * _readDefElem(void)
Definition: readfuncs.c:1785
static RangeTblRef * _readRangeTblRef(void)
Definition: readfuncs.c:1370
static BooleanTest * _readBooleanTest(void)
Definition: readfuncs.c:1242
static FuncExpr * _readFuncExpr(void)
Definition: readfuncs.c:771
static JsonFormat * _readJsonFormat(void)
Definition: readfuncs.c:1438
static BitmapOr * _readBitmapOr(void)
Definition: readfuncs.c:2018
static Const * _readConst(void)
Definition: readfuncs.c:637
static JoinExpr * _readJoinExpr(void)
Definition: readfuncs.c:1383
static Sort * _readSort(void)
Definition: readfuncs.c:2493
static Aggref * _readAggref(void)
Definition: readfuncs.c:680
static SQLValueFunction * _readSQLValueFunction(void)
Definition: readfuncs.c:1189
static RowMarkClause * _readRowMarkClause(void)
Definition: readfuncs.c:403
static IncrementalSort * _readIncrementalSort(void)
Definition: readfuncs.c:2506
static AppendRelInfo * _readAppendRelInfo(void)
Definition: readfuncs.c:1633
static Plan * _readPlan(void)
Definition: readfuncs.c:1866
static RangeVar * _readRangeVar(void)
Definition: readfuncs.c:551
static CaseWhen * _readCaseWhen(void)
Definition: readfuncs.c:1072
static Scan * _readScan(void)
Definition: readfuncs.c:2048
static Memoize * _readMemoize(void)
Definition: readfuncs.c:2453
static ConvertRowtypeExpr * _readConvertRowtypeExpr(void)
Definition: readfuncs.c:1023
static Gather * _readGather(void)
Definition: readfuncs.c:2616
static IntoClause * _readIntoClause(void)
Definition: readfuncs.c:596
static TidScan * _readTidScan(void)
Definition: readfuncs.c:2163
static CTESearchClause * _readCTESearchClause(void)
Definition: readfuncs.c:419
static InferenceElem * _readInferenceElem(void)
Definition: readfuncs.c:1336
static NextValueExpr * _readNextValueExpr(void)
Definition: readfuncs.c:1322
static NamedTuplestoreScan * _readNamedTuplestoreScan(void)
Definition: readfuncs.c:2271
static WindowFunc * _readWindowFunc(void)
Definition: readfuncs.c:728
static NestLoop * _readNestLoop(void)
Definition: readfuncs.c:2382
static JsonItemCoercions * _readJsonItemCoercions(void)
Definition: readfuncs.c:1587
static Agg * _readAgg(void)
Definition: readfuncs.c:2539
static CustomScan * _readCustomScan(void)
Definition: readfuncs.c:2324
static MergeAppend * _readMergeAppend(void)
Definition: readfuncs.c:1961
static Var * _readVar(void)
Definition: readfuncs.c:616
static CommonTableExpr * _readCommonTableExpr(void)
Definition: readfuncs.c:457
static SampleScan * _readSampleScan(void)
Definition: readfuncs.c:2074
static TargetEntry * _readTargetEntry(void)
Definition: readfuncs.c:1351
static OnConflictExpr * _readOnConflictExpr(void)
Definition: readfuncs.c:1418
static BoolExpr * _readBoolExpr(void)
Definition: readfuncs.c:888
static ModifyTable * _readModifyTable(void)
Definition: readfuncs.c:1907
static CTECycleClause * _readCTECycleClause(void)
Definition: readfuncs.c:435
static WindowClause * _readWindowClause(void)
Definition: readfuncs.c:376
static JsonReturning * _readJsonReturning(void)
Definition: readfuncs.c:1453
static BitmapIndexScan * _readBitmapIndexScan(void)
Definition: readfuncs.c:2130
static Query * _readQuery(void)
Definition: readfuncs.c:245
static CurrentOfExpr * _readCurrentOfExpr(void)
Definition: readfuncs.c:1307
static MergeWhenClause * _readMergeWhenClause(void)
Definition: readfuncs.c:482
static SeqScan * _readSeqScan(void)
Definition: readfuncs.c:2061
static LockRows * _readLockRows(void)
Definition: readfuncs.c:2699
static DistinctExpr * _readDistinctExpr(void)
Definition: readfuncs.c:828
static GroupingFunc * _readGroupingFunc(void)
Definition: readfuncs.c:711
static JsonIsPredicate * _readJsonIsPredicate()
Definition: readfuncs.c:1609
static DeclareCursorStmt * _readDeclareCursorStmt(void)
Definition: readfuncs.c:312
static FromExpr * _readFromExpr(void)
Definition: readfuncs.c:1404
static NotifyStmt * _readNotifyStmt(void)
Definition: readfuncs.c:298
static Hash * _readHash(void)
Definition: readfuncs.c:2657
static JsonExpr * _readJsonExpr(void)
Definition: readfuncs.c:1517
static PlanRowMark * _readPlanRowMark(void)
Definition: readfuncs.c:2750
static IndexOnlyScan * _readIndexOnlyScan(void)
Definition: readfuncs.c:2110
static JsonBehavior * _readJsonBehavior(void)
Definition: readfuncs.c:1503
static JsonTableSibling * _readJsonTableSibling(void)
Definition: readfuncs.c:1556
static PartitionPruneStepCombine * _readPartitionPruneStepCombine(void)
Definition: readfuncs.c:2810
static ExtensibleNode * _readExtensibleNode(void)
Definition: readfuncs.c:2880
static RecursiveUnion * _readRecursiveUnion(void)
Definition: readfuncs.c:1983
static ArrayExpr * _readArrayExpr(void)
Definition: readfuncs.c:1102
static Append * _readAppend(void)
Definition: readfuncs.c:1942
static ValuesScan * _readValuesScan(void)
Definition: readfuncs.c:2225
static XmlExpr * _readXmlExpr(void)
Definition: readfuncs.c:1205
#define MATCH(tokname, namelen)
static FunctionScan * _readFunctionScan(void)
Definition: readfuncs.c:2209
static SetToDefault * _readSetToDefault(void)
Definition: readfuncs.c:1291
static MergeJoin * _readMergeJoin(void)
Definition: readfuncs.c:2397
static BitmapHeapScan * _readBitmapHeapScan(void)
Definition: readfuncs.c:2148
static FieldSelect * _readFieldSelect(void)
Definition: readfuncs.c:936
static Join * _readJoin(void)
Definition: readfuncs.c:2369
static SubscriptingRef * _readSubscriptingRef(void)
Definition: readfuncs.c:750
static NullIfExpr * _readNullIfExpr(void)
Definition: readfuncs.c:848
static ProjectSet * _readProjectSet(void)
Definition: readfuncs.c:1894
static GatherMerge * _readGatherMerge(void)
Definition: readfuncs.c:2635
static CteScan * _readCteScan(void)
Definition: readfuncs.c:2255
static SetOperationStmt * _readSetOperationStmt(void)
Definition: readfuncs.c:518
static CaseTestExpr * _readCaseTestExpr(void)
Definition: readfuncs.c:1087
static RelabelType * _readRelabelType(void)
Definition: readfuncs.c:969
static RowCompareExpr * _readRowCompareExpr(void)
Definition: readfuncs.c:1137
static SubPlan * _readSubPlan(void)
Definition: readfuncs.c:2839
static PartitionBoundSpec * _readPartitionBoundSpec(void)
Definition: readfuncs.c:2910
static NullTest * _readNullTest(void)
Definition: readfuncs.c:1226
static Material * _readMaterial(void)
Definition: readfuncs.c:2440
static CaseExpr * _readCaseExpr(void)
Definition: readfuncs.c:1054
static Param * _readParam(void)
Definition: readfuncs.c:662
static GroupingSet * _readGroupingSet(void)
Definition: readfuncs.c:361
static HashJoin * _readHashJoin(void)
Definition: readfuncs.c:2422
static SubLink * _readSubLink(void)
Definition: readfuncs.c:914
static SubqueryScan * _readSubqueryScan(void)
Definition: readfuncs.c:2193
static BitmapAnd * _readBitmapAnd(void)
Definition: readfuncs.c:2003
static TidRangeScan * _readTidRangeScan(void)
Definition: readfuncs.c:2178
static OpExpr * _readOpExpr(void)
Definition: readfuncs.c:808
static SortGroupClause * _readSortGroupClause(void)
Definition: readfuncs.c:344
static Unique * _readUnique(void)
Definition: readfuncs.c:2598
static MinMaxExpr * _readMinMaxExpr(void)
Definition: readfuncs.c:1171
static ForeignScan * _readForeignScan(void)
Definition: readfuncs.c:2301
static Limit * _readLimit(void)
Definition: readfuncs.c:2715
Definition: nodes.h:575

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

Referenced by nodeRead().

◆ readAttrNumberCols()

AttrNumber* readAttrNumberCols ( int  numCols)

Definition at line 3313 of file readfuncs.c.

3314 {
3315  int tokenLength,
3316  i;
3317  const char *token;
3318  AttrNumber *attr_vals;
3319 
3320  if (numCols <= 0)
3321  return NULL;
3322 
3323  attr_vals = (AttrNumber *) palloc(numCols * sizeof(AttrNumber));
3324  for (i = 0; i < numCols; i++)
3325  {
3326  token = pg_strtok(&tokenLength);
3327  attr_vals[i] = atoi(token);
3328  }
3329 
3330  return attr_vals;
3331 }
int16 AttrNumber
Definition: attnum.h:21
int i
Definition: isn.c:73
void * palloc(Size size)
Definition: mcxt.c:1068

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

◆ readBitmapset()

Bitmapset* readBitmapset ( void  )

Definition at line 236 of file readfuncs.c.

237 {
238  return _readBitmapset();
239 }

References _readBitmapset().

◆ readBoolCols()

bool* readBoolCols ( int  numCols)

Definition at line 3385 of file readfuncs.c.

3386 {
3387  int tokenLength,
3388  i;
3389  const char *token;
3390  bool *bool_vals;
3391 
3392  if (numCols <= 0)
3393  return NULL;
3394 
3395  bool_vals = (bool *) palloc(numCols * sizeof(bool));
3396  for (i = 0; i < numCols; i++)
3397  {
3398  token = pg_strtok(&tokenLength);
3399  bool_vals[i] = strtobool(token);
3400  }
3401 
3402  return bool_vals;
3403 }

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

◆ ReadCommonJoin()

static void ReadCommonJoin ( Join local_node)
static

Definition at line 2354 of file readfuncs.c.

2355 {
2356  READ_TEMP_LOCALS();
2357 
2358  ReadCommonPlan(&local_node->plan);
2359 
2360  READ_ENUM_FIELD(jointype, JoinType);
2361  READ_BOOL_FIELD(inner_unique);
2362  READ_NODE_FIELD(joinqual);
2363 }
Plan plan
Definition: plannodes.h:761

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

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

◆ ReadCommonPlan()

static void ReadCommonPlan ( Plan local_node)
static

◆ ReadCommonScan()

◆ ReadCommonSort()

static void ReadCommonSort ( Sort local_node)
static

Definition at line 2476 of file readfuncs.c.

2477 {
2478  READ_TEMP_LOCALS();
2479 
2480  ReadCommonPlan(&local_node->plan);
2481 
2482  READ_INT_FIELD(numCols);
2483  READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
2484  READ_OID_ARRAY(sortOperators, local_node->numCols);
2485  READ_OID_ARRAY(collations, local_node->numCols);
2486  READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
2487 }
int numCols
Definition: plannodes.h:905
Plan plan
Definition: plannodes.h:902

References Sort::numCols, Sort::plan, READ_ATTRNUMBER_ARRAY, READ_BOOL_ARRAY, READ_INT_FIELD, READ_OID_ARRAY, READ_TEMP_LOCALS, and ReadCommonPlan().

Referenced by _readIncrementalSort(), and _readSort().

◆ readDatum()

Datum readDatum ( bool  typbyval)

Definition at line 3256 of file readfuncs.c.

3257 {
3258  Size length,
3259  i;
3260  int tokenLength;
3261  const char *token;
3262  Datum res;
3263  char *s;
3264 
3265  /*
3266  * read the actual length of the value
3267  */
3268  token = pg_strtok(&tokenLength);
3269  length = atoui(token);
3270 
3271  token = pg_strtok(&tokenLength); /* read the '[' */
3272  if (token == NULL || token[0] != '[')
3273  elog(ERROR, "expected \"[\" to start datum, but got \"%s\"; length = %zu",
3274  token ? token : "[NULL]", length);
3275 
3276  if (typbyval)
3277  {
3278  if (length > (Size) sizeof(Datum))
3279  elog(ERROR, "byval datum but length = %zu", length);
3280  res = (Datum) 0;
3281  s = (char *) (&res);
3282  for (i = 0; i < (Size) sizeof(Datum); i++)
3283  {
3284  token = pg_strtok(&tokenLength);
3285  s[i] = (char) atoi(token);
3286  }
3287  }
3288  else if (length <= 0)
3289  res = (Datum) NULL;
3290  else
3291  {
3292  s = (char *) palloc(length);
3293  for (i = 0; i < length; i++)
3294  {
3295  token = pg_strtok(&tokenLength);
3296  s[i] = (char) atoi(token);
3297  }
3298  res = PointerGetDatum(s);
3299  }
3300 
3301  token = pg_strtok(&tokenLength); /* read the ']' */
3302  if (token == NULL || token[0] != ']')
3303  elog(ERROR, "expected \"]\" to end datum, but got \"%s\"; length = %zu",
3304  token ? token : "[NULL]", length);
3305 
3306  return res;
3307 }
size_t Size
Definition: c.h:551
uintptr_t Datum
Definition: postgres.h:411
#define PointerGetDatum(X)
Definition: postgres.h:600

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

Referenced by _readConst().

◆ readIntCols()

int* readIntCols ( int  numCols)

Definition at line 3361 of file readfuncs.c.

3362 {
3363  int tokenLength,
3364  i;
3365  const char *token;
3366  int *int_vals;
3367 
3368  if (numCols <= 0)
3369  return NULL;
3370 
3371  int_vals = (int *) palloc(numCols * sizeof(int));
3372  for (i = 0; i < numCols; i++)
3373  {
3374  token = pg_strtok(&tokenLength);
3375  int_vals[i] = atoi(token);
3376  }
3377 
3378  return int_vals;
3379 }

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

◆ readOidCols()

Oid* readOidCols ( int  numCols)

Definition at line 3337 of file readfuncs.c.

3338 {
3339  int tokenLength,
3340  i;
3341  const char *token;
3342  Oid *oid_vals;
3343 
3344  if (numCols <= 0)
3345  return NULL;
3346 
3347  oid_vals = (Oid *) palloc(numCols * sizeof(Oid));
3348  for (i = 0; i < numCols; i++)
3349  {
3350  token = pg_strtok(&tokenLength);
3351  oid_vals[i] = atooid(token);
3352  }
3353 
3354  return oid_vals;
3355 }
unsigned int Oid
Definition: postgres_ext.h:31

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