Re: images in database

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: images in database
Дата
Msg-id 3E8C3029.E3A72ACE@Yahoo.com
обсуждение исходный текст
Ответ на Re: images in database  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Ответы Re: images in database
Список pgsql-general
"Nigel J. Andrews" wrote:
> B64 would still require a bytea storage type to avoid any character encoding
> issue between client and server though, right?

I don't think so, since it uses characters from the 7-Bit ASCII set
exclusively and IIRC those map to the same codes in almost every
encoding except EBCDIC (though, I'm not an encoding expert).

What might have slowed down bytea as it would text is TOAST's attempt to
compress the data. As image data usually is compressed already (if not
using PPM or such), this will be a waste of time. For that reason alone,
TOAST offers you to disable the compression attempt on a per attribute
base.


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: unable to dump database, toast errors
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: images in database