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 | |
static void * | stringToNodeInternal (const char *str, bool restore_loc_fields) |
void * | stringToNode (const char *str) |
const char * | pg_strtok (int *length) |
char * | debackslash (const char *token, int length) |
static NodeTag | nodeTokenType (const char *token, int length) |
void * | nodeRead (const char *token, int tok_len) |
Variables | |
static const char * | pg_strtok_ptr = NULL |
char* debackslash | ( | const char * | token, |
int | length | ||
) |
void* nodeRead | ( | const char * | token, |
int | tok_len | ||
) |
Definition at line 319 of file read.c.
References debackslash(), elog, ERROR, lappend(), lappend_int(), lappend_oid(), LEFT_BRACE, LEFT_PAREN, makeBitString(), makeBoolean(), makeFloat(), makeInteger(), makeString(), NIL, nodeTokenType(), OTHER_TOKEN, palloc(), parseNodeString(), pg_strtok(), RIGHT_PAREN, T_BitString, T_Boolean, T_Float, T_Integer, T_String, generate_unaccent_rules::type, and val.
Referenced by stringToNodeInternal().
|
static |
Definition at line 245 of file read.c.
References LEFT_BRACE, LEFT_PAREN, OTHER_TOKEN, RIGHT_PAREN, strtoint(), T_BitString, T_Boolean, T_Float, T_Integer, and T_String.
Referenced by nodeRead().
const char* pg_strtok | ( | int * | length | ) |
Definition at line 152 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 | ( | const char * | str | ) |
Definition at line 89 of file read.c.
References generate_unaccent_rules::str, and stringToNodeInternal().
Referenced by AddRelationNewConstraints(), AlterPolicy(), AlterPublicationTables(), ATExecValidateConstraint(), build_column_default(), CloneRowTriggersToPartition(), ConstraintImpliedByRelConstraint(), ExecParallelGetQueryDesc(), ExecRelCheck(), expandTableLikeClause(), fetch_function_defaults(), fetch_statentries_for_relation(), fill_extraUpdatedCols(), fmgr_sql_validator(), func_get_detail(), generate_partition_qual(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), GenerateTypeDependencies(), get_qual_for_range(), get_relation_constraints(), get_relation_statistics(), get_typdefault(), index_concurrently_create_copy(), init_sql_fcache(), inline_function(), inline_set_returning_function(), load_domaintype_info(), make_ruledef(), make_viewdef(), MergeAttributes(), MergeWithExistingConstraint(), pg_get_constraintdef_worker(), pg_get_expr_worker(), pg_get_function_arg_default(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_statisticsobj_worker(), pg_get_statisticsobjdef_expressions(), pg_get_triggerdef_worker(), pgoutput_row_filter_init(), print_function_arguments(), print_function_sqlbody(), ProcedureCreate(), pub_rf_contains_invalid_column(), RelationBuildPartitionDesc(), RelationBuildPartitionKey(), RelationBuildRowSecurity(), RelationBuildRuleLock(), RelationGetDummyIndexExpressions(), RelationGetIndexAttrBitmap(), RelationGetIndexExpressions(), RelationGetIndexPredicate(), TriggerEnabled(), TypeCreate(), and validateDomainConstraint().
|
static |
Definition at line 48 of file read.c.
References nodeRead(), pg_strtok_ptr, and generate_unaccent_rules::str.
Referenced by stringToNode().
|
static |
Definition at line 31 of file read.c.
Referenced by pg_strtok(), and stringToNodeInternal().