]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-user-defined-types.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-user-defined-types.txt
1
2 35.60. user_defined_types #
3
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
7    privilege).
8
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.
15
16    Table 35.58. user_defined_types Columns
17
18    Column Type
19
20    Description
21
22    user_defined_type_catalog sql_identifier
23
24    Name of the database that contains the type (always the current
25    database)
26
27    user_defined_type_schema sql_identifier
28
29    Name of the schema that contains the type
30
31    user_defined_type_name sql_identifier
32
33    Name of the type
34
35    user_defined_type_category character_data
36
37    Currently always STRUCTURED
38
39    is_instantiable yes_or_no
40
41    Applies to a feature not available in PostgreSQL
42
43    is_final yes_or_no
44
45    Applies to a feature not available in PostgreSQL
46
47    ordering_form character_data
48
49    Applies to a feature not available in PostgreSQL
50
51    ordering_category character_data
52
53    Applies to a feature not available in PostgreSQL
54
55    ordering_routine_catalog sql_identifier
56
57    Applies to a feature not available in PostgreSQL
58
59    ordering_routine_schema sql_identifier
60
61    Applies to a feature not available in PostgreSQL
62
63    ordering_routine_name sql_identifier
64
65    Applies to a feature not available in PostgreSQL
66
67    reference_type character_data
68
69    Applies to a feature not available in PostgreSQL
70
71    data_type character_data
72
73    Applies to a feature not available in PostgreSQL
74
75    character_maximum_length cardinal_number
76
77    Applies to a feature not available in PostgreSQL
78
79    character_octet_length cardinal_number
80
81    Applies to a feature not available in PostgreSQL
82
83    character_set_catalog sql_identifier
84
85    Applies to a feature not available in PostgreSQL
86
87    character_set_schema sql_identifier
88
89    Applies to a feature not available in PostgreSQL
90
91    character_set_name sql_identifier
92
93    Applies to a feature not available in PostgreSQL
94
95    collation_catalog sql_identifier
96
97    Applies to a feature not available in PostgreSQL
98
99    collation_schema sql_identifier
100
101    Applies to a feature not available in PostgreSQL
102
103    collation_name sql_identifier
104
105    Applies to a feature not available in PostgreSQL
106
107    numeric_precision cardinal_number
108
109    Applies to a feature not available in PostgreSQL
110
111    numeric_precision_radix cardinal_number
112
113    Applies to a feature not available in PostgreSQL
114
115    numeric_scale cardinal_number
116
117    Applies to a feature not available in PostgreSQL
118
119    datetime_precision cardinal_number
120
121    Applies to a feature not available in PostgreSQL
122
123    interval_type character_data
124
125    Applies to a feature not available in PostgreSQL
126
127    interval_precision cardinal_number
128
129    Applies to a feature not available in PostgreSQL
130
131    source_dtd_identifier sql_identifier
132
133    Applies to a feature not available in PostgreSQL
134
135    ref_dtd_identifier sql_identifier
136
137    Applies to a feature not available in PostgreSQL