PostgreSQL Source Code  git master
value.c File Reference
#include "postgres.h"
#include "nodes/value.h"
Include dependency graph for value.c:

Go to the source code of this file.

Functions

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

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