Re: how to extract data from bytea so it is be used in blob for mysql database

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: how to extract data from bytea so it is be used in blob for mysql database
Дата
Msg-id 4A0C6D9C.9080208@iol.ie
обсуждение исходный текст
Ответ на Re: how to extract data from bytea so it is be used in blob for mysql database  ("George Kao" <george.kao@group-upc.com>)
Ответы Re: how to extract data from bytea so it is be used in blob for mysql database
Список pgsql-general
On 14/05/2009 20:07, George Kao wrote:
> The data in escaped octal is not acceptable. Is there a way to dump the
> bytea from posgresql database in hex format? I think it is acceptable by

No, I'm fairly sure that you can't do it directly in the pg_dump output.
However, you could maybe use the functions here -

  http://www.postgresql.org/docs/8.3/static/functions-binarystring.html

- to write something that will output what you need.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

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

Предыдущее
От: "George Kao"
Дата:
Сообщение: Re: how to extract data from bytea so it is be used in blob for mysql database
Следующее
От: "George Kao"
Дата:
Сообщение: Re: how to extract data from bytea so it is be used in blob for mysql database