By default since PG 9, bytea column data is sent to client in 'hex' output format instead of 'escape' format.
See http://www.postgresql.org/docs/9.0/static/libpq-exec.html#LIBPQ-PQESCAPEBYTEA.
postgres-pr needs to to support this format, as the only alternative is to set the output format properties to 'escape' at DB level.