Re: How to convert HEX to ASCII? - Mailing list pgsql-general

From Merlin Moncure
Subject Re: How to convert HEX to ASCII?
Date
Msg-id CAHyXU0yJmN4=0EKiK7DA8sx3nTSNxD-gf3Jtsrd7O68jU7AiyA@mail.gmail.com
Whole thread Raw
In response to Re: How to convert HEX to ASCII?  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: How to convert HEX to ASCII?  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
On Fri, Dec 2, 2011 at 11:15 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> 2011/12/2 Merlin Moncure <mmoncure@gmail.com>:
>> On Fri, Dec 2, 2011 at 10:42 AM, Marti Raudsepp <marti@juffo.org> wrote:
>>> Sorry, but AFAICT this makes a mess of encodings and only works by
>>> pure luck. The server thinks it's sending the client LATIN1 text, but
>>> it's actually UTF8-encoded and the last decoding step is done by your
>>> terminal.
>>
>> yup -- your're right -- what a coincidence!  I still prefer the 1
>> liner sql variant vs plpgsql loop though.  nicely done.
>
> so bytea_agg - one param aggregate has sense
>
> it's very easy to implement it

yup:

create aggregate bytea_agg (bytea)
(
  sfunc=byteacat,
  stype=bytea
);

merlin

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: How to convert HEX to ASCII?
Next
From: Pavel Stehule
Date:
Subject: Re: How to convert HEX to ASCII?