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  Boolean
struct  String
struct  BitString


#define intVal(v)   (castNode(Integer, v)->ival)
#define floatVal(v)   atof(castNode(Float, v)->fval)
#define boolVal(v)   (castNode(Boolean, v)->boolval)
#define strVal(v)   (castNode(String, v)->sval)


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


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

Macro Definition Documentation

◆ boolVal

#define boolVal (   v)    (castNode(Boolean, v)->boolval)

Definition at line 71 of file value.h.

◆ floatVal

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

Definition at line 70 of file value.h.

◆ intVal

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

Definition at line 69 of file value.h.

◆ strVal

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

Definition at line 72 of file value.h.

Typedef Documentation

◆ BitString

typedef struct BitString BitString

◆ Boolean

typedef struct Boolean Boolean

◆ 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 77 of file value.c.

78 {
81  v->bsval = str;
82  return v;
83 }
#define makeNode(_type_)
Definition: nodes.h:621
char * bsval
Definition: value.h:66

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

Referenced by nodeRead().

◆ makeBoolean()

Boolean* makeBoolean ( bool  var)

Definition at line 49 of file value.c.

50 {
51  Boolean *v = makeNode(Boolean);
53  v->boolval = val;
54  return v;
55 }
long val
Definition: informix.c:664
Definition: value.h:52
bool boolval
Definition: value.h:54

References Boolean::boolval, makeNode, and val.

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

◆ makeFloat()

Float* makeFloat ( char *  numericStr)

Definition at line 37 of file value.c.

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

References Float::fval, and makeNode.

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->ival = i;
28  return v;
29 }
int i
Definition: isn.c:73
Definition: value.h:29
int ival
Definition: value.h:31

References i, Integer::ival, and makeNode.

Referenced by buildDefItem(), nodeRead(), postgresGetForeignPlan(), and postgresPlanForeignModify().

◆ makeString()

String* makeString ( char *  str)

Definition at line 63 of file value.c.

64 {
65  String *v = makeNode(String);
67  v->sval = str;
68  return v;
69 }
Definition: value.h:58
char * sval
Definition: value.h:60

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

Referenced by addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), addRangeTableEntryForSubquery(), addRangeTableEntryForValues(), analyzeCTE(), analyzeCTETargetList(), appendJsonTableColumns(), buildDefItem(), buildRelationAliases(), check_publications(), check_selective_binary_conversion(), check_sql_fn_retval(), CloneFkReferenced(), CloneFkReferencing(), CloneRowTriggersToPartition(), DefineView(), ExecAlterExtensionContentsStmt(), expand_single_inheritance_child(), expandRTE(), expandTableLikeClause(), expandTupleDesc(), fetch_remote_table_info(), 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(), transformJsonArrayQueryConstructor(), transformJsonPassingArgs(), transformPLAssignStmt(), transformRangeTableFunc(), transformRowExpr(), transformSetOperationStmt(), transformSubLink(), transformTableLikeClause(), transformXmlExpr(), and untransformRelOptions().