↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

支持中的版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发中的版本: 19 / 20devel
已结束支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2
历史版本。 PostgreSQL 9.3 已结束支持。 2018-11-08. 请参阅 当前版本手册.

34.57. user_defined_types #

视图user_defined_types目前包含定义在当前数据库中的所有复合类型。只有那些当前用户能够访问(作为拥有者或具有某些权限)的类型才会被显示。

SQL 中有两种用户定义类型:结构类型(在PostgreSQL中也称为复合类型)以及独立类型(distinct type,PostgreSQL 尚未实现)。为兼顾将来,请使用列user_defined_type_category来区分它们。其他用户定义类型,如基础类型和枚举(两者都是PostgreSQL的扩展),不会在这里显示。域的相关信息见第 34.22 节。

表 34.55. user_defined_types 列

名称数据类型 描述
user_defined_type_catalogsql_identifier 包含该类型的数据库名称(总是当前数据库)
user_defined_type_schemasql_identifier 包含该类型的模式名称
user_defined_type_namesql_identifier 类型的名称
user_defined_type_categorycharacter_data 当前总是STRUCTURED
is_instantiableyes_or_no 对应 PostgreSQL 不支持的特性
is_finalyes_or_no 对应 PostgreSQL 不支持的特性
ordering_formcharacter_data 对应 PostgreSQL 不支持的特性
ordering_categorycharacter_data 对应 PostgreSQL 不支持的特性
ordering_routine_catalogsql_identifier 对应 PostgreSQL 不支持的特性
ordering_routine_schemasql_identifier 对应 PostgreSQL 不支持的特性
ordering_routine_namesql_identifier 对应 PostgreSQL 不支持的特性
reference_typecharacter_data 对应 PostgreSQL 不支持的特性
data_typecharacter_data 对应 PostgreSQL 不支持的特性
character_maximum_lengthcardinal_number 对应 PostgreSQL 不支持的特性
character_octet_lengthcardinal_number 对应 PostgreSQL 不支持的特性
character_set_catalogsql_identifier 对应 PostgreSQL 不支持的特性
character_set_schemasql_identifier 对应 PostgreSQL 不支持的特性
character_set_namesql_identifier 对应 PostgreSQL 不支持的特性
collation_catalogsql_identifier 对应 PostgreSQL 不支持的特性
collation_schemasql_identifier 对应 PostgreSQL 不支持的特性
collation_namesql_identifier 对应 PostgreSQL 不支持的特性
numeric_precisioncardinal_number 对应 PostgreSQL 不支持的特性
numeric_precision_radixcardinal_number 对应 PostgreSQL 不支持的特性
numeric_scalecardinal_number 对应 PostgreSQL 不支持的特性
datetime_precisioncardinal_number 对应 PostgreSQL 不支持的特性
interval_typecharacter_data 对应 PostgreSQL 不支持的特性
interval_precisioncardinal_number 对应 PostgreSQL 不支持的特性
source_dtd_identifiersql_identifier 对应 PostgreSQL 不支持的特性
ref_dtd_identifiersql_identifier 对应 PostgreSQL 不支持的特性

报告文档问题

阅读 上游文档. 反馈更正前请先核对 当前版本手册.