Re: Record

From: "Aasmund Midttun Godal" <postgresql(at)envisity(dot)com>
To: alvherre(at)atentus(dot)com
Cc: julio(at)bntsoft(dot)com(dot)br, pgsql-general(at)postgresql(dot)org
Subject: Re: Record
Date: 2001-10-24 15:19:47
Message-ID: 20011024151947.10803.qmail@ns.krot.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)atentus(dot)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[(at)]atentus(dot)com>)
> Jajaja! Solo hablaba en serio!
>

Aasmund Midttun Godal

aasmund(at)godal(dot)com - http://www.godal.com/
+47 40 45 20 46

In response to

  • Re: Record at 2001-10-24 14:22:39 from Alvaro Herrera

Browse pgsql-general by date

  From Date Subject
Next Message Hiroshi Inoue 2001-10-24 15:23:16 Re: Writing BLOBS to pgsql via ODBC using VB
Previous Message John Fabiani 2001-10-24 14:57:48 Re: Installation problems