35.60. user_defined_types
#
The viewuser_defined_types
currently contains all composite types defined in the current database. Only those types are shown that the current user has access to (by way of being the owner or having some privilege).
SQL knows about two kinds of user-defined types: structured types (also known as composite types inPostgreSQL) and distinct types (not implemented inPostgreSQL). To be future-proof, use the columnuser_defined_type_category
to differentiate between these. Other user-defined types such as base types and enums, which arePostgreSQL extensions, are not shown here. For domains, seeSection 35.23 instead.
Table 35.58. user_defined_types
Columns
Column Type Description |
---|
Name of the database that contains the type (always the current database) |
Name of the schema that contains the type |
Name of the type |
Currently always |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |
Applies to a feature not available inPostgreSQL |