View Single Post

   
  #7 (permalink)  
Old 05-07-2008, 10:16 AM
Tom Lane
 
Posts: n/a
Default Re: bytea and character encoding when inserting escaped literals

Lee Feigenbaum <lee@thefigtrees.net> writes:
> Would be nice if the bytea parser understood hex representation too, but
> beggars can't be choosers


decode() might help you:

select decode('1200AB', 'hex');
decode
--------------
\022\000\253
(1 row)

regards, tom lane

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply With Quote