36.15. column_udt_usage

Представление column_udt_usage описывает все столбцы, которые используют типы данных, принадлежащие текущей активной роли. Заметьте, что в Postgres Pro встроенные типы данных не отличаются от определённых пользователем, так что в этом представлении выводятся и они. За подробностями обратитесь к Разделу 36.16.

Таблица 36.13. Столбцы column_udt_usage

ИмяТип данныхОписание
udt_catalogsql_identifierИмя базы данных, в которой определён тип (если применимо, нижележащий тип домена) столбца (всегда текущая база)
udt_schemasql_identifierИмя схемы, в которой определён тип (если применимо, нижележащий тип домена) столбца (всегда текущая база)
udt_namesql_identifierИмя типа данных столбца (если применимо, нижележащий тип домена)
table_catalogsql_identifierИмя базы данных, содержащей таблицу (всегда текущая база)
table_schemasql_identifierИмя схемы, содержащей таблицу
table_namesql_identifierИмя таблицы
column_namesql_identifierИмя столбца

36.15. column_udt_usage

The view column_udt_usage identifies all columns that use data types owned by a currently enabled role. Note that in Postgres Pro, built-in data types behave like user-defined types, so they are included here as well. See also Section 36.16 for details.

Table 36.13. column_udt_usage Columns

NameData TypeDescription
udt_catalogsql_identifier Name of the database that the column data type (the underlying type of the domain, if applicable) is defined in (always the current database)
udt_schemasql_identifier Name of the schema that the column data type (the underlying type of the domain, if applicable) is defined in
udt_namesql_identifier Name of the column data type (the underlying type of the domain, if applicable)
table_catalogsql_identifierName of the database containing the table (always the current database)
table_schemasql_identifierName of the schema containing the table
table_namesql_identifierName of the table
column_namesql_identifierName of the column

FAQ