选择 打开 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

受支持版本: 当前版本 (18) / 17 / 16 / 15 / 14
测试与开发版本: 19 / devel
不受支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2
历史版本PostgreSQL 9.3 已于 2018 年 11 月结束社区维护,本页译文保留供仍在使用旧版本的读者参考。新系统请看当前版本

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_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 不支持的特性

提交更正

译文有误、术语不当或页面显示问题,请到译文仓库 pgsty/pgdoc 报告译文问题。 英文原文本身的问题,请在当前版本的对应页面向上游反馈;上游不再修订已结束维护的版本。