|
PostgreSQL Source Code git master
|
#include "catalog/genbki.h"#include "catalog/objectaddress.h"#include "catalog/pg_type_d.h"#include "nodes/nodes.h"

Go to the source code of this file.
Variables | |
| END_CATALOG_STRUCT typedef FormData_pg_type * | Form_pg_type |
| BEGIN_CATALOG_STRUCT TypeRelation_Rowtype_Id | BKI_SCHEMA_MACRO |
| NameData | typname |
| char | typalign |
| FormData_pg_type | |
| int16 typlen BKI_ARRAY_DEFAULT | ( | - | 1 | ) |
| char typcategory BKI_ARRAY_DEFAULT | ( | A | ) |
| regproc typreceive BKI_ARRAY_DEFAULT | ( | array_recv | ) |
| regproc typsend BKI_ARRAY_DEFAULT | ( | array_send | ) |
| bool typbyval BKI_ARRAY_DEFAULT | ( | f | ) |
| char typdelim BKI_DEFAULT | ( | ' | , |
| ' | |||
| ) |
| regproc typsubscript BKI_DEFAULT | ( | - | ) |
| Oid typrelid BKI_DEFAULT | ( | 0 | ) |
| bool typispreferred BKI_DEFAULT | ( | f | ) |
| char typstorage BKI_DEFAULT | ( | p | ) |
| Oid typnamespace BKI_DEFAULT | ( | pg_catalog | ) |
| bool typisdefined BKI_DEFAULT | ( | t | ) |
| BEGIN_CATALOG_STRUCT CATALOG | ( | pg_type | , |
| 1247 | , | ||
| TypeRelationId | |||
| ) |
| DECLARE_TOAST | ( | pg_type | , |
| 4171 | , | ||
| 4172 | |||
| ) |
| DECLARE_UNIQUE_INDEX | ( | pg_type_typname_nsp_index | , |
| 2704 | , | ||
| TypeNameNspIndexId | , | ||
| pg_type | , | ||
| btree(typname name_ops, typnamespace oid_ops) | |||
| ) |
| DECLARE_UNIQUE_INDEX_PKEY | ( | pg_type_oid_index | , |
| 2703 | , | ||
| TypeOidIndexId | , | ||
| pg_type | , | ||
| btree(oid oid_ops) | |||
| ) |
|
extern |
Definition at line 555 of file pg_type.c.
References add_exact_object_address(), DatumGetAclPCopy, deleteDependencyRecordsFor(), deleteSharedDependencyRecordsFor(), DEPENDENCY_INTERNAL, DEPENDENCY_NORMAL, fb(), Form_pg_type, free_object_addresses(), GETSTRUCT(), heap_getattr(), new_object_addresses(), NIL, ObjectAddressSet, OidIsValid, record_object_address_dependencies(), recordDependencyOn(), recordDependencyOnCurrentExtension(), recordDependencyOnExpr(), recordDependencyOnNewAcl(), recordDependencyOnOwner(), RelationGetDescr, stringToNode(), and TextDatumGetCString.
Referenced by AlterDomainDefault(), AlterTypeRecurse(), TypeCreate(), and TypeShellMake().
| MAKE_SYSCACHE | ( | TYPENAMENSP | , |
| pg_type_typname_nsp_index | , | ||
| 64 | |||
| ) |
| MAKE_SYSCACHE | ( | TYPEOID | , |
| pg_type_oid_index | , | ||
| 64 | |||
| ) |
Definition at line 838 of file pg_type.c.
References CStringGetDatum(), fb(), makeObjectName(), NAMEDATALEN, ObjectIdGetDatum(), pfree(), SearchSysCacheExists2, and snprintf.
Referenced by DefineDomain(), DefineEnum(), DefineRange(), DefineType(), heap_create_with_catalog(), moveArrayTypeName(), and RenameTypeInternal().
Definition at line 948 of file pg_type.c.
References buf, CStringGetDatum(), ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errdetail(), errhint(), errmsg(), ERROR, fb(), NAMEDATALEN, ObjectIdGetDatum(), pg_mbcliplen(), pnstrdup(), psprintf(), pstrdup(), and SearchSysCacheExists2.
Referenced by DefineRange().
Definition at line 903 of file pg_type.c.
References CommandCounterIncrement(), fb(), get_array_type(), get_element_type(), get_typisdefined(), makeArrayTypeName(), OidIsValid, pfree(), and RenameTypeInternal().
Referenced by DefineCompositeType(), DefineDomain(), DefineEnum(), DefineRange(), DefineType(), heap_create_with_catalog(), and RenameTypeInternal().
Definition at line 763 of file pg_type.c.
References Assert, CatalogTupleUpdate(), CStringGetDatum(), elog, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg(), ERROR, fb(), Form_pg_type, get_typisdefined(), GETSTRUCT(), GetSysCacheOid2, heap_freetuple(), HeapTupleIsValid, InvokeObjectPostAlterHook, makeArrayTypeName(), moveArrayTypeName(), namestrcpy(), ObjectIdGetDatum(), OidIsValid, pfree(), RenameTypeInternal(), RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by moveArrayTypeName(), RenameRelationInternal(), RenameType(), and RenameTypeInternal().
|
extern |
Definition at line 195 of file pg_type.c.
References aclcheck_error(), ACLCHECK_NOT_OWNER, binary_upgrade_next_pg_type_oid, BoolGetDatum(), CatalogTupleInsert(), CatalogTupleUpdate(), CharGetDatum(), CStringGetDatum(), CStringGetTextDatum, elog, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg(), ERROR, fb(), Form_pg_type, GenerateTypeDependencies(), get_user_default_acl(), GetNewOidWithIndex(), GETSTRUCT(), heap_form_tuple(), heap_modify_tuple(), HeapTupleIsValid, i, Int16GetDatum(), Int32GetDatum(), InvalidOid, InvokeObjectPostCreateHook, IsBinaryUpgrade, IsBootstrapProcessingMode, name, NameGetDatum(), namestrcpy(), OBJECT_TYPE, ObjectAddressSet, ObjectIdGetDatum(), OidIsValid, PointerGetDatum(), RelationGetDescr, RowExclusiveLock, SearchSysCacheCopy2, storage, stringToNode(), table_close(), table_open(), and values.
Referenced by AddNewRelationType(), DefineDomain(), DefineEnum(), DefineRange(), DefineType(), and heap_create_with_catalog().
|
extern |
Definition at line 57 of file pg_type.c.
References Assert, binary_upgrade_next_pg_type_oid, BoolGetDatum(), CatalogTupleInsert(), CharGetDatum(), DEFAULT_TYPDELIM, ereport, errcode(), errmsg(), ERROR, fb(), GenerateTypeDependencies(), GetNewOidWithIndex(), heap_form_tuple(), heap_freetuple(), i, Int16GetDatum(), Int32GetDatum(), InvalidOid, InvokeObjectPostCreateHook, IsBinaryUpgrade, IsBootstrapProcessingMode, name, NameGetDatum(), namestrcpy(), ObjectAddressSet, ObjectIdGetDatum(), OidIsValid, RowExclusiveLock, table_close(), table_open(), and values.
Referenced by compute_return_type(), and DefineType().
| BEGIN_CATALOG_STRUCT TypeRelation_Rowtype_Id BKI_SCHEMA_MACRO |
| END_CATALOG_STRUCT typedef FormData_pg_type* Form_pg_type |
Definition at line 265 of file pg_type.h.
Referenced by add_cast_to(), agg_args_support_sendreceive(), AlterDomainAddConstraint(), AlterDomainDefault(), AlterDomainDropConstraint(), AlterDomainNotNull(), AlterType(), AlterTypeNamespaceInternal(), AlterTypeOwner(), AlterTypeOwner_oid(), AlterTypeOwnerInternal(), AlterTypeRecurse(), ATExecAddOf(), ATExecAlterColumnType(), build_datatype(), check_of_type(), checkDomainOwner(), checkEnumOwner(), compile_plperl_function(), compile_pltcl_function(), compute_return_type(), ConstructTupleDescriptor(), DefineDomain(), DefineType(), errdatatype(), examine_attribute(), examine_attribute(), examine_expression(), ExecGrant_Type_check(), fillTypeDesc(), find_typmod_coercion_function(), format_type_extended(), FuncNameAsType(), generate_qualified_type_name(), GenerateTypeDependencies(), get_array_type(), get_attstatsslot(), get_base_element_type(), get_element_type(), get_object_address_type(), get_typ_typrelid(), get_typbyval(), get_typcollation(), get_typdefault(), get_type_category_preferred(), get_type_io_data(), get_typisdefined(), get_typlen(), get_typlenbyval(), get_typlenbyvalalign(), get_typmodin(), get_typstorage(), get_typsubscript(), get_typtype(), getBaseTypeAndTypmod(), getExtensionType(), getTypeBinaryInputInfo(), getTypeBinaryOutputInfo(), getTypeInputInfo(), getTypeIOParam(), getTypeOutputInfo(), interpret_function_parameter_list(), load_domaintype_info(), logicalrep_write_tuple(), logicalrep_write_typ(), lookup_type_cache(), LookupTypeNameOid(), map_sql_type_to_xml_name(), parseTypeString(), pg_basetype(), pg_type_aclmask_ext(), plpgsql_compile_callback(), plsample_func_handler(), PLy_procedure_create(), populate_typ_list(), prepare_column_cache(), regtypeout(), RemoveTypeById(), RenameType(), RenameTypeInternal(), SPI_gettype(), statext_mcv_import(), stringTypeDatum(), transformColumnDefinition(), transformColumnType(), transformOfType(), TupleDescInitEntry(), typeByVal(), TypeCreate(), typeidTypeRelid(), TypeIsVisibleExt(), typeLen(), typenameType(), typenameTypeId(), typenameTypeIdAndMod(), typenameTypeMod(), typeOrDomainTypeRelid(), typeTypeCollation(), typeTypeId(), typeTypeName(), and typeTypeRelid().
| char typalign |
Definition at line 178 of file pg_type.h.
Referenced by array_cmp(), array_contain_compare(), array_copy(), array_eq(), array_extract_slice(), array_in(), array_insert_slice(), array_map(), array_nelems_size(), array_out(), array_recv(), array_replace_internal(), array_seek(), array_send(), array_slice_size(), array_to_json_internal(), array_to_jsonb_internal(), array_to_text_internal(), boot_get_type_io_data(), CopyArrayEls(), datum_compute_size(), datum_write(), dumpBaseType(), ExecEvalHashedScalarArrayOp(), ExecEvalScalarArrayOp(), extract_variadic_args(), get_multirange_io_data(), get_range_io_data(), get_text_array_contents(), get_type_io_data(), get_typlenbyvalalign(), hash_array(), hash_array_extended(), InsertOneProargdefaultsValue(), InsertOneValue(), make_SAOP_expr(), multirange_get_bounds(), multirange_get_range(), plperl_ref_from_pg_array(), range_deserialize(), range_serialize(), ReadArrayBinary(), typalign_to_alignby(), and width_bucket_array_variable().
| NameData typname |
Definition at line 43 of file pg_type.h.
Referenced by add_cast_to(), compute_return_type(), convert_type_name(), describeFunctions(), describeOperators(), format_type_extended(), generate_qualified_type_name(), get_function_sibling_type(), getExtensionType(), getObjectDescription(), LookupTypeNameExtended(), objectNamesToOids(), pg_input_error_info(), pg_input_is_valid(), pg_input_is_valid_common(), printTypmod(), regtypeout(), SPI_gettype(), transformColumnDefinition(), TypeIsVisibleExt(), TypenameGetTypid(), TypenameGetTypidExtended(), uint32in_subr(), and uint64in_subr().