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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Reload bytea [was Re: Picture with Postgres and Delphi]
Дата
Msg-id 8789.1071685053@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Reload bytea [was Re: Picture with Postgres and Delphi]  (Rory Campbell-Lange <rory@campbell-lange.net>)
Список 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 по дате отправления:

Предыдущее
От: Sai Hertz And Control Systems
Дата:
Сообщение: Re: Excel, OpenOffice and Postgres
Следующее
От: Christopher Murtagh
Дата:
Сообщение: Permissions issue?