meteficha/postgresql-simple — comment on commit f096fb7796b9397c92c8639c6842d73130d3c5b5
File:  line 0
By lpsmith:

As far as I can tell, either should lead to the correct behavior, so I think there is a problem in your test suite. Are you sure that the backend has inferred the bytea type, and you aren't trying to round-trip through a plain-old string type? Also, what version of PostgreSQL are you testing against?