PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <math.h>
#include "miscadmin.h"
#include "nodes/bitmapset.h"
#include "nodes/readfuncs.h"
#include "readfuncs.funcs.c"
#include "readfuncs.switch.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 | MATCH(tokname, namelen) (length == namelen && memcmp(token, tokname, namelen) == 0) |
#define | READ_SCALAR_ARRAY(fnname, datatype, convfunc) |
Functions | |
static char * | nullable_string (const char *token, int length) |
static Bitmapset * | _readBitmapset (void) |
Bitmapset * | readBitmapset (void) |
static Const * | _readConst (void) |
static BoolExpr * | _readBoolExpr (void) |
static A_Const * | _readA_Const (void) |
static RangeTblEntry * | _readRangeTblEntry (void) |
static A_Expr * | _readA_Expr (void) |
static ExtensibleNode * | _readExtensibleNode (void) |
Node * | parseNodeString (void) |
Datum | readDatum (bool typbyval) |
Definition at line 177 of file readfuncs.c.
#define MATCH | ( | tokname, | |
namelen | |||
) | (length == namelen && memcmp(token, tokname, namelen) == 0) |
#define READ_ATTRNUMBER_ARRAY | ( | fldname, | |
len | |||
) |
Definition at line 147 of file readfuncs.c.
#define READ_BITMAPSET_FIELD | ( | fldname | ) |
Definition at line 141 of file readfuncs.c.
#define READ_BOOL_ARRAY | ( | fldname, | |
len | |||
) |
Definition at line 162 of file readfuncs.c.
#define READ_BOOL_FIELD | ( | fldname | ) |
Definition at line 109 of file readfuncs.c.
#define READ_CHAR_FIELD | ( | fldname | ) |
#define READ_DONE | ( | ) | return local_node |
Definition at line 167 of file readfuncs.c.
#define READ_ENUM_FIELD | ( | fldname, | |
enumtype | |||
) |
#define READ_FLOAT_FIELD | ( | fldname | ) |
#define READ_INT_ARRAY | ( | fldname, | |
len | |||
) |
Definition at line 157 of file readfuncs.c.
#define READ_INT_FIELD | ( | fldname | ) |
#define READ_LOCALS | ( | nodeTypeName | ) |
Definition at line 55 of file readfuncs.c.
#define READ_LOCALS_NO_FIELDS | ( | nodeTypeName | ) | nodeTypeName *local_node = makeNode(nodeTypeName) |
Definition at line 46 of file readfuncs.c.
#define READ_LOCATION_FIELD | ( | fldname | ) |
#define READ_LONG_FIELD | ( | fldname | ) |
#define READ_NODE_FIELD | ( | fldname | ) |
Definition at line 135 of file readfuncs.c.
#define READ_OID_ARRAY | ( | fldname, | |
len | |||
) |
Definition at line 152 of file readfuncs.c.
#define READ_OID_FIELD | ( | fldname | ) |
Definition at line 84 of file readfuncs.c.
#define READ_SCALAR_ARRAY | ( | fnname, | |
datatype, | |||
convfunc | |||
) |
Definition at line 653 of file readfuncs.c.
#define READ_STRING_FIELD | ( | fldname | ) |
Definition at line 115 of file readfuncs.c.
#define READ_TEMP_LOCALS | ( | ) |
Definition at line 50 of file readfuncs.c.
#define READ_UINT64_FIELD | ( | fldname | ) |
#define READ_UINT_FIELD | ( | fldname | ) |
Definition at line 66 of file readfuncs.c.
|
static |
Definition at line 304 of file readfuncs.c.
References elog, ERROR, nodeRead(), nodeTag, pg_strtok(), READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, and token.
|
static |
Definition at line 442 of file readfuncs.c.
References AEXPR_BETWEEN, AEXPR_BETWEEN_SYM, AEXPR_DISTINCT, AEXPR_ILIKE, AEXPR_IN, AEXPR_LIKE, AEXPR_NOT_BETWEEN, AEXPR_NOT_BETWEEN_SYM, AEXPR_NOT_DISTINCT, AEXPR_NULLIF, AEXPR_OP, AEXPR_OP_ALL, AEXPR_OP_ANY, AEXPR_SIMILAR, elog, ERROR, name, nodeRead(), pg_strtok(), READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and token.
|
static |
Definition at line 203 of file readfuncs.c.
References bms_add_member(), elog, ERROR, pg_strtok(), READ_TEMP_LOCALS, token, and val.
Referenced by readBitmapset().
|
static |
Definition at line 281 of file readfuncs.c.
References AND_EXPR, generate_unaccent_rules::args, elog, ERROR, NOT_EXPR, OR_EXPR, pg_strtok(), READ_DONE, READ_LOCALS, READ_LOCATION_FIELD, READ_NODE_FIELD, and token.
|
static |
Definition at line 259 of file readfuncs.c.
References pg_strtok(), READ_BOOL_FIELD, READ_DONE, READ_INT_FIELD, READ_LOCALS, READ_LOCATION_FIELD, READ_OID_FIELD, readDatum(), and token.
|
static |
Definition at line 529 of file readfuncs.c.
References elog, ERROR, ExtensibleNode::extnodename, GetExtensibleNodeMethods(), newNode(), ExtensibleNodeMethods::node_size, ExtensibleNodeMethods::nodeRead, nullable_string(), pg_strtok(), READ_DONE, READ_TEMP_LOCALS, and token.
|
static |
Definition at line 347 of file readfuncs.c.
References elog, ERROR, functions, 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_GROUP, RTE_JOIN, RTE_NAMEDTUPLESTORE, RTE_RELATION, RTE_RESULT, RTE_SUBQUERY, RTE_TABLEFUNC, and RTE_VALUES.
|
static |
Definition at line 182 of file readfuncs.c.
References debackslash(), pstrdup(), and token.
Referenced by _readExtensibleNode().
Node* parseNodeString | ( | void | ) |
Definition at line 565 of file readfuncs.c.
References check_stack_depth(), elog, ERROR, pg_strtok(), READ_TEMP_LOCALS, and token.
Referenced by nodeRead().
Bitmapset* readBitmapset | ( | void | ) |
Definition at line 245 of file readfuncs.c.
References _readBitmapset().
Definition at line 592 of file readfuncs.c.
References atoui, elog, ERROR, i, palloc(), pg_strtok(), PointerGetDatum(), res, and token.
Referenced by _readConst().