PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | ISCOMPLEX(typeid) (typeOrDomainTypeRelid(typeid) != InvalidOid) |
Typedefs | |
typedef HeapTuple | Type |
#define ISCOMPLEX | ( | typeid | ) | (typeOrDomainTypeRelid(typeid) != InvalidOid) |
Definition at line 59 of file parse_type.h.
Definition at line 20 of file parse_type.h.
Oid GetColumnDefCollation | ( | ParseState * | pstate, |
const ColumnDef * | coldef, | ||
Oid | typeOid | ||
) |
Definition at line 540 of file parse_type.c.
References ColumnDef::collClause, CollateClause::collname, ColumnDef::collOid, ereport, errcode(), errmsg(), ERROR, format_type_be(), get_typcollation(), CollateClause::location, ColumnDef::location, LookupCollation(), OidIsValid, and parser_errposition().
Referenced by addRangeTableEntryForFunction(), ATExecAddColumn(), ATExecAlterColumnType(), ATPrepAlterColumnType(), BuildDescForRelation(), MergeChildAttribute(), and MergeInheritedAttribute().
Oid LookupCollation | ( | ParseState * | pstate, |
List * | collnames, | ||
int | location | ||
) |
Definition at line 515 of file parse_type.c.
References cancel_parser_errposition_callback(), get_collation_oid(), and setup_parser_errposition_callback().
Referenced by GetColumnDefCollation(), resolve_unique_index_expr(), transformCollateClause(), and transformColumnType().
Type LookupTypeName | ( | ParseState * | pstate, |
const TypeName * | typeName, | ||
int32 * | typmod_p, | ||
bool | missing_ok | ||
) |
Definition at line 38 of file parse_type.c.
References LookupTypeNameExtended().
Referenced by AlterTypeOwner(), compute_return_type(), get_object_address_type(), interpret_function_parameter_list(), LookupTypeNameOid(), parseTypeString(), and typenameType().
Type LookupTypeNameExtended | ( | ParseState * | pstate, |
const TypeName * | typeName, | ||
int32 * | typmod_p, | ||
bool | temp_ok, | ||
bool | missing_ok | ||
) |
Definition at line 73 of file parse_type.c.
References TypeName::arrayBounds, Assert, attnum, cancel_parser_errposition_callback(), RangeVar::catalogname, DeconstructQualifiedName(), elog, ereport, errcode(), errmsg(), ERROR, format_type_be(), get_array_type(), get_attnum(), get_atttype(), GetSysCacheOid2, HeapTupleIsValid, InvalidAttrNumber, InvalidOid, lfourth, linitial, list_length(), TypeName::location, LookupExplicitNamespace(), lsecond, lthird, makeRangeVar(), NameListToString(), TypeName::names, NIL, NoLock, NOTICE, ObjectIdGetDatum(), OidIsValid, parser_errposition(), TypeName::pct_type, PointerGetDatum(), RangeVarGetRelid, RangeVar::relname, RangeVar::schemaname, SearchSysCache1(), setup_parser_errposition_callback(), strVal, TypenameGetTypidExtended(), TypeNameToString(), typenameTypeMod(), TypeName::typeOid, and typname.
Referenced by FuncNameAsType(), and LookupTypeName().
Oid LookupTypeNameOid | ( | ParseState * | pstate, |
const TypeName * | typeName, | ||
bool | missing_ok | ||
) |
Definition at line 232 of file parse_type.c.
References ereport, errcode(), errmsg(), ERROR, GETSTRUCT, InvalidOid, TypeName::location, LookupTypeName(), parser_errposition(), ReleaseSysCache(), and TypeNameToString().
Referenced by get_object_address(), LookupFuncWithArgs(), LookupOperWithArgs(), and type_in_list_does_not_exist_skipping().
Definition at line 785 of file parse_type.c.
References ereturn, errcode(), errmsg(), GETSTRUCT, IsA, LookupTypeName(), ReleaseSysCache(), str, TypeNameToString(), and typeStringToTypeName().
Referenced by parseNameAndArgTypes(), pg_input_is_valid_common(), plperl_spi_prepare(), pltcl_SPI_prepare(), PLy_spi_prepare(), regtypein(), and to_regtypemod().
Definition at line 654 of file parse_type.c.
References GETSTRUCT, getTypeIOParam(), and OidInputFunctionCall().
Referenced by coerce_type().
Definition at line 578 of file parse_type.c.
References elog, ERROR, HeapTupleIsValid, ObjectIdGetDatum(), and SearchSysCache1().
Referenced by coerce_type(), and find_typmod_coercion_function().
Definition at line 668 of file parse_type.c.
References elog, ERROR, GETSTRUCT, HeapTupleIsValid, ObjectIdGetDatum(), ReleaseSysCache(), SearchSysCache1(), and type.
Referenced by transformAssignmentIndirection(), and typeInheritsFrom().
char* TypeNameListToString | ( | List * | typenames | ) |
Definition at line 492 of file parse_type.c.
References appendStringInfoChar(), appendTypeNameToBuffer(), initStringInfo(), lfirst_node, list_head(), and typenames.
Referenced by does_not_exist_skipping().
char* TypeNameToString | ( | const TypeName * | typeName | ) |
Definition at line 478 of file parse_type.c.
References appendTypeNameToBuffer(), and initStringInfo().
Referenced by AlterDomainDropConstraint(), AlterDomainValidateConstraint(), AlterTypeOwner(), compute_return_type(), CreateCast(), CreateTransform(), defGetString(), defGetTypeLength(), DefineAggregate(), DefineDomain(), DefineOpClass(), does_not_exist_skipping(), get_object_address_opf_member(), get_object_address_type(), interpret_function_parameter_list(), LookupTypeNameExtended(), LookupTypeNameOid(), parseTypeString(), type_in_list_does_not_exist_skipping(), typenameType(), and typenameTypeMod().
Type typenameType | ( | ParseState * | pstate, |
const TypeName * | typeName, | ||
int32 * | typmod_p | ||
) |
Definition at line 264 of file parse_type.c.
References ereport, errcode(), errmsg(), ERROR, GETSTRUCT, TypeName::location, LookupTypeName(), parser_errposition(), and TypeNameToString().
Referenced by AlterType(), ATExecAddOf(), ATExecAlterColumnType(), DefineDomain(), DefineType(), transformColumnDefinition(), transformColumnType(), transformOfType(), typenameTypeId(), and typenameTypeIdAndMod().
Oid typenameTypeId | ( | ParseState * | pstate, |
const TypeName * | typeName | ||
) |
Definition at line 291 of file parse_type.c.
References GETSTRUCT, ReleaseSysCache(), and typenameType().
Referenced by AlterDomainAddConstraint(), AlterDomainDefault(), AlterDomainDropConstraint(), AlterDomainNotNull(), AlterDomainValidateConstraint(), AlterEnum(), AlterTypeNamespace(), check_object_ownership(), CreateCast(), CreateFunction(), CreateTransform(), DefineAggregate(), DefineOpClass(), DefineOperator(), DefineRange(), DefineRelation(), DefineType(), init_params(), PrepareQuery(), processTypesSpec(), RenameConstraint(), RenameType(), transformAlterTableStmt(), and transformIndexConstraint().
void typenameTypeIdAndMod | ( | ParseState * | pstate, |
const TypeName * | typeName, | ||
Oid * | typeid_p, | ||
int32 * | typmod_p | ||
) |
Definition at line 310 of file parse_type.c.
References GETSTRUCT, ReleaseSysCache(), and typenameType().
Referenced by addRangeTableEntryForFunction(), ATExecAddColumn(), ATPrepAlterColumnType(), BuildDescForRelation(), flatten_set_variable_args(), MergeChildAttribute(), MergeInheritedAttribute(), revalidate_rectypeid(), transformJsonOutput(), transformJsonTableColumns(), transformRangeTableFunc(), transformTypeCast(), and transformXmlSerialize().
Definition at line 689 of file parse_type.c.
References elog, ERROR, GETSTRUCT, HeapTupleIsValid, ObjectIdGetDatum(), ReleaseSysCache(), SearchSysCache1(), and type.
Referenced by typeInheritsFrom(), and typeIsOfTypedTable().
Definition at line 738 of file parse_type.c.
References ErrorContextCallback::arg, Assert, ErrorContextCallback::callback, ereturn, errcode(), errmsg(), error_context_stack, linitial_node, list_length(), ErrorContextCallback::previous, pts_error_callback(), RAW_PARSE_TYPE_NAME, raw_parser(), TypeName::setof, str, and unconstify.
Referenced by parseTypeString(), and pg_get_object_address().
Definition at line 590 of file parse_type.c.
References elog, ERROR, and GETSTRUCT.
Referenced by AlterType(), AlterTypeOwner(), compute_return_type(), FuncNameAsType(), get_object_address_type(), and interpret_function_parameter_list().
char* typeTypeName | ( | Type | t | ) |
Definition at line 619 of file parse_type.c.
References GETSTRUCT, NameStr, and pstrdup().
Referenced by coerce_type().