受支持版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发版本: 19 / devel
此文档适用于不受支持的 PostgreSQL 版本。
您可能需要查看当前版本的相同页面,或上面列出的其他受支持版本。

35.70. user_defined_types #

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

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

Table 35.68. user_defined_types

列类型

描述

user_defined_type_catalog sql_identifier

包含该类型的数据库名称(总是当前数据库)

user_defined_type_schema sql_identifier

包含该类型的模式名称

user_defined_type_name sql_identifier

类型的名称

user_defined_type_category character_data

当前总是STRUCTURED

is_instantiable yes_or_no

对应 PostgreSQL 不支持的特性

is_final yes_or_no

对应 PostgreSQL 不支持的特性

ordering_form character_data

对应 PostgreSQL 不支持的特性

ordering_category character_data

对应 PostgreSQL 不支持的特性

ordering_routine_catalog sql_identifier

对应 PostgreSQL 不支持的特性

ordering_routine_schema sql_identifier

对应 PostgreSQL 不支持的特性

ordering_routine_name sql_identifier

对应 PostgreSQL 不支持的特性

reference_type character_data

对应 PostgreSQL 不支持的特性

data_type character_data

对应 PostgreSQL 不支持的特性

character_maximum_length cardinal_number

对应 PostgreSQL 不支持的特性

character_octet_length cardinal_number

对应 PostgreSQL 不支持的特性

character_set_catalog sql_identifier

对应 PostgreSQL 不支持的特性

character_set_schema sql_identifier

对应 PostgreSQL 不支持的特性

character_set_name sql_identifier

对应 PostgreSQL 不支持的特性

collation_catalog sql_identifier

对应 PostgreSQL 不支持的特性

collation_schema sql_identifier

对应 PostgreSQL 不支持的特性

collation_name sql_identifier

对应 PostgreSQL 不支持的特性

numeric_precision cardinal_number

对应 PostgreSQL 不支持的特性

numeric_precision_radix cardinal_number

对应 PostgreSQL 不支持的特性

numeric_scale cardinal_number

对应 PostgreSQL 不支持的特性

datetime_precision cardinal_number

对应 PostgreSQL 不支持的特性

interval_type character_data

对应 PostgreSQL 不支持的特性

interval_precision cardinal_number

对应 PostgreSQL 不支持的特性

source_dtd_identifier sql_identifier

对应 PostgreSQL 不支持的特性

ref_dtd_identifier sql_identifier

对应 PostgreSQL 不支持的特性