-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
max_conns and max_conn_lifetime breaks db.Ping #464
Comments
Oh ok so the issue is that we need to remove those parameters from the database DSN as apparently there is some validation going on in postgres! |
I can attempt a pull request in the next few days |
I'm already working on it :) |
Uhm, it doesn't seem to have been fixed:
Am I doing something wrong? |
No, my bad, I updated the log but not the actual URL that get's connected. I also wrote test cases but unfortunately the postgres instance I use does not seem to care. |
@matteosuppo what postgres version are you running by the way? |
Investigating I discovered that it's this call that fails: https://github.com/ory/hydra/blob/master/config/backend_connections.go#L41
Unfortunately the custom parameters hydra uses to control the number of connections appear to break the connection since they're not recognized by the database library.
Not sure if this happens with all postgres databases. I tried with our production one and a docker one summoned with
The text was updated successfully, but these errors were encountered: