ページの先頭行へ戻る
Enterprise Postgres 9.5 運用ガイド
FUJITSU Software

6.2.3 秘匿化ポリシーの確認

以下にサーバ上からの実行例を示します。

  1. 秘匿化ポリシーが設定されている秘匿化対象に関する情報の確認
    秘匿化ポリシーが設定されている秘匿化対象を確認するために、pgx_confidential_columnsテーブルを参照します。

    postgres=# select * from pgx_confidential_columns;
     schema_name | table_name | policy_name | column_name | function_type |          function_parameters           | regexp_pattern | regexp_replacement | regexp_flags | column_description 
    -------------+------------+-------------+-------------+---------------+----------------------------------------+----------------+--------------------+-------------+--------------------
     public      | t1         | p1          | c1          | FULL          |                                        |                |                    |             | 
     public      | t1         | p1          | c2          | PARTIAL       | VVVFVVVVFVVVV, VVV-VVVV-VVVV, *, 4, 11 |                |                    |             | 
    (2 row)
  2. 秘匿化ポリシーの内容に関する情報の確認
    秘匿化ポリシーの内容を確認するために、pgx_confidential_policiesを参照します。

    postgres=# select * from pgx_confidential_policies;
     schema_name | table_name | policy_name | expression | enable | policy_description 
    -------------+------------+-------------+------------+--------+--------------------
     public      | t1         | p1          | 1=1        | t      | 
    (1 row)

参照