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


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


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


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.

◆ intVal

#define intVal (   v)    (castNode(Integer, v)->val)

Definition at line 63 of file value.h.

◆ strVal

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

Definition at line 65 of file value.h.

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.

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

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

Referenced by nodeRead().

◆ makeFloat()

Float* makeFloat ( char *  numericStr)

Definition at line 37 of file value.c.

38 {
39  Float *v = makeNode(Float);
41  v->val = numericStr;
42  return v;
43 }
Definition: value.h:46
char * val
Definition: value.h:48

References makeNode, and Float::val.

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

◆ makeInteger()

Integer* makeInteger ( int  i)

Definition at line 23 of file value.c.

24 {
25  Integer *v = makeNode(Integer);
27  v->val = i;
28  return v;
29 }
int i
Definition: isn.c:73
Definition: value.h:29
int val
Definition: value.h:31

References i, makeNode, and Integer::val.

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

◆ makeString()

String* makeString ( char *  str)

Definition at line 51 of file value.c.

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

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().