Open shin1103 opened 6 days ago
The difference in the error is likely due to the JDBC driver version.
The difference is due to this issue. https://github.com/pgjdbc/pgjdbc/issues/2188
And fixed by this pull request. https://github.com/pgjdbc/pgjdbc/pull/2189
This change is applied from 42.2.23 https://github.com/pgjdbc/pgjdbc/blob/d98b56becf9171aa75ec848d4a5ec2bfa80381d2/docs/content/changelogs/2021-07-06-42.2.23-release.md
pgjdbc supports SCRAM-SHA-256 from 42.2.0. https://jdbc.postgresql.org/changelogs/2018-01-17-42.2.0-release/
pull request is here. https://github.com/pgjdbc/pgjdbc/pull/842
Starting from PostgreSQL 14, the default password encryption has changed from
md5
toscram-sha-256
. The default JDBC driver inembulk-output-jdbc
does not supportscram-sha-256
(see section 19.3.2 Authentication). https://www.postgresql.org/docs/13/runtime-config-connection.htmlhttps://www.postgresql.org/docs/14/runtime-config-connection.html
Therefore, if you cannot change the user encryption method in PostgreSQL, you need to use another JDBC driver that supports
scram-sha-256
encryption using the embulkdriver_path
option. However, using a supported JDBC driver might result in other errors.This error is similar to this issue. The difference in the error is likely due to the JDBC driver version.
To Reproduce
Postgresql
First, Prepare database.
Create tables.
Authentication Error
Use default JDBC driver.
Numeric Error
Use latest JDBC driver.
full logs
default driver
latest driver