Re: BYTEA or LO? - Mailing list pgsql-novice

From Merlin Moncure
Subject Re: BYTEA or LO?
Date
Msg-id BANLkTik-LMG33pxNg-9x1_w4h5p5m+qb5Q@mail.gmail.com
Whole thread Raw
In response to Re: BYTEA or LO?  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Responses Re: BYTEA or LO?  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
List pgsql-novice
On Tue, May 31, 2011 at 2:01 PM, Jean-Yves F. Barbier <12ukwn@gmail.com> wrote:
> On Tue, 31 May 2011 13:40:02 -0500, "ktm@rice.edu" <ktm@rice.edu> wrote:
>
> ...
>> That is needed to use the non-binary API. You can also use hex encoding
>> starting with 9.0, I think. The data is stored in binary internally so you
>> should not get a 33% bump in size. If you use the binary API, you can avoid
>> the hex/base64 encoding pass as well.
>
> I just read the doc but didn't fully understand the binary part.
>
> Do you mean that with BYTEA binary type I can directly R/W my pictures
> without any transcoding trick?

If you are using libpq or another driver that exports this feature of
the protocol, yes.

merlin

pgsql-novice by date:

Previous
From: "Jean-Yves F. Barbier"
Date:
Subject: Re: BYTEA or LO?
Next
From: "Jean-Yves F. Barbier"
Date:
Subject: Re: BYTEA or LO?