How to handle special characters in the password of a Postgresql URL connection string?
问题 Using a Postgresql URL connection string in the format of: postgresql://user:secret@localhost How do I handle special characters in that string (e.g., $ ) so that it will actually function when I connect to my postgres database? I've tried simply URL encoding it, so for example, "test$" becomes "test%24" ... but that seems to be a problem as I get a "FATAL: password authentication failed " error when attempting to use it. 回答1: See Connection URIs in the doc. There are a few things that don't