Re: DB with bytea types reload problem

From: Joe Conway <mail(at)joeconway(dot)com>
To: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: DB with bytea types reload problem
Date: 2003-12-16 18:31:16
Message-ID: 3FDF4F74.5060507@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2003-12-16 18:44:49 Re: functions returning sets
Previous Message Brian C. Doyle 2003-12-16 18:15:00 Add Primary/Foreign Key in 7.3.2