.. _role_column_grants:


role_column_grants
================================

视图\ ``role_column_grants``\ 标识所有在列上授予的特权，这些特权的授予者或者被授予者是一个当前已被启用的角色。更多信息可以在\ ``column_privileges``\ 中找到。这个视图和\ ``column_privileges``\ 之间的唯一实质性区别是：这个视图忽略那些以授予给\ ``PUBLIC``\ 的方式使当前用户获得其访问权限的列。

.. table:: role_column_grants列
      :name: id-1.5.4.7.38.3
      :class: longtable

      +--------------------+--------------------+-----------------------------------+
      | 名称               | 数据类型           | 描述                              |
      +====================+====================+===================================+
      | ``grantor``        | ``sql_identifier`` | 授予该特权的角色名                |
      +--------------------+--------------------+-----------------------------------+
      | ``grantee``        | ``sql_identifier`` | 被授予该特权的角色名              |
      +--------------------+--------------------+-----------------------------------+
      | ``table_catalog``  | ``sql_identifier`` | 包含该列的表所在的数              |
      |                    |                    | 据库名（总是当前数据库）          |
      +--------------------+--------------------+-----------------------------------+
      | ``table_schema``   | ``sql_identifier`` | 包含该列的表所在的模式名          |
      +--------------------+--------------------+-----------------------------------+
      | ``table_name``     | ``sql_identifier`` | 包含该列的表名                    |
      +--------------------+--------------------+-----------------------------------+
      | ``column_name``    | ``sql_identifier`` | 列名称                            |
      +--------------------+--------------------+-----------------------------------+
      | ``privilege_type`` | ``character_data`` | 特                                |
      |                    |                    | 权类型：\ ``SELECT``\ 、          |
      |                    |                    | ``INSERT``\ 、                    |
      |                    |                    | \ ``UPDATE``\ 或                  |
      |                    |                    | ``REFERENCES``                    |
      +--------------------+--------------------+-----------------------------------+
      | ``is_grantable``   | ``yes_or_no``      | 如果该                            |
      |                    |                    | 特权是可授予的，则为\ ``YES``\ ， |
      |                    |                    | 否则为\ ``NO``                    |
      +--------------------+--------------------+-----------------------------------+
