Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow underscore _ in the host name of a postgres database #575

Open
OlgaZittau opened this issue May 20, 2022 · 1 comment
Open

Allow underscore _ in the host name of a postgres database #575

OlgaZittau opened this issue May 20, 2022 · 1 comment

Comments

@OlgaZittau
Copy link

Class com.impossibl.postgres.jdbc.ConnectionUtil parses the URLs to connect to a Postgres database. The URL_PATTERN does not allow an unserscore '_' in the host name - although the underscore is a valid character in host names.
Could you fix this?
Thank you very much
Olga

@FrostbittenKing
Copy link

Nope, according to https://kb.iu.edu/d/afqs#:~:text=The%20underscore%20is%20not%20a,the%20hostname%20is%20case%20insensitive.
/ rfc822
underscore is not a valid character.
I had this discussion with our infrastructure guys, cause we ran into this issue in a cloud environment.
Not allowing is, on the other hand another can of worms. Cause for infrastructure, underscore is a convenient character / separator for autogenerated urls inside an infrastructure environment. Which is the reason, they had to assign us manually another hostname, that is valid according to pgjdbc-ng.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants