40.6. attributes #
Представление attributes содержит информацию об атрибутах составных типов данных, определённых в базе. (Заметьте, что представление не даёт информацию о столбцах таблицы, которые иногда называются атрибутами в контекстах Postgres Pro.) В нём показываются только те атрибуты, к которым имеет доступ текущий пользователь (являясь владельцем или имея некоторое право для использования типа).
Таблица 40.4. Столбцы attributes
Тип столбца Описание |
|---|
Имя базы данных, содержащей тип данных (всегда текущая база) |
Имя схемы, содержащей тип данных |
Имя типа данных |
Имя атрибута |
Порядковый номер атрибута внутри типа данных (нумерация начинается с 1) |
Выражение по умолчанию для атрибута |
|
Тип данных атрибута, если это встроенный тип, либо |
Если в |
Если в |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Имя базы данных, содержащей правило сортировки атрибута (это всегда текущая база), либо NULL, если это правило по умолчанию или тип данных атрибута несортируемый |
Имя схемы, содержащей правило сортировки атрибута, либо NULL, если это правило по умолчанию или тип данных атрибута несортируемый |
Имя правила сортировки атрибута, либо NULL, если это правило по умолчанию или атрибут несортируемый |
Если в |
Если в |
Если в |
Если в |
Если в |
Относится к функциональности, отсутствующей в Postgres Pro (см. поле |
Имя базы данных, в которой определён тип данных атрибута (всегда текущая база) |
Имя схемы, в которой определён тип данных атрибута |
Имя типа данных атрибута |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Всегда NULL, так как массивы имеют неограниченную максимальную ёмкость в Postgres Pro |
Идентификатор дескриптора типа данных атрибута, уникальный среди всех дескрипторов типа данных, относящихся к составному типу. Он в основном полезен для соединения с другими экземплярами таких идентификаторов. (Конкретный формат идентификатора не определён и не гарантируется, что он останется неизменным в будущих версиях.) |
Относится к функциональности, отсутствующей в Postgres Pro |
Обратитесь также к описанию Раздел 40.17, представлению с похожей структурой, за дополнительной информацией о некоторых столбцах.
40.6. 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 Postgres Pro 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).
Table 40.4. attributes Columns
Column Type Description |
|---|
Name of the database containing the data type (always the current database) |
Name of the schema containing the data type |
Name of the data type |
Name of the attribute |
Ordinal position of the attribute within the data type (count starts at 1) |
Default expression of the attribute |
|
Data type of the attribute, if it is a built-in type, or |
If |
If |
Applies to a feature not available in Postgres Pro |
Applies to a feature not available in Postgres Pro |
Applies to a feature not available in Postgres Pro |
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 |
Name of the schema containing the collation of the attribute, null if default or the data type of the attribute is not collatable |
Name of the collation of the attribute, null if default or the data type of the attribute is not collatable |
If |
If |
If |
If |
If |
Applies to a feature not available in Postgres Pro (see |
Name of the database that the attribute data type is defined in (always the current database) |
Name of the schema that the attribute data type is defined in |
Name of the attribute data type |
Applies to a feature not available in Postgres Pro |
Applies to a feature not available in Postgres Pro |
Applies to a feature not available in Postgres Pro |
Always null, because arrays always have unlimited maximum cardinality in Postgres Pro |
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.) |
Applies to a feature not available in Postgres Pro |
See also under Section 40.17, a similarly structured view, for further information on some of the columns.