Re: bytea hex input/output

From: "Michael Artz" <mlartz(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: bytea hex input/output
Date: 2006-05-17 00:56:47
Message-ID: e9c163070605161756i5fb91221wa5e3e63d2fde0bc0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Eh, I'll just convert it all to octal, I just thought that I could get away
without any middleman.

What ig going on behind the scenes? Does it first get converted to text and
then on to bytea? Would an explicit cast get around this (perhaps with
associated UDF)?

-Mike

On 5/16/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Michael Artz" <mlartz(at)gmail(dot)com> writes:
> > Silly little question, but is there something to input/output hex
> > escaped data into a bytea, ala
>
> PQescapeBytea, perhaps? The way you are doing it has multiple problems.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Downs 2006-05-17 02:09:59 Re: Announce: GPL Framework centered on Postgres
Previous Message Sean Davis 2006-05-17 00:49:30 Re: FATAL: could not read statistics message