35.60. user_defined_types#

The view user_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 in PostgreSQL) and distinct types (not implemented in PostgreSQL). To be future-proof, use the column user_defined_type_category to differentiate between these. Other user-defined types such as base types and enums, which are PostgreSQL extensions, are not shown here. For domains, see Section 35.23 instead.

Table 35.58. user_defined_types Columns

Column Type

Description

user_defined_type_catalogsql_identifier

Name of the database that contains the type (always the current database)

user_defined_type_schemasql_identifier

Name of the schema that contains the type

user_defined_type_namesql_identifier

Name of the type

user_defined_type_categorycharacter_data

Currently always STRUCTURED

is_instantiableyes_or_no

Applies to a feature not available in PostgreSQL

is_finalyes_or_no

Applies to a feature not available in PostgreSQL

ordering_formcharacter_data

Applies to a feature not available in PostgreSQL

ordering_categorycharacter_data

Applies to a feature not available in PostgreSQL

ordering_routine_catalogsql_identifier

Applies to a feature not available in PostgreSQL

ordering_routine_schemasql_identifier

Applies to a feature not available in PostgreSQL

ordering_routine_namesql_identifier

Applies to a feature not available in PostgreSQL

reference_typecharacter_data

Applies to a feature not available in PostgreSQL

data_typecharacter_data

Applies to a feature not available in PostgreSQL

character_maximum_lengthcardinal_number

Applies to a feature not available in PostgreSQL

character_octet_lengthcardinal_number

Applies to a feature not available in PostgreSQL

character_set_catalogsql_identifier

Applies to a feature not available in PostgreSQL

character_set_schemasql_identifier

Applies to a feature not available in PostgreSQL

character_set_namesql_identifier

Applies to a feature not available in PostgreSQL

collation_catalogsql_identifier

Applies to a feature not available in PostgreSQL

collation_schemasql_identifier

Applies to a feature not available in PostgreSQL

collation_namesql_identifier

Applies to a feature not available in PostgreSQL

numeric_precisioncardinal_number

Applies to a feature not available in PostgreSQL

numeric_precision_radixcardinal_number

Applies to a feature not available in PostgreSQL

numeric_scalecardinal_number

Applies to a feature not available in PostgreSQL

datetime_precisioncardinal_number

Applies to a feature not available in PostgreSQL

interval_typecharacter_data

Applies to a feature not available in PostgreSQL

interval_precisioncardinal_number

Applies to a feature not available in PostgreSQL

source_dtd_identifiersql_identifier

Applies to a feature not available in PostgreSQL

ref_dtd_identifiersql_identifier

Applies to a feature not available in PostgreSQL


close