38.54. transforms

Представление transforms содержит информацию о трансформациях, определённых в текущей базе данных. Более точно, оно содержит строку для каждой функции, задействованной в трансформации (функцию «из SQL» или «в SQL»).

Таблица 38.52. Столбцы transforms

ИмяТип данныхОписание
udt_catalogsql_identifierИмя базы данных, содержащей тип, для которого предназначена трансформация (всегда текущая база)
udt_schemasql_identifierИмя схемы, содержащей тип, для которого предназначена трансформация
udt_namesql_identifierИмя типа, для которого предназначена трансформация
specific_catalogsql_identifierИмя базы данных, содержащей функцию (всегда текущая база)
specific_schemasql_identifierИмя схемы, содержащей функцию
specific_namesql_identifier«Однозначное имя» функции. Подробнее оно описано в Разделе 38.41.
group_namesql_identifierСтандарт SQL позволяет определять «группы» трансформаций и выбирать группу во время выполнения. Postgres Pro это не поддерживает. Вместо этого трансформации привязываются к языкам. В качестве компромисса со стандартом, это поле содержит язык, для которого предназначена трансформация.
transform_typecharacter_dataFROM SQL или TO SQL

38.54. transforms

The view transforms contains information about the transforms defined in the current database. More precisely, it contains a row for each function contained in a transform (the from SQL or to SQL function).

Table 38.52. transforms Columns

NameData TypeDescription
udt_catalogsql_identifierName of the database that contains the type the transform is for (always the current database)
udt_schemasql_identifierName of the schema that contains the type the transform is for
udt_namesql_identifierName of the type the transform is for
specific_catalogsql_identifierName of the database containing the function (always the current database)
specific_schemasql_identifierName of the schema containing the function
specific_namesql_identifier The specific name of the function. See Section 38.41 for more information.
group_namesql_identifier The SQL standard allows defining transforms in groups, and selecting a group at run time. Postgres Pro does not support this. Instead, transforms are specific to a language. As a compromise, this field contains the language the transform is for.
transform_typecharacter_dataFROM SQL or TO SQL

FAQ