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

Use cloudsqlproxy dialer #920

Closed
pcriv opened this issue Jan 26, 2021 · 3 comments
Closed

Use cloudsqlproxy dialer #920

pcriv opened this issue Jan 26, 2021 · 3 comments

Comments

@pcriv
Copy link

pcriv commented Jan 26, 2021

Is it possible to use pgx with the google cloud proxy dialer?

https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/proxy/dialers/postgres/hook_test.go

@jackc
Copy link
Owner

jackc commented Jan 27, 2021

No, it is hard-coded to lib/pq.

https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/4dfde25b991c55993b761ae9d202d7db400971f8/proxy/dialers/postgres/hook.go#L31

But my guess is it would only take a few changes to make it use pgx instead.

@pcriv
Copy link
Author

pcriv commented Jan 27, 2021

Hmm, not sure if they would be up for changing it but I could give it a try
Thanks for your reply!

@pcriv pcriv closed this as completed Jan 27, 2021
@pcriv
Copy link
Author

pcriv commented Jan 27, 2021

Looks like there is a discussion already going on: GoogleCloudPlatform/cloud-sql-proxy#433

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