{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-postgres/issues/171","repository_url":"https://api.github.com/repos/sfackler/rust-postgres","labels_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/171/comments","events_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/171/events","html_url":"https://github.com/sfackler/rust-postgres/issues/171","id":147145254,"number":171,"title":"Make it compatible with cockroachdb","user":{"login":"Meai1","id":1112157,"avatar_url":"https://avatars.githubusercontent.com/u/1112157?v=3","gravatar_id":"","url":"https://api.github.com/users/Meai1","html_url":"https://github.com/Meai1","followers_url":"https://api.github.com/users/Meai1/followers","following_url":"https://api.github.com/users/Meai1/following{/other_user}","gists_url":"https://api.github.com/users/Meai1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meai1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meai1/subscriptions","organizations_url":"https://api.github.com/users/Meai1/orgs","repos_url":"https://api.github.com/users/Meai1/repos","events_url":"https://api.github.com/users/Meai1/events{/privacy}","received_events_url":"https://api.github.com/users/Meai1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-09T17:05:37Z","updated_at":"2016-04-09T18:01:39Z","closed_at":null,"body":"cockroachdb is compatible with the postgres wire protocol but not with all the postgres internals. Many other postgres drivers work fine with cockroachdb, but this one doesnt!\r\n\r\nError:\r\n\r\n> thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Error { repr: Custom(Custom { kind: InvalidInput, error: StringError(\"the server returned an unexpected response\") }) })', ../src/libcore/result.rs:688\r\n\r\nRepro:\r\n\r\n```\r\nwget https://binaries.cockroachdb.com/cockroach-beta-20160407.linux-amd64.tgz && tar xfz cockroach-beta-20160407.linux-amd64.tgz && cd cockroach-beta-20160407.linux-amd64\r\n./cockroach start\r\n./cockroach sql \r\n> CREATE DATABASE root;\r\n```\r\n\r\n\r\n ```\r\n let conn = Connection::connect(\"postgresql://root@localhost:26257/root?sslmode=disable\", SslMode::None) .unwrap();\r\n\tprintln!(\"connection established\");\r\n    conn.execute(\"CREATE TABLE accounts (id INT PRIMARY KEY, balance INT)\", &[]).unwrap();\r\n\tprintln!(\"executed statement\");\r\n```"},"comment":{"url":"https://api.github.com/repos/sfackler/rust-postgres/issues/comments/207823005","html_url":"https://github.com/sfackler/rust-postgres/issues/171#issuecomment-207823005","issue_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/171","id":207823005,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T18:01:38Z","updated_at":"2016-04-09T18:01:38Z","body":"It looks like pg_catalog is not a planned addition: https://github.com/cockroachdb/cockroach/issues/5194"}}