39.23. domains
Представление domains
показывает все домены, определённые в текущей базе данных. В нём показываются только те домены, к которым имеет доступ текущий пользователь (являясь владельцем или имея некоторые права).
Таблица 39.21. Столбцы domains
Тип столбца Описание |
---|
Имя базы данных, содержащей домен (всегда текущая база) |
Имя схемы, содержащей домен |
Имя домена |
Тип данных домена, если это встроенный тип, либо |
Если домен имеет тип текстовой или битовой строки, это поле задаёт её объявленную максимальную длину; NULL для всех других типов данных, или если максимальная длина не объявлена. |
Если домен имеет тип символьной строки, это поле задаёт её максимально возможный размер в октетах (байтах); NULL для всех других типов данных. Максимальный размер в октетах зависит от объявленной максимальной длины в символах (см. выше) и от кодировки сервера. |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Имя базы данных, содержащей правило сортировки домена (это всегда текущая база), либо NULL, если это правило по умолчанию или тип домена несортируемый |
Имя схемы, содержащей правило сортировки домена, либо NULL, если это правило по умолчанию или тип домена несортируемый |
Имя правила сортировки домена, либо NULL, если это правило по умолчанию или тип домена несортируемый |
Если домен имеет числовой тип, этот столбец содержит точность (объявленную или неявную) типа для этого домена. Точность определяет число значащих цифр. Она может выражаться в десятичных (по основанию 10) или двоичных (по основанию 2) цифрах, согласно столбцу |
Если домен имеет числовой тип, в этом столбце определяется, по какому основанию задаются значения в столбцах |
Если домен имеет точный числовой тип, этот столбец содержит масштаб (объявленный или неявный) типа для этого домена. Масштаб определяет число значащих цифр справа от десятичной точки. Он может выражаться в десятичных (по основанию 10) или двоичных (по основанию 2) цифрах, согласно столбцу |
Если в |
Если в |
Относится к функциональности, отсутствующей в Postgres Pro (см. поле |
Выражение по умолчанию для домена |
Имя базы данных, в которой определён тип данных домена (всегда текущая база) |
Имя схемы, в которой определён тип данных домена |
Имя типа данных домена |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Относится к функциональности, отсутствующей в Postgres Pro |
Всегда NULL, так как массивы имеют неограниченную максимальную ёмкость в Postgres Pro |
Идентификатор дескриптора типа данных целевого домена, уникальный среди всех дескрипторов типов, относящихся к домену (что тривиально, так как домен содержит только один дескриптор типа). Он в основном полезен для соединения с другими экземплярами таких идентификаторов. (Конкретный формат идентификатора не определён и не гарантируется, что он останется неизменным в будущих версиях.) |
39.23. domains
The view domains
contains all domains defined in the current database. Only those domains are shown that the current user has access to (by way of being the owner or having some privilege).
Table 39.21. domains
Columns
Column Type Description |
---|
Name of the database that contains the domain (always the current database) |
Name of the schema that contains the domain |
Name of the domain |
Data type of the domain, if it is a built-in type, or |
If the domain has a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared. |
If the domain has a character type, the maximum possible length in octets (bytes) of a datum; null for all other data types. The maximum octet length depends on the declared character maximum length (see above) and the server encoding. |
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 domain (always the current database), null if default or the data type of the domain is not collatable |
Name of the schema containing the collation of the domain, null if default or the data type of the domain is not collatable |
Name of the collation of the domain, null if default or the data type of the domain is not collatable |
If the domain has a numeric type, this column contains the (declared or implicit) precision of the type for this domain. The precision indicates the number of significant digits. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column |
If the domain has a numeric type, this column indicates in which base the values in the columns |
If the domain has an exact numeric type, this column contains the (declared or implicit) scale of the type for this domain. The scale indicates the number of significant digits to the right of the decimal point. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column |
If |
If |
Applies to a feature not available in Postgres Pro (see |
Default expression of the domain |
Name of the database that the domain data type is defined in (always the current database) |
Name of the schema that the domain data type is defined in |
Name of the domain 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 domain, unique among the data type descriptors pertaining to the domain (which is trivial, because a domain only contains one data type descriptor). 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.) |