Re: DB with bytea types reload problem

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: DB with bytea types reload problem
Дата
Msg-id 3FDF4F74.5060507@joeconway.com
обсуждение исходный текст
Ответ на DB with bytea types reload problem  (Rory Campbell-Lange <rory@campbell-lange.net>)
Список 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: selecting into a variable like @var=select ...
Следующее
От: Joe Conway
Дата:
Сообщение: Re: functions returning sets