35.32. parameters
Представление parameters содержит информацию о параметрах (аргументах) всех функций в текущей базе данных. В нём отражаются только функции, к которым имеет доступ текущий пользователь (являясь владельцем или имея некоторые права).
Таблица 35.30. Столбцы parameters
| Имя | Тип данных | Описание |
|---|---|---|
specific_catalog | sql_identifier | Имя базы данных, содержащей функцию (всегда текущая база) |
specific_schema | sql_identifier | Имя схемы, содержащей функцию |
specific_name | sql_identifier | «Однозначное имя» функции. Подробнее оно описано в Разделе 35.40. |
ordinal_position | cardinal_number | Порядковый номер параметра в списке аргументов функции (нумерация начинается с 1) |
parameter_mode | character_data | IN для входного параметра, OUT для выходного, INOUT — для входного и выходного параметра. |
is_result | yes_or_no | Относится к функциональности, отсутствующей в Postgres Pro |
as_locator | yes_or_no | Относится к функциональности, отсутствующей в Postgres Pro |
parameter_name | sql_identifier | Имя параметра, либо NULL, если параметр безымянный |
data_type | character_data | Тип данных параметра, если это встроенный тип, либо ARRAY, если это массив (в этом случае обратитесь к представлению element_types), иначе — USER-DEFINED (в этом случае тип определяется в udt_name и связанных столбцах). |
character_maximum_length | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
character_octet_length | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
character_set_catalog | sql_identifier | Относится к функциональности, отсутствующей в Postgres Pro |
character_set_schema | sql_identifier | Относится к функциональности, отсутствующей в Postgres Pro |
character_set_name | sql_identifier | Относится к функциональности, отсутствующей в Postgres Pro |
collation_catalog | sql_identifier | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
collation_schema | sql_identifier | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
collation_name | sql_identifier | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
numeric_precision | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
numeric_precision_radix | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
numeric_scale | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
datetime_precision | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
interval_type | character_data | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
interval_precision | cardinal_number | Всегда NULL, так как эта информация не применима к типам параметров в Postgres Pro |
udt_catalog | sql_identifier | Имя базы данных, в которой определён тип данных параметра (всегда текущая база) |
udt_schema | sql_identifier | Имя схемы, в которой определён тип данных параметра |
udt_name | sql_identifier | Имя типа данных параметра |
scope_catalog | sql_identifier | Относится к функциональности, отсутствующей в Postgres Pro |
scope_schema | sql_identifier | Относится к функциональности, отсутствующей в Postgres Pro |
scope_name | sql_identifier | Относится к функциональности, отсутствующей в Postgres Pro |
maximum_cardinality | cardinal_number | Всегда NULL, так как массивы имеют неограниченную максимальную ёмкость в Postgres Pro |
dtd_identifier | sql_identifier | Идентификатор дескриптора типа данных параметра, уникальный среди всех дескрипторов типов, относящихся к функции. Он в основном полезен для соединения с другими экземплярами таких идентификаторов. (Конкретный формат идентификатора не определён и не гарантируется, что он останется неизменным в будущих версиях.) |
parameter_default | character_data | Выражение параметра по умолчанию, либо NULL, если такого выражения нет или функция не принадлежит текущей активной роли. |
35.32. parameters
The view parameters contains information about the parameters (arguments) of all functions in the current database. Only those functions are shown that the current user has access to (by way of being the owner or having some privilege).
Table 35.30. parameters Columns
| Name | Data Type | Description |
|---|---|---|
specific_catalog | sql_identifier | Name of the database containing the function (always the current database) |
specific_schema | sql_identifier | Name of the schema containing the function |
specific_name | sql_identifier | The “specific name” of the function. See Section 35.40 for more information. |
ordinal_position | cardinal_number | Ordinal position of the parameter in the argument list of the function (count starts at 1) |
parameter_mode | character_data | IN for input parameter, OUT for output parameter, and INOUT for input/output parameter. |
is_result | yes_or_no | Applies to a feature not available in Postgres Pro |
as_locator | yes_or_no | Applies to a feature not available in Postgres Pro |
parameter_name | sql_identifier | Name of the parameter, or null if the parameter has no name |
data_type | character_data | Data type of the parameter, if it is a built-in type, or ARRAY if it is some array (in that case, see the view element_types), else USER-DEFINED (in that case, the type is identified in udt_name and associated columns). |
character_maximum_length | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
character_octet_length | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
character_set_catalog | sql_identifier | Applies to a feature not available in Postgres Pro |
character_set_schema | sql_identifier | Applies to a feature not available in Postgres Pro |
character_set_name | sql_identifier | Applies to a feature not available in Postgres Pro |
collation_catalog | sql_identifier | Always null, since this information is not applied to parameter data types in Postgres Pro |
collation_schema | sql_identifier | Always null, since this information is not applied to parameter data types in Postgres Pro |
collation_name | sql_identifier | Always null, since this information is not applied to parameter data types in Postgres Pro |
numeric_precision | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
numeric_precision_radix | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
numeric_scale | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
datetime_precision | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
interval_type | character_data | Always null, since this information is not applied to parameter data types in Postgres Pro |
interval_precision | cardinal_number | Always null, since this information is not applied to parameter data types in Postgres Pro |
udt_catalog | sql_identifier | Name of the database that the data type of the parameter is defined in (always the current database) |
udt_schema | sql_identifier | Name of the schema that the data type of the parameter is defined in |
udt_name | sql_identifier | Name of the data type of the parameter |
scope_catalog | sql_identifier | Applies to a feature not available in Postgres Pro |
scope_schema | sql_identifier | Applies to a feature not available in Postgres Pro |
scope_name | sql_identifier | Applies to a feature not available in Postgres Pro |
maximum_cardinality | cardinal_number | Always null, because arrays always have unlimited maximum cardinality in Postgres Pro |
dtd_identifier | sql_identifier | An identifier of the data type descriptor of the parameter, unique among the data type descriptors pertaining to the function. 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.) |
parameter_default | character_data | The default expression of the parameter, or null if none or if the function is not owned by a currently enabled role. |