.. _anon.all_policy(KES):

anon.all_policy 
######################

视图 ``all_policy`` 记录数据安全策略设置信息。 加载数据安全插件 :ref:`sys_anon` 后，视图存在anon模式下，查询使用 ``anon.show_rules`` 。


.. table:: all_policy列
       :class: longtable


       +---------------------+----------+------------------+
       | 名称                | 类型     | 描述             |
       +=====================+==========+==================+
       | ``policy_name``     | ``text`` | 数据安全策略名   |
       +---------------------+----------+------------------+
       | ``table_name``      | ``text`` | 安全对象名       |
       +---------------------+----------+------------------+
       | ``schema_name``     | ``text`` | 安全对象模式名   |
       +---------------------+----------+------------------+
       | ``column_name``     | ``text`` | 安全列名         |
       +---------------------+----------+------------------+
       | ``masking_user``    | ``text`` | 被安全用户名     |
       +---------------------+----------+------------------+
       | ``masking_func``    | ``text`` | 安全函数         |
       +---------------------+----------+------------------+
       | ``func_parameters`` | ``text`` | 安全函数参数列表 |
       +---------------------+----------+------------------+
