2025年9月25日: PostgreSQL 18 釋出!
支援的版本: 當前 (18) / 17 / 16 / 15 / 14 / 13
開發版本: devel
不再支援的版本: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2

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 中不適用的功能


提交更正

如果您在文件中發現任何不正確、不符合您對特定功能的經驗或需要進一步說明的內容,請使用 此表單 報告文件問題。