Re: DB with bytea types reload problem - Mailing list pgsql-general

From Joe Conway
Subject Re: DB with bytea types reload problem
Date
Msg-id 3FDF4F74.5060507@joeconway.com
Whole thread Raw
In response to DB with bytea types reload problem  (Rory Campbell-Lange <rory@campbell-lange.net>)
List pgsql-general
Rory Campbell-Lange wrote:
>     pg_dump -a -d <db> > out.sql

 From this:

 > The sql dump file has lines starting something like this for the photo
 > table:
 >     1   500 375 h \\377\\330\\377\\340...

it doesn't look to me like you actually ran that command. The -d says
you should have INSERT statements, but you seem to have copy out data.
Try doing:

COPY tablename FROM 'out.sql';

or some variation thereof.

Joe



pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: selecting into a variable like @var=select ...
Next
From: Joe Conway
Date:
Subject: Re: functions returning sets