-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
cli: switch to using jackc/pgx instead of lib/pq #48607
Comments
@vy-ton for awareness (this about which driver we use internally) |
Update on this: I've made a lot of progress. It's still gated behind Go modules. I landed jackc/pgx#757 which is a requirement for getting our CLI to work as we expect. |
Hey, not sure my problem related to the issue, but it related to jackc/pgx. lib/pq handle error internally. Any thoughts on that? |
@rafiss Does |
pgx does support GSSAPI. however, lib/pq did too, so our CLI already supported it before |
Pgx is a more full-featured Postgres driver that allows more customizability and provides access to useful Postgres-protocol-specific things than lib/pq, which is hindered by its implementation of the database/sql interfaces.
It would be really nice to have Pgx's extra features in the SQL shell. For example, implementing a client-side flag to display type OIDs per column would be easy with pgx but impossible with lib/pq.
Pgx has gotten some upgrades recently that are necessary for that example. But, pgx is also a user of Go modules. Dep can't handle this and blows up when you try to add pgx of a newish version to the dependency list.
See PR stripe/stripe-go#1055 - they ran into similar problems with dep and ended up just losing support for dep when they upgraded to Go modules.
Jira issue: CRDB-4310
The text was updated successfully, but these errors were encountered: