Re: Reload bytea [was Re: Picture with Postgres and Delphi]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Reload bytea [was Re: Picture with Postgres and Delphi]
Date: 2003-12-17 18:17:33
Message-ID: 8789.1071685053@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rory Campbell-Lange <rory(at)campbell-lange(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Don Isgitt 2003-12-17 18:17:57 copy command problem
Previous Message Sai Hertz And Control Systems 2003-12-17 17:50:01 Re: Excel, OpenOffice and Postgres