2 35.60. user_defined_types #
4 The view user_defined_types currently contains all composite types
5 defined in the current database. Only those types are shown that the
6 current user has access to (by way of being the owner or having some
9 SQL knows about two kinds of user-defined types: structured types (also
10 known as composite types in PostgreSQL) and distinct types (not
11 implemented in PostgreSQL). To be future-proof, use the column
12 user_defined_type_category to differentiate between these. Other
13 user-defined types such as base types and enums, which are PostgreSQL
14 extensions, are not shown here. For domains, see Section 35.23 instead.
16 Table 35.58. user_defined_types Columns
22 user_defined_type_catalog sql_identifier
24 Name of the database that contains the type (always the current
27 user_defined_type_schema sql_identifier
29 Name of the schema that contains the type
31 user_defined_type_name sql_identifier
35 user_defined_type_category character_data
37 Currently always STRUCTURED
39 is_instantiable yes_or_no
41 Applies to a feature not available in PostgreSQL
45 Applies to a feature not available in PostgreSQL
47 ordering_form character_data
49 Applies to a feature not available in PostgreSQL
51 ordering_category character_data
53 Applies to a feature not available in PostgreSQL
55 ordering_routine_catalog sql_identifier
57 Applies to a feature not available in PostgreSQL
59 ordering_routine_schema sql_identifier
61 Applies to a feature not available in PostgreSQL
63 ordering_routine_name sql_identifier
65 Applies to a feature not available in PostgreSQL
67 reference_type character_data
69 Applies to a feature not available in PostgreSQL
71 data_type character_data
73 Applies to a feature not available in PostgreSQL
75 character_maximum_length cardinal_number
77 Applies to a feature not available in PostgreSQL
79 character_octet_length cardinal_number
81 Applies to a feature not available in PostgreSQL
83 character_set_catalog sql_identifier
85 Applies to a feature not available in PostgreSQL
87 character_set_schema sql_identifier
89 Applies to a feature not available in PostgreSQL
91 character_set_name sql_identifier
93 Applies to a feature not available in PostgreSQL
95 collation_catalog sql_identifier
97 Applies to a feature not available in PostgreSQL
99 collation_schema sql_identifier
101 Applies to a feature not available in PostgreSQL
103 collation_name sql_identifier
105 Applies to a feature not available in PostgreSQL
107 numeric_precision cardinal_number
109 Applies to a feature not available in PostgreSQL
111 numeric_precision_radix cardinal_number
113 Applies to a feature not available in PostgreSQL
115 numeric_scale cardinal_number
117 Applies to a feature not available in PostgreSQL
119 datetime_precision cardinal_number
121 Applies to a feature not available in PostgreSQL
123 interval_type character_data
125 Applies to a feature not available in PostgreSQL
127 interval_precision cardinal_number
129 Applies to a feature not available in PostgreSQL
131 source_dtd_identifier sql_identifier
133 Applies to a feature not available in PostgreSQL
135 ref_dtd_identifier sql_identifier
137 Applies to a feature not available in PostgreSQL