.. _role_routine_grants:


role_routine_grants
================================

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

.. table:: role_routine_grants列
      :name: id-1.5.4.7.39.3
      :class: longtable

      +----------------------+--------------------+-----------------------------+
      | 名称                 | 数据类型           | 描述                        |
      +======================+====================+=============================+
      | ``grantor``          | ``sql_identifier`` | 授予该特权的角色名          |
      +----------------------+--------------------+-----------------------------+
      | ``grantee``          | ``sql_identifier`` | 被授予该特权的角色名        |
      +----------------------+--------------------+-----------------------------+
      | ``specific_catalog`` | ``sql_identifier`` | 包含该函数的数据库          |
      |                      |                    | 名（总是当前数据库）        |
      +----------------------+--------------------+-----------------------------+
      | ``specific_schema``  | ``sql_identifier`` | 包含该函数的模式名          |
      +----------------------+--------------------+-----------------------------+
      | ``specific_name``    | ``sql_identifier`` | 该函数                      |
      |                      |                    | 的“专用名”。                |
      +----------------------+--------------------+-----------------------------+
      | ``routine_catalog``  | ``sql_identifier`` | 包含该函数的数据库          |
      |                      |                    | 名（总是当前数据库）        |
      +----------------------+--------------------+-----------------------------+
      | ``routine_schema``   | ``sql_identifier`` | 包含该函数的模式名          |
      +----------------------+--------------------+-----------------------------+
      | ``routine_name``     | ``sql_identifier`` | 该函数的名字（在重载        |
      |                      |                    | 的情况下可能会重复）        |
      +----------------------+--------------------+-----------------------------+
      | ``privilege_type``   | ``character_data`` | 总                          |
      |                      |                    | 是为\ ``EXECUTE``\ （       |
      |                      |                    | 函数唯一的特权类型）        |
      +----------------------+--------------------+-----------------------------+
      | ``is_grantable``     | ``yes_or_no``      | 如果该特权是                |
      |                      |                    | 可授予的，则为\ ``YES``\ ， |
      |                      |                    | 否则为\ ``NO``              |
      +----------------------+--------------------+-----------------------------+
