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
Is there a way to create connection pool over ssh? #382
Comments
Looks like this should work:
|
I may be missing something, but I did have issues connecting to an AWS RDS through an EC2 bastion this way.
the solution was to implement a wrapper around net.Conn that ignores deadline-related methods.
I then updated the dial function as such:
This seems pretty hacky to me, so I welcome another solution, but this was the most simple one I could come up with. |
I'm encountering the same issue "ssh: tcpChan: deadline not supported". Hope there's a standard support. |
Is there a way to create pgx connection pool over ssh? I found this example for pq:
https://gist.github.com/vinzenz/7b6b1bf8d0c2b2b1e0d69a15ba9f02c7
The text was updated successfully, but these errors were encountered: