Re: Backup/Restore bytea data

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Backup/Restore bytea data
Дата
Msg-id 50F3C782.80800@archonet.com
обсуждение исходный текст
Ответ на Backup/Restore bytea data  (sub3 <steve@subwest.com>)
Список pgsql-general
On 14/01/13 01:13, sub3 wrote:
> Hi,
> I am having an issue upgrading a really old 8.2 db up to 9.2.2. One of the
> tables contains a bytea field.  When I backup&  restore using pgadmin from
> my 9.2.2 install, it doesn't convert this field correctly.

Could this be due to your bytea_output setting?
   http://www.postgresql.org/docs/9.2/static/datatype-binary.html

Not sure how this could snag you if you are dumping using 9.2, but this:

> I see it starts w/special character when selecting it from the old database;
> in the new db, I see a string starting w/"\211PNG".

is clearly in "escape" rather than "hex" format.

--
   Richard Huxton
   Archonet Ltd


В списке pgsql-general по дате отправления:

Предыдущее
От: Vlad Arkhipov
Дата:
Сообщение: Re: Problem with records that disappear.
Следующее
От: Condor
Дата:
Сообщение: Re: Problem with records that disappear.