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

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: george(dot)kao(at)group-upc(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to extract data from bytea so it is be used in blob for mysql database
Date: 2009-05-14 19:14:36
Message-ID: 4A0C6D9C.9080208@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message George Kao 2009-05-14 21:03:41 Re: how to extract data from bytea so it is be used in blob for mysql database
Previous Message George Kao 2009-05-14 19:07:02 Re: how to extract data from bytea so it is be used in blob for mysql database