34.20. domain_constraints

Представление domain_constraints показывает все ограничения, принадлежащие доменам, определённым в текущей базе данных. В нём отражаются только те домены, к которым имеет доступ текущий пользователь (являясь владельцем или имея некоторые права).

Таблица 34-18. Колонки domain_constraints

ИмяТип данныхОписание
constraint_catalogsql_identifierИмя базы данных, содержащей ограничение (всегда текущая база)
constraint_schemasql_identifierИмя схемы, содержащей ограничение
constraint_namesql_identifierИмя ограничения
domain_catalogsql_identifierИмя базы данных, содержащей домен (всегда текущая база)
domain_schemasql_identifierИмя схемы, содержащей домен
domain_namesql_identifierИмя домена
is_deferrableyes_or_noYES, если ограничение откладываемое, или NO в противном случае
initially_deferredyes_or_noYES, если ограничение откладываемое и отложенное изначально, или NO в противном случае

34.20. domain_constraints

The view domain_constraints contains all constraints belonging to 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 34-18. domain_constraints Columns

NameData TypeDescription
constraint_catalogsql_identifierName of the database that contains the constraint (always the current database)
constraint_schemasql_identifierName of the schema that contains the constraint
constraint_namesql_identifierName of the constraint
domain_catalogsql_identifierName of the database that contains the domain (always the current database)
domain_schemasql_identifierName of the schema that contains the domain
domain_namesql_identifierName of the domain
is_deferrableyes_or_noYES if the constraint is deferrable, NO if not
initially_deferredyes_or_noYES if the constraint is deferrable and initially deferred, NO if not
FAQ