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

Switch from Postgres driver from lib/pq to pgx #15209

Closed
Vad1mo opened this issue Jun 26, 2021 · 5 comments · Fixed by #16267
Closed

Switch from Postgres driver from lib/pq to pgx #15209

Vad1mo opened this issue Jun 26, 2021 · 5 comments · Fixed by #16267

Comments

@Vad1mo
Copy link
Member

Vad1mo commented Jun 26, 2021

There are quite a few problems and limitations with the current Postgres driver lib/pq.

Furthermore, lib/pq maintainer recommend switching to pgx

lib/pq is effectively in maintenance mode and is not actively developed. Small patches and features are only rarely reviewed and merged. We recommend using pgx which is actively maintained.

fixes #13782
fixes #14856
fixes #14943

@heww
Copy link
Contributor

heww commented Jul 23, 2021

We will try to test the pgx when https://github.com/golang-migrate/migrate releases the version which supports the pgx.

@Vad1mo
Copy link
Member Author

Vad1mo commented Jul 23, 2021

Migrate does already support PGX (https://github.com/golang-migrate/migrate/tree/master/database/pgx) or is there something missing?

@heww
Copy link
Contributor

heww commented Jul 23, 2021

Yes, it supports pgx in the master branch, we will wait for it to publish a release.

@Vad1mo
Copy link
Member Author

Vad1mo commented Jul 23, 2021

thank you, didn't notice that detail :)

@phin1x
Copy link
Contributor

phin1x commented Nov 7, 2021

@heww golang-migrate now supports pgx with the latest 4.15.x release. is there something missing now to switch to pgx?

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

Successfully merging a pull request may close this issue.

4 participants