ページの先頭行へ戻る
Symfoware Analytics Server V12.1.0 利用ガイド
FUJITSU Software

D.2.3 秘匿化ポリシーの確認

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

  1. データベースpostgresへの接続
    psqlコマンドを使用して、データベースpostgresに接続します。
    サーバのIPアドレスが“192.0.2.0”、ポート番号が“26500”の場合の例を示します。

    psql -d postgres -h 192.0.2.0 -p 26500
    psql (9.2.8)
    Type "help" for help.
  2. 秘匿化ポリシーが設定されている秘匿化対象に関する情報の確認
    秘匿化ポリシーが設定されている秘匿化対象を確認するために、pgxa_confidential_columnsテーブルを参照します。

    postgres=# select * from pgxa_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 行)
  3. 秘匿化ポリシーの内容に関する情報の確認
    秘匿化ポリシーの内容を確認するために、pgxa_confidential_policiesを参照します。

    postgres=# select * from pgxa_confidential_policies;
     schema_name | table_name | policy_name | expression | enable | policy_description 
    -------------+------------+-------------+------------+--------+--------------------
     public      | t1         | p1          | 1=1        | t      | 
    (1 行)
  4. データベースpostgresとの切断
    psqlコマンドを終了するために、“\q”を実行します。

    postgres=# \q

参照

  • pgxa_confidential_columnsシステム表の詳細は、“I.2.1 pgxa_confidential_columns”を参照してください。

  • pgxa_confidential_policiesシステム表の詳細は、“I.2.2 pgxa_confidential_policies”を参照してください。

  • psqlコマンドの詳細は、“PostgreSQL 9.2.4文書”の“psql”を参照してください。