Re: BYTEA or LO?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: BYTEA or LO?
Дата
Msg-id BANLkTik-LMG33pxNg-9x1_w4h5p5m+qb5Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BYTEA or LO?  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Ответы Re: BYTEA or LO?  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: BYTEA or LO?
Следующее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: BYTEA or LO?