Redrock Postgres 搜索 英文
版本: 9.3 / 9.4 / 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17 / 18

35.60. user_defined_types #

视图 user_defined_types 目前包含当前数据库中定义的所有复合类型。只显示当前用户有权访问的类型(通过拥有或具有某种权限)。

SQL 知道两种用户定义类型:结构化类型(在 PostgreSQL 中也称为复合类型)和不兼容类型(在 PostgreSQL 中未实现)。为了面向未来,请使用列 user_defined_type_category 来区分它们。其他用户定义类型,例如基本类型和枚举类型,它们是 PostgreSQL 的扩展,这里不显示。对于域,请参阅 第 35.23 节

表 35.58. 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 中不适用的功能