-
Notifications
You must be signed in to change notification settings - Fork 45
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
New jackc/pgx
driver does not work well with pgbouncer metrics
#56
Comments
I couldn't find a way to override the So I revert PR 52 temporarily until there's a proper solution. Besides, using |
Sorry about that! Yes, thanks for reverting. I can look into it later and see. I can work around the issues I have with Logging an error for a query like What pgbouncer version are you using though? It should support the extended query protocol fine, and in fact supports disabling the simple query protocol. Some related discussion:
I'd like to get it onto an updated driver at some point. Quite surprised by the image size change, but the real world resource use at runtime is probably what matters. At some point I hope to get time to write some test cases and a harness setup with Ginkgo or something, so this sort of thing can be checked for more effectively. |
The revert commit was e80a810 |
@Vonng Can you confirm the pgbouncer version from the above? Sounds like it's solve-able with a config option to force simple-query mode for old proxies that are incompatible with the v3 query protocol. |
pgbouncer 1.22 / 1.23, but I guess it applies to all versions. |
Thanks. Will try to chase this up. Currently slammed. |
Two problems with the new
jackc/pgx
drvier when working with pgBouncer:Pgbouncer works with
SimpleQueryProtocol
, which can be solved by:The driver will send
-- ping
command to pgbouncer, which will trigger an error log periodicallyThe latter one seems tricky; I'm looking into it.
;-) Any thoughts on this ? @ringerc
The text was updated successfully, but these errors were encountered: