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

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 19beta4 为测试版本,最终发布内容可能有所不同。

35.60. user_defined_types #

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

SQL 中有两种用户定义类型:结构类型(在 PostgreSQL 中也称为复合类型)以及独立类型(distinct type,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 不支持的特性


报告文档问题

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