(1)测试用数据库版本
highgo=# select version();
version
----------------------------------------------------------------------------------------------
HighGo Security Enterprise Edition Database System 4.5.7 on CentOS7 x86_64,build on 20210804
(1 row)
(2)未启用SM4的查询结果:
[root@db2 data]# pg_controldata -D /db/hgdbdata/data/ |grep encryption
Data encryption: off
Data encryption cipher: off
(3)启用了SM4的查询结果:
[root@db etcd]# pg_controldata -D /db/hgdbdata/data/ |grep encryption
Data encryption: on
Data encryption fingerprint: C721512DE685DA5E5A1A1AE948F4F473
Data encryption cipher: sm4
(4)瀚高企业版数据库不支持此种设置:
highgo=# select version();