ページの先頭行へ戻る
Enterprise Postgres 15 オペレーターユーザーズガイド

5.12.3 テーブルスペースの暗号化

暗号化するテーブルスペースを作成する場合は、ランタイム・パラメータで暗号化アルゴリズムを構成します。たとえば、暗号化アルゴリズムとして256 ビットの鍵長のAESを使用して、secure_tablespaceという名前のテーブルスペースを作成するには、次のように定義します。

-- Specify the encryption algorithm for the tablespace to be created below
SET tablespace_encryption_algorithm = 'AES256';
CREATE TABLESPACE secure_tablespace LOCATION /database/tablespaces/tbspace1;

-- Specify that the tablespace to be created below is not to be encrypted SET tablespace_encryption_algorithm = 'none';

または

CREATE TABLESPACE tbs_tst_new LOCATION '/database/tablespaces/tbspace1' WITH (tablespace_encryption_algorithm = 'AES256' );

暗号化されたテーブルスペースのチェック

以下のSQLを実行することで、どのテーブルスペースが暗号化されているかが確認できます。

SELECT spcname, spcencalgo FROM pg_tablespace ts, pgx_tablespaces tsx WHERE ts.oid = tsx.spctablespace;