Re: Recommendation on bytea or blob for binary data like images

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Recommendation on bytea or blob for binary data like images
Дата
Msg-id 17794.1125693189@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Recommendation on bytea or blob for binary data like images  (leon@oss.minimetria.com)
Ответы Re: Recommendation on bytea or blob for binary data like images  (Leon Torres <leon@oss.minimetria.com>)
Список pgsql-sql
leon@oss.minimetria.com writes:
> Hi, I'd like to know what the official recommendation is on which binary
> datatype to use for common small-binary size use.

If bytea will work for you, it's definitely the thing to use.  The only
real drawback to bytea is that there's currently no API to read and
write bytea values in a streaming fashion.  If your objects are small
enough that you can load and store them as units, bytea is fine.

BLOBs, on the other hand, have a number of drawbacks --- hard to dump,
impossible to secure, etc.
        regards, tom lane


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

Предыдущее
От: leon@oss.minimetria.com
Дата:
Сообщение: Recommendation on bytea or blob for binary data like images
Следующее
От: Henry Ortega
Дата:
Сообщение: Re: insert only if conditions are met?