Re: Reload bytea [was Re: Picture with Postgres and Delphi] - Mailing list pgsql-general

From Tom Lane
Subject Re: Reload bytea [was Re: Picture with Postgres and Delphi]
Date
Msg-id 8789.1071685053@sss.pgh.pa.us
Whole thread Raw
In response to Reload bytea [was Re: Picture with Postgres and Delphi]  (Rory Campbell-Lange <rory@campbell-lange.net>)
List pgsql-general
Rory Campbell-Lange <rory@campbell-lange.net> writes:
> I saved a db with some bytea columns to text using
>     pg_dump -a -d <db> > out.sql

You should not need a binary dump for bytea.  However, in versions
before 7.3.5 there is a potential for problems if the data goes through
any kind of locale or encoding translation --- see
http://archives.postgresql.org/pgsql-bugs/2003-11/msg00140.php

I'm not sure if that's what happened to you, or if there's any easy way
to reverse the conversion on your file if that is what happened, but
it's an avenue to pursue.

            regards, tom lane

pgsql-general by date:

Previous
From: Sai Hertz And Control Systems
Date:
Subject: Re: Excel, OpenOffice and Postgres
Next
From: Christopher Murtagh
Date:
Subject: Permissions issue?