在psql命令行中,可用show password_encryption命令查看当前password_encryption配置。
$ psql -U postgres -W
Password:
psql (15.6)
Type "help" for help.
postgres=# show password_encryption;
password_encryption
---------------------
scram-sha-256
(1 row)
postgres=# \q
默认是postgresql jdbc驱动不支持的scram-sha-256方式。