Re: bytea and text

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bytea and text
Дата
Msg-id 2590.1259251081@sss.pgh.pa.us
обсуждение исходный текст
Ответ на bytea and text  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Ответы Re: bytea and text  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Re: bytea and text  (richard terry <rterry@pacific.net.au>)
Список pgsql-novice
"Jean-Yves F. Barbier" <12ukwn@gmail.com> writes:
> I'm asking myself what solution for storing pictures is the best:

> * using a BYTEA column type, and having no intrinsic compression gain
>    because a picture it almost every time already compressed,

> * using a TEXT column type, and store a Base64(picture) in it; it should
>    take benefits of intrinsic compression (?).

At best, the compression would get rid of the overhead you added by
converting to base64.  It probably wouldn't completely succeed at that,
though, meaning the second alternative is always a loser.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Brian Modra
Дата:
Сообщение: Re: bytea and text
Следующее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: bytea and text