Recently upgraded my PostgreSQL version from 10.x to 13 and i have came across a weird bug related to user authentication while accessing the DB.
These are the old credentials which i was using to connect with PostgreSQL 10.x version-
root
26_v9Fe},,6\Z3E?
But the same credentials when i created in PostgreSQL v13, i'm getting the well known authentication failure error in Java (using Java code to connect to Postgresql)-
org.postgresql.util.PSQLException: FATAL: password authentication failed for user root
The only difference in my PostgreSQL version was the encryption type- md5 was used with the 10.x version but the 13 version is using scram-sha-256.
Would be helpful if someone can provide an insight on this.