From: Alex Hunsaker <badalex@gmail.com>
To: Reuven M. Lerner <reuven@lerner.co.il>
Cc: pgsql-performance@postgresql.org
Subject: Re: Speeding up loops in pl/pgsql function
Date: Wed, 25 May 2011 12:48:43 -0600
Message-ID: <BANLkTin52zF59YU-CO7NQifjAw3WsQWFSg@mail.gmail.com> (raw)
In-Reply-To: <4DDD4E57.7070800@lerner.co.il>
References: <4DDD358E.20307@lerner.co.il>
<BANLkTinuiR=Txtn_dUeSbvvgcWZj9c2+iw@mail.gmail.com>
<4DDD4E57.7070800@lerner.co.il>
On Wed, May 25, 2011 at 12:45, Reuven M. Lerner <reuven@lerner.co.il> wrote:
> Hi, Alex. You wrote:
>> I think select E'\XXX' is what you are looking for (per the fine
>> manual:
>> http://www.postgresql.org/docs/current/static/datatype-binary.html)
>
> I didn't think that I could (easily) build a string like that from digits in
> a variable or a column, but I'll poke around and see if it can work.
Well, if you build '\XXX' you can call escape(..., 'escape') on it
like I did with the regex above.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: badalex@gmail.com, reuven@lerner.co.il
Subject: Re: Speeding up loops in pl/pgsql function
In-Reply-To: <BANLkTin52zF59YU-CO7NQifjAw3WsQWFSg@mail.gmail.com>
References: <4DDD358E.20307@lerner.co.il> <BANLkTinuiR=Txtn_dUeSbvvgcWZj9c2+iw@mail.gmail.com> <4DDD4E57.7070800@lerner.co.il> <BANLkTin52zF59YU-CO7NQifjAw3WsQWFSg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox