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

Cannot connect to pgbouncer in 3.2.0 and later #512

Closed
danielnelson opened this issue Feb 20, 2019 · 4 comments
Closed

Cannot connect to pgbouncer in 3.2.0 and later #512

danielnelson opened this issue Feb 20, 2019 · 4 comments

Comments

@danielnelson
Copy link

After upgrading to v3.2.0 it is no longer possible to connect to pgbouncer, sql.Open returns:

ERROR: unsupported pkt type: 80 (SQLSTATE 08P01)

Here is a link to the configuration and open calls:
https://github.com/influxdata/telegraf/blob/03776088f135b040d8af93db4ee09f8bba1a5de7/plugins/inputs/postgresql/service.go#L112-L136

Git bisect indicates that it is caused by d9f21d0 overwriting the PreferSimpleProtocol in the pgx.ConnConfig.

@jackc
Copy link
Owner

jackc commented Mar 8, 2019

I think this should be fixed on master now.

@danielnelson
Copy link
Author

Thanks, I can verify that it is working for me now.

@jackc jackc closed this as completed Mar 9, 2019
@danielnelson
Copy link
Author

@jackc Apologies if this is documented somewhere, but do you have a date in mind for the next release? I'm trying to decide if I should wait for the next release or just pin to a commit sha on the next Telegraf release (scheduled for the end of May).

@jackc
Copy link
Owner

jackc commented May 3, 2019

Just tagged v3.4.0.

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