{"action":"closed","issue":{"url":"https://api.github.com/repos/sfackler/rust-postgres/issues/303","repository_url":"https://api.github.com/repos/sfackler/rust-postgres","labels_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/303/comments","events_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/303/events","html_url":"https://github.com/sfackler/rust-postgres/issues/303","id":275109138,"number":303,"title":"Error querying PgBouncer","user":{"login":"jwilm","id":4285147,"avatar_url":"https://avatars2.githubusercontent.com/u/4285147?v=4","gravatar_id":"","url":"https://api.github.com/users/jwilm","html_url":"https://github.com/jwilm","followers_url":"https://api.github.com/users/jwilm/followers","following_url":"https://api.github.com/users/jwilm/following{/other_user}","gists_url":"https://api.github.com/users/jwilm/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilm/subscriptions","organizations_url":"https://api.github.com/users/jwilm/orgs","repos_url":"https://api.github.com/users/jwilm/repos","events_url":"https://api.github.com/users/jwilm/events{/privacy}","received_events_url":"https://api.github.com/users/jwilm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-11-18T20:54:58Z","updated_at":"2017-11-21T16:37:45Z","closed_at":"2017-11-21T16:37:45Z","author_association":"CONTRIBUTOR","body":"PgBouncer seems to implement some, but not all, of the postgres protocol. Specifically, I was running into this error when trying to query it:\r\n\r\n```rust\r\nDb(DbError {\r\n    severity: \"ERROR\",\r\n    parsed_severity: None,\r\n    code: ProtocolViolation,\r\n    message: \"unsupported pkt type: 80\",\r\n    detail: None,\r\n    hint: None,\r\n    position: None,\r\n    where_: None,\r\n    schema: None,\r\n    table: None,\r\n    column: None,\r\n    datatype: None,\r\n    constraint: None,\r\n    file: None,\r\n    line: None,\r\n    routine: None\r\n})\r\n```\r\n\r\nThe error message is from PgBouncer internals (admin.c:1365). Basically, looks like the `'P'` frame isn't handled. This is generated from `postgres_protocol::messages::frontend::parse`.\r\n\r\nAny suggestions on how to resolve?"}}
{"actor":{"display_login":"jwilm"}}