PG_TDE_INFO

PG_TDE_INFO displays the encryption information about the current cluster.

Table 1 PG_TDE_INFO columns

Name

Type

Description

is_encrypt

text

Whether the cluster is an encryption cluster

  • f: Non-encryption cluster

  • t: Encryption cluster

g_tde_algo

text

Encryption algorithm

  • SM4-CTR-128

  • AES-CTR-128

remain

text

Reserved field.

Examples

Check whether the current cluster is encrypted, and check the encryption algorithm (if any) used by the current cluster.

SELECT * FROM PG_TDE_INFO;
 is_encrypt | g_tde_algo  | remain
------------+-------------+--------
 f          | AES-CTR-128 | remain
(1 row)