Re: Record - Mailing list pgsql-general

From Aasmund Midttun Godal
Subject Re: Record
Date
Msg-id 20011024151947.10803.qmail@ns.krot.org
Whole thread Raw
In response to Re: Record  (Alvaro Herrera <alvherre@atentus.com>)
List pgsql-general
Escaping the byte sequence is quite simple:

    s/([^\w])/sprintf("\\%03o", ord($1))/eg;
(in perl).

On Wed, 24 Oct 2001 11:22:39 -0300 (CLST), Alvaro Herrera <alvherre@atentus.com> wrote:
> On Tue, 23 Oct 2001, Aasmund Midttun Godal wrote:
>
>
> Third option is to encode the image (base64?) and then store as text.
> It's probably slower (since you have to decode it everytime), uses much
> more space, but you don't have to worry about escaping the byte
> sequence.
>
> --
> Alvaro Herrera (<alvherre[@]atentus.com>)
> Jajaja! Solo hablaba en serio!
>

Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46

pgsql-general by date:

Previous
From: Keary Suska
Date:
Subject: Re: PgSendMail, PgLinkPoint, PgMCK (CyberCash) joins
Next
From: wsheldah@lexmark.com
Date:
Subject: Re: Record