PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "common/string.h"
#include "nodes/bitmapset.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 | ||
) |
Definition at line 214 of file read.c.
References palloc(), and token.
Referenced by nodeRead(), and nullable_string().
void* nodeRead | ( | const char * | token, |
int | tok_len | ||
) |
Definition at line 320 of file read.c.
References bms_add_member(), debackslash(), elog, ERROR, lappend(), lappend_int(), lappend_oid(), lappend_xid(), LEFT_BRACE, LEFT_PAREN, makeBitString(), makeBoolean(), makeFloat(), makeInteger(), makeString(), NIL, nodeTokenType(), OTHER_TOKEN, palloc(), parseNodeString(), pg_strtok(), RIGHT_PAREN, token, type, and val.
Referenced by _readA_Const(), _readA_Expr(), and stringToNodeInternal().
|
static |
Definition at line 246 of file read.c.
References LEFT_BRACE, LEFT_PAREN, OTHER_TOKEN, RIGHT_PAREN, strtoint(), and token.
Referenced by nodeRead().
const char* pg_strtok | ( | int * | length | ) |
Definition at line 153 of file read.c.
References pg_strtok_ptr.
Referenced by _readA_Const(), _readA_Expr(), _readBitmapset(), _readBoolExpr(), _readConst(), _readExtensibleNode(), nodeRead(), parseNodeString(), and readDatum().
void* stringToNode | ( | const char * | str | ) |
Definition at line 90 of file read.c.
References str, and stringToNodeInternal().
Referenced by AddRelationNewConstraints(), AlterPolicy(), AlterPublicationTables(), ATExecValidateConstraint(), CloneRowTriggersToPartition(), ConstraintImpliedByRelConstraint(), ExecParallelGetQueryDesc(), ExecRelCheck(), expandTableLikeClause(), fetch_function_defaults(), fetch_statentries_for_relation(), fmgr_sql_validator(), func_get_detail(), generate_partition_qual(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), GenerateTypeDependencies(), get_dependent_generated_columns(), 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(), TupleDescGetDefault(), TypeCreate(), and validateDomainCheckConstraint().
|
static |
Definition at line 49 of file read.c.
References nodeRead(), pg_strtok_ptr, and str.
Referenced by stringToNode().
|
static |
Definition at line 32 of file read.c.
Referenced by pg_strtok(), and stringToNodeInternal().