35.6. attributes
attributes
The view attributes contains information about the attributes of composite data types defined in the database. (Note that the view does not give information about table columns, which are sometimes called attributes in PostgreSQL contexts.) Only those attributes are shown that the current user has access to (by way of being the owner of or having some privilege on the type).
Column Type Description |
|---|
udt_catalog Name of the database containing the data type (always the current database) |
udt_schema Name of the schema containing the data type |
udt_name Name of the data type |
attribute_name Name of the attribute |
ordinal_position Ordinal position of the attribute within the data type (count starts at 1) |
attribute_default Default expression of the attribute |
is_nullable
|
data_type Data type of the attribute, if it is a built-in type, or |
character_maximum_length If |
character_octet_length If |
character_set_catalog Applies to a feature not available in PostgreSQL |
character_set_schema Applies to a feature not available in PostgreSQL |
character_set_name Applies to a feature not available in PostgreSQL |
collation_catalog Name of the database containing the collation of the attribute (always the current database), null if default or the data type of the attribute is not collatable |
collation_schema Name of the schema containing the collation of the attribute, null if default or the data type of the attribute is not collatable |
collation_name Name of the collation of the attribute, null if default or the data type of the attribute is not collatable |
numeric_precision If |
numeric_precision_radix If |
numeric_scale If |
datetime_precision If |
interval_type If |
interval_precision Applies to a feature not available in PostgreSQL (see |
attribute_udt_catalog Name of the database that the attribute data type is defined in (always the current database) |
attribute_udt_schema Name of the schema that the attribute data type is defined in |
attribute_udt_name Name of the attribute data type |
scope_catalog Applies to a feature not available in PostgreSQL |
scope_schema Applies to a feature not available in PostgreSQL |
scope_name Applies to a feature not available in PostgreSQL |
maximum_cardinality Always null, because arrays always have unlimited maximum cardinality in PostgreSQL |
dtd_identifier An identifier of the data type descriptor of the attribute, unique among the data type descriptors pertaining to the composite type. This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) |
is_derived_reference_attribute Applies to a feature not available in PostgreSQL |
: attributes Columns
See also under columns, a similarly structured view, for further information on some of the columns.