PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "common/string.h"
#include "nodes/pg_list.h"
#include "nodes/readfuncs.h"
#include "nodes/value.h"
Go to the source code of this file.
Macros | |
#define | RIGHT_PAREN (1000000 + 1) |
#define | LEFT_PAREN (1000000 + 2) |
#define | LEFT_BRACE (1000000 + 3) |
#define | OTHER_TOKEN (1000000 + 4) |
Functions | |
void * | stringToNode (char *str) |
char * | pg_strtok (int *length) |
char * | debackslash (char *token, int length) |
static NodeTag | nodeTokenType (char *token, int length) |
void * | nodeRead (char *token, int tok_len) |
Variables | |
static char * | pg_strtok_ptr = NULL |
#define LEFT_BRACE (1000000 + 3) |
Definition at line 187 of file read.c.
Referenced by nodeRead(), and nodeTokenType().
#define LEFT_PAREN (1000000 + 2) |
Definition at line 186 of file read.c.
Referenced by nodeRead(), and nodeTokenType().
#define OTHER_TOKEN (1000000 + 4) |
Definition at line 188 of file read.c.
Referenced by nodeRead(), and nodeTokenType().
#define RIGHT_PAREN (1000000 + 1) |
Definition at line 185 of file read.c.
Referenced by nodeRead(), and nodeTokenType().
char* debackslash | ( | char * | token, |
int | length | ||
) |
void* nodeRead | ( | char * | token, |
int | tok_len | ||
) |
Definition at line 272 of file read.c.
References debackslash(), elog, ERROR, lappend(), lappend_int(), lappend_oid(), LEFT_BRACE, LEFT_PAREN, makeBitString(), makeFloat(), makeInteger(), makeString(), NIL, nodeRead(), nodeTokenType(), OTHER_TOKEN, palloc(), parseNodeString(), pg_strtok(), RIGHT_PAREN, T_BitString, T_Float, T_Integer, T_String, generate_unaccent_rules::type, and val.
Referenced by nodeRead(), and stringToNode().
|
static |
Definition at line 201 of file read.c.
References LEFT_BRACE, LEFT_PAREN, length(), OTHER_TOKEN, RIGHT_PAREN, strtoint(), T_BitString, T_Float, T_Integer, and T_String.
Referenced by nodeRead().
char* pg_strtok | ( | int * | length | ) |
Definition at line 108 of file read.c.
References pg_strtok_ptr.
Referenced by _readBitmapset(), _readBoolExpr(), _readConst(), _readCustomScan(), _readExtensibleNode(), nodeRead(), parseNodeString(), readAttrNumberCols(), readBoolCols(), readDatum(), readIntCols(), and readOidCols().
void* stringToNode | ( | char * | str | ) |
Definition at line 39 of file read.c.
References nodeRead(), pg_strtok_ptr, and generate_unaccent_rules::str.
Referenced by AddRelationNewConstraints(), AlterPolicy(), build_column_default(), CloneRowTriggersToPartition(), ExecParallelGetQueryDesc(), ExecRelCheck(), fetch_function_defaults(), func_get_detail(), generate_partition_qual(), generateClonedIndexStmt(), get_qual_for_range(), get_relation_constraints(), get_typdefault(), load_domaintype_info(), make_ruledef(), make_viewdef(), MergeAttributes(), MergeWithExistingConstraint(), PartConstraintImpliedByRelConstraint(), pg_get_constraintdef_worker(), pg_get_expr_worker(), pg_get_function_arg_default(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_triggerdef_worker(), print_function_arguments(), ProcedureCreate(), RelationBuildPartitionDesc(), RelationBuildPartitionKey(), RelationBuildRowSecurity(), RelationBuildRuleLock(), RelationGetIndexExpressions(), RelationGetIndexPredicate(), RemoveRoleFromObjectPolicy(), transformTableLikeClause(), TriggerEnabled(), TypeCreate(), validateCheckConstraint(), and validateDomainConstraint().
|
static |
Definition at line 31 of file read.c.
Referenced by pg_strtok(), and stringToNode().