Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs | Functions

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

Defines

#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)

Define Documentation

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

Definition at line 53 of file value.h.

Referenced by defGetNumeric().

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

Definition at line 54 of file value.h.

Referenced by AddRoleMems(), addTargetToSortList(), AlterDatabase(), AlterExtensionNamespace(), AlterRole(), appendTypeNameToBuffer(), ATAddForeignKeyConstraint(), ATExecAddConstraint(), ATExecSetStorage(), BuildDescFromLists(), CommentObject(), ConvertTriggerToFK(), CopyGetAttnums(), createdb(), CreateExtension(), CreateRole(), CreateTrigger(), DeconstructQualifiedName(), defGetInt64(), defGetString(), defGetTypeLength(), DefineView(), DelRoleMems(), do_analyze_rel(), does_not_exist_skipping(), DropConfigurationMapping(), DropRole(), EnumValuesCreate(), ExecAlterDefaultPrivilegesStmt(), ExecAlterExtensionStmt(), ExecAlterOwnerStmt(), ExecEvalXml(), ExecInitFunctionScan(), ExecSetVariableStmt(), ExecTypeFromExprList(), ExecuteDoStmt(), expand_col_privileges(), ExpandColumnRefStar(), expandRecordVariable(), expandRelAttrs(), expandRTE(), expandTupleDesc(), extractRemainingColumns(), FigureColnameInternal(), filter_list_to_array(), findTargetlistEntrySQL92(), flatten_set_variable_args(), get_connect_string(), get_name_for_var_field(), get_object_address_attribute(), get_object_address_opcf(), get_object_address_relobject(), get_object_address_unqualified(), get_rte_attribute_name(), get_rule_expr(), get_with_clause(), GetIndexOpClass(), getTokenTypes(), interpret_AS_clause(), interpret_func_volatility(), intorel_startup(), LookupTypeName(), make_const(), make_row_comparison_op(), makeRangeVarFromNameList(), NameListToQuotedString(), NameListToString(), objectNamesToOids(), objectsInSchemaToOids(), oidparse(), parse_basebackup_options(), ParseFuncOrColumn(), plpgsql_parse_cwordrowtype(), plpgsql_parse_cwordtype(), postgresBeginForeignModify(), postgresBeginForeignScan(), postgresExplainForeignModify(), postgresExplainForeignScan(), process_owned_by(), ReleaseSavepoint(), resolve_column_ref(), roleNamesToIds(), RollbackToSavepoint(), scanRTEForColumn(), sepgsql_utility_command(), set_join_column_names(), set_relation_column_names(), set_using_names(), SetDefaultACLsInSchemas(), sql_fn_post_column_ref(), standard_ProcessUtility(), transformAExprIn(), transformAExprOf(), transformAExprOp(), transformAssignmentIndirection(), transformColumnDefinition(), transformColumnNameList(), transformColumnRef(), transformFromClauseItem(), transformIndexConstraint(), transformIndirection(), transformXmlExpr(), TypeGetTupleDesc(), typenameTypeMod(), validate_ddl_tags(), and xmlelement().


Typedef Documentation

typedef struct Value Value

Function Documentation

Value* makeBitString ( char *  str  ) 

Definition at line 68 of file value.c.

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

Referenced by nodeRead().

{
    Value      *v = makeNode(Value);

    v->type = T_BitString;
    v->val.str = str;
    return v;
}

Value* makeFloat ( char *  numericStr  ) 

Definition at line 38 of file value.c.

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

Referenced by nodeRead().

{
    Value      *v = makeNode(Value);

    v->type = T_Float;
    v->val.str = numericStr;
    return v;
}

Value* makeInteger ( long  i  ) 

Definition at line 23 of file value.c.

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

Referenced by defWithOids(), nodeRead(), and postgresPlanForeignModify().

{
    Value      *v = makeNode(Value);

    v->type = T_Integer;
    v->val.ival = i;
    return v;
}

Value* makeString ( char *  str  )