Maximum length or special character restrictions for PostgreSQL 13 user password? I'm using a password generator to come up with a password that will be automatically pulled from Azure Key Vault and into the Postgres deployment. The passwords are manually added in Azure Key Vault with the UI and not CLI.
I've tried 256-character length passwords with and without special characters. Each time I then try to login using kubectl port-forward and pgAdmin, and I get a &quot;password authentication failed.&quot;
I shorten it to like 16-characters and then it works fine.
So it seems like special characters aren't an issue, but length is. So just curious:

What special characters, if any, will cause an issue in the password?
What is the maximum length of a password?

Note: I've even dropped down to 128 characters and still the same issue.
I was able to answer this one:


What is the maximum length of a password?


The answer seems to be 99. At 100 I was getting the &quot;password validation failed,&quot; but not at 99.