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  Integer
 
struct  Float
 
struct  String
 
struct  BitString
 

Macros

#define intVal(v)   (castNode(Integer, v)->val)
 
#define floatVal(v)   atof(castNode(Float, v)->val)
 
#define strVal(v)   (castNode(String, v)->val)
 

Typedefs

typedef struct Integer Integer
 
typedef struct Float Float
 
typedef struct String String
 
typedef struct BitString BitString
 

Functions

IntegermakeInteger (int i)
 
FloatmakeFloat (char *numericStr)
 
StringmakeString (char *str)
 
BitStringmakeBitString (char *str)
 

Macro Definition Documentation

◆ floatVal

#define floatVal (   v)    atof(castNode(Float, v)->val)

Definition at line 64 of file value.h.

Referenced by defGetNumeric().

◆ intVal

◆ strVal

#define strVal (   v)    (castNode(String, v)->val)

Definition at line 65 of file value.h.

Referenced by addTargetToSortList(), AlterRole(), analyzeCTE(), appendTypeNameToBuffer(), ATAddForeignKeyConstraint(), ATExecSetCompression(), ATExecSetStorage(), BuildDescFromLists(), check_duplicates_in_publist(), check_object_ownership(), ChooseForeignKeyConstraintNameAddition(), CommentObject(), compute_function_attributes(), conversion_error_callback(), CopyGetAttnums(), create_ctas_nodata(), CreateRole(), CreateStatistics(), CreateTriggerFiringOn(), DeconstructQualifiedName(), defGetString(), defGetTypeLength(), DefineView(), deflist_to_tuplestore(), do_analyze_rel(), does_not_exist_skipping(), DropConfigurationMapping(), EnumValuesCreate(), errorMissingColumn(), ExecAlterExtensionStmt(), ExecAlterObjectSchemaStmt(), ExecAlterOwnerStmt(), ExecEvalXmlExpr(), ExecSetVariableStmt(), ExecTypeSetColNames(), ExecuteDoStmt(), expand_col_privileges(), expand_single_inheritance_child(), ExpandColumnRefStar(), expandNSItemAttrs(), expandNSItemVars(), expandRecordVariable(), expandRTE(), expandTupleDesc(), extractRemainingColumns(), fetch_table_list(), FigureColnameInternal(), filter_list_to_array(), findTargetlistEntrySQL92(), flatten_set_variable_args(), get_connect_string(), get_expr_result_type(), 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(), LookupTypeNameExtended(), make_path_rowexpr(), make_row_comparison_op(), makeRangeVarFromNameList(), merge_publications(), NameListToQuotedString(), NameListToString(), objectNamesToOids(), objectsInSchemaToOids(), 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(), regnamespacein(), regrolein(), replace_domain_constraint_value(), resolve_column_ref(), rewriteSearchAndCycle(), scanRTEForColumn(), sepgsql_utility_command(), set_join_column_names(), set_relation_column_names(), set_using_names(), SetDefaultACLsInSchemas(), sql_fn_post_column_ref(), stringlist_to_identifierstr(), tfuncInitialize(), to_regnamespace(), to_regrole(), transformAExprIn(), transformAExprOp(), transformAssignmentIndirection(), transformColumnDefinition(), transformColumnNameList(), transformColumnRef(), transformFromClauseItem(), transformIndexConstraint(), transformIndirection(), transformPartitionRangeBounds(), transformRangeFunction(), transformRangeTableFunc(), transformXmlExpr(), TypeGetTupleDesc(), typenameTypeMod(), validate_ddl_tags(), validate_table_rewrite_tags(), and xmlelement().

Typedef Documentation

◆ BitString

typedef struct BitString BitString

◆ Float

typedef struct Float Float

◆ Integer

typedef struct Integer Integer

◆ String

typedef struct String String

Function Documentation

◆ makeBitString()

BitString* makeBitString ( char *  str)

Definition at line 65 of file value.c.

References makeNode, generate_unaccent_rules::str, and BitString::val.

Referenced by nodeRead().

66 {
68 
69  v->val = str;
70  return v;
71 }
char * val
Definition: value.h:60
#define makeNode(_type_)
Definition: nodes.h:584

◆ makeFloat()

Float* makeFloat ( char *  numericStr)

Definition at line 37 of file value.c.

References makeNode, and Float::val.

Referenced by buildDefItem(), nodeRead(), pg_get_object_address(), and sequence_options().

38 {
39  Float *v = makeNode(Float);
40 
41  v->val = numericStr;
42  return v;
43 }
Definition: value.h:45
#define makeNode(_type_)
Definition: nodes.h:584
char * val
Definition: value.h:48

◆ makeInteger()

Integer* makeInteger ( int  i)

Definition at line 23 of file value.c.

References i, makeNode, and Integer::val.

Referenced by add_foreign_final_paths(), add_foreign_ordered_paths(), buildDefItem(), nodeRead(), postgresGetForeignPlan(), postgresPlanDirectModify(), postgresPlanForeignModify(), and sequence_options().

24 {
25  Integer *v = makeNode(Integer);
26 
27  v->val = i;
28  return v;
29 }
Definition: value.h:28
#define makeNode(_type_)
Definition: nodes.h:584
int val
Definition: value.h:31
int i

◆ makeString()

String* makeString ( char *  str)

Definition at line 51 of file value.c.

References makeNode, generate_unaccent_rules::str, and String::val.

Referenced by addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), addRangeTableEntryForSubquery(), addRangeTableEntryForValues(), analyzeCTE(), analyzeCTETargetList(), buildDefItem(), buildRelationAliases(), check_selective_binary_conversion(), check_sql_fn_retval(), CloneFkReferenced(), CloneFkReferencing(), CloneRowTriggersToPartition(), DefineView(), ExecAlterExtensionContentsStmt(), expand_single_inheritance_child(), expandRTE(), expandTableLikeClause(), expandTupleDesc(), FunctionIsVisible(), generate_function_name(), generate_operator_name(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), generateSerialExtraStmts(), get_collation(), get_file_fdw_attribute_options(), get_object_address_rv(), get_opclass(), interpret_function_parameter_list(), make_copy_attnamelist(), make_path_rowexpr(), makeSimpleA_Expr(), makeTypeName(), merge_publications(), nodeRead(), OperatorIsVisible(), pg_logical_slot_get_changes_guts(), plpgsql_parse_dblword(), plpgsql_parse_tripword(), postgresGetForeignPlan(), postgresPlanDirectModify(), postgresPlanForeignModify(), RebuildConstraintComment(), regoperout(), regprocout(), resolve_unique_index_expr(), rewriteSearchAndCycle(), stringToQualifiedNameList(), test_rls_hooks_permissive(), test_rls_hooks_restrictive(), textarray_to_stringlist(), textarray_to_strvaluelist(), textToQualifiedNameList(), transformColumnDefinition(), transformColumnRef(), transformCurrentOfExpr(), transformFkeyGetPrimaryKey(), transformFromClauseItem(), transformIndexConstraint(), transformPLAssignStmt(), transformRangeTableFunc(), transformRowExpr(), transformSetOperationStmt(), transformSubLink(), transformTableLikeClause(), transformXmlExpr(), and untransformRelOptions().

52 {
53  String *v = makeNode(String);
54 
55  v->val = str;
56  return v;
57 }
Definition: value.h:51
char * val
Definition: value.h:54
#define makeNode(_type_)
Definition: nodes.h:584