org.postgresql.util.PSQLException: 设置 GSS 编码连接时出错。在 Postgres/Greenplum 上连接时出错

org.postgresql.util.PSQLException: An error occurred while setting up the GSS Encoded connection. Error while connecting on Postgres/Greenplum

连接到 Postgres/Greenplum 时出现问题。

org.postgresql.util.PSQLException: An error occurred while setting up the GSS Encoded connection.

我使用相同的连接文件并且在 postgres 11/Greenplum v5.0 之前工作正常

PostgreSQL 12 及更高版本现在允许 GSSAPI 加密连接。此参数控制是否强制使用 GSSAPI 加密。

如果未配置加密,应通过设置 JDBC 连接参数禁用
gssEncMode=禁用

参考:https://www.ibm.com/support/pages/node/6323207