Re: Speeding up loops in pl/pgsql function

From: Alex Hunsaker <badalex(at)gmail(dot)com>
To: "Reuven M(dot) Lerner" <reuven(at)lerner(dot)co(dot)il>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Speeding up loops in pl/pgsql function
Date: 2011-05-25 18:48:43
Message-ID: BANLkTin52zF59YU-CO7NQifjAw3WsQWFSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, May 25, 2011 at 12:45, Reuven M. Lerner <reuven(at)lerner(dot)co(dot)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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Pavel Stehule 2011-05-25 19:02:07 Re: Speeding up loops in pl/pgsql function
Previous Message Reuven M. Lerner 2011-05-25 18:45:43 Re: Speeding up loops in pl/pgsql function