Move impl over from rust-postgres