PostgreSQL 9.X bytea representation in 'hex' or 'escape' for thumbnail images
问题 My application (developed in Delphi and ZEOS components) uses PostgreSQL 8.4 and stores some thumbnail images into a bytea column. I want to migrate to PostgreSQL 9.2 and have restored the dump and everything works fine except when I try to retrieve those images: Postgres 9.2 uses hex for output representation instead of escape used in Postgres 8.4. There are two possible solutions: Change the Postgres 9.2 settings for escape representation or change the hex string in binary data via