PostgreSQL Source Code  git master
value.h File Reference
#include "nodes/nodes.h"
Include dependency graph for value.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Value
 
union  Value::ValUnion
 

Macros

#define intVal(v)   (((Value *)(v))->val.ival)
 
#define floatVal(v)   atof(((Value *)(v))->val.str)
 
#define strVal(v)   (((Value *)(v))->val.str)
 

Typedefs

typedef struct Value Value
 

Functions

ValuemakeInteger (long i)
 
ValuemakeFloat (char *numericStr)
 
ValuemakeString (char *str)
 
ValuemakeBitString (char *str)
 

Macro Definition Documentation

◆ floatVal

#define floatVal (   v)    atof(((Value *)(v))->val.str)

Definition at line 53 of file value.h.

Referenced by defGetNumeric().

◆ intVal

◆ strVal

#define strVal (   v)    (((Value *)(v))->val.str)

Definition at line 54 of file value.h.

Referenced by addTargetToSortList(), AlterRole(), appendTypeNameToBuffer(), ATAddForeignKeyConstraint(), ATExecAddConstraint(), ATExecSetStorage(), BuildDescFromLists(), check_object_ownership(), CommentObject(), compute_attributes_sql_style(), ConvertTriggerToFK(), CopyGetAttnums(), create_ctas_nodata(), CreateRole(), CreateStatistics(), CreateTrigger(), DeconstructQualifiedName(), defGetInt64(), defGetString(), defGetTypeLength(), DefineView(), do_analyze_rel(), does_not_exist_skipping(), DropConfigurationMapping(), EnumValuesCreate(), errorMissingColumn(), ExecAlterExtensionStmt(), ExecAlterObjectSchemaStmt(), ExecAlterOwnerStmt(), ExecEvalXmlExpr(), ExecSetVariableStmt(), ExecTypeSetColNames(), ExecuteDoStmt(), expand_col_privileges(), ExpandColumnRefStar(), expandRecordVariable(), expandRelAttrs(), expandRTE(), expandTupleDesc(), extractRemainingColumns(), fetch_table_list(), FigureColnameInternal(), filter_list_to_array(), findTargetlistEntrySQL92(), flatten_set_variable_args(), get_connect_string(), get_from_clause_coldeflist(), get_name_for_var_field(), get_object_address(), get_object_address_attrdef(), get_object_address_attribute(), get_object_address_defacl(), get_object_address_opcf(), get_object_address_opf_member(), get_object_address_publication_rel(), get_object_address_relobject(), get_object_address_unqualified(), get_object_address_usermapping(), get_rte_attribute_name(), get_rule_expr(), get_simple_values_rte(), get_tablefunc(), get_with_clause(), getTokenTypes(), interpret_AS_clause(), interpret_func_parallel(), interpret_func_volatility(), intorel_startup(), jsonb_exists_all(), jsonb_exists_any(), LookupTypeName(), make_const(), make_row_comparison_op(), makeRangeVarFromNameList(), NameListToQuotedString(), NameListToString(), objectNamesToOids(), objectsInSchemaToOids(), oidparse(), operator_precedence_group(), parse_basebackup_options(), parse_output_parameters(), ParseFuncOrColumn(), pg_decode_startup(), plpgsql_parse_cwordrowtype(), plpgsql_parse_cwordtype(), postgresBeginDirectModify(), postgresBeginForeignModify(), postgresBeginForeignScan(), postgresExplainDirectModify(), postgresExplainForeignModify(), postgresExplainForeignScan(), process_owned_by(), publicationListToArray(), regnamespacein(), regrolein(), ReleaseSavepoint(), replace_domain_constraint_value(), resolve_column_ref(), ResolveOpClass(), RollbackToSavepoint(), scanRTEForColumn(), sepgsql_utility_command(), set_join_column_names(), set_relation_column_names(), set_using_names(), SetDefaultACLsInSchemas(), sql_fn_post_column_ref(), standard_ProcessUtility(), stringlist_to_identifierstr(), tfuncInitialize(), to_regnamespace(), to_regrole(), transformAExprIn(), transformAExprOf(), transformAExprOp(), transformAExprOpAll(), transformAExprOpAny(), transformAssignmentIndirection(), transformColumnDefinition(), transformColumnNameList(), transformColumnRef(), transformFromClauseItem(), transformIndexConstraint(), transformIndirection(), transformRangeFunction(), transformRangeTableFunc(), transformSubLink(), transformXmlExpr(), TypeGetTupleDesc(), typenameTypeMod(), validate_ddl_tags(), validate_table_rewrite_tags(), and xmlelement().

Typedef Documentation

◆ Value

Function Documentation

◆ makeBitString()

Value* makeBitString ( char *  str)

Definition at line 68 of file value.c.

References makeNode, Value::ValUnion::str, generate_unaccent_rules::str, T_BitString, Value::type, and Value::val.

Referenced by nodeRead().

69 {
70  Value *v = makeNode(Value);
71 
72  v->type = T_BitString;
73  v->val.str = str;
74  return v;
75 }
union Value::ValUnion val
#define makeNode(_type_)
Definition: nodes.h:558
Definition: value.h:42
char * str
Definition: value.h:48
NodeTag type
Definition: value.h:44

◆ makeFloat()

Value* makeFloat ( char *  numericStr)

Definition at line 38 of file value.c.

References makeNode, Value::ValUnion::str, T_Float, Value::type, and Value::val.

Referenced by nodeRead(), and pg_get_object_address().

39 {
40  Value *v = makeNode(Value);
41 
42  v->type = T_Float;
43  v->val.str = numericStr;
44  return v;
45 }
union Value::ValUnion val
#define makeNode(_type_)
Definition: nodes.h:558
Definition: value.h:42
Definition: nodes.h:283
char * str
Definition: value.h:48
NodeTag type
Definition: value.h:44

◆ makeInteger()

Value* makeInteger ( long  i)

Definition at line 23 of file value.c.

References i, Value::ValUnion::ival, makeNode, T_Integer, Value::type, and Value::val.

Referenced by nodeRead(), postgresGetForeignPlan(), postgresPlanDirectModify(), postgresPlanForeignModify(), sequence_options(), and transformCreateStmt().

24 {
25  Value *v = makeNode(Value);
26 
27  v->type = T_Integer;
28  v->val.ival = i;
29  return v;
30 }
long ival
Definition: value.h:47
union Value::ValUnion val
#define makeNode(_type_)
Definition: nodes.h:558
Definition: value.h:42
int i
NodeTag type
Definition: value.h:44

◆ makeString()

Value* makeString ( char *  str)

Definition at line 53 of file value.c.

References makeNode, Value::ValUnion::str, generate_unaccent_rules::str, T_String, Value::type, and Value::val.

Referenced by addRangeTableEntryForFunction(), addRangeTableEntryForSubquery(), addRangeTableEntryForValues(), analyzeCTETargetList(), buildRelationAliases(), check_selective_binary_conversion(), CreateRole(), DefineView(), deserialize_deflist(), expandRTE(), expandTupleDesc(), FunctionIsVisible(), generate_function_name(), generate_operator_name(), generateClonedIndexStmt(), generateSerialExtraStmts(), get_collation(), get_file_fdw_attribute_options(), get_object_address_rv(), get_opclass(), make_copy_attnamelist(), makeSimpleA_Expr(), makeTypeName(), nodeRead(), OperatorIsVisible(), pg_logical_slot_get_changes_guts(), plpgsql_parse_dblword(), plpgsql_parse_tripword(), postgresGetForeignPlan(), postgresPlanDirectModify(), postgresPlanForeignModify(), RebuildConstraintComment(), regoperout(), regprocout(), resolve_unique_index_expr(), stringToQualifiedNameList(), test_rls_hooks_permissive(), test_rls_hooks_restrictive(), textarray_to_stringlist(), textarray_to_strvaluelist(), textToQualifiedNameList(), transformColumnDefinition(), transformColumnRef(), transformCurrentOfExpr(), transformFkeyGetPrimaryKey(), transformFromClauseItem(), transformIndexConstraint(), transformRangeTableFunc(), transformRowExpr(), transformSetOperationStmt(), transformSubLink(), transformTableLikeClause(), transformXmlExpr(), and untransformRelOptions().

54 {
55  Value *v = makeNode(Value);
56 
57  v->type = T_String;
58  v->val.str = str;
59  return v;
60 }
union Value::ValUnion val
#define makeNode(_type_)
Definition: nodes.h:558
Definition: value.h:42
char * str
Definition: value.h:48
NodeTag type
Definition: value.h:44