pg 9.0 changed the default bytea format to hex. This new format is not understood yet, so you end up with hex-escaped data in the query buffer. For now the old format can still be used by setting bytea_output on the role accordingly: ALTER ROLE foo SET bytea_output = 'escape';