Postgresql 中文操作指南
37.20. data_type_privileges #
视图_data_type_privileges_通过作为所描述对象的拥有者或对其拥有某些权限的方式,识别当前用户有权访问的所有数据类型描述符。每当数据类型用于表列、域或函数(作为参数或返回类型)的定义中时,就会生成一个数据类型描述符,并将一些有关如何在此实例中使用数据类型的信息(例如,如果适用,则声明的最大长度)存储在其中。每个数据类型描述符都被分配了一个任意的标识符,该标识符对于为一个对象(表、域、函数)分配的数据类型描述符标识符是唯一的。此视图对于应用程序来说可能没有用,但是它用于定义信息架构中的一些其他视图。
The view data_type_privileges identifies all data type descriptors that the current user has access to, by way of being the owner of the described object or having some privilege for it. A data type descriptor is generated whenever a data type is used in the definition of a table column, a domain, or a function (as parameter or return type) and stores some information about how the data type is used in that instance (for example, the declared maximum length, if applicable). Each data type descriptor is assigned an arbitrary identifier that is unique among the data type descriptor identifiers assigned for one object (table, domain, function). This view is probably not useful for applications, but it is used to define some other views in the information schema.
Table 37.18. data_type_privileges Columns
Table 37.18. data_type_privileges Columns
Column Type Description |
object_catalog sql_identifier Name of the database that contains the described object (always the current database) |
object_schema sql_identifier Name of the schema that contains the described object |
object_name sql_identifier Name of the described object |
object_type character_data The type of the described object: one of TABLE (the data type descriptor pertains to a column of that table), DOMAIN (the data type descriptors pertains to that domain), ROUTINE (the data type descriptor pertains to a parameter or the return data type of that function). |
dtd_identifier sql_identifier The identifier of the data type descriptor, which is unique among the data type descriptors for that same object. |